10 Commits

Author SHA1 Message Date
12ebea9550 SecretStream.kt fixed by using a lot of external objects on JsSodiumInterface.kt.
Problem: function crypto_secretstream_xchacha20poly1305_pull returns JsAny (via an external object) to dataAndTag value. Later dataAndTag is compared to Boolean. Check it out later. It may cause problems.
2025-01-22 23:07:02 +03:00
014daefc43 Created a big amount of external objects in JsSodiumInterface.kt for Hash.kt, Kdf.kt and KeyExchange.kt files.
Reason: values had these fields in dynamic type but not in JsAny type.
2025-01-22 23:07:02 +03:00
0d2300c47f Add chacha20poly1305EncryptDetachedResult return type to corresponding functions (mac and ciphertext were fixed) 2025-01-22 23:07:02 +03:00
2fdecba847 Made a .toUInt8Array() function in JsUtil.kt file. 2025-01-22 23:07:02 +03:00
4bea64ad21 Fixed initializeWithCallback func in LibsodiumInitializer. Note: now it returns a JsString "null" instead of nothing 2025-01-22 23:07:02 +03:00
f7bb312273 Fixed JsUtil.kt, Uint8Array type to ByteArray 2025-01-22 23:07:02 +03:00
f161aef4ac The JsLibsodiumLoader file has been fixed, but the quality of fix is unknown 2025-01-22 23:07:02 +03:00
669e8ee0c9 Work on JsSodiumLoader in process. Current problem: wrong type in try-catch (JsAny instead of throwable) 2025-01-22 23:07:02 +03:00
99e6316120 Deleted @JsNonModule, dynamic (and Any) type switched to JsAny 2025-01-22 23:07:02 +03:00
d26ef0d41e Our sweet start 2025-01-22 23:07:02 +03:00