Adrien Gallouët
019db2bc84
Make room for several secretstream
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
5 years ago
Adrien Gallouët
0bf3bb7a22
Fix .gitignore
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
5 years ago
Frank Denis
a59e1f8b54
aegis256: update MSVC solutions, .gitignore, exported emscripten symbols
and the global list of symbols
5 years ago
Frank Denis
2dd3b91628
Try to rename internal symbols that were visible in static libraries
Fixes #839
5 years ago
Frank Denis
4f5e89fa84
Don't ignore azure-pipelines.yml
5 years ago
Frank Denis
1854820cc3
Ignore azure-pipelines.yml
5 years ago
Frank Denis
075b3fd424
Ignore libsodium-wasm32-wasi and sort .gitignore
5 years ago
Frank Denis
db0319fb8e
Initial support for ristretto255
5 years ago
Frank Denis
69a5643477
Add chacha20-poly1305 test from Project Wycheproof
6 years ago
Frank Denis
cb22446db1
Add aes256gcm tests from project wycheproof
6 years ago
Frank Denis
f8377e9818
Add x25519 test vectors from project wycheproof
6 years ago
Ruslan Baratov
93d683395f
Remove '*.cmake' pattern from .gitignore
6 years ago
Frank Denis
9d0ddf8f12
Remove *.s from .gitignore
7 years ago
Frank Denis
a60d877327
Add a test for crypto_scalarmult_ed25519
7 years ago
Frank Denis
1df2285362
Add a preliminary test for core_ed25519
7 years ago
Frank Denis
ce3254dff4
Ignore test/default/*.asm.js
7 years ago
Frank Denis
2f51ed3397
Rename the test/pwhash.c -> test/pwhash_argon2i.c
7 years ago
Frank Denis
ee1d5c96d8
Move the codecs tests to their own test file
7 years ago
Frank Denis
a7b75a2d7d
+ simple metamorphic tests for crypto_generichash()
This needs to be extended to other APIs with a streaming interface
7 years ago
Frank Denis
6e8e0a93f9
Add a couple tests for crypto_secretstream_*()
7 years ago
Frank Denis
5d56821d3d
More tests, and start testing misuse cases
7 years ago
Frank Denis
f586752afe
+ Argon2id tests
7 years ago
Frank Denis
849a35bd82
+ crypto_kx_*() API
This doesn't include a full key exchange API yet.
7 years ago
Frank Denis
8fb5918fb6
Add a test for siphashx24
7 years ago
Frank Denis
7f7e7235c5
Add a keygen function to all the primitives
7 years ago
Frank Denis
49916e5a82
Ignore *.wasm *.wast
7 years ago
Frank Denis
532ea6bd95
+ test for aead_xchacha20poly1305
7 years ago
Frank Denis
b209a7c0af
Add a test for HChaCha20
7 years ago
Frank Denis
cc7b57b4a6
Forgot to ignore libsodium-uninstalled.pc
8 years ago
Frank Denis
eaba3a48fd
Ignore test/js.done
8 years ago
Frank Denis
a0e22bddcb
Sort .gitignore
8 years ago
Frank Denis
da057008ff
Remove curvecp from .gitignore
8 years ago
Frank Denis
9ecde0c456
Ignore more specific directories than libsodium-*
8 years ago
Frank Denis
5dce2b5c64
Revamp the emscripten build script
8 years ago
Frank Denis
99576d46d0
Use a specific "done" file for every javascript target
8 years ago
Frank Denis
79935dc918
test/pwhash_argon2i -> test/pwhash
8 years ago
Frank Denis
7a95e921ac
Add tests for pwhash_argon2i
9 years ago
Frank Denis
14bf02af88
Rename the pwhash test as as pwhash_scrypt
9 years ago
Frank Denis
f254415be4
Update .gitignore
9 years ago
Frank Denis
48b9c4e75c
Ignore test/default/browser, import HTML template
9 years ago
Frank Denis
93295855cf
Add aes256gcm test vectors
9 years ago
Frank Denis
7fca230be8
Nits after pnacl merge
9 years ago
Frank Denis
575ce93058
+ crypto_box_seal()
9 years ago
Graydon Hoare
4b6d9994be
Add configure.lineno to .gitignore
10 years ago
Frank Denis
cd67cb17e5
Emscripten: add a file to mark that the build completed, for libsodium.js
10 years ago
Frank Denis
c08cbe45ec
Ignore Vagrantfile
10 years ago
Frank Denis
fa2da90fd3
Ignore *.mem
10 years ago
Frank Denis
b062a555da
scalarmult: check that the top bit is ignored
10 years ago
Frank Denis
eacb7c7f2b
Ignore gcov files
10 years ago
Frank Denis
473e1718cc
Add sodium_{malloc,allocarray,free}() and sodium_mprotect_*()
ptr = sodium_malloc(size) returns a pointer from which exactly "size" bytes
can be accessed.
ptr = sodium_allocarray(count, size) allocates enough storage space for
"count" pointers or scalars of unit size "size".
In both cases, the region is immediately followed by a guard page.
As a result, any attempt to access a memory location after ptr[size - 1] will
immediately trigger a segmentation fault.
The allocated region is mlock()ed and filled with 0xd0 bytes.
A read-only page with the size, a guard page, as well as a canary are
placed before the returned pointer.
The canary is checked by sodium_free(); as a result, altering data right
before ptr is likely to cause sodium_free() to kill the process.
sodium_free() munlock()s the region and fills it with zeros before
actually calling free().
sodium_mprotect_noaccess(), sodium_mprotect_readonly() and
sodium_mprotect_readwrite() can be used to change the protection on the set
of allocated pages.
Reverting the protection to read+write is not required before calling
sodium_free().
10 years ago