14 Commits

Author SHA1 Message Date
kildishevps
c6946c90b4 Fixed Throable cast error and changed gradle version in one more place 2025-01-22 23:24:23 +03:00
kildishevps
504e8db46b Changed gradle and kotlin versions and made LibsodiumInitializer.initializeWithCallback a bit prettier 2025-01-22 23:24:23 +03:00
6a9cfd5006 External objects have been moved to Types.kt.
JsSodiumInterface.kt changes: Ubyte -> Byte; UInt -> Int
Next step: tests.
2025-01-22 23:07:02 +03:00
03116127e8 Exception has been handled in func xChaCha20Poly1305Pull (file SecretStream.kt) 2025-01-22 23:07:02 +03:00
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