Add test for EC keys with all curves.
(Made possible by the OID fix.)
This commit is contained in:
parent
298aae4524
commit
b03de8bcbe
5
tests/data_files/ec_224_prv.pem
Normal file
5
tests/data_files/ec_224_prv.pem
Normal file
@ -0,0 +1,5 @@
|
||||
-----BEGIN EC PRIVATE KEY-----
|
||||
MGgCAQEEHGhJ+X0QZvaZd1ljfH44mUZM7j7HrJcGU6C+B0KgBwYFK4EEACGhPAM6
|
||||
AAQWk6KQ9/C1cf4rQdXYSwEydjH0qGD5lfozLAl/VBkrsQ8AET8q/7E8GiTORJFF
|
||||
calUQK4BSgDL9w==
|
||||
-----END EC PRIVATE KEY-----
|
4
tests/data_files/ec_224_pub.pem
Normal file
4
tests/data_files/ec_224_pub.pem
Normal file
@ -0,0 +1,4 @@
|
||||
-----BEGIN PUBLIC KEY-----
|
||||
ME4wEAYHKoZIzj0CAQYFK4EEACEDOgAEFpOikPfwtXH+K0HV2EsBMnYx9Khg+ZX6
|
||||
MywJf1QZK7EPABE/Kv+xPBokzkSRRXGpVECuAUoAy/c=
|
||||
-----END PUBLIC KEY-----
|
5
tests/data_files/ec_256_prv.pem
Normal file
5
tests/data_files/ec_256_prv.pem
Normal file
@ -0,0 +1,5 @@
|
||||
-----BEGIN EC PRIVATE KEY-----
|
||||
MHcCAQEEIEnJqMGMS4hWOMQxzx3xyZQTFgm1gNT9Q6DKsX2y8T7uoAoGCCqGSM49
|
||||
AwEHoUQDQgAEd3Jlb4FLOZJ51eHxeB+sbwmaPFyhsONTUYNLCLZeC1clkM2vj3aT
|
||||
YbzzSs/BHl4HToQmvd4Evm5lOUVElhfeRQ==
|
||||
-----END EC PRIVATE KEY-----
|
4
tests/data_files/ec_256_pub.pem
Normal file
4
tests/data_files/ec_256_pub.pem
Normal file
@ -0,0 +1,4 @@
|
||||
-----BEGIN PUBLIC KEY-----
|
||||
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEd3Jlb4FLOZJ51eHxeB+sbwmaPFyh
|
||||
sONTUYNLCLZeC1clkM2vj3aTYbzzSs/BHl4HToQmvd4Evm5lOUVElhfeRQ==
|
||||
-----END PUBLIC KEY-----
|
6
tests/data_files/ec_384_prv.pem
Normal file
6
tests/data_files/ec_384_prv.pem
Normal file
@ -0,0 +1,6 @@
|
||||
-----BEGIN EC PRIVATE KEY-----
|
||||
MIGkAgEBBDA/XY2b4oC1aWzFzJ+Uz4r35rYd1lkrKrKzpMYHRQQX7DJ9zcrtfBAF
|
||||
PXGaBXTwp2qgBwYFK4EEACKhZANiAATZxmK1C6KcpHmQRQ4EOur08MabFWdtES9i
|
||||
KnHJMFmvmZaRxWgNK0TREVedsS9KQTou1cRfz7Z7W2PgC5Hr5Z0JprGsLAxCgqoS
|
||||
MX7VkU+Zm8SIuxMug0LMNvLKXjN5x0c=
|
||||
-----END EC PRIVATE KEY-----
|
5
tests/data_files/ec_384_pub.pem
Normal file
5
tests/data_files/ec_384_pub.pem
Normal file
@ -0,0 +1,5 @@
|
||||
-----BEGIN PUBLIC KEY-----
|
||||
MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE2cZitQuinKR5kEUOBDrq9PDGmxVnbREv
|
||||
YipxyTBZr5mWkcVoDStE0RFXnbEvSkE6LtXEX8+2e1tj4AuR6+WdCaaxrCwMQoKq
|
||||
EjF+1ZFPmZvEiLsTLoNCzDbyyl4zecdH
|
||||
-----END PUBLIC KEY-----
|
7
tests/data_files/ec_521_prv.pem
Normal file
7
tests/data_files/ec_521_prv.pem
Normal file
@ -0,0 +1,7 @@
|
||||
-----BEGIN EC PRIVATE KEY-----
|
||||
MIHcAgEBBEIBsbatB7t55zINpZhg6ijgVShPYFjyed5mbgbUNdKve9oo2Z+ke33Q
|
||||
lj4WsAcweO6LijjZZqWC9G0Z/5XfOtloWq6gBwYFK4EEACOhgYkDgYYABAAd4ULV
|
||||
T2nrA47kt6+dPKB3Nv2c9xnrNU1ph57n88E2+w+/nwj4a+X6Eo7BoFHT5sZD6Fra
|
||||
j/rPNmPCYL0shEtvVgDO6OSKnmXQnK3YnyNd7gXzuKZGvnFfH2fVtDTg/yOh/Afv
|
||||
d0AZPkDu/287zf12WqkVUDNST+TyBfVETiksTC9qwQ==
|
||||
-----END EC PRIVATE KEY-----
|
6
tests/data_files/ec_521_pub.pem
Normal file
6
tests/data_files/ec_521_pub.pem
Normal file
@ -0,0 +1,6 @@
|
||||
-----BEGIN PUBLIC KEY-----
|
||||
MIGbMBAGByqGSM49AgEGBSuBBAAjA4GGAAQAHeFC1U9p6wOO5LevnTygdzb9nPcZ
|
||||
6zVNaYee5/PBNvsPv58I+Gvl+hKOwaBR0+bGQ+ha2o/6zzZjwmC9LIRLb1YAzujk
|
||||
ip5l0Jyt2J8jXe4F87imRr5xXx9n1bQ04P8jofwH73dAGT5A7v9vO839dlqpFVAz
|
||||
Uk/k8gX1RE4pLEwvasE=
|
||||
-----END PUBLIC KEY-----
|
@ -194,6 +194,22 @@ X509 Parse Public EC Key #2 (RFC 5480, PEM)
|
||||
depends_on:POLARSSL_PEM_C:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP192R1_ENABLED:POLARSSL_FS_IO
|
||||
x509parse_public_keyfile_ec:"data_files/ec_pub.pem":0
|
||||
|
||||
X509 Parse Public EC Key #3 (RFC 5480, secp224r1)
|
||||
depends_on:POLARSSL_PEM_C:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP224R1_ENABLED:POLARSSL_FS_IO
|
||||
x509parse_public_keyfile_ec:"data_files/ec_224_pub.pem":0
|
||||
|
||||
X509 Parse Public EC Key #4 (RFC 5480, secp256r1)
|
||||
depends_on:POLARSSL_PEM_C:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP256R1_ENABLED:POLARSSL_FS_IO
|
||||
x509parse_public_keyfile_ec:"data_files/ec_256_pub.pem":0
|
||||
|
||||
X509 Parse Public EC Key #5 (RFC 5480, secp384r1)
|
||||
depends_on:POLARSSL_PEM_C:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP384R1_ENABLED:POLARSSL_FS_IO
|
||||
x509parse_public_keyfile_ec:"data_files/ec_384_pub.pem":0
|
||||
|
||||
X509 Parse Public EC Key #6 (RFC 5480, secp521r1)
|
||||
depends_on:POLARSSL_PEM_C:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP521R1_ENABLED:POLARSSL_FS_IO
|
||||
x509parse_public_keyfile_ec:"data_files/ec_521_pub.pem":0
|
||||
|
||||
X509 Parse EC Key #1 (SEC1 DER)
|
||||
depends_on:POLARSSL_FS_IO:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP192R1_ENABLED
|
||||
x509parse_keyfile_ec:"data_files/ec_prv.sec1.der":NULL:0
|
||||
@ -222,6 +238,22 @@ X509 Parse EC Key #7 (PKCS8 encrypted PEM)
|
||||
depends_on:POLARSSL_DES_C:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP192R1_ENABLED
|
||||
x509parse_keyfile_ec:"data_files/ec_prv.pk8.pw.pem":"polar":0
|
||||
|
||||
X509 Parse EC Key #8 (SEC1 PEM, secp224r1)
|
||||
depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP224R1_ENABLED
|
||||
x509parse_keyfile_ec:"data_files/ec_224_prv.pem":NULL:0
|
||||
|
||||
X509 Parse EC Key #9 (SEC1 PEM, secp256r1)
|
||||
depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP256R1_ENABLED
|
||||
x509parse_keyfile_ec:"data_files/ec_256_prv.pem":NULL:0
|
||||
|
||||
X509 Parse EC Key #10 (SEC1 PEM, secp384r1)
|
||||
depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP384R1_ENABLED
|
||||
x509parse_keyfile_ec:"data_files/ec_384_prv.pem":NULL:0
|
||||
|
||||
X509 Parse EC Key #11 (SEC1 PEM, secp521r1)
|
||||
depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP521R1_ENABLED
|
||||
x509parse_keyfile_ec:"data_files/ec_521_prv.pem":NULL:0
|
||||
|
||||
X509 Get Distinguished Name #1
|
||||
depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
|
||||
x509_dn_gets:"data_files/server1.crt":subject:"C=NL, O=PolarSSL, CN=PolarSSL Server 1"
|
||||
|
Loading…
Reference in New Issue
Block a user