226 Commits

Author SHA1 Message Date
kildishevps
c39c9ec71e Adding comment in hardly understandable part
Some checks failed
Build project and push to maven snapshot / Build-And-Push-Linux (push) Has been cancelled
Build project and push to maven snapshot / Build-And-Push-Mac (push) Has been cancelled
Build project and push to maven snapshot / Build-And-Push-Windows (push) Has been cancelled
2025-02-05 00:37:27 +03:00
kildishevps
f1b8488707 Changing publishing paths back to YoungBlood organization
Some checks failed
Build project and push to maven snapshot / Build-And-Push-Linux (push) Has been cancelled
Build project and push to maven snapshot / Build-And-Push-Mac (push) Has been cancelled
Build project and push to maven snapshot / Build-And-Push-Windows (push) Has been cancelled
2025-02-02 19:33:01 +03:00
kildishevps
8a2bbb3e33 Fixig publication again
Some checks are pending
Build project and push to maven snapshot / Build-And-Push-Linux (push) Waiting to run
Build project and push to maven snapshot / Build-And-Push-Mac (push) Waiting to run
Build project and push to maven snapshot / Build-And-Push-Windows (push) Waiting to run
2025-02-02 18:58:02 +03:00
kildishevps
c87a0cf24c Fixig publication
Some checks failed
Build project and push to maven snapshot / Build-And-Push-Linux (push) Has been cancelled
Build project and push to maven snapshot / Build-And-Push-Mac (push) Has been cancelled
Build project and push to maven snapshot / Build-And-Push-Windows (push) Has been cancelled
2025-02-01 05:49:07 +03:00
3334a967b1 GroupID and some other things changed from "iospin" to "sergeych"
Some checks are pending
Build project and push to maven snapshot / Build-And-Push-Linux (push) Waiting to run
Build project and push to maven snapshot / Build-And-Push-Mac (push) Waiting to run
Build project and push to maven snapshot / Build-And-Push-Windows (push) Waiting to run
2025-01-31 20:51:54 +03:00
kildishevps
90feb762db Rebase and adapting new functions to wasmJs 2025-01-23 00:35:54 +03:00
kildishevps
c5e91fc8ee Moved all wasmJs to runningOnLinuxx in gradle, deleted unneded TODOS and dependencies 2025-01-22 23:29:47 +03:00
kildishevps
f548a162e7 Attempt on fixing tests 2025-01-22 23:25:20 +03:00
kildishevps
db219a351f Fixing all functions that didn't work and renaming types 2025-01-22 23:24:23 +03:00
kildishevps
083df8a73c Sample (and maybe something else too, idk) works now!! 2025-01-22 23:24:23 +03:00
kildishevps
e2a079f0d2 Fixed libsodiumPromise.then TypeCastError error 2025-01-22 23:24:23 +03:00
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
59f2d77890 Problem with 1.9.23 KMP version. It's been fixed in 2.0 so it needs to be updated 2025-01-22 23:24:20 +03:00
bd83e9aee0 Changed gradle files to be like in test project, wasmJsBrowser run appeared. Also added wasmJs to crypto-api gradle 2025-01-22 23:23:17 +03:00
9f7fc6e379 runTest that should work as it works in test project 2025-01-22 23:07:02 +03:00
ccb47be795 We have runTest for wasmJs now, but there is a weird problem with library files 2025-01-22 23:07:02 +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
0a561e4f10 Wasm connected (hopefully) 2025-01-22 23:07:02 +03:00
d26ef0d41e Our sweet start 2025-01-22 23:07:02 +03:00
Johannes Leupold
2dd71befb2 Final (?) Refactoring
Remove "encoded" from some function names,
remove obsolete functions.
2024-11-12 22:07:06 +01:00
Ugljesa Jovanovic
0b03b249cb
Initial Ristretto255 API refactoring 2024-09-01 16:46:11 +02:00
Ugljesa Jovanovic
766f55d64e
Initial Ed25519 API refactoring 2024-09-01 16:24:10 +02:00
Johannes Leupold
2887ae2535 Remove unintentional formatting changes and add .editorconfig 2024-08-14 23:06:41 +02:00
Ugljesa Jovanovic
989d671c41
Correct dylib filename 2024-08-14 21:22:23 +02:00
Ugljesa Jovanovic
8fef269550
Update library used by JNA for macos by adding dylib built with LIBSODIUM_FULL_BUILD 2024-08-14 20:34:38 +02:00
Johannes Leupold
e526bb09aa Enable full test exceptions for all platforms
Move LIBSODIUM_FULL_BUILD to the macOS build script, as it is needed for all macOS builds, not only in workflows
2024-08-14 14:26:08 +02:00
Johannes Leupold
6d5b2ba6e1 WIP: Remove *_from_string functions as they're not yet part of a libsodium release 2024-08-14 12:11:20 +02:00
Johannes Leupold
9a4a776bbd WIP: Fix build/test issues 2024-08-14 11:47:29 +02:00
Johannes Leupold
338c1f0012 Add Ed25519 tests 2024-08-13 15:33:51 +02:00
Johannes Leupold
fafa0aa0c5 Add Ed25519 arithmetic and fix more bugs 2024-08-13 10:23:52 +02:00
Johannes Leupold
e785bde585 Add missing imports and use usePinned to guarantee proper unpinning 2024-08-12 16:15:46 +02:00
Johannes Leupold
6a66654436 Add Ristretto255 Support 2024-08-12 15:47:26 +02:00
Ugljesa Jovanovic
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 2024-07-02 20:45:23 +02:00
Ugljesa Jovanovic
1ff01d0fdd
Fix shortHashKeygen, which doesn't have a return value, but was defined as returing Int in JNA defintion 2024-07-02 18:54:50 +02:00
Renee Vandervelde
c2b91c2c69
Use single shared method for return code checking.
This defers the return code logic to a named method `isLibsodiumSuccessCode`
to reduce the liklihood of error when checking codes.
This will also now throw an `IllegalStateException` in the event that an
unknown code is returned.
2024-07-02 11:00:22 -05:00
Renee Vandervelde
bd3cbb1662
Cleanup deprecated methods.
Noticed a handful of deprecated methods and minor warnings while looking around.
Replaces with recommended methods
2024-07-02 09:50:45 -05:00
Ugljesa Jovanovic
670fcc2b2b
Kotlin 1.9.23 (#43)
* Bump to kotlin 1.9.23

* Update msvc dll

* Update changelog
2024-04-06 20:43:46 +02:00
Ugljesa Jovanovic
1424db0336
Remove xchacha20 streaming API for now, as they are not available on apple builds 2024-04-06 18:56:26 +02:00
Ugljesa Jovanovic
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 2024-04-06 11:46:28 +02:00