Frank Denis
|
cb4f3e4f06
|
Use SSE2 or portable scrypt implementation according to what the CPU supports.
|
2014-05-02 15:20:34 -07:00 |
|
Frank Denis
|
42e4ebe3e3
|
autoconf uses HAVE_*, but runtime_have_* sounds really awkward
|
2014-05-02 14:48:12 -07:00 |
|
Frank Denis
|
cb8544715b
|
Check for SSE2/SSE3/NEON support at runtime.
|
2014-05-02 14:40:39 -07:00 |
|
Frank Denis
|
3cefff9e52
|
Goodbye poly1305-53 and its genius fp wizardry.
|
2014-05-01 21:51:02 -07:00 |
|
Frank Denis
|
ada7ebdf5d
|
Get ready to say goodbye to the infamous poly1305-53 implementation.
Give room for optimized implementations instead.
|
2014-05-01 21:42:45 -07:00 |
|
Frank Denis
|
840b0f243d
|
glibc requires #pragma GCC target("sse2") to use SSE2 instructions
|
2014-05-01 13:55:09 -07:00 |
|
Frank Denis
|
40b9d0fdc7
|
Fix mlock()/munlock() return value on Windows
|
2014-04-27 09:19:50 -07:00 |
|
Frank Denis
|
3cbff15e59
|
Expose size_t crypto_shorthash_siphash24_keybytes(void);
|
2014-04-26 16:39:43 -07:00 |
|
Frank Denis
|
2e0497afa6
|
<limits.h> is required for SIZE_MAX. Fixes Android build.
|
2014-04-24 23:05:16 -07:00 |
|
Frank Denis
|
8c2e0189ab
|
Do not compile sse/pwhash_scryptxsalsa208sha256.c unless emmintrin.h is available.
|
2014-04-20 09:06:07 -07:00 |
|
Frank Denis
|
62d78ec154
|
Pointers for sodium_m[un]lock() do not have to be const
|
2014-04-17 22:10:18 -07:00 |
|
Frank Denis
|
b5589d1855
|
<errno.h> is required in scrypt_platform.h
|
2014-04-17 22:06:32 -07:00 |
|
Frank Denis
|
7b07e38c66
|
Add sodium_mlock() and sodium_munlock()
|
2014-04-16 18:18:44 -07:00 |
|
Frank Denis
|
f288d11910
|
Don't use compile-time assertions with sizeof(dynamic length).
|
2014-04-15 20:16:23 -07:00 |
|
Frank Denis
|
17f8953d3a
|
size -> len, for consistency
|
2014-04-15 00:42:29 -07:00 |
|
Frank Denis
|
219db714cf
|
Add sodium_hex2bin()
|
2014-04-15 00:39:14 -07:00 |
|
Frank Denis
|
aec630132c
|
Slightly rename args in sodium_bin2hex() for consistency
|
2014-04-15 00:21:26 -07:00 |
|
Frank Denis
|
99cf33bc8f
|
Indent
|
2014-04-14 22:33:46 -07:00 |
|
Frank Denis
|
7a85ec9789
|
Directly use OpenBSD's arc4random() instead of opening /dev/urandom.
|
2014-04-14 22:01:10 -07:00 |
|
Frank Denis
|
c7c4f95655
|
Indentation
|
2014-04-14 21:38:41 -07:00 |
|
Frank Denis
|
9f5a7ce70a
|
hardcoded size -> sizeof
|
2014-04-14 21:37:42 -07:00 |
|
Frank Denis
|
99970e2411
|
Remove useless #define
|
2014-04-14 21:18:41 -07:00 |
|
Frank Denis
|
665859e302
|
Since auth_hmac_sha512256 is just truncated hmac_sha512, expose hmac_sha512
|
2014-04-14 21:14:59 -07:00 |
|
Frank Denis
|
2483af0384
|
Make hash_sha512 / hmac_sha512256 consistent with hash_sha256 / hmac_sha256
|
2014-04-14 20:42:37 -07:00 |
|
Frank Denis
|
7791007caf
|
Remove non-threadsafe versions of the crypt(3)-like interface to scrypt.
|
2014-04-12 00:54:37 -07:00 |
|
Frank Denis
|
d3605bf4c3
|
Stored values that are never read are very likely to get optimized out.
|
2014-04-10 23:36:28 -07:00 |
|
Frank Denis
|
c9b87029c1
|
crypto_hash_sha256_update() cannot fail
|
2014-04-10 23:20:15 -07:00 |
|
Frank Denis
|
479620bbd1
|
Explicitly make crypto_hashblocks_sha512.h private.
|
2014-04-10 23:12:28 -07:00 |
|
Frank Denis
|
a62af8a4e3
|
Remove useless define
|
2014-04-10 23:12:28 -07:00 |
|
Frank Denis
|
ca6a52e413
|
Do not export crypto_hashblocks*
|
2014-04-10 23:12:28 -07:00 |
|
Frank Denis
|
175bcccee1
|
Remove unnecessary cast
|
2014-04-10 23:12:28 -07:00 |
|
Frank Denis
|
3d666ce901
|
Remove hashblocks_sha256
|
2014-04-10 23:12:28 -07:00 |
|
Frank Denis
|
96e8d255b6
|
Remove hashblocks*.h and sign_edwards25519sha512batch.h from sodium.h
|
2014-04-10 23:12:28 -07:00 |
|
Frank Denis
|
030fac65a8
|
Remove wrappers
|
2014-04-10 23:12:28 -07:00 |
|
Frank Denis
|
a2fc728956
|
Let crypto_pwhash_scryptxsalsa208sha256 use crypto_auth_hmacsha256
|
2014-04-10 23:12:27 -07:00 |
|
Frank Denis
|
9fa62b38a4
|
Move crypto_hash_sha256_state to the crypto_hash_sha256.h header file
|
2014-04-10 23:12:27 -07:00 |
|
Frank Denis
|
6c42962b57
|
Use cp sha256
|
2014-04-10 23:12:27 -07:00 |
|
Frank Denis
|
1d8109c4d6
|
hash_sha256: ref -> cp
|
2014-04-10 23:12:27 -07:00 |
|
Frank Denis
|
23e5b13b00
|
Indentation
|
2014-04-10 23:12:27 -07:00 |
|
Frank Denis
|
9b151f4efe
|
We don't need sysendian.h
|
2014-04-10 23:12:27 -07:00 |
|
Frank Denis
|
350771b9d4
|
Replace hmac_sha256 implementation with scrypt's
|
2014-04-10 23:12:21 -07:00 |
|
Frank Denis
|
4f31e143ca
|
scrypt fixes
|
2014-04-10 18:25:16 -07:00 |
|
Frank Denis
|
a06b00ecf4
|
Initial import of scrypt
|
2014-04-10 18:25:16 -07:00 |
|
Frank Denis
|
8fc8d2f380
|
A DWORD is the maximum CryptGenRandom() can support.
|
2014-04-09 19:07:41 -07:00 |
|
Frank Denis
|
433ba6be9e
|
Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
Add explicit uint8_t casts for Blake2's key length. via @evoskuil
|
2014-04-09 19:03:37 -07:00 |
|
Frank Denis
|
b35929d3b1
|
Do not remove previously generated files from the distribution.
|
2014-04-09 19:03:15 -07:00 |
|
Frank Denis
|
fcf228e2e7
|
Add explicit uint8_t casts for Blake2's key length.
via @evoskuil
|
2014-04-09 18:45:59 -07:00 |
|
Frank Denis
|
c7eecc28ba
|
Include crypto_verify_64.h in sodium.h
|
2014-04-08 14:19:41 -07:00 |
|
Frank Denis
|
8dafe380c6
|
De-doxygenize crypto_verify_64.h in this branch.
|
2014-04-08 14:15:09 -07:00 |
|
Frank Denis
|
d9d29efd6a
|
+crypto_verify64
|
2014-04-08 14:11:58 -07:00 |
|