66 Commits

Author SHA1 Message Date
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
9f11aa8af9
Fix out of bounds when trying to get a pointer to empty array 2021-07-27 11:46:39 +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
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
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
1cfff4dd43
Started adding Auth doc, added aead doc for specific functions 2020-11-18 22:28:57 +01:00
Ugljesa Jovanovic
2455c0fcea
Enable windows build, set mac builds for gitlab runners 2020-10-20 19:34:22 +02:00
Ugljesa Jovanovic
5527b6dc79
Same deal for another return parameter 2020-10-19 19:18:09 +02:00
Ugljesa Jovanovic
2801fb9484
Hack for 32biy/64bit array in native shared code, needs safeguards 2020-10-19 19:10:29 +02: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
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
2d63215c70
Completed jvm implementation, there are some issues in lazysodium-java that I've worked around 2020-09-27 19:20:22 +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
7e2b52a193
Add more tests, fix array when input is aligned 2020-09-25 19:05:22 +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
37a5cdb2d0
Added jvm _sign_ implementation 2020-09-15 13:02:43 +02:00
Ugljesa Jovanovic
b0ce2e10fc
Adding _sign_ native implementation and started writing tests 2020-09-14 18:51:25 +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
9cb2701715
Added tests, fixed bugs 2020-09-01 23:29:56 +02:00
Ugljesa Jovanovic
4762bd96d6
Implemented native 2020-09-01 20:27:51 +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
d2fda34807
Add auth native and tests 2020-08-30 18:33:14 +02:00
Ugljesa Jovanovic
0c8de7b5c5
Adding crypto_auth 2020-08-30 17:56:12 +02:00
Ugljesa Jovanovic
dd0895b5f3
Completed cha cha aead variants 2020-08-30 13:10:31 +02:00
Ugljesa Jovanovic
3f9f316e04
Fixed (the usual) copypaste error of removing ABYTES in detached implementation, added aead chacha tests 2020-08-30 12:24:43 +02:00
Ugljesa Jovanovic
1a11bdc81b
Added native aead chacha poly implementation 2020-08-30 12:07:53 +02:00
Ugljesa Jovanovic
3de04749ba
Change all occurences of additionalData to associatedData 2020-08-30 11:56:18 +02:00
Ugljesa Jovanovic
54489ef6cb
Start work on _aead_ 2020-08-30 11:21:53 +02:00
Ugljesa Jovanovic
99b9ee5e9d
Added secretbox functions and constants 2020-08-29 21:53:17 +02:00
Ugljesa Jovanovic
d5b1e7f7f3
Added rekey and keygen to secretstream 2020-08-29 17:25:59 +02:00
Ugljesa Jovanovic
91cd41c8c1
Short hash implementation and test, updated cbc tests as they ignored padding 2020-08-28 22:35:33 +02:00
Ugljesa Jovanovic
89e5ae62e4
Fixed native (i forgot to account for tag length. Added debug list of js functions, can be usefull when defining interface 2020-08-27 22:07:03 +02:00
Ugljesa Jovanovic
9e10677165
ADded helper extension toPtr instead of addressOf(0), implemented jvm and native secret stream 2020-08-27 19:27:46 +02:00
Ugljesa Jovanovic
39f0817308
Adding secret stream impl, completed generichash impl 2020-08-26 22:15:03 +02:00
Ugljesa Jovanovic
6f38a01195
Fixed some of the errors spotted in various aes implementation while doing cryptopals challenge, anyways they were unused. Added multipart generic hash (blake2b) native implementation 2020-08-26 19:58:57 +02:00
Ugljesa Jovanovic
231a84af67
Comment out old debug generated code, but keep for short term reference, add android/jvm wrappers, seemingly solve android unit test problems 2020-08-23 13:39:59 +02:00
Ugljesa Jovanovic
9962198aad
Comment out old debug generated code, but keep for short term reference, add android/jvm wrappers, seemingly solve android unit test problems 2020-08-22 13:53:01 +02:00