aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-26 22:44:32 +0100
committerMattias Andrée <maandree@kth.se>2022-02-26 23:21:04 +0100
commit6c293f272c62edffb3a749230ebb7469e0e969d9 (patch)
tree02062841a5be49515b15cc75f1b6703b9f89f017
parentUpdate clean rule in Makefile (diff)
downloadsha3sum-6c293f272c62edffb3a749230ebb7469e0e969d9.tar.gz
sha3sum-6c293f272c62edffb3a749230ebb7469e0e969d9.tar.bz2
sha3sum-6c293f272c62edffb3a749230ebb7469e0e969d9.tar.xz
Add shake128sum and rawshake128sum
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--Makefile4
-rw-r--r--README2
-rwxr-xr-xtest2
-rw-r--r--xsum.man2
4 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4c6efde..cd71a99 100644
--- a/Makefile
+++ b/Makefile
@@ -16,8 +16,10 @@ BIN =\
sha3-256sum\
sha3-384sum\
sha3-512sum\
+ rawshake128sum\
rawshake256sum\
rawshake512sum\
+ shake128sum\
shake256sum\
shake512sum
@@ -34,8 +36,10 @@ sha3-224sum = SHA3-224
sha3-256sum = SHA3-256
sha3-384sum = SHA3-384
sha3-512sum = SHA3-512
+rawshake128sum = RawSHAKE128
rawshake256sum = RawSHAKE256
rawshake512sum = RawSHAKE512
+shake128sum = SHAKE128
shake256sum = SHAKE256
shake512sum = SHAKE512
diff --git a/README b/README
index 74157db..fb8ce9d 100644
--- a/README
+++ b/README
@@ -11,8 +11,10 @@ SYNOPSIS
sha3-256sum [option ...] [file ...]
sha3-384sum [option ...] [file ...]
sha3-512sum [option ...] [file ...]
+ shake128sum [option ...] [file ...]
shake256sum [option ...] [file ...]
shake512sum [option ...] [file ...]
+ rawshake128sum [option ...] [file ...]
rawshake256sum [option ...] [file ...]
rawshake512sum [option ...] [file ...]
diff --git a/test b/test
index 9f07f0a..62f0e85 100755
--- a/test
+++ b/test
@@ -36,11 +36,13 @@ test "$(printf '' | ./sha3-224sum -lu)" = '6B4E03423667DBB73B6E15454F0EB1ABD4597
test "$(printf '' | ./sha3-224sum -b)" = "$(printf '\153\116\003\102\066\147\333\267\073\156\025\105\117\016\261\253\324\131\177\232\033\007\216\077\133\132\153\307')"
+test "$(printf '' | ./rawshake128sum -N 128)" = 'fa019a3b17630df6014853b5470773f1 -'
test "$(printf '' | ./rawshake256sum -N 128)" = '3a1108d4a90a31b85a10bdce77f4bfbd -'
test "$(printf '' | ./rawshake256sum -N 8)" = '3a -'
test "$(printf '' | ./rawshake512sum -N 128)" = '0ae7dac687c3525d5c2a6c4119ea3968 -'
+test "$(printf '' | ./shake128sum -N 128)" = '7f9c2ba4e88f827d616045507605853e -'
test "$(printf '' | ./shake256sum -N 128)" = '46b9dd2b0ba88d13233b3feb743eeb24 -'
test "$(printf '' | ./shake256sum -N 8)" = '46 -'
test "$(printf '' | ./shake512sum -N 128)" = 'ae1b4eea1eaf5ea633e66045f03ff11b -'
diff --git a/xsum.man b/xsum.man
index 8b6c261..0d2006b 100644
--- a/xsum.man
+++ b/xsum.man
@@ -107,8 +107,10 @@ or if you know what you are doing; apart from
which is intended to
.I always
be used with
+.BR shake128sum (1),
.BR shake256sum (1),
.BR shake512sum (1),
+.BR rawshake128sum (1),
.BR rawshake256sum (1),
and
.BR rawshake512sum (1).