1
1
mirror of https://github.com/BLAKE2/BLAKE2 synced 2024-11-07 14:49:17 +01:00
Commit Graph

14 Commits

Author SHA1 Message Date
Pádraig Brady
2407e7a40a maint: strip various trailing whitespace
This falls afoul of various commit git commit hooks,
so strip trailing whitespace at EOL and EOF.
2016-11-09 21:34:46 +00:00
Samuel Neves
c19dd2bd83 formatting, more c89 2016-10-12 15:19:55 +01: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
Bill Cox
58eab9690e Changed copyright of Samuel's code to 3-license version suggested by Zooko 2016-02-28 20:42:23 -08: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
Paul Barker
9462382432 b2sum: Simplify algorithm name printing 2016-01-03 11:24:06 +00:00
Samuel Neves
1c2b66c26d signedness mismatch 2015-11-05 07:40:10 +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
CodesInChaos
fb714d2c83 Release 2013-01-31 2013-02-01 16:44:36 +01:00