Commit Graph
157 Commits
Author SHA1 Message Date
Ugljesa Jovanovic ce868fc598 Workaround inline class not allowed in external interfaces in JS https://youtrack.jetbrains.com/issue/KT-43224 still need to verify there is no narrowing or truncation when not using unsinged inline classes 2022-03-25 11:51:23 +01:00
Luca Spinazzola e16167a08e JS fixes.
Use libsodium-sumo module for ready and _sodium_init, and libsodium-wrapper-sumo for JsSodiumInterface

Load JsSodiumInterface as external object

Clean up JsSodiumLoader: remove storeSodium (not needed anymore)
Clean up LibsodiumInitializer: remove sodiumPointer (not needed anymore)
2022-03-25 02:43:10 -04: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 3c5e91d8c9 Bump to 1.6.10 2022-01-15 21:59:14 +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 d4e5320a36 Bump android sdk to 31 2021-09-24 17:26:41 +02:00
Ugljesa Jovanovic 3bb56115f3 Updated jvm jna libraries, README 2021-09-23 19:20:57 +02:00
Ugljesa Jovanovic 4833eaaea2 Build script cleanup 2021-09-22 22:35:25 +02:00
Ugljesa Jovanovic 65af7143fc Missing initializer in test 2021-07-27 12:33:22 +02:00
Ugljesa Jovanovic 9f11aa8af9 Fix out of bounds when trying to get a pointer to empty array 2021-07-27 11:46:39 +02:00
Ugljesa Jovanovic 310e86695d Prevent JS name mangling when using libsodium, remove randombytes duplicate definition 2021-07-20 14:25:37 +02:00
Ugljesa Jovanovic 38d3ac1b44 Reduce chance that tamper change is same as original value in tests 2021-07-19 22:14:27 +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 d9a847d39d Updating gradle and kotlin, probably dokka as well 2021-07-15 17:10:41 +02:00
Ugljesa Jovanovic 776f62d001 mac and win prebuilt update 2021-05-28 15:42:41 +02:00
Ugljesa Jovanovic a10faf1967 Init is done automatically by libsodium.js 2021-05-28 15:15:08 +02:00
Ugljesa Jovanovic b596cfa9c8 Added updated prebuilts for jna 2021-05-28 11:33:25 +02:00
Ugljesa Jovanovic 23c4a6f2e2 Fix release info to point to correct repo 2021-05-22 11:51:08 +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 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 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 9d1e0bd9d1 Add android publishing 2021-02-24 13:01:02 +01:00
Ugljesa Jovanovic de161003ec Add release scripts, version bump, dokka downgrade 2021-02-24 12:04:16 +01:00
Ugljesa Jovanovic e18f7d3792 Update readme 2021-02-24 09:34:29 +01:00
Ugljesa Jovanovic fca1b10605 Remove xchacha20 imports 2021-02-24 08:56:02 +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
Ugljesa Jovanovic 8290586a12 Move jna test into funciton instead of static init 2021-02-20 21:39:15 +01:00
Ugljesa Jovanovic a0ef6c79e5 Use libsodium vs released dll instead of mingw dll.a 2021-02-20 21:36:53 +01:00
Ugljesa Jovanovic 846ac62db4 Use dll 2021-02-20 21:17:00 +01:00
Ugljesa Jovanovic f41a66c4d8 Remove static android libs, extract jvm from linux only block as it will be ran on mac and win as well 2021-02-20 21:13:48 +01:00
Ugljesa Jovanovic bccf9e82f2 Hand built libsodium libraries, andoird armv8 missing aes128l/256 aegis implementations 2021-02-20 21:07:54 +01:00