]> Sergey Matveev's repositories - meta4ra.git/commitdiff
nettle-hash's Streebog is faster
authorSergey Matveev <stargrave@stargrave.org>
Sun, 21 May 2023 07:31:41 +0000 (10:31 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 21 May 2023 07:31:41 +0000 (10:31 +0300)
contrib/streebog256sum
contrib/streebog512sum

index 9a4c9be273ab5660363237db5ce2cf0b04c0094f..d5c4dc623bdd10557dacaea385dd5023f20e14ff 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-exec rhash --printf "%{gost12-256}\n" -
+nettle-hash --algorithm=streebog256 --raw | hexdump -v -e '/1 "%02x"'
index 51c25b0aef7011f3322ffd9ca0c6bc4f8ef3d6d2..c3fd7a41bc793d6e52d1957949dc3e039ec49dfc 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-exec rhash --printf "%{gost12-512}\n" -
+nettle-hash --algorithm=streebog512 --raw | hexdump -v -e '/1 "%02x"'