Skip to content

Commit 235f991

Browse files
authored
add new invalid EC key (#12103)
1 parent d21b465 commit 235f991

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

docs/development/test-vectors.rst

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ Custom asymmetric vectors
187187
a ring and the generator of the multiplicative subgroup is actually
188188
nilpotent with low degree. Taken from BoringSSL (see
189189
``TEST(DSATest, NilpotentGenerator)``).
190+
* ``asymmetric/PKCS8/ec-invalid-private-scalar.pem`` - Contains a PKCS8 encoded
191+
PEM with a ``secp256r1`` OID and an invalid (very large) private scalar.
190192

191193

192194
Key exchange
@@ -876,17 +878,17 @@ Custom PKCS7 Test Vectors
876878
* ``pkcs7/amazon-roots.der`` - A DER encoded PCKS7 file containing Amazon Root
877879
CA 2 and 3 generated by OpenSSL.
878880
* ``pkcs7/enveloped.pem`` - A PEM encoded PKCS7 file with enveloped data.
879-
* ``pkcs7/enveloped-aes-256-cbc.pem`` - A PEM encoded PKCS7 file with
880-
enveloped data, with content encrypted using AES-256-CBC, under the public
881-
key of ``x509/custom/ca/rsa_ca.pem``.
882-
* ``pkcs7/enveloped-triple-des.pem`` - A PEM encoded PKCS7 file with
883-
enveloped data, with content encrypted using DES EDE3 CBC (also called
884-
Triple DES), under the public key of ``x509/custom/ca/rsa_ca.pem``.
885-
* ``pkcs7/enveloped-rsa-oaep.pem``- A PEM encoded PKCS7 file with
886-
enveloped data, with key encrypted using RSA-OAEP, under the public key of
881+
* ``pkcs7/enveloped-aes-256-cbc.pem`` - A PEM encoded PKCS7 file with
882+
enveloped data, with content encrypted using AES-256-CBC, under the public
883+
key of ``x509/custom/ca/rsa_ca.pem``.
884+
* ``pkcs7/enveloped-triple-des.pem`` - A PEM encoded PKCS7 file with
885+
enveloped data, with content encrypted using DES EDE3 CBC (also called
886+
Triple DES), under the public key of ``x509/custom/ca/rsa_ca.pem``.
887+
* ``pkcs7/enveloped-rsa-oaep.pem``- A PEM encoded PKCS7 file with
888+
enveloped data, with key encrypted using RSA-OAEP, under the public key of
887889
``x509/custom/ca/rsa_ca.pem``.
888-
* ``pkcs7/enveloped-no-content.der``- A DER encoded PKCS7 file with
889-
enveloped data, without encrypted content, with key encrypted under the
890+
* ``pkcs7/enveloped-no-content.der``- A DER encoded PKCS7 file with
891+
enveloped data, without encrypted content, with key encrypted under the
890892
public key of ``x509/custom/ca/rsa_ca.pem``.
891893

892894
Custom OpenSSH Test Vectors
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-----BEGIN PRIVATE KEY-----
2+
MIGUAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBHoweAIBAQRz////////////////
3+
////////////////////////////////////////////////////////////////
4+
////////////////////////////////////////////////////////////////
5+
////////AA==
6+
-----END PRIVATE KEY-----
7+

0 commit comments

Comments
 (0)