Skip to content

Commit

Permalink
fixup sha1 naming confusions
Browse files Browse the repository at this point in the history
  • Loading branch information
rurban committed Aug 18, 2022
1 parent 58a94dc commit a150b18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ HashInfo g_hashes[] =
# define SHA1_64_VERIF 0x00000000
#else
# define SHA1_VERIF 0x6AF411D8
# define SHA1_32_VERIF 0x995397D5
# define SHA1_64_VERIF 0xB3122757
# define SHA1_32_VERIF 0xB3122757
# define SHA1_64_VERIF 0x995397D5
#endif
{ sha1_160, 160, SHA1_VERIF, "sha1-160", "SHA1", POOR},
{ sha1_64, 64, SHA1_64_VERIF,"sha1-64", "SHA1, low 64 bits", POOR},
{ sha1_32, 32, SHA1_32_VERIF,"sha1-32", "SHA1, low 32 bits", POOR},
{ sha1_32, 32, SHA1_32_VERIF,"sha1_32", "SHA1, low 32 bits", POOR},
{ sha1_64, 64, SHA1_64_VERIF,"sha1_64", "SHA1, low 64 bits", POOR},
{ sha2_224, 224, 0x407AA518, "sha2-224", "SHA2-224", POOR, {} },
{ sha2_224_64, 64, 0xF3E40ECA, "sha2-224_64", "SHA2-224, low 64 bits", POOR, {} },
{ sha2_256, 256, 0xEBDA2FB1, "sha2-256", "SHA2-256", GOOD, {} },
Expand Down
2 changes: 1 addition & 1 deletion testpar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fi
test -n "$@" && r="if /$@/"
# 'build/SMHasher --test=Sparse,Permutation,Cyclic,TwoBytes,DiffDist,Text,Zeroes,Seed,PerlinNoise,Sanity,Avalanche,BIC,Diff,MomentChi2,Prng {} 2>&1 >partests/{}'

build/SMHasher --list|perl -alne"print \$F[0] $r" | \
build/SMHasher --listnames | \
parallel -j4 --bar \
'build/SMHasher {} 2>&1 >partests/{}.txt'

Expand Down

0 comments on commit a150b18

Please sign in to comment.