Commit Graph
100 Commits
Author SHA1 Message Date
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 2aa805fa52 Another round of fixes, cinterop works again 2020-06-07 01:06:21 +02:00
Ugljesa Jovanovic 1be0470745 Idea cinterop stopped working, again... fixed blake2b stateless segmentation 2020-06-07 00:55:46 +02:00
Ugljesa Jovanovic d380863a29 Forgot watchos 2020-06-07 00:40:43 +02:00
Ugljesa Jovanovic 216e114cfa Update gitignore 2020-06-07 00:39:33 +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 9a1073e1c1 Update readme, add kotlin dev, so current coroutines stdlib (eap-83) can be resolved 2020-06-05 18:35:49 +02:00
Ugljesa Jovanovic d11d4e7fb0 Working arm 64 libsodium integration 2020-06-05 16:27:58 +02:00
Ugljesa Jovanovic e026d1405d Building arm64 with clang 2020-06-03 23:52:52 +02:00
Ugljesa Jovanovic 088f09f154 A bit more of intellij sorting sourcesets 2020-06-03 19:36:55 +02:00
Ugljesa Jovanovic 14676337fc Added hash test, fixed idea native cinterop resolution 2020-06-03 00:18:41 +02:00
Ugljesa Jovanovic 006dd47873 Tried to get arm32 to work, but sysroot is missing getrandom, and no getrandom no libsodium as far as I understand. Everything compiles now, including the sample, tested kexe on arm64, runs and does sodium init at least 2020-06-02 23:59:01 +02:00
Ugljesa Jovanovic 641d950384 Remove build dirs after building 2020-06-02 20:39:52 +02:00
Ugljesa Jovanovic 8e4f67daee Trailing comman 2020-06-02 20:21:06 +02:00
Ugljesa Jovanovic 2695dda865 Bump libsodium tvos x bit 2020-06-02 20:03:47 +02:00
Ugljesa Jovanovic 635b12cc26 Add tvos, watchos and ios build scripts 2020-06-02 20:00:52 +02:00
Ugljesa Jovanovic b9d47611c7 Split ios tvos watchos builds 2020-06-01 23:15:25 +02:00
Ugljesa Jovanovic add3dc5376 Apparently watchos arm 64 is 32bit (64_32 architecture) 2020-06-01 22:28:22 +02:00
Ugljesa Jovanovic ab64e271ab Missed watchcos 32bit 2020-06-01 21:29:06 +02:00
Ugljesa Jovanovic c6df6ba694 fix mac paths 2020-06-01 21:26:08 +02:00
Ugljesa Jovanovic 4dab764914 Fix makeIos script 2020-06-01 21:20:28 +02:00
Ugljesa Jovanovic 69b3845a9c Let macos configure itself 2020-06-01 20:59:54 +02:00
Ugljesa Jovanovic 09db6c2b44 Add mingw libsodium build script 2020-06-01 20:45:07 +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 6ac6046c7c A bit more portable scripts 2020-06-01 19:43:21 +02:00
Ugljesa Jovanovic 684db231cf Add macos and mingw prefix folders 2020-06-01 19:40:04 +02:00
Ugljesa Jovanovic fd00dc7725 Update gitignore 2020-06-01 19:38:31 +02:00
Ugljesa Jovanovic 9e16c2a6bd sodium wrapper rework 2020-06-01 19:37:07 +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 f4ddfe9cac Add task tree plugin for debuging 2020-06-01 13:11:06 +02:00
Ugljesa Jovanovic 89c3085139 crypto module should only define js jvm and linux when running on 64bit linux 2020-06-01 13:00:07 +02:00
Ugljesa Jovanovic bf72118d0b Add logging for delegated configurations 2020-06-01 12:58:32 +02:00
Ugljesa Jovanovic 66efe1b40c Solve mac builds for tvos and watchos failing because they wanted some common imaginary common/metadata klib again 2020-06-01 12:53:53 +02:00
Ugljesa Jovanovic b70521369c typo 2020-06-01 12:24:18 +02:00
Ugljesa Jovanovic 3de591deef Forgot to move arm32 to it's block 2020-06-01 11:45:49 +02:00
Ugljesa Jovanovic 416e9375a1 Forgot to move arm32 sourcesets 2020-06-01 11:35:11 +02:00
Ugljesa Jovanovic 9292cded2c Enable arm32 and arm64 builds 2020-06-01 11:29:45 +02:00
Ugljesa Jovanovic 7c6a31d765 Update crypto module build gradle 2020-05-31 21:23:45 +02:00
Ugljesa Jovanovic 143ad7cc23 Update delegated module build conf 2020-05-31 21:19:52 +02:00
Ugljesa Jovanovic a964a2b9d3 Typo 2020-05-31 21:15:22 +02:00
Ugljesa Jovanovic a7818e7b15 Test loggin only on 64bit x86 linux 2020-05-31 21:13:01 +02:00
Ugljesa Jovanovic bb622b9420 Seems rpi on ubuntu reports aarch64 which is not known to gradle internal 2020-05-31 21:08:35 +02:00
Ugljesa Jovanovic d479cac6b7 Jvm only on 64bit x86 linux 2020-05-31 20:59:14 +02:00
Ugljesa Jovanovic 39e4ddd006 Add support for arm 64 2020-05-31 20:57:33 +02:00
Ugljesa Jovanovic 58e74a0cf0 Fix for build on msys2 2020-05-31 17:14:44 +02:00
Ugljesa Jovanovic 592ffaa99b No extensions in task block, will add later 2020-05-30 23:35:53 +02:00
Ugljesa Jovanovic c7cd07f963 Add tvos and watchos to api module 2020-05-30 23:33:06 +02:00
Ugljesa Jovanovic 293b61a7ea Add compiled ios lib to gitignore 2020-05-30 23:25:48 +02:00
Ugljesa Jovanovic 6b415b0e32 Tune build ios libsodium 2020-05-30 23:24:45 +02:00
Ugljesa Jovanovic dbfed977aa Add build script for sodium ios 2020-05-30 23:03:22 +02:00
Ugljesa Jovanovic bb58a372e7 delegated module build.gradle cleanp and macos build fix 2020-05-30 22:47:01 +02:00
Ugljesa Jovanovic 137fe3fe62 Working linux x64, macosx64 and mingwx64 builds with libsodium, cleaned up api build.grade, extracted version name and group 2020-05-30 00:33:31 +02:00
Ugljesa Jovanovic ce226d9f30 Test blocking valid 2020-05-30 00:23:34 +02:00
Ugljesa Jovanovic 7389f19024 non delegated need coroutines dependancy 2020-05-30 00:22:33 +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 639cd317aa Same for test 2020-05-30 00:16:23 +02:00
Ugljesa Jovanovic b589a12142 typo 2020-05-30 00:15:14 +02:00
Ugljesa Jovanovic 452d7561a2 Dont add default soruce set to mingw on multiplatform-crypto, as it uses it's own SRNG 2020-05-30 00:09:10 +02:00
Ugljesa Jovanovic 82470472ad Mingw64 doesnt need native srcdir 2020-05-30 00:03:28 +02:00
Ugljesa Jovanovic f249e822c6 mingw on common in crypto module 2020-05-30 00:01:09 +02:00
Ugljesa Jovanovic 42ceb79637 Wrong module + put back ideaActive check before adding srcDirs 2020-05-29 23:59:15 +02:00
Ugljesa Jovanovic 013682166c Wrong module 2020-05-29 23:53:56 +02:00
Ugljesa Jovanovic 0cb5f33af3 Let nativeMain handle SRNG through sodium 2020-05-29 23:52:46 +02:00
Ugljesa Jovanovic 928621eaab mingw depend on native main, add idea workarounds 2020-05-29 23:50:56 +02:00
Ugljesa Jovanovic fc159d116f Disable ios builds in delegated as we are getting platforms built one by one 2020-05-29 23:44:20 +02:00
Ugljesa Jovanovic 31b464ecac Always pull in native source set on linux and mac 2020-05-29 22:49:21 +02:00
Ugljesa Jovanovic 936c0769f4 use relative path for static librarz as well 2020-05-29 22:40:50 +02:00
Ugljesa Jovanovic c984c65452 Add native workaround to mac build as well 2020-05-29 22:11:37 +02:00
Ugljesa Jovanovic 05ef422747 Add temporary ios filtering everywhere 2020-05-28 23:59:07 +02:00
Ugljesa Jovanovic 8b91cf41ea log name 2020-05-28 23:54:51 +02:00
Ugljesa Jovanovic 11c872fe28 remove cinterop when name contains ios 2020-05-28 23:53:37 +02:00
Ugljesa Jovanovic 4555b4dd0c remove iosx64 as well 2020-05-28 23:51:35 +02:00
Ugljesa Jovanovic d4d50da463 For now just let x64 targets depend on native sourceset 2020-05-28 23:49:17 +02:00
Ugljesa Jovanovic edde093e30 Remove ios if 2020-05-28 23:47:15 +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 1a4c07b961 Add configure and make script 2020-05-28 23:02:30 +02:00
Ugljesa Jovanovic 55007cb911 Update gitignore 2020-05-28 23:01:43 +02:00
Ugljesa Jovanovic 15ad0b3b70 Add libsodium and wrapper 2020-05-28 22:51:10 +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