c6946c90b4
Fixed Throable cast error and changed gradle version in one more place
kildishevps2024-12-29 17:41:29 +03:00
504e8db46b
Changed gradle and kotlin versions and made LibsodiumInitializer.initializeWithCallback a bit prettier
kildishevps2024-12-28 06:22:08 +03:00
59f2d77890
Problem with 1.9.23 KMP version. It's been fixed in 2.0 so it needs to be updated
PlaceboAddict2024-12-28 00:23:46 +03:00
bd83e9aee0
Changed gradle files to be like in test project, wasmJsBrowser run appeared. Also added wasmJs to crypto-api gradle
PlaceboAddict2024-12-26 01:03:48 +03:00
9f7fc6e379
runTest that should work as it works in test project
PlaceboAddict2024-12-26 00:54:34 +03:00
ccb47be795
We have runTest for wasmJs now, but there is a weird problem with library files
PlaceboAddict2024-12-16 22:46:25 +03:00
6a9cfd5006
External objects have been moved to Types.kt. JsSodiumInterface.kt changes: Ubyte -> Byte; UInt -> Int Next step: tests.
PlaceboAddict2024-12-10 20:08:28 +03:00
03116127e8
Exception has been handled in func xChaCha20Poly1305Pull (file SecretStream.kt)
PlaceboAddict2024-12-10 19:41:52 +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.
PlaceboAddict2024-12-09 03:27:29 +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.
PlaceboAddict2024-12-09 01:16:46 +03:00
0d2300c47f
Add chacha20poly1305EncryptDetachedResult return type to corresponding functions (mac and ciphertext were fixed)
PlaceboAddict2024-12-07 19:12:57 +03:00
2fdecba847
Made a .toUInt8Array() function in JsUtil.kt file.
PlaceboAddict2024-12-06 00:31:33 +03:00
4bea64ad21
Fixed initializeWithCallback func in LibsodiumInitializer. Note: now it returns a JsString "null" instead of nothing
PlaceboAddict2024-12-02 05:19:17 +03:00
f7bb312273
Fixed JsUtil.kt, Uint8Array type to ByteArray
PlaceboAddict2024-12-02 03:40:00 +03:00
f161aef4ac
The JsLibsodiumLoader file has been fixed, but the quality of fix is unknown
PlaceboAddict2024-12-01 21:14:19 +03:00
669e8ee0c9
Work on JsSodiumLoader in process. Current problem: wrong type in try-catch (JsAny instead of throwable)
PlaceboAddict2024-12-01 20:51:43 +03:00
99e6316120
Deleted @JsNonModule, dynamic (and Any) type switched to JsAny
PlaceboAddict2024-11-27 21:27:28 +03:00
3d2c848a79
Remove invalid return value from JVM JNA definition of sodium_bin2base64, since the actual return value is the pointer to the buffer containing encoded string, not an integer, and we don't use it in any case
Ugljesa Jovanovic2024-07-02 20:45:23 +02:00
1ff01d0fdd
Fix shortHashKeygen, which doesn't have a return value, but was defined as returing Int in JNA defintion
Ugljesa Jovanovic2024-07-02 18:50:22 +02:00
1424db0336
Remove xchacha20 streaming API for now, as they are not available on apple builds
Ugljesa Jovanovic2024-04-06 18:56:26 +02:00
59c5f958ca
Fix for #42, add check for values returned by libsodium that signal failure, reintroduce xChaCha20 stream API since iosArm32 is not supported any more, use forked resource loader that deletes tmp folders properly
Ugljesa Jovanovic2024-04-06 11:46:28 +02:00
194994f5b2
Update kotlin to 1.9.10, update library versions, use latest libsodium stable, clean up Deps, remove deprecated targets, change PasswordHash str related functions to use String
Ugljesa Jovanovic2023-09-23 11:54:02 +02:00
c843ea5122
Remove test dependencies from jvm main, clean up runners
Ugljesa Jovanovic2022-10-07 20:00:59 +02:00
fec0f36dc3
Fix runners, use api because yarn breaks if same project has local sources and reference to build remote library
Ugljesa Jovanovic2022-10-06 12:26:35 +02:00
13a880cc73
Bump sample to use latest snapshot and add some encryption/decryption to binary
Ugljesa Jovanovic2022-10-06 10:44:54 +02:00
7dd2b90a09
Add lib prefix to libraries on jvm as some packaging tools extract them into system path and java expects lib prefix
Ugljesa Jovanovic2022-09-20 11:03:24 +02:00