aboutsummaryrefslogtreecommitdiffstats
path: root/bsum.1
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-07-06 07:20:03 +0200
committerMattias Andrée <maandree@kth.se>2023-07-06 07:20:03 +0200
commit0c3cf7819ceb7fe970f0fc240fa177b4e6dd5506 (patch)
tree29dbd39a897dbef2e391a095d39fe03b07b22d94 /bsum.1
parentRemove -Wall -O3 from CFLAGS (unportable) and -s from LDFLAGS (diff)
downloadblakesum-0c3cf7819ceb7fe970f0fc240fa177b4e6dd5506.tar.gz
blakesum-0c3cf7819ceb7fe970f0fc240fa177b4e6dd5506.tar.bz2
blakesum-0c3cf7819ceb7fe970f0fc240fa177b4e6dd5506.tar.xz
Add -S (salt) to bsum
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'bsum.1')
-rw-r--r--bsum.125
1 files changed, 24 insertions, 1 deletions
diff --git a/bsum.1 b/bsum.1
index 5a66049..89ef96f 100644
--- a/bsum.1
+++ b/bsum.1
@@ -3,7 +3,7 @@
bsum - Compute and check BLAKE message digests
.SH SYNOPSIS
.B bsum
-[-l bits] [-c | -B | -L | -U] [-xz]
+[-l bits] [-c | -B | -L | -U] [-S salt] [-xz]
.RI [ file "] ..."
.SH DESCRIPTION
Print or check BLAKE checksums.
@@ -38,6 +38,29 @@ Output checksums in lower-case hexadecimal representation. (Default)
Select version of the BLAKE algorithm. Valid values
are 224 (default), 256, 384, and 512.
.TP
+.BI "-S " salt
+Specify a 16-byte (for the 224 and 256 bit versions) or
+32-byte salt (for the 384 and 512 bit versions) that the
+BLAKE algorithm shall use. This salt shall be expressed
+in full length hexadecimal: 32 (for 16-bytes) or 64
+(for 32-bytes) hexadecimal digits, or rather 16 or 32 pairs
+of hexadecimal digits, ordered from left to right to specify
+the values from index 0 to the last byte. In each pair,
+the left digit stores the high bits of the byte, and the
+right digit stores the low bits of the byte. For example,
+the digit pair
+.B 80
+represents a byte with the decimal value 128, whereas the
+digit pair
+.B 08
+represents a byte with the decimal value 8. The pairs
+are joined without any delimiters, and no byte may be
+omitted. So, for a 16 byte salt where each byte's value
+is its index, the salt is expressed as,
+.BR 000102030405060708090a0b0c0d0e0f ,
+however each letter may be either small or capital.
+If no salt is specified, an all-zeroes salt is used.
+.TP
.B -U
Output checksums in upper-case hexadecimal representation.
.TP