Commit Graph
367 Commits
Author SHA1 Message Date
Frank Denis d83a528953 Make hash_sha512 / hmac_sha512256 consistent with hash_sha256 / hmac_sha256 2014-04-15 18:12:10 -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
Frank Denis d0015d61c5 Replace hmac_sha256 implementation with scrypt's 2014-04-14 18:38:18 -07:00
Frank Denis 653494bea8 scrypt fixes 2014-04-14 18:38:17 -07:00
Frank Denis 4be77b901e Initial import of scrypt 2014-04-14 18:38:16 -07:00
Frank Denis d6e655ad97 A DWORD is the maximum CryptGenRandom() can support. 2014-04-14 18:38:15 -07:00
Frank Denis 3ec3b66f43 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-14 18:37:52 -07:00
Frank Denis aa2bd4d09b Add explicit uint8_t casts for Blake2's key length.
via @evoskuil
2014-04-14 18:37:51 -07:00
Frank Denis 1bb97076ab Do not remove previously generated files from the distribution. 2014-04-14 18:37:29 -07:00
Frank Denis 28ac480ad0 Include crypto_verify_64.h in sodium.h 2014-04-14 18:37:27 -07:00
Frank Denis c3d57f07ab De-doxygenize crypto_verify_64.h in this branch. 2014-04-14 18:37:26 -07:00
Frank Denis 80aff278d0 +crypto_verify64 2014-04-14 18:37:25 -07:00
evoskuil 716fc4dddd Make implicit numeric lossy casts explicit (with comments). 2014-04-07 10:48:57 -07:00
Frank Denis 9c33a54e89 Nothing requires <poll.h> in randombytes_sysrandom.c 2014-03-06 21:39:05 -08:00
Frank Denis 9f2e0ba803 Use memset_s() if available 2014-03-02 19:05:14 -08:00
Frank Denis 639a92ebe7 Add crypto_hash_primitive() 2014-02-23 20:24:59 -08:00
Frank Denis afcba42802 Save and restore errno when opening the random device. 2014-02-09 09:48:43 -08:00
Frank Denis 28b3f2ab0e ^ is not a good way to check for all zeros :) Spotted by sneves@ 2014-01-26 16:47:55 -08:00
Frank Denis 49114ee2f5 Reorder vars 2014-01-24 09:41:19 -08:00
Frank Denis bd4aacf078 crypto_sign_ed25519_open(): Check that the public key is not all zeroes.
Reported by Mikkel Fahnøe Jørgensen via nightcracker@
2014-01-24 09:36:21 -08:00
Frank Denis e8509072a9 Add an easy interface to secretbox 2013-12-31 18:37:36 +01:00
Frank Denis c57b3c58b3 C++ compat 2013-12-31 18:37:36 +01:00
Frank Denis 02ec147a00 Add a crypto_box easy interface 2013-12-31 18:37:36 +01:00
Frank Denis 41e66896c8 Disable long long warnings when compiled with an old g++ version. 2013-12-31 15:20:02 +01:00
Frank Denis 9a88b1ed74 Add .type @function to export function names in asm implementations (ELF only)
via NeoRaider@
2013-12-26 12:14:46 +01:00
Frank Denis d3c949bafa Remove ASM version of endian conversion helpers (in portable-jane.h) on PPC
This seems to be causing issues on ppc64 when compiling with optimizations.
2013-12-18 14:37:34 -08:00
Frank Denis 2994aebafb Remove unused macro 2013-12-11 20:27:42 -08:00
Frank Denis bf72ee931e Make crypto_scalarmult_curve25519.h architecture-independent 2013-12-11 20:17:09 -08:00
Frank Denis 5133638024 Make crypto_stream_salsa20.h architecture-independent.
Move implementation-specific functions to compat.c
2013-12-11 19:45:11 -08:00
Frank Denis 5ad45ee98c Move Doxygen API doc to its own branch until it is complete. 2013-12-09 18:04:05 -08:00
Frank Denis d0793255a3 innvocation -> invocation 2013-12-09 16:56:33 -08:00
Frank Denis 71fb3e3dda Remove trailing spaces 2013-12-09 16:55:44 -08:00
Frank Denis 149ce5b377 Lenght -> Length 2013-12-09 16:54:06 -08:00
Frank Denis 6eb2c2a284 sodium/version.h.in: fix pasto 2013-12-09 16:19:45 -08:00
Jan de Muijnck-Hughes 5a753ba908 Added api documentation.
The outward facing api has been documented where possible. If the
documentation has not been added a `@todo` annotations has been
added. Doxygen will constuct a list of TODO's automatically.
2013-12-08 15:58:03 +00:00