99 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
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
fafa0aa0c5 Add Ed25519 arithmetic and fix more bugs 2024-08-13 10:23:52 +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
Ugljesa Jovanovic
6d3d452a29
Updated jvm binaries 2023-09-23 13:46:48 +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
7dd2b90a09
Add lib prefix to libraries on jvm as some packaging tools extract them into system path and java expects lib prefix 2022-09-20 11:03:24 +02:00
Ugljesa Jovanovic
b18b637b91
Update mac and windows jvm libs 2022-08-28 21:34:25 +02:00
Ugljesa Jovanovic
8bbb2ff635
Update android and linux dynamic libs, prevent windows shell from hanging and fix type for android on x86_64 2022-08-28 20:33:23 +02:00
Ugljesa Jovanovic
6a47f7d90b
Enable initialization on 32bit android devices 2022-05-19 16:52:27 +02:00
Ugljesa Jovanovic
cd3ec109a3
Handle ULong -> UInt conversions, update api to reflect stream_chacha20_ietf takes UInt for initial counter 2022-03-25 12:47:22 +01:00
Ugljesa Jovanovic
1197e585d2
Changelog, version and libsodium updates 2022-03-05 19:30:33 +01:00
Ugljesa Jovanovic
c2887184e0
ed25519PkToCurve25519 was calling libsodium sk_to_curve in both native and jvm platforms. Fixed so it calls appropriate pk_to_curve. Fixes #20 2022-03-04 12:13:41 +01:00
Ugljesa Jovanovic
071ba83bfc
Update with most recent built libraries bundled with jvm 2021-09-25 23:40:49 +02:00
Ugljesa Jovanovic
2ef2690f2c
Updated msvc to latest stable 2021-09-25 13:39:25 +02:00
Ugljesa Jovanovic
594c2bbae3
Update android target in sample, update README, use macos dylib build on M1 2021-09-24 18:25:31 +02:00
Ugljesa Jovanovic
3bb56115f3
Updated jvm jna libraries, README 2021-09-23 19:20:57 +02:00
Ugljesa Jovanovic
d6945979a9
Update dokka, update resource extractor, update js wrapper versions, remove js from sample as gradle cant find libs when building 2021-07-19 19:29:26 +02:00
Ugljesa Jovanovic
776f62d001
mac and win prebuilt update 2021-05-28 15:42:41 +02:00
Ugljesa Jovanovic
b596cfa9c8
Added updated prebuilts for jna 2021-05-28 11:33:25 +02:00
Ugljesa Jovanovic
e000d13b79
Call sodium init in js and jvm 2021-05-01 12:43:29 +02:00
Ugljesa Jovanovic
da85fefb9b
Use UInt in kdf derivation, because that's the most js can support more or less. I'll try to figure out if we can use all 52bits lates. Also dont show arm build to intellij as it is checking if there is coroutines build for arm and fails with the most unusefull and misleading error I have seen so far. 2021-04-30 22:10:02 +02:00
Ugljesa Jovanovic
cfba7a2c3a
Add arm64 .so, add branch for arm in loader 2021-03-01 16:35:06 +01:00
Ugljesa Jovanovic
e30f4f0e86
Use library loader instead of file loader as it fails when in published jar form 2021-02-24 17:19:12 +01:00
Ugljesa Jovanovic
8249881eb1
Disable xchacha20 stream for now, as it seems to be missing on ios32arm build. Fix android sdk path 2021-02-23 23:27:37 +01:00
Ugljesa Jovanovic
b85b75e732
Removed lazy sodium both java and android 2021-02-23 21:50:56 +01:00
Ugljesa Jovanovic
574377da3c
Added a bunch, also added xchacha20 ic and xor 2021-02-23 19:54:07 +01:00
Ugljesa Jovanovic
354c0c2fd6
Use long instaed of int array in sha512 2021-02-23 10:23:07 +01:00
Ugljesa Jovanovic
7f703aa6b9
Added signing 2021-02-23 09:43:53 +01:00
Ugljesa Jovanovic
f7815d009e
Added box: 2021-02-22 22:51:15 +01:00
Ugljesa Jovanovic
f0511e0ff1
Added auth jna 2021-02-21 21:50:21 +01:00
Ugljesa Jovanovic
531deb6a57
Added util jna 2021-02-21 21:17:33 +01:00
Ugljesa Jovanovic
625a3e1f91
Added secretbox 2021-02-21 19:57:08 +01:00
Ugljesa Jovanovic
723e32df76
Added aead and secret stream jna 2021-02-21 19:39:51 +01:00
Ugljesa Jovanovic
bc9b12292d
Replaced shorthash, generichash and sha with direct jna implementation 2021-02-21 15:43:16 +01:00
Ugljesa Jovanovic
b976bb62a0
Starting jna implementation 2021-02-21 12:07:20 +01:00
Ugljesa Jovanovic
86cdc0da8f
Android jna working 2021-02-21 11:40:16 +01:00