mirror of
https://github.com/BLAKE2/BLAKE2
synced 2024-11-07 14:49:17 +01:00
3b2fb9f2cd
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. |
||
---|---|---|
.. | ||
b2sum.c | ||
makefile |