diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-03-02 13:21:27 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-03-02 15:05:17 -0600 |
commit | b07a0c996af1f5045aa69478fd0b07382fe5b377 (patch) | |
tree | e852562027076395ff51e2cc1983d658c2c43a66 | |
parent | 7385d5d5eeb52b4559fc106c1dd4137976a64da9 (diff) | |
download | cryptography-b07a0c996af1f5045aa69478fd0b07382fe5b377.tar.gz cryptography-b07a0c996af1f5045aa69478fd0b07382fe5b377.tar.bz2 cryptography-b07a0c996af1f5045aa69478fd0b07382fe5b377.zip |
add RSA/DSA PKCS1 public keys
unenc-rsa-pkcs8.pub.pem is PEM PKCS1 formatted public key converted from
the subjectPublicKeyInfo version
dsa.pub.pem is the DSA key from the ruby OpenSSL tests
-rw-r--r-- | docs/development/test-vectors.rst | 7 | ||||
-rw-r--r-- | vectors/cryptography_vectors/asymmetric/public/PKCS1/dsa.pub.pem | 7 | ||||
-rw-r--r-- | vectors/cryptography_vectors/asymmetric/public/PKCS1/rsa.pub.pem | 5 |
3 files changed, 18 insertions, 1 deletions
diff --git a/docs/development/test-vectors.rst b/docs/development/test-vectors.rst index a0849a40..718678bf 100644 --- a/docs/development/test-vectors.rst +++ b/docs/development/test-vectors.rst @@ -33,6 +33,9 @@ Asymmetric ciphers `unenc-rsa-pkcs8.pem`_, `pkcs12_s2k_pem.c`_. The contents of `enc2-rsa-pkcs8.pem`_ was re-encrypted using a stronger PKCS#8 cipher. * `Botan's ECC private keys`_. +* `asymmetric/public/PKCS1/dsa.pub.pem`_ is a PKCS1 DSA public key from the + Ruby test suite. + Custom Asymmetric Vectors ~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -71,7 +74,8 @@ Custom Asymmetric Vectors `OpenSSL example key`_ for RSA. * DER conversions of `enc-rsa-pkcs8.pem`_, `enc2-rsa-pkcs8.pem`_, and `unenc-rsa-pkcs8.pem`_. - +* ``asymmetric/public/PKCS1/rsa.pub.pem`` is a PKCS1 conversion of the public + key from ``asymmetric/PKCS8/unenc-rsa-pkcs8.pem``. X.509 ~~~~~ @@ -237,3 +241,4 @@ header format (substituting the correct information): .. _`testx509.pem`: https://github.com/openssl/openssl/blob/master/test/testx509.pem .. _`DigiCert Global Root G3`: http://cacerts.digicert.com/DigiCertGlobalRootG3.crt .. _`root data`: https://hg.mozilla.org/projects/nss/file/25b2922cc564/security/nss/lib/ckfw/builtins/certdata.txt#l2053 +.. _`asymmetric/public/PKCS1/dsa.pub.pem`: https://github.com/ruby/ruby/blob/4ccb387f3bc436a08fc6d72c4931994f5de95110/test/openssl/test_pkey_dsa.rb#L53 diff --git a/vectors/cryptography_vectors/asymmetric/public/PKCS1/dsa.pub.pem b/vectors/cryptography_vectors/asymmetric/public/PKCS1/dsa.pub.pem new file mode 100644 index 00000000..a2ce0bb0 --- /dev/null +++ b/vectors/cryptography_vectors/asymmetric/public/PKCS1/dsa.pub.pem @@ -0,0 +1,7 @@ +-----BEGIN DSA PUBLIC KEY----- +MIHfAkEAyJSJ+g+P/knVcgDwwTzC7Pwg/pWs2EMd/r+lYlXhNfzg0biuXRul8VR4 +VUC/phySExY0PdcqItkR/xYAYNMbNwJBAOoV57X0FxKO/PrNa/MkoWzkCKV/hzhE +p0zbFdsicw+hIjJ7S6Sd/FlDlo89HQZ2FuvWJ6wGLM1j00r39+F2qbMCFQCrkhIX +SG+is37hz1IaBeEudjB2HQJAR0AloavBvtsng8obsjLb7EKnB+pSeHr/BdIQ3VH7 +fWLOqqkzFeRrYMDzUpl36XktY6Yq8EJYlW9pCMmBVNy/dQ== +-----END DSA PUBLIC KEY----- diff --git a/vectors/cryptography_vectors/asymmetric/public/PKCS1/rsa.pub.pem b/vectors/cryptography_vectors/asymmetric/public/PKCS1/rsa.pub.pem new file mode 100644 index 00000000..6db528cf --- /dev/null +++ b/vectors/cryptography_vectors/asymmetric/public/PKCS1/rsa.pub.pem @@ -0,0 +1,5 @@ +-----BEGIN RSA PUBLIC KEY----- +MIGJAoGBALskegl+DrI3Msw5Z63xnj1rgoPR0KykwBi+jZgAwHv/B0TJyhy6NuEn +af+x442L7lepOqoWQzlUGXyuaSQU9mT/vHTGZ2xM8QJJaccr4eGho0MU9HePyNCF +WjWVrGKpwSEAd6CLlzC0Wiy4kC9IoAUoS/IPjeyLTQNCddatgcARAgMBAAE= +-----END RSA PUBLIC KEY----- |