1
1
mirror of https://github.com/BLAKE2/BLAKE2 synced 2024-11-26 04:26:12 +01:00
Commit Graph

87 Commits

Author SHA1 Message Date
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
Samuel Neves
3d1a79158d fix issue #11 2015-11-05 07:13:52 +00:00
Artem Chudinov
d97dff9d02 b2sum: Output 2 spaces instead of 1
To be similar to coreutils' sha256sum.
2015-10-30 22:47:54 +05:00
Artem Chudinov
01f12dbc5c b2sum: Get rid of two goto 2015-10-30 22:03:12 +05:00
Artem Chudinov
7b8a743340 b2sum: Replace "-a <hash>" with "-a <algo>" in the --help message 2015-10-30 21:51:33 +05:00
Artem Chudinov
70acf250b9 b2sum: Support a BSD-style checksum and improve the --help message 2015-10-30 21:42:01 +05:00
Artem Chudinov
918e39086b b2sum: Support --help 2015-10-30 21:23:35 +05:00
Artem Chudinov
625392b921 b2sum: Support reading from stdin 2015-10-30 17:44:18 +05:00
JP Aumasson
56fe64a06c typos 2015-10-19 16:50:33 +02:00
JP Aumasson
5d780a8276 adding website 2015-10-19 16:49:24 +02:00
JP Aumasson
a18d2b03fb consistent checks 2015-10-14 23:03:14 +02:00
JP Aumasson
7d657211ab readme markdowned 2015-10-14 22:56:33 +02:00
JP Aumasson
a976a0ab0a test vectors 2015-10-14 15:17:39 +02:00
Samuel Neves
94d1fefcb4 fix issues reported by Yutaka Sawada 2015-10-14 14:02:14 +01:00
Samuel Neves
b6525c7fa1 Remove unnecessary alignment directives 2015-06-11 21:58:15 +01:00
Samuel Neves
105d4e49c6 fix flags on architectures with < 32-bit int 2015-05-29 12:44:26 +01:00
JP
5f615da000 copyright 2015-05-29 10:10:59 +02:00
Samuel Neves
b8024d53e7 Check for overflow of outlen in blake2{s,b}_final
Fix warnings with -Wcast-qual

Fix blake2{sp,bp}_final's return value
2014-08-06 11:42:44 +01:00
Samuel Neves
77ede9e4db Fix makefile 2014-08-06 11:31:37 +01:00
Samuel Neves
22a1ce9b2f Use unaligned instructions for non speed-critical memory accesses 2014-01-14 19:02:48 +00:00
Samuel Neves
802c795b43 Fix BLAKE2sp and BLAKEbp's inner_length bug. 2014-01-14 18:59:52 +00:00
neheb
e247f0477a I can't read. 2013-03-16 16:27:47 -07:00
Mangix
4ebd63b739 Fix compilation if ref used in bench 2013-03-12 04:09:30 -07:00
Mangix
7d7f92fa95 Fix makefiles 2013-03-12 03:06:10 -07:00
CodesInChaos
fb714d2c83 Release 2013-01-31 2013-02-01 16:44:36 +01:00