2
0
Fork 0
mirror of https://git.sr.ht/~sircmpwn/mkproof synced 2024-05-04 02:36:03 +02:00
mkproof/argon2i/kats/check-sums.sh
Drew DeVault 87d922c6c6 Add 'argon2i/' from commit '440ceb9612d5a20997e3e12728542df2de713ca4'
git-subtree-dir: argon2i
git-subtree-mainline: 3e7a084af1
git-subtree-split: 440ceb9612
2020-11-25 10:48:57 -05:00

14 lines
243 B
Bash
Executable File

#!/bin/sh
for file in `ls | grep '^[a-z2]*\(_v\)\?[0-9]*$' | xargs`
do
new=`shasum -a 256 $file`
old=`cat $file.shasum`
if [ "$new" = "$old" ]
then
echo $file "\t" OK
else
echo $file "\t" ERROR
fi
done