Commit Graph
679 Commits
Author SHA1 Message Date
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 086bb1f786 Specify LIBSODIUM_FULL_BUILD in an attempt to fix the MacOS build 2024-08-14 13:50:36 +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 4ff2dddf14 Merge pull request #51 from ReneeVandervelde/return-codes
Use single shared method for return code checking.
2024-07-02 21:07:00 +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
Ugljesa Jovanovic c9c5f320af Merge pull request #50 from ReneeVandervelde/method-cleanup
Cleanup deprecated methods.
2024-07-02 17:46:11 +02: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 b919de5d71 Merge pull request #46 from ReneeVandervelde/fix-chacha-result-equality
Fix Equality Check in `XChaCha20EncryptionResult`
2024-06-15 11:41:45 +02:00
Renee Vandervelde 77445bb5cf Fix Equality Check in XChaCha20EncryptionResult
The `XChaCha20EncryptionResult` data class currently implements
its own equality check due to the class's byte array members.
However, this is using a standard equality check, `==`, rather
than checking the array's contents. This will cause two results
with the same contained values to return `false` on an equals check.

Confirmed this issue with a unit test, and fixed by changing the
implemented method to use `contentEquals` instead.
2024-06-14 21:11:29 -05:00
Ugljesa Jovanovic da46a3c396 Bump snapshot to 0.9.3 2024-04-13 18:24:50 +02:00
Ugljesa Jovanovic 509d22ed05 Update readme and changelog 2024-04-13 18:07:30 +02:00
Ugljesa Jovanovic ad64fa1e4c Use 2.0.2 release of resource loader 2024-04-13 17:53:03 +02:00
Ugljesa Jovanovic 20c1815df8 Release 0.9.1, Kotlin 1.9.23, libsodium 2024-04-06 2024-04-06 23:21:08 +02: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
Ugljesa Jovanovic bd988cc493 Correct package in AndroidManifest.xml 2023-09-25 11:45:36 +02:00
Ugljesa Jovanovic 05131383a1 Update readme and fix chanelog typos 2023-09-23 16:06:11 +02:00
Ugljesa Jovanovic 6c12ce766a Bump to 0.9.1 2023-09-23 15:59:36 +02:00
Ugljesa Jovanovic 4a96c32418 Merge pull request #38 from ionspin/kotlin-1.9.0
Kotlin 1.9.10
2023-09-23 14:38:33 +02:00
Ugljesa Jovanovic c7fbc71814 libsodium version bump to 1.0.19 and appropriate test update 2023-09-23 14:15:21 +02:00
Ugljesa Jovanovic 6d3d452a29 Updated jvm binaries 2023-09-23 13:46:48 +02:00
Ugljesa Jovanovic 45e4058481 iosArm32 removed, watchosArm32 returned 2023-09-23 13:34:02 +02:00
Ugljesa Jovanovic 3c6d0b1c43 Build without visionos 2023-09-23 13:18:23 +02:00
Ugljesa Jovanovic 34afd86d43 Remove deprecated watchosX86 2023-09-23 12:40:09 +02:00
Ugljesa Jovanovic 9a9731c3c0 Gradle plugin to 1.9.10 2023-09-23 12:33:09 +02:00
Ugljesa Jovanovic 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 2023-09-23 11:54:02 +02:00
Ugljesa Jovanovic b32821e13e Bump to 1.9.0 2023-08-17 11:45:23 +02:00
Ugljesa Jovanovic 51073827d7 Release 0.8.9, Bump to 0.9.0-SNAPSHOT 2023-03-26 20:40:11 +02:00
Ugljesa Jovanovic 1cfa03a18f Kotlin 1.8.10 + maintenance (#37)
* Update libsodium submodule, bump kotlin versions, switch to github actions
2023-03-26 19:12:15 +02:00
Ugljesa Jovanovic f268886681 Sign with different GPG key 2022-12-26 18:16:36 +01:00
Ugljesa Jovanovic f3ec8a755d Merge pull request #33 from ionspin/kotlin-1.7.20
Bump to kotlin 1.7.20
2022-10-12 18:37:24 +02:00
Ugljesa Jovanovic 1888c07757 Bump to kotlin 1.7.20 2022-10-12 18:12:58 +02:00
Ugljesa Jovanovic 04f0a615ab Bump to 0.8.9 snapshot, fix mac maven publish script 2022-10-09 11:56:56 +02:00
Ugljesa Jovanovic d8fb4b41ca Update changelog and readme, release fixes #29 2022-10-09 11:33:36 +02:00
Ugljesa Jovanovic 89947873e7 Merge pull request #30 from ionspin/better-sample
Better sample
2022-10-09 11:28:23 +02:00
Ugljesa Jovanovic c843ea5122 Remove test dependencies from jvm main, clean up runners 2022-10-07 20:00:59 +02:00