1998-02-26 17:56:31 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
1998-09-14 12:33:57 +02:00
|
|
|
. $srcdir/defs.inc || exit 3
|
1998-09-28 21:25:31 +02:00
|
|
|
|
2002-06-29 15:31:13 +02:00
|
|
|
../g10/gpg --quiet --batch --quick-random --homedir . --gen-key <<EOF
|
|
|
|
Key-Type: DSA
|
|
|
|
Key-Length: 1024
|
|
|
|
Subkey-Type: ELG-E
|
|
|
|
Subkey-Length: 1024
|
|
|
|
Name-Real: Harry H.
|
|
|
|
Name-Comment: test key
|
|
|
|
Name-Email: hh@@ddorf.de
|
|
|
|
Expire-Date: 1
|
|
|
|
Passphrase: abc
|
|
|
|
%commit
|
* 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-31 20:00:35 +01:00
|
|
|
EOF
|
|
|
|
|
|
|
|
if have_pubkey_algo "RSA"; then
|
|
|
|
../g10/gpg --quiet --batch --quick-random --homedir . --gen-key <<EOF
|
2002-06-29 15:31:13 +02:00
|
|
|
Key-Type: RSA
|
|
|
|
Key-Length: 1024
|
|
|
|
Key-Usage: sign,encrypt
|
|
|
|
Name-Real: Harry A.
|
|
|
|
Name-Comment: RSA test key
|
|
|
|
Name-Email: hh@@ddorf.de
|
|
|
|
Expire-Date: 2
|
|
|
|
Passphrase: abc
|
|
|
|
%commit
|
1998-02-26 17:56:31 +01:00
|
|
|
EOF
|
* 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-31 20:00:35 +01:00
|
|
|
fi
|