Commit Graph

1344 Commits

Author SHA1 Message Date
Frank Denis
c8425e6386 Encode Argon2id hashes 2017-06-28 15:49:28 +02:00
Frank Denis
16e9619d87 Indent 2017-06-28 15:09:18 +02:00
Frank Denis
beac509209 Let crypto_pwhash_str_verify work both with Argon2i and Argon2id 2017-06-27 16:33:09 +02:00
Frank Denis
313225f68a Group pick_best_implementation_*() prototypes in a private header 2017-06-27 16:23:12 +02:00
Frank Denis
77b1d8eeb3 implementations.h doesn't need C++ guards 2017-06-27 16:18:55 +02:00
Frank Denis
efd27c6489 Remove redundant Argon2 algorithm ids 2017-06-27 16:12:07 +02:00
Frank Denis
2cb841539e Public Argon2id API 2017-06-27 16:06:43 +02:00
Frank Denis
989189890b More argon2id bits 2017-06-27 15:43:40 +02:00
Frank Denis
7057cca8a7 Prepare for Argon2id support 2017-06-27 14:42:11 +02:00
Frank Denis
935557cdf7 Add AVX2-optimized Argon2 blamka function 2017-06-27 14:26:40 +02:00
Frank Denis
b1d847d6dd Indent 2017-06-27 14:17:35 +02:00
Frank Denis
624d4dd1e0 Indent 2017-06-27 13:39:26 +02:00
Frank Denis
fbe3eb265f secretbox: avoid a useless memmove() if the source and destination addresses are the same 2017-06-14 15:57:06 +02:00
Frank Denis
00212b2604 Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
  Fix `crypto_pwhash_argon2i_str_verify()` and its tests after `errno` changes
  Add crypto_pwhash_MISMATCH errno (#541)
2017-05-16 12:41:30 +02:00
Frank Denis
f72bcfacd7 Move CRYPTO_ALIGN after the struct keyword
Fixes #543
2017-05-16 12:40:36 +02:00
Frank Denis
3e85167657 Fix crypto_pwhash_argon2i_str_verify() and its tests after errno changes 2017-05-12 15:09:54 +02:00
Emil Bay
94760400a6 Add crypto_pwhash_MISMATCH errno (#541)
* Add crypto_pwhash_MISMATCH errno

* Use EINVAL for invalid password

* Only set errno on mismatch
2017-05-12 14:30:26 +02:00
Frank Denis
f6cab99f64 Indent 2017-04-28 12:19:32 +02:00
Frank Denis
be5e5a53b3 Remove useless cast 2017-04-21 01:03:23 +02:00
Frank Denis
db1dd21762 Prevent possible compiler optimizations 2017-04-21 01:02:40 +02:00
Frank Denis
68d576cc95 Prevent possible optimizations in sodium_compare() 2017-04-21 00:30:19 +02:00
Frank Denis
bdd06e9074 Space 2017-04-04 18:06:38 -07:00
Chris Fogelklou
3f65a21212 Fix ref10 slide on PPC-VLE (#525)
* Use intermediate variables in slide() which removes ambiguity for the compiler and fixes a crash in the PPC_VLE build with -O1 flag (added bonus: smaller compiled code.)

* Fix formatting in slide() loop counter to match the previously just-formatted version.
2017-04-03 21:00:36 -07:00
Frank Denis
7fa678bdca April 1st is over
This reverts commit 1668847409.
2017-04-01 20:50:58 +02:00
Frank Denis
1668847409 Add support for random.org as a CSPRNG 2017-04-01 10:01:26 +02:00
Frank Denis
7a6a47a5a5 Format 2017-03-31 10:17:45 +02:00
Frank Denis
4e4756e676 Add braces for clarity 2017-03-31 10:10:27 +02:00
Frank Denis
c229663acf Argon2: add specialized macro to decode uint32_t values 2017-03-30 10:15:06 +02:00
Frank Denis
4dec1da7c5 Remove dev mode 2017-03-28 13:39:34 +02:00
Frank Denis
623cbfc168 Fix crypto_pwhash_argon2i_MEMLIMIT_MAX definition on 32-bit platforms 2017-03-27 00:52:03 +02:00
Frank Denis
2541886266 Merge branch 'master' of https://github.com/jedisct1/libsodium
* 'master' of https://github.com/jedisct1/libsodium:
  Require @CFLAGS_SSE2@ to build libaesni
2017-03-21 23:26:06 +01:00
Frank Denis
e6970ad4e6 Add explicit casts 2017-03-21 23:25:40 +01:00
Frank Denis
2e1106ed64 Require @CFLAGS_SSE2@ to build libaesni
Fixes compilation on OpenBSD/i386 with the base gcc compiler.
2017-03-20 15:46:49 +01:00
Frank Denis
4568b74cc8 Raise crypto_pwhash_argon2i_MEMLIMIT_MIN to 8192 2017-03-20 00:01:10 +01:00
Frank Denis
03787ad057 Back to dev mode 2017-03-16 18:58:06 +01:00
Frank Denis
70170c28c8 Indent 2017-03-13 09:22:21 +01:00
Frank Denis
8f353b5553 Correct indentation 2017-03-13 09:14:40 +01:00
Frank Denis
9d2e216c5b Ignore internal warnings about deprecated aes128 functions 2017-03-12 18:42:02 +01:00
Frank Denis
fd797db30a Remove crypto_[u]int*.h headers
Not used internally by anything for a very long time.
Number of projects on GitHub using these: zero.

Standard types from stdint.h should be preferred.
2017-03-12 18:13:31 +01:00
Frank Denis
81ed03a442 Tag crypto_stream_aes128ctr as deprecated 2017-03-12 18:08:16 +01:00
Frank Denis
bbcb8bd33b Avoid useless comparisons 2017-03-12 18:02:46 +01:00
Frank Denis
849a35bd82 + crypto_kx_*() API
This doesn't include a full key exchange API yet.
2017-03-12 13:15:39 +01:00
Frank Denis
88c77d6aa7 Do not use a zero nonce in randombytes_buf_deterministic()
This can mitigate implications of reusing the same key across different
functions.
2017-03-09 13:57:37 +01:00
Frank Denis
88f59c99c5 Avoid variable shadowing 2017-03-09 13:11:10 +01:00
Frank Denis
8679e717db + sodium_library_minimal() and SODIUM_LIBRARY_MINIMAL 2017-03-06 09:47:09 +01:00
Frank Denis
25287ce7fb Explicitly include <stdint.h> 2017-03-05 23:47:40 +01:00
Frank Denis
b3e27d14aa Move 64-bit emulation to a dedicated private header file 2017-03-05 23:44:51 +01:00
Frank Denis
0d270d8345 Include <emmintrin.h> to use SSE2 emulation 2017-03-05 23:08:34 +01:00
Frank Denis
9e87eb1365 Add emulation for SSE2 instructions requiring 64-bit registers 2017-03-05 23:06:53 +01:00
Frank Denis
cff00dbe75 Revert "Revert "Remove dev warning""
This reverts commit 2e0e7a150d.
2017-03-05 21:09:59 +01:00