Ugljesa Jovanovic
8fb4f91374
Add delegated as base for future libsodium bindings, update travis yml to include it, start updating readme
2020-07-07 20:24:47 +02:00
Ugljesa Jovanovic
f5150557d6
Bump to 1.4-M3
2020-07-07 00:00:53 +02:00
Ugljesa Jovanovic
71ec5b7585
Remove coroutines
2020-07-05 19:40:22 +02:00
Ugljesa Jovanovic
8625002ea4
Api cleanup continued
2020-07-04 22:39:00 +02:00
Ugljesa Jovanovic
2db5523893
Cleanup 1
2020-07-04 19:05:15 +02:00
Ugljesa Jovanovic
a1a56487ff
Working verification of encrypted data, there was confusion regarding the ciphertext padding, which might or might not be an issue in libsodium
2020-07-01 20:35:15 +02:00
Ugljesa Jovanovic
85e3e2e4ee
Adopting libsodium secret stream approach for multipart, currently correct state and keystream, but mac is still incorrect on pure implementation
2020-06-29 21:46:29 +02:00
Ugljesa Jovanovic
e6f560ba8e
Working single shot xchacha20poly1305 encryption and decryption in delegated flavour
2020-06-27 18:20:53 +02:00
Ugljesa Jovanovic
6228263978
Further progress on delegated xchacha poly, working jvm , js in progress
2020-06-25 21:16:14 +02:00
Ugljesa Jovanovic
e3fe276e4c
Starting delegated implementation
2020-06-23 22:19:19 +02:00
Ugljesa Jovanovic
1848de0e8d
Further API conversion
2020-06-23 21:39:04 +02:00
Ugljesa Jovanovic
233ee1bf55
Multipart API continuation
2020-06-23 19:54:30 +02:00
Ugljesa Jovanovic
f107db3312
Sketching further API
2020-06-21 22:06:09 +02:00
Ugljesa Jovanovic
2f0f174b33
Added decryption
2020-06-21 21:52:17 +02:00
Ugljesa Jovanovic
3c49128c90
Added XChaCha20Poly1305 updatable and tests
2020-06-21 21:24:20 +02:00
Ugljesa Jovanovic
d55f67dd59
Added updateablePoly1305
2020-06-21 20:54:15 +02:00
Ugljesa Jovanovic
6fae2fd061
Adding xchacha20 updateable, and tests
2020-06-21 19:51:21 +02:00
Ugljesa Jovanovic
1a4fc90922
Some more sketching of the public API, added workaround for uint backing class kotln bug, worked around new js bug
2020-06-20 23:35:52 +02:00
Ugljesa Jovanovic
fc2d7b701d
Working xchacha20poly1305, debug state atm
2020-06-20 16:07:53 +02:00
Ugljesa Jovanovic
9456772828
Working chacha20poly1305
2020-06-20 12:10:24 +02:00
Ugljesa Jovanovic
8ffa354d93
Poly1305 progress
2020-06-17 23:09:47 +02:00
Ugljesa Jovanovic
32dc90b47e
Implemented XChaCha20
2020-06-17 11:16:48 +02:00
Ugljesa Jovanovic
ae1aa53f0e
Implemented chacha20
2020-06-16 19:03:59 +02:00
Ugljesa Jovanovic
c7445376ca
Completed xsalsa20, adding chacha20
2020-06-16 16:07:01 +02:00
Ugljesa Jovanovic
0143fe0080
Working salsa20 encryption
2020-06-14 23:50:33 +02:00
Ugljesa Jovanovic
946fc6a4ce
Salsa 20 progress
2020-06-14 19:13:36 +02:00
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
0000bc4b8e
Disable macos and linux builds while we are setting up windows builds
...
Add windows cache directories
fix yml
Fix YAML
Get java first on windows build
Try to replace mingw with msys in script
Try windows build without the toolchain, since we are bringing our own
taskkill was failing
Different libtool package name
Add autoconf to msys2
Install mingw-w64-x86_64-toolchain but with each package instead of a group which interrupts installation
Msys2 cant find make, try using alias
Make everything executable, add some debugging logs to windowsBuild
Skip building, debug make
Find all make files
Another attempt
Attempt different alias
Try with symbolic link
Attempt mingw64
Forgot to change folder
Attempt N
Set -e+e
Try with cygwin
mingw again
Move
Add more debug logs
Add +e to see what fails now
try direct make
2020-06-13 09:55:03 +02:00
Ugljesa Jovanovic
1db2547967
Bump version to 0.1.0 cause a lot of things changed since 0.0.4, mac builds are working, now to get Windows to work, updated readme, copied crypto API to pure variant
2020-06-11 20:29:03 +02:00
Ugljesa Jovanovic
4eb8970fd3
Added testing tasks to osx builds, cleaned up pure variant build.gradle.kts
2020-06-11 19:48:10 +02:00
Ugljesa Jovanovic
add5480850
Proper name of msys2 packages
2020-06-11 19:35:11 +02:00
Ugljesa Jovanovic
218bd8f4e1
Windows msys cache
2020-06-11 19:33:24 +02:00
Ugljesa Jovanovic
611a60b94b
Use msys2 instead of mingw
2020-06-11 19:32:12 +02:00
Ugljesa Jovanovic
1a484bfb55
Add autogen to tvos and watchos builds scripts
2020-06-11 19:11:44 +02:00
Ugljesa Jovanovic
a654481ba5
Fixed osx scripts, added windows script
2020-06-11 18:37:56 +02:00
Ugljesa Jovanovic
646df7f599
Split to different mac jobs in travis
2020-06-11 17:54:16 +02:00
Ugljesa Jovanovic
376283b736
Split mac builds into different scripts
2020-06-11 17:46:26 +02:00
Ugljesa Jovanovic
c3432bc299
Invalid rm at the end of watchos compiling
2020-06-10 23:55:11 +02:00
Ugljesa Jovanovic
8582411529
Missing .sh
2020-06-10 23:07:48 +02:00
Ugljesa Jovanovic
e537e37ff6
Let's tackle mac build
2020-06-10 22:41:53 +02:00
Ugljesa Jovanovic
be8b390a6c
Finish when child fails
2020-06-10 22:33:10 +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
93a3ac5782
Try justlinking the loader
2020-06-10 21:37:23 +02:00
Ugljesa Jovanovic
7677ae16c7
Try adding -B to force using correct linker
2020-06-10 21:16:40 +02:00
Ugljesa Jovanovic
ff05f79b23
autogen in arm64 configure, correct make file name
2020-06-10 20:32:03 +02:00
Ugljesa Jovanovic
efc81b2d9d
Add apt get update and -y
2020-06-10 19:48:14 +02:00
Ugljesa Jovanovic
d98143bde7
Fix linux script, install automake
2020-06-10 19:36:11 +02:00
Ugljesa Jovanovic
5d18629648
skip ./gradlew assemble
2020-06-10 19:10:30 +02:00
Ugljesa Jovanovic
6612d8a37b
Cache dependancies, add proper path to custom libsodium npm module
2020-06-10 19:09:01 +02:00
Ugljesa Jovanovic
9255bc44fa
Figuring out linux build with sodium
2020-06-10 18:28:27 +02:00
Ugljesa Jovanovic
ad1cbfcaa9
Merge branch 'master' into extract-interfaces
2020-06-09 22:17:56 +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
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