From 30e5ee2493587c284b2392ba24ff65b60e4b0095 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Fri, 5 Jan 2024 15:03:57 -0300 Subject: [PATCH] add some more EC vectors (#10134) --- docs/development/test-vectors.rst | 8 ++++++++ docs/spelling_wordlist.txt | 1 + .../cryptography_vectors/asymmetric/EC/sect163k1-spki.pem | 4 ++++ .../cryptography_vectors/asymmetric/EC/sect163r2-spki.pem | 4 ++++ .../cryptography_vectors/asymmetric/EC/sect233k1-spki.pem | 4 ++++ .../cryptography_vectors/asymmetric/EC/sect233r1-spki.pem | 4 ++++ 6 files changed, 25 insertions(+) create mode 100644 vectors/cryptography_vectors/asymmetric/EC/sect163k1-spki.pem create mode 100644 vectors/cryptography_vectors/asymmetric/EC/sect163r2-spki.pem create mode 100644 vectors/cryptography_vectors/asymmetric/EC/sect233k1-spki.pem create mode 100644 vectors/cryptography_vectors/asymmetric/EC/sect233r1-spki.pem diff --git a/docs/development/test-vectors.rst b/docs/development/test-vectors.rst index 4295d63c0..125568884 100644 --- a/docs/development/test-vectors.rst +++ b/docs/development/test-vectors.rst @@ -122,6 +122,14 @@ Custom asymmetric vectors encoded with explicit parameters. * ``asymmetric/EC/secp128r1_private_key.pem`` - Contains an EC private key on the curve ``secp128r1``. +* ``asymmetric/EC/sect163k1-spki.pem`` - Contains an EC SPKI on the curve + ``sect163k1``. +* ``asymmetric/EC/sect163r2-spki.pem`` - Contains an EC SPKI on the curve + ``sect163r2``. +* ``asymmetric/EC/sect233k1-spki.pem`` - Contains an EC SPKI on the curve + ``sect233k1``. +* ``asymmetric/EC/sect233r1-spki.pem`` - Contains an EC SPKI on the curve + ``sect233r1``. * ``asymmetric/X448/x448-pkcs8-enc.pem`` and ``asymmetric/X448/x448-pkcs8-enc.der`` contain an X448 key encrypted with AES 256 CBC with the password ``password``. diff --git a/docs/spelling_wordlist.txt b/docs/spelling_wordlist.txt index f72955fc6..933e78130 100644 --- a/docs/spelling_wordlist.txt +++ b/docs/spelling_wordlist.txt @@ -119,6 +119,7 @@ setuptools SHA Solaris Sonoma +SPKI Sur syscall Tanja diff --git a/vectors/cryptography_vectors/asymmetric/EC/sect163k1-spki.pem b/vectors/cryptography_vectors/asymmetric/EC/sect163k1-spki.pem new file mode 100644 index 000000000..a69945b39 --- /dev/null +++ b/vectors/cryptography_vectors/asymmetric/EC/sect163k1-spki.pem @@ -0,0 +1,4 @@ +-----BEGIN PUBLIC KEY----- +MEAwEAYHKoZIzj0CAQYFK4EEAAEDLAAEAxGAaICwgq0YOcgiIg1qIBU/tmU3AS4t +jG+YV5KpVbVoZrj9Z+fb24Pg +-----END PUBLIC KEY----- diff --git a/vectors/cryptography_vectors/asymmetric/EC/sect163r2-spki.pem b/vectors/cryptography_vectors/asymmetric/EC/sect163r2-spki.pem new file mode 100644 index 000000000..18bac0a8c --- /dev/null +++ b/vectors/cryptography_vectors/asymmetric/EC/sect163r2-spki.pem @@ -0,0 +1,4 @@ +-----BEGIN PUBLIC KEY----- +MEAwEAYHKoZIzj0CAQYFK4EEAA8DLAAEAkMQD2BC7lzGH0cqllPPPtNl1kqRBXhT +JmwDP66hW6PMFl3ldz4ZlvkK +-----END PUBLIC KEY----- diff --git a/vectors/cryptography_vectors/asymmetric/EC/sect233k1-spki.pem b/vectors/cryptography_vectors/asymmetric/EC/sect233k1-spki.pem new file mode 100644 index 000000000..d9fe3cb27 --- /dev/null +++ b/vectors/cryptography_vectors/asymmetric/EC/sect233k1-spki.pem @@ -0,0 +1,4 @@ +-----BEGIN PUBLIC KEY----- +MFIwEAYHKoZIzj0CAQYFK4EEABoDPgAEAbCYgpNMrLez2VEmv+xSGQLxtnWoDDvK +4oh4XfQEAPETU2P//4hH7hiDxo1jfe104nG45sbYJQke8+OK +-----END PUBLIC KEY----- diff --git a/vectors/cryptography_vectors/asymmetric/EC/sect233r1-spki.pem b/vectors/cryptography_vectors/asymmetric/EC/sect233r1-spki.pem new file mode 100644 index 000000000..96bb20c64 --- /dev/null +++ b/vectors/cryptography_vectors/asymmetric/EC/sect233r1-spki.pem @@ -0,0 +1,4 @@ +-----BEGIN PUBLIC KEY----- +MFIwEAYHKoZIzj0CAQYFK4EEABsDPgAEAVfRTJ18T67P5XD5HXs9dv7NuO+FQwNl +9/COeQIjAWjajHoGNjsris/W25ZMPcq240TdudpXmHC5gFiV +-----END PUBLIC KEY-----