diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-02-11 19:02:10 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-02-11 19:02:10 +0100 |
commit | 5e914033bd81b91ba517482fe20bd2b8c0494459 (patch) | |
tree | 20c3f770bf4b15b0e50d767cfbd3f597efcb39e5 /openpgp/tests | |
parent | 30ac57a2a17b4595d9e5bccc6c0073810ffcc429 (diff) |
openpgp: Enable weak hash algorithms.
- Now that we have the policy trait, we can enable weak hash
algorithms. Enable MD5 and RipeMD160.
- Add test vectors.
Diffstat (limited to 'openpgp/tests')
-rw-r--r-- | openpgp/tests/data/keys/hash-algos/MD5-private.gpg | bin | 0 -> 3658 bytes | |||
-rw-r--r-- | openpgp/tests/data/keys/hash-algos/MD5.gpg | bin | 0 -> 1717 bytes | |||
-rw-r--r-- | openpgp/tests/data/keys/hash-algos/README | 7 | ||||
-rw-r--r-- | openpgp/tests/data/keys/hash-algos/RipeMD160-private.gpg | bin | 0 -> 3665 bytes | |||
-rw-r--r-- | openpgp/tests/data/keys/hash-algos/RipeMD160.gpg | bin | 0 -> 1723 bytes | |||
-rw-r--r-- | openpgp/tests/data/keys/hash-algos/SHA1-private.gpg | bin | 0 -> 3660 bytes | |||
-rw-r--r-- | openpgp/tests/data/keys/hash-algos/SHA1.gpg | bin | 0 -> 1718 bytes |
7 files changed, 7 insertions, 0 deletions
diff --git a/openpgp/tests/data/keys/hash-algos/MD5-private.gpg b/openpgp/tests/data/keys/hash-algos/MD5-private.gpg Binary files differnew file mode 100644 index 00000000..80367665 --- /dev/null +++ b/openpgp/tests/data/keys/hash-algos/MD5-private.gpg diff --git a/openpgp/tests/data/keys/hash-algos/MD5.gpg b/openpgp/tests/data/keys/hash-algos/MD5.gpg Binary files differnew file mode 100644 index 00000000..17d5286e --- /dev/null +++ b/openpgp/tests/data/keys/hash-algos/MD5.gpg diff --git a/openpgp/tests/data/keys/hash-algos/README b/openpgp/tests/data/keys/hash-algos/README new file mode 100644 index 00000000..359a3a14 --- /dev/null +++ b/openpgp/tests/data/keys/hash-algos/README @@ -0,0 +1,7 @@ +These keys were created using GnuPG: + + % export GNUPGHOME=$(mktemp -d) + % gpg --cert-digest-algo MD5 --quick-generate-key MD5 + [...] + % gpg --export-secret-keys MD5 > MD5-private.gpg + % gpg --export MD5 > MD5.gpg diff --git a/openpgp/tests/data/keys/hash-algos/RipeMD160-private.gpg b/openpgp/tests/data/keys/hash-algos/RipeMD160-private.gpg Binary files differnew file mode 100644 index 00000000..be3dc1ae --- /dev/null +++ b/openpgp/tests/data/keys/hash-algos/RipeMD160-private.gpg diff --git a/openpgp/tests/data/keys/hash-algos/RipeMD160.gpg b/openpgp/tests/data/keys/hash-algos/RipeMD160.gpg Binary files differnew file mode 100644 index 00000000..c420d92f --- /dev/null +++ b/openpgp/tests/data/keys/hash-algos/RipeMD160.gpg diff --git a/openpgp/tests/data/keys/hash-algos/SHA1-private.gpg b/openpgp/tests/data/keys/hash-algos/SHA1-private.gpg Binary files differnew file mode 100644 index 00000000..c8596972 --- /dev/null +++ b/openpgp/tests/data/keys/hash-algos/SHA1-private.gpg diff --git a/openpgp/tests/data/keys/hash-algos/SHA1.gpg b/openpgp/tests/data/keys/hash-algos/SHA1.gpg Binary files differnew file mode 100644 index 00000000..37f0ee71 --- /dev/null +++ b/openpgp/tests/data/keys/hash-algos/SHA1.gpg |