Commit Graph
78 Commits
Author SHA1 Message Date
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 6a66654436 Add Ristretto255 Support 2024-08-12 15:47:26 +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 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 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 a15be35197 Update to kotlin 1.7.10, remove test dependancy from common source set, cleanup some old comments 2022-08-28 20:03:25 +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 23c4a6f2e2 Fix release info to point to correct repo 2021-05-22 11:51:08 +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 3a33781db8 Use int instead of ulong 2021-03-03 10:32:31 +01:00
Ugljesa Jovanovic ed7cb7482b Remove bignum dep 2021-03-02 14:09:43 +01:00
Ugljesa Jovanovic 67723d2a4b Set default base64 variant to original 2021-03-01 17:09:33 +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 574377da3c Added a bunch, also added xchacha20 ic and xor 2021-02-23 19:54:07 +01:00
Ugljesa Jovanovic 531deb6a57 Added util jna 2021-02-21 21:17:33 +01:00
Ugljesa Jovanovic b0c6b43f2e Add generic hash docs 2021-01-09 12:57:04 +01:00
Ugljesa Jovanovic 69183a0eb9 Full stack trace in tests 2021-01-05 10:47:07 +01:00
Ugljesa Jovanovic c0a3bd322d Box documentation, kotlin 1.4.20 2020-12-08 20:09:44 +01:00
Ugljesa Jovanovic b261a341db Added auth doc 2020-11-18 22:36:55 +01:00
Ugljesa Jovanovic 1cfff4dd43 Started adding Auth doc, added aead doc for specific functions 2020-11-18 22:28:57 +01:00
Ugljesa Jovanovic 6183a2eb6b Aead docs 2020-11-18 21:03:21 +01:00
Ugljesa Jovanovic a70bb5243c Bump dokka, update dokka calls, add test md package and module docs 2020-11-17 23:27:49 +01:00
Ugljesa Jovanovic 6a87267ed6 Add html dokka and ubyte array decode extension 2020-11-15 19:43:08 +01:00
Ugljesa Jovanovic 48d81f257e Add more doc copied from libsodium 2020-11-14 13:27:42 +01:00
Ugljesa Jovanovic 2f62c6011b Added scalarult tests, used case from libsodium scalamult.c test 2020-10-15 20:50:09 +02:00
Ugljesa Jovanovic c66fde8502 Adding scalrmult_ native impl, starting work on sample 2020-10-15 20:38:30 +02:00
Ugljesa Jovanovic a18355adae Implemeting _stream_ primitives, at elast the ones available in lazy sodium 2020-10-11 19:47:23 +02:00
Ugljesa Jovanovic bd173f422f Added _kx_ and nateive impl, updated libsodium submodule to latest commit 2020-10-09 16:56:09 +02:00
Ugljesa Jovanovic 0431f27e3e Completed random support functions 2020-10-03 18:16:26 +02:00
Ugljesa Jovanovic cb17d75deb Adding jvm implementation, but it's broken in lazysodium-java, so will need more work 2020-09-27 19:54:48 +02:00
Ugljesa Jovanovic 4af1477c90 Added js _util functions 2020-09-26 23:58:45 +02:00
Ugljesa Jovanovic f113f7805d Added to hex and to base64 and from conversions 2020-09-26 22:02:51 +02:00
Ugljesa Jovanovic 7d3fe70d4d Started working on sodium_ utility functions 2020-09-25 19:02:45 +02:00
Ugljesa Jovanovic 2b4d8aa4b1 Adding pwhash native and tests 2020-09-21 19:07:06 +02:00
Ugljesa Jovanovic 65bf54765f Adding _pwhash_ 2020-09-17 18:20:24 +02:00
Ugljesa Jovanovic 8b26764938 Added _kdf_ all implementations and a simple and probably pointless test, also noted which functions are not available as they are not part of LazySodium 2020-09-16 14:09:14 +02:00
Ugljesa Jovanovic b0ce2e10fc Adding _sign_ native implementation and started writing tests 2020-09-14 18:51:25 +02:00
Ugljesa Jovanovic 1936e748ae Adding common crypto_sign, called signature because object named Sign could be confusing 2020-09-13 17:11:59 +02:00
Ugljesa Jovanovic 25fcd0cae2 Added seal box test, fxed seal box jvm implementation 2020-09-10 20:50:14 +02:00
Ugljesa Jovanovic 7a8640638c Added jvm implementation, fixed seal invalid return 2020-09-10 18:30:06 +02:00
Ugljesa Jovanovic 57f9bd9d20 Adding crypto_box functions 2020-08-31 22:56:37 +02:00
Ugljesa Jovanovic 1894a5d995 Added jvm and js implementation for sha256/512 2020-08-31 20:56:36 +02:00
Ugljesa Jovanovic 15be707114 Added sha2 hashes in common and native and test 2020-08-31 20:44:37 +02:00
Ugljesa Jovanovic 1878144b8f Added generichash keygen 2020-08-31 19:39:19 +02:00
Ugljesa Jovanovic 16cb5c2dee Completed crypto auth and added tests 2020-08-30 19:02:40 +02:00
Ugljesa Jovanovic d2fda34807 Add auth native and tests 2020-08-30 18:33:14 +02:00