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

22 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
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
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
Bill Cox
58eab9690e Changed copyright of Samuel's code to 3-license version suggested by Zooko 2016-02-28 20:42:23 -08: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
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
Samuel Neves
2d362fbb68 Merge pull request #3 from neheb/master
Fix makefiles + bench fix
2015-11-05 07:38:38 +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
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