c6946c90b4Fixed Throable cast error and changed gradle version in one more place
kildishevps
2024-12-29 17:41:29 +03:00
504e8db46bChanged gradle and kotlin versions and made LibsodiumInitializer.initializeWithCallback a bit prettier
kildishevps
2024-12-28 06:22:08 +03:00
59f2d77890Problem with 1.9.23 KMP version. It's been fixed in 2.0 so it needs to be updatedPlaceboAddict2024-12-28 00:23:46 +03:00
bd83e9aee0Changed gradle files to be like in test project, wasmJsBrowser run appeared. Also added wasmJs to crypto-api gradlePlaceboAddict2024-12-26 01:03:48 +03:00
9f7fc6e379runTest that should work as it works in test projectPlaceboAddict2024-12-26 00:54:34 +03:00
ccb47be795We have runTest for wasmJs now, but there is a weird problem with library filesPlaceboAddict2024-12-16 22:46:25 +03:00
6a9cfd5006External 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
03116127e8Exception has been handled in func xChaCha20Poly1305Pull (file SecretStream.kt)PlaceboAddict2024-12-10 19:41:52 +03:00
12ebea9550SecretStream.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
014daefc43Created 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
0d2300c47fAdd chacha20poly1305EncryptDetachedResult return type to corresponding functions (mac and ciphertext were fixed)PlaceboAddict2024-12-07 19:12:57 +03:00
2fdecba847Made a .toUInt8Array() function in JsUtil.kt file.PlaceboAddict2024-12-06 00:31:33 +03:00
4bea64ad21Fixed initializeWithCallback func in LibsodiumInitializer. Note: now it returns a JsString "null" instead of nothingPlaceboAddict2024-12-02 05:19:17 +03:00
f7bb312273Fixed JsUtil.kt, Uint8Array type to ByteArrayPlaceboAddict2024-12-02 03:40:00 +03:00
f161aef4acThe JsLibsodiumLoader file has been fixed, but the quality of fix is unknownPlaceboAddict2024-12-01 21:14:19 +03:00
669e8ee0c9Work on JsSodiumLoader in process. Current problem: wrong type in try-catch (JsAny instead of throwable)PlaceboAddict2024-12-01 20:51:43 +03:00
99e6316120Deleted @JsNonModule, dynamic (and Any) type switched to JsAnyPlaceboAddict2024-11-27 21:27:28 +03:00
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 Jovanovic
2024-07-02 20:45:23 +02:00
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 Jovanovic
2024-04-06 11:46:28 +02:00
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 Jovanovic
2023-09-23 11:54:02 +02:00
Fix runners, use api because yarn breaks if same project has local sources and reference to build remote library
Ugljesa Jovanovic
2022-10-06 12:26:35 +02:00
Add lib prefix to libraries on jvm as some packaging tools extract them into system path and java expects lib prefix
Ugljesa Jovanovic
2022-09-20 11:03:24 +02:00
Update android and linux dynamic libs, prevent windows shell from hanging and fix type for android on x86_64
Ugljesa Jovanovic
2022-08-28 20:33:23 +02:00