PlaceboAddict
9f7fc6e379
runTest that should work as it works in test project
2025-01-22 23:07:02 +03:00
PlaceboAddict
ccb47be795
We have runTest for wasmJs now, but there is a weird problem with library files
2025-01-22 23:07:02 +03:00
PlaceboAddict
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
PlaceboAddict
03116127e8
Exception has been handled in func xChaCha20Poly1305Pull (file SecretStream.kt)
2025-01-22 23:07:02 +03:00
PlaceboAddict
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
PlaceboAddict
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
PlaceboAddict
0d2300c47f
Add chacha20poly1305EncryptDetachedResult return type to corresponding functions (mac and ciphertext were fixed)
2025-01-22 23:07:02 +03:00
PlaceboAddict
2fdecba847
Made a .toUInt8Array() function in JsUtil.kt file.
2025-01-22 23:07:02 +03:00
PlaceboAddict
4bea64ad21
Fixed initializeWithCallback func in LibsodiumInitializer. Note: now it returns a JsString "null" instead of nothing
2025-01-22 23:07:02 +03:00
PlaceboAddict
f7bb312273
Fixed JsUtil.kt, Uint8Array type to ByteArray
2025-01-22 23:07:02 +03:00
PlaceboAddict
f161aef4ac
The JsLibsodiumLoader file has been fixed, but the quality of fix is unknown
2025-01-22 23:07:02 +03:00
PlaceboAddict
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
PlaceboAddict
99e6316120
Deleted @JsNonModule, dynamic (and Any) type switched to JsAny
2025-01-22 23:07:02 +03:00
PlaceboAddict
0a561e4f10
Wasm connected (hopefully)
2025-01-22 23:07:02 +03:00
PlaceboAddict
d26ef0d41e
Our sweet start
2025-01-22 23:07:02 +03:00
PlaceboAddict
df86967662
Our sweet start
2025-01-22 23:07:02 +03:00