Skip to content

Commit

Permalink
add some more EC vectors (#10134)
Browse files Browse the repository at this point in the history
  • Loading branch information
reaperhulk authored Jan 5, 2024
1 parent e31a343 commit 30e5ee2
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/development/test-vectors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``.
Expand Down
1 change: 1 addition & 0 deletions docs/spelling_wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ setuptools
SHA
Solaris
Sonoma
SPKI
Sur
syscall
Tanja
Expand Down
4 changes: 4 additions & 0 deletions vectors/cryptography_vectors/asymmetric/EC/sect163k1-spki.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-----BEGIN PUBLIC KEY-----
MEAwEAYHKoZIzj0CAQYFK4EEAAEDLAAEAxGAaICwgq0YOcgiIg1qIBU/tmU3AS4t
jG+YV5KpVbVoZrj9Z+fb24Pg
-----END PUBLIC KEY-----
4 changes: 4 additions & 0 deletions vectors/cryptography_vectors/asymmetric/EC/sect163r2-spki.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-----BEGIN PUBLIC KEY-----
MEAwEAYHKoZIzj0CAQYFK4EEAA8DLAAEAkMQD2BC7lzGH0cqllPPPtNl1kqRBXhT
JmwDP66hW6PMFl3ldz4ZlvkK
-----END PUBLIC KEY-----
4 changes: 4 additions & 0 deletions vectors/cryptography_vectors/asymmetric/EC/sect233k1-spki.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-----BEGIN PUBLIC KEY-----
MFIwEAYHKoZIzj0CAQYFK4EEABoDPgAEAbCYgpNMrLez2VEmv+xSGQLxtnWoDDvK
4oh4XfQEAPETU2P//4hH7hiDxo1jfe104nG45sbYJQke8+OK
-----END PUBLIC KEY-----
4 changes: 4 additions & 0 deletions vectors/cryptography_vectors/asymmetric/EC/sect233r1-spki.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-----BEGIN PUBLIC KEY-----
MFIwEAYHKoZIzj0CAQYFK4EEABsDPgAEAVfRTJ18T67P5XD5HXs9dv7NuO+FQwNl
9/COeQIjAWjajHoGNjsris/W25ZMPcq240TdudpXmHC5gFiV
-----END PUBLIC KEY-----

0 comments on commit 30e5ee2

Please sign in to comment.