Commit Graph
41 Commits
Author SHA1 Message Date
Ugljesa Jovanovic e24f0a29f2 Dropping AES gcm from public api as it's not portable in libsodium and going the xchacha20poly1305 as only AEAD 2020-06-14 17:05:28 +02:00
Ugljesa Jovanovic 5c10d3abf4 Removing direct aes cbc and ctr, to reduce foot shooting incidents, introducing aes256-gcm 2020-06-14 12:49:46 +02:00
Ugljesa Jovanovic 0b30215143 Initial AES-CTR API refactoring 2020-06-13 21:48:21 +02:00
Ugljesa Jovanovic 2f84c2dbf3 Update linux and publish script, make initializer blocking in linux 2020-06-10 22:18:27 +02:00
Ugljesa Jovanovic ce7b27da98 Completed blake2b, sha256 and sha512 delegated implementations 2020-06-09 22:13:21 +02:00
Ugljesa Jovanovic 6170dc0464 Added sha256/512 to native, using posix malloc instead of sodium malloc 2020-06-09 21:05:05 +02:00
Ugljesa Jovanovic 197aacac33 Built and included modified libsodium with additional wrappers, working blake, sha256/512 hashes 2020-06-09 20:30:12 +02:00
Ugljesa Jovanovic 710ac43e8c Add stateless implementation 2020-06-07 19:04:23 +02:00
Ugljesa Jovanovic 3a81d8e57c More changes to get intellij to reconize cinterop in native sourceset 2020-06-07 17:18:41 +02:00
Ugljesa Jovanovic 9c9383d54f Removed digest from stateless has interface and pushed it down, as some hashes don't support keys or different hash lengths 2020-06-07 11:59:46 +02:00
Ugljesa Jovanovic 03275dd44c Forgot to convert literals, also release state 2020-06-07 01:19:40 +02:00
Ugljesa Jovanovic 7f2a3c76e4 Use convert() 2020-06-07 01:11:56 +02:00
Ugljesa Jovanovic 1be0470745 Idea cinterop stopped working, again... fixed blake2b stateless segmentation 2020-06-07 00:55:46 +02:00
Ugljesa Jovanovic f03e94cf5e Api cleanup 2020-06-07 00:37:09 +02:00
Ugljesa Jovanovic 25adc330bd Remove digestString from api 2020-06-07 00:05:14 +02:00
Ugljesa Jovanovic e61ffdf978 Cleaning up and implementing api 2020-06-07 00:02:53 +02:00
Ugljesa Jovanovic 4357124b48 Blake2b cleanup 2020-06-06 22:20:27 +02:00
Ugljesa Jovanovic 63f90aa915 Workround for invalid aligment when using nativeHeap alloc 2020-06-06 15:55:42 +02:00
Ugljesa Jovanovic f6458a893d Added converts 2020-06-06 15:08:05 +02:00
Ugljesa Jovanovic 459131f082 Remove 32bit native set, and use convert instead 2020-06-06 15:07:20 +02:00
Ugljesa Jovanovic 907128fcfa Progress 2020-06-06 00:41:00 +02:00
Ugljesa Jovanovic 3ad86e284a Remove all annotations 2020-06-05 20:13:21 +02:00
Ugljesa Jovanovic d901a45b87 Playing around with the API, added optins, will remove annotations in next commit 2020-06-05 20:09:38 +02:00
Ugljesa Jovanovic d11d4e7fb0 Working arm 64 libsodium integration 2020-06-05 16:27:58 +02:00
Ugljesa Jovanovic 8a4eb512c4 Forgot to add files 2020-06-01 20:38:33 +02:00
Ugljesa Jovanovic 293fd37bad Fix 64 bit arm, connect native32 source set 2020-06-01 20:37:48 +02:00
Ugljesa Jovanovic fa080f28d8 Arm 64 build local configure for now, adding 32bit native sourceset, not connected yet 2020-06-01 15:16:47 +02:00
Ugljesa Jovanovic f97331bdf7 No need for testBlocking in delegated as it inherits from native shared 2020-05-30 00:20:58 +02:00
Ugljesa Jovanovic 08ac719af2 Update mingw testBlocking 2020-05-30 00:19:16 +02:00
Ugljesa Jovanovic 013682166c Wrong module 2020-05-29 23:53:56 +02:00
Ugljesa Jovanovic 936c0769f4 use relative path for static librarz as well 2020-05-29 22:40:50 +02:00
Ugljesa Jovanovic c3ffc75474 Add libsodium license, even though the source is not really included in this repo, update cinterop def to point to absolute path (still missingfor linker) 2020-05-28 23:33:08 +02:00
Ugljesa Jovanovic 63c5db199e Sorted out native sourcesets, using intialization and sodium srng in js and native 2020-05-28 22:41:05 +02:00
Ugljesa Jovanovic ccbb8ebe5b Cleanup 2020-05-28 19:48:44 +02:00
Ugljesa Jovanovic f51374ce15 Use random bytes provided by libsodium on js, add with callback load for sodium, more progress 2020-05-28 19:00:33 +02:00
Ugljesa Jovanovic 781c9c1b61 Working js libsodium, need to change apis to suspend 2020-05-27 23:49:08 +02:00
Ugljesa Jovanovic 1009b92d33 js attempts to integrate libsodium 2020-05-26 00:23:27 +02:00
Ugljesa Jovanovic 1a89ee5154 Got valid blake2b hash 2020-05-24 23:46:07 +02:00
Ugljesa Jovanovic cc2f392bb7 Working sodium cinterop 2020-05-24 20:41:32 +02:00
Ugljesa Jovanovic 3f7df6c651 Adding libsodium 2020-05-24 17:24:32 +02:00
Ugljesa Jovanovic 7238b09112 Adding delegated implementation 2020-05-24 11:12:00 +02:00