Frank Denis
41ed891d56
Use -fstack-protector for all.
Might be replaced by -fstack-protector-strong later on.
10 years ago
Frank Denis
1217d30bae
More chacha20 tests
10 years ago
Frank Denis
2f7d98a73d
Fix format in auth5 test
10 years ago
Frank Denis
dc49ae0491
Add tests for invalid generichash parameters
10 years ago
Frank Denis
0ec5a25c88
More tests for randombytes
10 years ago
Frank Denis
c35aee3b94
Enable Coverity+Travis
10 years ago
Frank Denis
82bc039d6c
Consistent syle for the tests.
10 years ago
Frank Denis
0e559b94d5
Make the tests a little bit more readable
10 years ago
Frank Denis
f41bfa9b94
More tests for constants
10 years ago
Frank Denis
fcc2513967
More tests for constants
10 years ago
Frank Denis
d65c791e58
More tests for constants
10 years ago
Frank Denis
2645422a32
Test crypto_aead with a short ciphertext
10 years ago
Frank Denis
a92731a9f4
More tests for constants
10 years ago
Frank Denis
12a3f27706
More tests for constants
10 years ago
Frank Denis
2c1b507045
More constant tests
10 years ago
Frank Denis
ab37bd3e0b
Tests: no need for crypto_uint8
10 years ago
Frank Denis
b7b0436fb8
Test the presence of some extra functions
10 years ago
Frank Denis
4d276a81e7
Include header files commonly used by the tests to cmptest.h
10 years ago
Frank Denis
3b680e0a52
Use high-level APIs in tests
10 years ago
Frank Denis
21a5e5accb
Let Travis check --enable-minimal builds
10 years ago
Frank Denis
7dde13e1b4
Sync Blake2s changes with Blake2b
Note: Blake2s code is not compiled yet
10 years ago
Frank Denis
a7d38ef15d
Check outlen in blake2b_final
Not required in Sodium since the check is already performed in
higher-level functions, but it doesn't hurt either.
10 years ago
Frank Denis
8994dc340f
Blake2 load/store functions must accept unaligned pointers even on LE
10 years ago
Frank Denis
59a207e4ff
__cpuidex() is not really required for now, just use __cpuid()
10 years ago
Frank Denis
a4264a221f
Disable MSVC deprecation warning just for _ftime()
10 years ago
Frank Denis
fe586939f6
_ftime_s() was not available on Windows XP. And people still run XP.
10 years ago
Frank Denis
03b122dd5d
Fix .travis.yml indentation
10 years ago
Frank Denis
c8c2c7a93d
Revert "The C standard says nothing about accesses via lvalue expressions with volatile types"
This reverts commit fc1bc0718b
.
10 years ago
Frank Denis
6c0852f22f
Remove unused macros
10 years ago
Frank Denis
fc1bc0718b
The C standard says nothing about accesses via lvalue expressions with volatile types
10 years ago
Frank Denis
86a0884ac2
Merge pull request #186 from khungus/master
Update NuGet packaging to 0.7
10 years ago
khungus
89eacfa06c
Update NuGet packaging to 0.7
10 years ago
Frank Denis
ddf56925d6
Thanks to @lvh for the Clojure bindings
10 years ago
Frank Denis
c6ca4c6ef8
randombytes() -> randombytes_buf()
Since randombytes() wraps randombytes_buf(), that's one more function
the linker can strip out until it's actually used by the app.
10 years ago
Frank Denis
7c7f1cfacc
Reorder randombytes prototypes; mention that randombytes() is a compat API.
10 years ago
Frank Denis
f241744e4d
Thanks @electricFeel for the Elixir wrapper
10 years ago
Frank Denis
f789f8a05a
Rephrase
10 years ago
Frank Denis
9126ec1804
Update ChangeLog
10 years ago
Frank Denis
6dfada1ebc
Remove unneeded #include
10 years ago
Frank Denis
61449686ee
Version bump
10 years ago
Frank Denis
2997ed2619
Comment out loops not being executed.
10 years ago
Frank Denis
d01e1f4875
On error path, do not set the signature len if a NULL pointer was given.
10 years ago
Frank Denis
6c8df6adad
Remove unused variable
10 years ago
Frank Denis
0e23192159
Add crypto_sign_ed25519_sk_to_seed() and crypto_sign_ed25519_sk_to_pk()
10 years ago
Frank Denis
d3403d1e01
memzero az in crypto_signed_detached. via Stanford SCS.
10 years ago
Frank Denis
2947ea863d
Clear the seed in crypto_sign_keypair() - Reported by the Stanford SCS group.
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
Frank Denis
729a54f4a2
Use --enable-minimal in the Android and iOS builds
10 years ago
Frank Denis
6c78c9815c
Remove compat.c
10 years ago
Frank Denis
55bb50b855
Bump major
10 years ago