1
1
mirror of https://github.com/BLAKE2/BLAKE2 synced 2024-09-16 08:31:34 +02:00
Commit Graph

124 Commits

Author SHA1 Message Date
JP Aumasson
c038f88aec basic b2xs and b2xb 2016-10-11 15:06:44 +02:00
JP Aumasson
97c8a0cd55 adding xof_length for b2x support 2016-10-11 14:54:09 +02:00
JP Aumasson
c314fb42d4 makefile conflict fixed 2016-10-11 14:23:18 +02:00
Samuel Neves
cb0506c082 rename readme 2016-06-22 08:14:58 +01:00
Samuel Neves
9630d9a206 add b2sum readme 2016-06-22 08:13:00 +01:00
Samuel Neves
5f2f566442 no static b2sum, optional openmp 2016-06-19 17:55:55 +01:00
Samuel Neves
a0f55091f1 count cycles on msvc 2016-06-15 13:05:28 +01:00
Samuel Neves
0ee2296e98 c89ify bench as well 2016-06-12 18:09:50 +01:00
Samuel Neves
987a2d74bd output exclusively to pdf 2016-06-12 17:36:57 +01:00
Samuel Neves
f1d5a3a722 missing dependency 2016-06-12 17:07:18 +01:00
Samuel Neves
369aa70c0c bench portability 2016-06-12 16:37:10 +01:00
Samuel Neves
88df903283 remove unused code, vars 2016-06-11 17:58:17 +01:00
Samuel Neves
ab60beb7a1 adjust api in kats 2016-06-11 12:47:20 +01:00
Samuel Neves
932be4e9f5 outlen in blake2xx_final should be the output buffer size, not the hash length 2016-06-11 12:42:46 +01:00
Samuel Neves
64cafcff16 test streaming api 2016-06-11 12:22:35 +01:00
Samuel Neves
8a007c8cbb consistent counter type 2016-06-11 12:05:52 +01:00
Samuel Neves
86f24fed10 api cleanup, sse edition 2016-06-11 11:11:20 +01:00
Samuel Neves
259e61dede api cleanup 2016-06-11 10:29:09 +01:00
Samuel Neves
e971a0428f more tyding up 2016-06-11 00:06:51 +01:00
Samuel Neves
ef9d717e46 tidy up 2016-06-10 23:56:26 +01:00
Samuel Neves
003671f8af Merge branch 'tiran-c89' 2016-06-10 22:27:46 +01:00
Samuel Neves
24d4cc2ea6 fix conflicts 2016-06-10 22:27:28 +01:00
Samuel Neves
d511746787 fix kat paths; better sse2 detection 2016-06-10 11:37:44 +01:00
Samuel Neves
9a57356891 address issue #24 2016-06-10 11:27:27 +01:00
Samuel Neves
6740feadea Merge pull request #23 from CryptoManiac/master
Parameter validation issue.
2016-05-04 16:26:43 +01:00
CryptoManiac
b9302b40bc With "==" you will be allowed to set anything except valid values. 2016-04-30 23:53:42 +03:00
JP Aumasson
eec32b7170 sse kats, reorg 2016-04-22 22:12:08 +02:00
Christian Heimes
81a1bcf245 Make BLAKE2 code C89 and MSVC friendly
This patch makes the BLAKE2 reference implementation compatible with C89
compilers and MSVC.

1) Use C comments (/* */) instead of C++ comments.
2) No declarations after statements. All variables are declared on the
   top of a block.
3) Optional inline with BLAKE2_LOCAL_INLINE() macro.

Signed-off-by: Christian Heimes <christian@python.org>
2016-04-22 12:07:57 +02:00
Samuel Neves
02bf34f3d4 Replace size_t by unsigned long for output sizes.
https://sourceforge.net/p/mingw-w64/wiki2/gnu%20printf/
2016-04-06 08:27:42 +01:00
Samuel Neves
fc572de97b Merge pull request #21 from jedisct1/check-multiple-finalizations
blake2*_final() should return an error if called twice
2016-04-06 04:58:00 +01:00
Frank Denis
bcc99c1b6a blake2*_final() should return an error if called twice 2016-04-06 01:40:45 +02:00
Samuel Neves
168fbb78f5 update licensing in README 2016-03-11 23:32:19 +00:00
JP Aumasson
648089e055 Merge pull request #19 from waywardgeek/master
Changed copyright of Samuel's code to 3-license version suggested by …
2016-02-29 09:46:52 +01:00
Bill Cox
58eab9690e Changed copyright of Samuel's code to 3-license version suggested by Zooko 2016-02-28 20:42:23 -08:00
Samuel Neves
90cf5d00c3 Merge pull request #17 from Scarletts/master
b2sum man page, makefile changes
2016-02-28 00:04:18 +00:00
Samuel Neves
58dca08d0b Merge pull request #18 from DaGenix/errors-in-test-vectors
Remove trailing 'ok' from the last line of each test vector file
2016-02-27 23:41:19 +00:00
Palmer Cox
5a5f61780f Remove trailing 'ok' from the last line of each test vector file 2016-02-26 00:40:21 -05:00
Scarlett
7b358396b2 remove comment that slipped in 2016-02-20 15:25:55 +00:00
Scarlett
a559faebbb add and install b2sum man page, improve makefile portability 2016-02-20 15:24:06 +00:00
Samuel Neves
d893a37d37 Merge pull request #16 from zx2c4/master
Do not pack blake2_state structs
2016-02-09 02:43:05 +00:00
Jason A. Donenfeld
a6bd49a6ef Do not pack blake2_state structs
While the param structs need to be packed, because they're compressed as
a byte stream, the state structs do not have this requirement. As such,
the compiler likely can emit more efficient code in certain
circumstances when it can apply the ordinary struct alignment rules.
2016-02-09 03:39:53 +01:00
Samuel Neves
051109d9b0 Merge pull request #15 from betafive/pbarker/b2sum
Add digest length argument to b2sum (plus minor improvements)
2016-01-31 17:10:11 +00:00
Paul Barker
3b2fb9f2cd b2sum: Add digest length argument
It may be desirable to produce a digest with a shorter length than the default
using a BLAKE2 algorithm. For example, the crypto_generichash() function in
libsodium uses BLAKE2b but shortens the digest to 256 bits by default and it is
useful for debugging to generate similar hashes with b2sum for comparison.

The requested digest length is specified in bits, must be a multiple of 8 and
cannot exceed the total output length of the selected algoritm. No minimum
digest length is enforced.

If a shorter-than-default digest length is selected, this is indicated in the
output when the '--tag' option is given.
2016-01-31 10:51:11 +00:00
Samuel Neves
d0bf1ed303 Consistent checks at blake2x_final (reported by Bill Cox) 2016-01-20 00:53:36 +00:00
Paul Barker
3a9a49defb Add git ignore file
To simplify development we can ignore all output produced by running 'make' in
the b2sum, bench, ref and sse directories.

Someone should build the csharp implementation and add output files to
.gitignore...
2016-01-03 11:54:57 +00:00
Paul Barker
9462382432 b2sum: Simplify algorithm name printing 2016-01-03 11:24:06 +00:00
Samuel Neves
cfc536848a replace secure_zero_memory 2015-12-12 20:45:01 +00:00
Samuel Neves
1c2b66c26d signedness mismatch 2015-11-05 07:40:10 +00:00
Samuel Neves
2d362fbb68 Merge pull request #3 from neheb/master
Fix makefiles + bench fix
2015-11-05 07:38:38 +00:00
Samuel Neves
93fda424a1 Merge pull request #12 from arzeth/master
Improve b2sum
2015-11-05 07:30:16 +00:00