mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-02 12:01:32 +01:00
* sigs.test, mds.test: Add tests for SHA-224, SHA-384, and SHA-512.
This commit is contained in:
parent
f0902a6aef
commit
ebdd458f82
@ -1,3 +1,8 @@
|
|||||||
|
2006-04-19 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* sigs.test, mds.test: Add tests for SHA-224, SHA-384, and
|
||||||
|
SHA-512.
|
||||||
|
|
||||||
2006-04-11 Werner Koch <wk@g10code.com>
|
2006-04-11 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
* armor.test: New.
|
* armor.test: New.
|
||||||
|
@ -20,6 +20,12 @@ test_one ":1:" "D41D8CD98F00B204E9800998ECF8427E"
|
|||||||
test_one ":2:" "DA39A3EE5E6B4B0D3255BFEF95601890AFD80709"
|
test_one ":2:" "DA39A3EE5E6B4B0D3255BFEF95601890AFD80709"
|
||||||
# RMD160
|
# RMD160
|
||||||
test_one ":3:" "9C1185A5C5E9FC54612808977EE8F548B2258D31"
|
test_one ":3:" "9C1185A5C5E9FC54612808977EE8F548B2258D31"
|
||||||
|
# SHA-224
|
||||||
|
if have_hash_algo "SHA224"; then
|
||||||
|
test_one ":11:" "D14A028C2A3A2BC9476102BB288234C415A2B01F828EA62AC5B3E42F"
|
||||||
|
else
|
||||||
|
echo "Hash algorithm SHA-224 is not installed (not an error)"
|
||||||
|
fi
|
||||||
# SHA-256
|
# SHA-256
|
||||||
if have_hash_algo "SHA256"; then
|
if have_hash_algo "SHA256"; then
|
||||||
test_one ":8:" "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855"
|
test_one ":8:" "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855"
|
||||||
@ -45,6 +51,9 @@ echo_n "abcdefghijklmnopqrstuvwxyz" | $GPG --with-colons --print-mds >y
|
|||||||
test_one ":1:" "C3FCD3D76192E4007DFB496CCA67E13B"
|
test_one ":1:" "C3FCD3D76192E4007DFB496CCA67E13B"
|
||||||
test_one ":2:" "32D10C7B8CF96570CA04CE37F2A19D84240D3A89"
|
test_one ":2:" "32D10C7B8CF96570CA04CE37F2A19D84240D3A89"
|
||||||
test_one ":3:" "F71C27109C692C1B56BBDCEB5B9D2865B3708DBC"
|
test_one ":3:" "F71C27109C692C1B56BBDCEB5B9D2865B3708DBC"
|
||||||
|
if have_hash_algo "SHA224"; then
|
||||||
|
test_one ":11:" "45A5F72C39C5CFF2522EB3429799E49E5F44B356EF926BCF390DCCC2"
|
||||||
|
fi
|
||||||
if have_hash_algo "SHA256"; then
|
if have_hash_algo "SHA256"; then
|
||||||
test_one ":8:" "71C480DF93D6AE2F1EFAD1447C66C9525E316218CF51FC8D9ED832F2DAF18B73"
|
test_one ":8:" "71C480DF93D6AE2F1EFAD1447C66C9525E316218CF51FC8D9ED832F2DAF18B73"
|
||||||
fi
|
fi
|
||||||
|
@ -27,9 +27,18 @@ done
|
|||||||
if have_pubkey_algo "RSA"; then
|
if have_pubkey_algo "RSA"; then
|
||||||
# Using the RSA sig key - all hashes
|
# Using the RSA sig key - all hashes
|
||||||
hash_algo_list="ripemd160 sha1 md5"
|
hash_algo_list="ripemd160 sha1 md5"
|
||||||
|
if have_hash_algo "SHA224"; then
|
||||||
|
hash_algo_list="$hash_algo_list sha224"
|
||||||
|
fi
|
||||||
if have_hash_algo "SHA256"; then
|
if have_hash_algo "SHA256"; then
|
||||||
hash_algo_list="$hash_algo_list sha256"
|
hash_algo_list="$hash_algo_list sha256"
|
||||||
fi
|
fi
|
||||||
|
if have_hash_algo "SHA384"; then
|
||||||
|
hash_algo_list="$hash_algo_list sha384"
|
||||||
|
fi
|
||||||
|
if have_hash_algo "SHA512"; then
|
||||||
|
hash_algo_list="$hash_algo_list sha512"
|
||||||
|
fi
|
||||||
|
|
||||||
for da in $hash_algo_list ; do
|
for da in $hash_algo_list ; do
|
||||||
for i in $plain_files; do
|
for i in $plain_files; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user