1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

* clearsig.test, conventional-mdc.test, conventional.test, defs.inc,

encrypt-dsa.test, encrypt.test, genkey1024.test, plain-1.asc,
plain-1-pgp.asc, plain-2.asc, plain-3.asc, pubring.asc, secring.asc,
sigs.test: Rework tests to work properly with a gpg binary that doesn't
have all ciphers and all pk algos. Basically, we test for the ciphers we
have, only test signing with non-160-bit hashes with RSA (we test all
hashes as hashes).  Test all key lengths of AES.
This commit is contained in:
David Shaw 2003-12-31 19:00:35 +00:00
parent 2a785147be
commit e7abe7e909
15 changed files with 1041 additions and 873 deletions

View File

@ -1,3 +1,14 @@
2003-12-31 David Shaw <dshaw@jabberwocky.com>
* clearsig.test, conventional-mdc.test, conventional.test,
defs.inc, encrypt-dsa.test, encrypt.test, genkey1024.test,
plain-1.asc, plain-1-pgp.asc, plain-2.asc, plain-3.asc,
pubring.asc, secring.asc, sigs.test: Rework tests to work properly
with a gpg binary that doesn't have all ciphers and all pk algos.
Basically, we test for the ciphers we have, only test signing with
non-160-bit hashes with RSA (we test all hashes as hashes). Test
all key lengths of AES.
2003-12-05 David Shaw <dshaw@jabberwocky.com>
* Makefile.am: Reenable tests now that the Elgamal signature keys

View File

@ -1,13 +1,9 @@
#!/bin/sh
# Fixme: we should not only do a --verify but also the output.
. $srcdir/defs.inc || exit 3
# ======================================
# I can't compare the out because plain-3 has no LF as last charcater
# but the output has always one. I do not thinkl this is a bug, because
@ -18,14 +14,17 @@ for i in $plain_files plain-large ; do
$GPG --verify x
done
# ======================================
# and once more to check rfc1991
# ======================================
for i in $plain_files plain-large ; do
echo "$usrpass1" | $GPG --passphrase-fd 0 \
--rfc1991 --digest-algo md5 -sat -o x --yes $i
$GPG --verify x
done
if have_cipher_algo "RSA"; then
for i in $plain_files plain-large ; do
$GPG -u $usrkeyid3 --rfc1991 --digest-algo md5 -sat -o x --yes $i
$GPG --verify x
done
fi
# ======================================
# and one with long lines
@ -38,6 +37,7 @@ EOF
echo "$usrpass1" | $GPG --passphrase-fd 0 --clearsign -o x --yes y
$GPG --verify x
# ======================================
# and one with only one long lines
# ======================================
@ -46,6 +46,8 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
EOF
echo "$usrpass1" | $GPG --passphrase-fd 0 --clearsign -o x --yes y
$GPG --verify x
# ======================================
# and one with an empty body
# ======================================
@ -54,6 +56,7 @@ EOF
echo "$usrpass1" | $GPG --passphrase-fd 0 --clearsign -o x --yes y
$GPG --verify x
# ======================================
# and one with one empty line at the end
# ======================================
@ -97,7 +100,3 @@ EOF
echo "$usrpass1" | $GPG --passphrase-fd 0 \
--not-dash-escaped --clearsign -o x --yes y
$GPG --verify x

View File

@ -2,9 +2,31 @@
. $srcdir/defs.inc || exit 3
algos="3des"
if have_cipher_algo "idea"; then
algos="$algos idea"
fi
if have_cipher_algo "cast5"; then
algos="$algos idea"
fi
if have_cipher_algo "blowfish"; then
algos="$algos idea"
fi
if have_cipher_algo "aes"; then
algos="$algos aes aes192 aes256"
fi
if have_cipher_algo "twofish"; then
algos="$algos twofish"
fi
#info Checking conventional encryption
for i in 0 1 2 3 9 10 11 19 20 21 22 23 39 40 41 8192 32000 ; do
for ciph in 3des cast5 blowfish twofish rijndael; do
for ciph in $algos; do
# *BSD's dd can't cope with a count of 0
if test "$i" = "0"; then
: >z
@ -18,4 +40,3 @@ for i in 0 1 2 3 9 10 11 19 20 21 22 23 39 40 41 8192 32000 ; do
cmp z y || error "$ciph/$i: mismatch"
done
done

View File

@ -2,10 +2,6 @@
. $srcdir/defs.inc || exit 3
# temp. hack cause the format for 128 bit blocksize messages may change
GNUPG_ENABLE_TWOFISH=1
export GNUPG_ENABLE_TWOFISH
#info Checking conventional encryption
for i in plain-2 data-32000 ; do
echo "Hier spricht HAL" | $GPG --passphrase-fd 0 -c -o x --yes $i
@ -13,7 +9,29 @@ for i in plain-2 data-32000 ; do
cmp $i y || error "$i: mismatch"
done
for a in cast5 3des twofish; do
algos="3des"
if have_cipher_algo "idea"; then
algos="$algos idea"
fi
if have_cipher_algo "cast5"; then
algos="$algos idea"
fi
if have_cipher_algo "blowfish"; then
algos="$algos idea"
fi
if have_cipher_algo "aes"; then
algos="$algos aes aes192 aes256"
fi
if have_cipher_algo "twofish"; then
algos="$algos twofish"
fi
for a in $algos; do
for i in plain-1 data-80000 ; do
echo "Hier spricht HAL" | $GPG --passphrase-fd 0 \
--cipher-algo $a -c -o x --yes $i
@ -21,4 +39,3 @@ for a in cast5 3des twofish; do
cmp $i y || error "$i: ($a) mismatch"
done
done

View File

@ -9,6 +9,8 @@ usrname1="one"
usrpass1="def"
usrname2="two"
usrpass2=""
usrname3="three"
usrpass3=""
dsa_usrname1="pgp5"
@ -80,6 +82,23 @@ echo_n () {
# cleanup_files="$cleanup_files $*"
#}
have_pubkey_algo () {
if ../g10/gpg --homedir . --version | grep "Pubkey:.*$1" >/dev/null
then
true
else
false
fi
}
have_cipher_algo () {
if ../g10/gpg --homedir . --version | grep "Cipher:.*$1" >/dev/null
then
true
else
false
fi
}
have_hash_algo () {
if ../g10/gpg --homedir . --version | grep "Hash:.*$1" >/dev/null

View File

@ -9,11 +9,33 @@ for i in $plain_files $data_files ; do
cmp $i y || error "$i: mismatch"
done
# and with cast
for i in $plain_files $data_files ; do
$GPG $dsa_keyrings --always-trust --cipher-algo cast5 -e \
-o x --yes -r "$dsa_usrname2" $i
$GPG $dsa_keyrings -o y --yes x
cmp $i y || error "$i: mismatch"
done
algos="3des"
if have_cipher_algo "idea"; then
algos="$algos idea"
fi
if have_cipher_algo "cast5"; then
algos="$algos idea"
fi
if have_cipher_algo "blowfish"; then
algos="$algos idea"
fi
if have_cipher_algo "aes"; then
algos="$algos aes aes192 aes256"
fi
if have_cipher_algo "twofish"; then
algos="$algos twofish"
fi
for ca in $algos ; do
for i in $plain_files $data_files ; do
$GPG $dsa_keyrings --always-trust --cipher-algo $ca -e \
-o x --yes -r "$dsa_usrname2" $i
$GPG $dsa_keyrings -o y --yes x
cmp $i y || error "$i: mismatch"
done
done

View File

@ -8,9 +8,33 @@ for i in $plain_files $data_files ; do
$GPG -o y --yes x
cmp $i y || error "$i: mismatch"
done
for i in $plain_files $data_files ; do
$GPG --always-trust -e -o x --yes -r "$usrname2" --cipher-algo cast5 $i
$GPG -o y --yes x
cmp $i y || error "$i: mismatch"
done
algos="3des"
if have_cipher_algo "idea"; then
algos="$algos idea"
fi
if have_cipher_algo "cast5"; then
algos="$algos idea"
fi
if have_cipher_algo "blowfish"; then
algos="$algos idea"
fi
if have_cipher_algo "aes"; then
algos="$algos aes aes192 aes256"
fi
if have_cipher_algo "twofish"; then
algos="$algos twofish"
fi
for ca in $algos ; do
for i in $plain_files $data_files ; do
$GPG --always-trust -e -o x --yes -r "$usrname2" --cipher-algo $ca $i
$GPG -o y --yes x
cmp $i y || error "$i: mismatch"
done
done

View File

@ -13,6 +13,10 @@ Name-Email: hh@@ddorf.de
Expire-Date: 1
Passphrase: abc
%commit
EOF
if have_pubkey_algo "RSA"; then
../g10/gpg --quiet --batch --quick-random --homedir . --gen-key <<EOF
Key-Type: RSA
Key-Length: 1024
Key-Usage: sign,encrypt
@ -23,4 +27,4 @@ Expire-Date: 2
Passphrase: abc
%commit
EOF
fi

View File

@ -1,29 +1,27 @@
This is an encrypted version of plain-1 for
the PGP test key 0xCB879DE9 using CAST.
This is an encrypted version of plain-1 for the PGP test key
0xCB879DE9 using 3DES.
-----BEGIN PGP MESSAGE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: D0P6k4cfvaTDkyRQM+/MpOoQW6xT5Swm
Version: GnuPG v1.3.5-cvs (GNU/Linux)
qANQR1DBwA4DW3oC8MuHnekQAwDj3tkgY6XU+e1k9XOlSSzIPGenxgOZ8VSvuEUd
L+/1E9T2KJmH5CGyH4Hz6wIOLtFSd1A13yYRyHNhxD/nGgcjg6etZNVQnjPuRp5k
O4jYz2BCstkjz793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O1TMRhCqMyXozmsBJoWdCIQTQiVNyrbgLi+ss
wKiKq4AymLXFMSpI4TOCc+rKiAdMpLbNO8Ndox5hZEGz+mqg84cgC/rkJc/P03KR
uo0+rb5eSfJw9t+uzBXDmFHynayj0CB8wW9iwXknpdlHDo1z
=7Otr
-----END PGP MESSAGE-----

View File

@ -1,27 +1,26 @@
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.2.4rc1 (GNU/Linux)
Comment: Key available at http://www.jabberwocky.com/david/keys.asc
Version: GnuPG v1.3.5-cvs (GNU/Linux)
hQEOAwDZAi05oo3jEAP/WcLsks2vVpWkKsRKzTdJrKyEV+aD+ApjzXSjrJnq8sdA
h2uq4N1pjIyR9BVFifxozPNaSnhT6kOwt+fQTo9ogCsPB1mtjn5oSTUJxIEILMwY
77Sb4R8okltH2eSXMDQMy1iul+VjhPype2OgpPwl554V0MsiIZCL+aI6xlse9YcD
/iP65EHcVpAF4ugqGaF8SSH4J0X5ZFBZps2iVN5bwKqANJyFQ/Wb/SxkE63xR0kF
L9pROi8C4NWzF67QvbsU5WCErhbYtBUvChvFk84CY1gPFA8pGuU5vQnLimLetlS1
izbOBpveB/8/OD1iYQ31rowpxdKkmU1yMC7Dhh4FsJTq0ukB/7VaL5YTBTRlAgbG
S8Gu5fIP/k+tKHI7qSkRtZ7w78yA9CxOaD5DXx0HqQQefAOVDxYSsAgLHpzBMXD5
AEAjaq/jGYOEydc7S5SJq+cJsxRQz3h4I3eOno1+mVKQeEDH7QsCZXGcZbCE7Gbj
nrlsx89X5cQ0BtryNc0SIH01Regtn+uxFLvK0rvieg6y4g4pex4elDv+vYokTWH2
a1QROvOmHQiYlb5dk7/i3JlzzLIu43eLgcwxuAb1vHTCUGh3q1IAr+wpqX5FomRw
wz/Fr3d89z+Zi0MjH94HiBbGbbC0iRKmcfz3wJfl4R+2nvEFn4vdSk7Qg9Mf4hrJ
V0S12khyqW9/mUstxahLQS19pgq3J+Y85idXqk6iCgHIV6lnSIak7JQYgS+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C4fvi3g6rr360ATr5f82Mr8GPa3x21XLdIFZ04vTe
yE3kwdcarkiT1QQLnOXk/yRBxJwiA5loL9crVdC2WyOV3B3DG33/yas8krw4BYWw
DzAgxNtZR4MQXcj83WwoflMo43dYUq3Pk7ZnzKN04O8m9w0gxVxCpXu4ds9emMdJ
WS4eNTPUOnzeWttkfYcd3SarK6COi9iBosFT2QF80FwDSlH3XdEo7rD1j6WJ5GeX
RbHDvIm9g0xB23S7jmtfdqIHndvPKLmwW2B1VC1mbjcDUo6pyUb31GBd1zFVhT69
ijhiEwBlr8uWxROdwJd/7IVIB/RYHLr5P3M8p08hdEdS1IMQbNEE4Y25fRdcc6g8
fVEAExbG01K1EJhRLxoHzgnAkxDTV2HSwlqbFvKEzUfE+rMHApmSX2lfMvKgueYz
JpA7nxuf79Wk17bjNvuVQwokhXpzw7FyPPdD7h4Z30LW0ozvSVgs2tigWCAysIKB
3ZIolchqBoj0ddJgbPXrx09r1oCckEmdj1KtZsci9m+CFA8d22uxXBec0HkEHZpr
EHlqEZfNTmqowoDtJ8KT+S8VPsALEyDnrqm3s4i44OwgvsPiKOST1xwk6lIJ5isu
fO76RHTQ2jc8z7+sKyNffVugfjYVRj54/8Gj34QkrVo/42rlvg398tpbAbWuNq8w
PM//M6eVD4IRDYEGrGOk7prd9mgdbWnOWpasirhr41kePu2vsrIUkJWHmOgdMQDH
cSSzI8C5NpafROHAhMsUymcJ5dKksvPubh5IAdgtH+m6yDnNUJT8s6WV1f1RpSsQ
L/n3dhti76l0XtfZ7aST8j46B1JPNDx8+r6Xl9IUbSU=
=xK46
-----END PGP MESSAGE-----

View File

@ -1,33 +1,31 @@
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.2.4rc1 (GNU/Linux)
Comment: Key available at http://www.jabberwocky.com/david/keys.asc
Version: GnuPG v1.3.5-cvs (GNU/Linux)
hQEOAwDZAi05oo3jEAP/TpkKS1vrVTxJtSaCZBcU6zGbGUKC25EGjeLv7GZqND+E
8mGPH4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0pb12v/0YXAQlsrlJJNPCUW5hYFv/vH1rHzR98xx
nx4PXElm8VUuhKDxdVi9Ipo8fL9Amu3PwYonzOck3R2W4wwlmcopVQQ=
=Ng8B
-----END PGP MESSAGE-----

View File

@ -1,14 +1,13 @@
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.2.4rc1 (GNU/Linux)
Comment: Key available at http://www.jabberwocky.com/david/keys.asc
Version: GnuPG v1.3.5-cvs (GNU/Linux)
hQEOAwDZAi05oo3jEAP/RZyGKlqp+9stGNJ0+ctQISmWwsZwvtQGUo9AXGQnZiMh
zhAT/h0z8pzXQceOV7j/cf1iaHYqLVnkUa9Wipp+oda7EwPNcuodaFX3zkB95Qrg
/BmmR6+0sjrwbMB+hi3csgrj+aCFTTruKmzJkS+j4YtrYlqf4VkkdFeteWeO3CkD
/1qALMXO/ruGP7JkrPAqksAoQAWFlFCC7dFyaUKgxV6kCaSgJgIS3MG4pfnI/LNr
MBcS0jqXFIw8KQFOJbMQVj/dWqty+7ffk6C2A7i+X7A4FyeEm8NmUGro2nL1BYTs
rZRMHC8PLuP32skmGdrdHh2fv9AYQBy4ufdPUy9L/Umb0mwB3PINTwMlq55vrVUF
oHxelcPRtA8SPj6o38PEpFh9U5lTAQl2uDMK3yxidoNwd0H0w2UsbTrVgMU0opMH
8CzXBdbDPoZNi/m3H6HcudWYuJOct3fkChj7ELnyuNiZXGXNlb9VZkWABi3+w70=
=AURw
hQEOA6urKKJHvid1EAQAreXx68NPUPpiNhqRyM//Y97N8hX5iAWq3WxXTa8D6Hy9
81Jy2wI4IeDhHIoWuXMIX2oVL//V1+LyLkrF/tutBVvqct0TUDUWqb4Ydpfk2l5j
FfSybWW1fS4D1e0KVB3Lfj2Y4cCoT/+zyq7jUKQE++qNefPBzeaRWY4qeI6xXF8E
AMj01HPe0ZwIBWqiIYv91Q7rGzEZm0ROPilgSQjUvCdsNQGhZpFGTl6uMSU0lmp8
SD2EKv3xGeo2nMPy/Xp4JoYAMW+fjJh+wM6uT84nJgCVaeWyR7HAfF1U4rzqz7DF
amPozuwuZiyjoo/wB1irZSl90t5Oa69oMesZtGMvwBN10mMBM0TotT4gjgviv5uY
kLjD7DM79xy0drptNypmcVcjnDunM6bSEhTyq/fahdaULTYcwSOTXVMyesNpmLCb
ziayleyuSaXPxIqWTgSfkab/W2FGWZvbexYaSaWXmDqsyzs81o0=
=JDKF
-----END PGP MESSAGE-----

File diff suppressed because it is too large Load Diff

View File

@ -1,53 +1,73 @@
This is a test secret keyring simply stored by GNUPG so that it is
easier to make diff files.
sec 1024R/2D574CD0 2003-12-05 Test one (pp=def) <one@example.com>
ssb 1024g/39A28DE3 2003-12-05
sec 1024R/2E4BBF50 2003-12-05 Test two (no pp) <two@example.com>
sec 1024D/D74C5F22 2003-12-31 Test one (pp=def) <one@example.com>
ssb 1024g/47BE2775 2003-12-31
sec 1024D/C40FDECF 2003-12-31 Test two (no pp) <two@example.com>
ssb 1024g/B27907AA 2003-12-31
sec 1024R/ECABF51D 2003-12-31 Test three (no pp) <three@example.com>
-----BEGIN PGP PRIVATE KEY BLOCK-----
Version: GnuPG v1.2.4rc1 (GNU/Linux)
Version: GnuPG v1.3.5-cvs (GNU/Linux)
lQH8BD/QD5YBBADCMlfBdv6UYURjCN9BCvqFbT/mm2PMWmnVniQkNqj2XxyfBjqb
zyQotcFIDEdzQ84OssEGXNOOnpNzMO9Ae8yTN8g+GcW1dpVQqav9RK5BMiPcz2SW
XMUBMwvm9GxYryiIaIWJehLLtrYaz13ssXOi7v3EmllgNv0GLYL2A3VPmwAGKf4D
AwIzPhEDdNh2Q2AjfyaeF75kjNLag1BU0zaJk/75wvNO/j0aGsbxbpAANiJUhYQo
Z6cguKhSrrNFCH4NKSI0leREVYSNdxhBuGuxZkWXxUwuEeP0FZHz5DAqVM24PSNQ
lmJ+og7rMZBZRvleEdiFPJQ5hQOb3gRSU7fi88vlvc0FUwrUpt0RYAC2ok+Qiu5s
0CqjJl1CqpX6nm0AniCzASwW9KyU//ZX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IA3LWUXwDxr0OL1MMRuLrK
PZ2wrRZRmGU0IDDx3zBX5VMsR/WNMwPLo8iimBT2F7ez3umPqqrugRtJj6ryF3t3
aQH+Kfst9psjWkmpBrEO99j4Gq6orYHnzd4fSnnOJEv4/ObdXrGBGwvV5RZblXCF
A2kB3ShaYowpengtqBVzpD0cCZ6ntCZUZXN0IHRocmVlIChubyBwcCkgPHRocmVl
QGV4YW1wbGUuY29tPoi1BBMBAgAfBQI/8lO9AhsDBwsJCAcDAgEDFQIDAxYCAQIe
AQIXgAAKCRDRILYm7Kv1HWpDA/9sINfVYaTW7TOQolYn9Vee4feOTpl6+S4dkgLC
OWoDG/V17k/cl7Jr/iQ+YRBOi0S/fFwMBn72kEvdOtmiUAqHGQFnTyXhBLLvqTJ/
yEHR6hnZK+zsusY8EmvoIdfSTIOJqkeACEEpCr0aE0qkgBm4voMrZ05pAO2hFJba
IHWHiQ==
=52aT
-----END PGP PRIVATE KEY BLOCK-----

View File

@ -9,15 +9,8 @@ for i in $plain_files $data_files; do
cmp $i y || error "$i: mismatch"
done
# TODO: add the new SHAs here once we allow them to be used in new
# documents.
hash_algo_list="ripemd160 sha1 md5"
if have_hash_algo "SHA256"; then
hash_algo_list="$hash_algo_list sha256"
fi
for da in $hash_algo_list ; do
# Using the DSA sig key - only 160 bit hashes
for da in ripemd160 sha1 ; do
for i in $plain_files; do
echo "$usrpass1" | $GPG --passphrase-fd 0 --digest-algo $da \
-s -o x --yes $i
@ -27,3 +20,24 @@ for da in $hash_algo_list ; do
break
done
done
# TODO: add the new SHAs here once we allow them to be used in new
# documents.
if have_cipher_algo "RSA"; then
# Using the RSA sig key - all hashes
hash_algo_list="ripemd160 sha1 md5"
if have_hash_algo "SHA256"; then
hash_algo_list="$hash_algo_list sha256"
fi
for da in $hash_algo_list ; do
for i in $plain_files; do
$GPG -u $usrkeyid3 --digest-algo $da -s -o x --yes $i
$GPG -o y --yes x
cmp $i y || error "$i: mismatch"
# process only the first one
break
done
done
fi