Commit Graph

768 Commits

Author SHA1 Message Date
Frank Denis
fdc5843176 Don't use compile-time assertions with sizeof(dynamic length). 2014-04-15 20:32:01 -07:00
evoskuil
6ede7869ec Add two more files to VS build. 2014-04-15 20:31:32 -07:00
evoskuil
de2a274e6a Update project files for recent library changes. 2014-04-15 19:51:54 -07:00
evoskuil
d54cabd59a Copy version file to source directory for build, with info message. 2014-04-15 19:51:29 -07:00
evoskuil
e9fef026f7 Version file that is automatically copied into build directory. 2014-04-15 19:50:09 -07:00
evoskuil
852f1f6894 Merge branch 'origin/master' 2014-04-15 19:18:50 -07:00
Frank Denis
87ebd75469 size -> len, for consistency 2014-04-15 18:12:21 -07:00
Frank Denis
c6f1a2670a Add sodium_hex2bin() 2014-04-15 18:12:20 -07:00
Frank Denis
618b5657d8 Slightly rename args in sodium_bin2hex() for consistency 2014-04-15 18:12:19 -07:00
Frank Denis
44da824038 Indent 2014-04-15 18:12:18 -07:00
Frank Denis
8ba704b3f8 Directly use OpenBSD's arc4random() instead of opening /dev/urandom. 2014-04-15 18:12:17 -07:00
Frank Denis
87d5b01ef6 Indentation 2014-04-15 18:12:16 -07:00
Frank Denis
03cd2318eb hardcoded size -> sizeof 2014-04-15 18:12:15 -07:00
Frank Denis
b4549d8bde Update .gitignore for the new tests 2014-04-15 18:12:14 -07:00
Frank Denis
5e9c894d13 Add tests for auth_hmac_sha512 2014-04-15 18:12:13 -07:00
Frank Denis
e43a669b6e Remove useless #define 2014-04-15 18:12:13 -07:00
Frank Denis
3c322ca7b9 Since auth_hmac_sha512256 is just truncated hmac_sha512, expose hmac_sha512 2014-04-15 18:12:12 -07:00
Frank Denis
d83a528953 Make hash_sha512 / hmac_sha512256 consistent with hash_sha256 / hmac_sha256 2014-04-15 18:12:10 -07:00
evoskuil
34509b99d9 Update filter file tool versions. 2014-04-15 01:43:42 -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
evoskuil
82657cef0a Update filters for source file changes. 2014-04-14 23:41:15 -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
434966c23d Update .gitignore for the new tests 2014-04-14 21:35:29 -07:00
Frank Denis
8960e5ad77 Add tests for auth_hmac_sha512 2014-04-14 21:34:55 -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
evoskuil
58bdca7fa2 Update VS projects to accomodate source file list changes. 2014-04-14 19:08:46 -07:00
Frank Denis
c1aebf3ea9 Add a default value for TEST_SRCDIR 2014-04-14 18:39:12 -07:00
Frank Denis
66cddcab9a Remove non-threadsafe versions of the crypt(3)-like interface to scrypt. 2014-04-14 18:38:32 -07:00
Frank Denis
412d5cb0c0 Stored values that are never read are very likely to get optimized out. 2014-04-14 18:38:31 -07:00
Frank Denis
06e70b085b crypto_hash_sha256_update() cannot fail 2014-04-14 18:38:30 -07:00
Frank Denis
613ab79a27 Explicitly make crypto_hashblocks_sha512.h private. 2014-04-14 18:38:29 -07:00
Frank Denis
d1dbf7df8f Remove useless define 2014-04-14 18:38:28 -07:00
Frank Denis
21eef79bb1 Do not export crypto_hashblocks* 2014-04-14 18:38:27 -07:00
Frank Denis
d5b0f7e802 Remove unnecessary cast 2014-04-14 18:38:26 -07:00
Frank Denis
42fd127d09 Remove hashblocks_sha256 2014-04-14 18:38:26 -07:00
Frank Denis
374fc13596 Remove hashblocks*.h and sign_edwards25519sha512batch.h from sodium.h 2014-04-14 18:38:25 -07:00
Frank Denis
4e3bc79887 Remove wrappers 2014-04-14 18:38:24 -07:00
Frank Denis
337b635138 Let crypto_pwhash_scryptxsalsa208sha256 use crypto_auth_hmacsha256 2014-04-14 18:38:23 -07:00
Frank Denis
d7dcf79fc0 Move crypto_hash_sha256_state to the crypto_hash_sha256.h header file 2014-04-14 18:38:22 -07:00
Frank Denis
e17b763b5f Use cp sha256 2014-04-14 18:38:21 -07:00
Frank Denis
39cf6cefaf hash_sha256: ref -> cp 2014-04-14 18:38:20 -07:00
Frank Denis
e1c19616bd Indentation 2014-04-14 18:38:19 -07:00
Frank Denis
e5b4c5caba We don't need sysendian.h 2014-04-14 18:38:19 -07:00