mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-18 14:17:03 +01:00
* clearsig.test, sigs.test: Properly detect RSA being missing, and use the
proper key for doing an RSA test.
This commit is contained in:
parent
bbd5cda569
commit
74eadbf99b
@ -1,3 +1,8 @@
|
|||||||
|
2004-02-09 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* clearsig.test, sigs.test: Properly detect RSA being missing, and
|
||||||
|
use the proper key for doing an RSA test.
|
||||||
|
|
||||||
2003-12-31 David Shaw <dshaw@jabberwocky.com>
|
2003-12-31 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* clearsig.test, conventional-mdc.test, conventional.test,
|
* clearsig.test, conventional-mdc.test, conventional.test,
|
||||||
|
@ -19,9 +19,9 @@ done
|
|||||||
# and once more to check rfc1991
|
# and once more to check rfc1991
|
||||||
# ======================================
|
# ======================================
|
||||||
|
|
||||||
if have_cipher_algo "RSA"; then
|
if have_pubkey_algo "RSA"; then
|
||||||
for i in $plain_files plain-large ; do
|
for i in $plain_files plain-large ; do
|
||||||
$GPG -u $usrkeyid3 --rfc1991 --digest-algo md5 -sat -o x --yes $i
|
$GPG -u $usrname3 --rfc1991 --digest-algo md5 -sat -o x --yes $i
|
||||||
$GPG --verify x
|
$GPG --verify x
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
@ -24,7 +24,7 @@ done
|
|||||||
# TODO: add the new SHAs here once we allow them to be used in new
|
# TODO: add the new SHAs here once we allow them to be used in new
|
||||||
# documents.
|
# documents.
|
||||||
|
|
||||||
if have_cipher_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 "SHA256"; then
|
if have_hash_algo "SHA256"; then
|
||||||
@ -33,7 +33,7 @@ if have_cipher_algo "RSA"; then
|
|||||||
|
|
||||||
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
|
||||||
$GPG -u $usrkeyid3 --digest-algo $da -s -o x --yes $i
|
$GPG -u $usrname3 --digest-algo $da -s -o x --yes $i
|
||||||
$GPG -o y --yes x
|
$GPG -o y --yes x
|
||||||
cmp $i y || error "$i: mismatch"
|
cmp $i y || error "$i: mismatch"
|
||||||
# process only the first one
|
# process only the first one
|
||||||
|
Loading…
x
Reference in New Issue
Block a user