From a11a77f3168480dda1f83a00b24f0d9443f42e79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Wed, 19 Mar 2014 16:45:10 +0100 Subject: [PATCH] Add test for SpecifiedECDomain --- tests/data_files/ec_prv.specdom.der | Bin 0 -> 214 bytes tests/suites/test_suite_pkparse.data | 4 ++++ 2 files changed, 4 insertions(+) create mode 100644 tests/data_files/ec_prv.specdom.der diff --git a/tests/data_files/ec_prv.specdom.der b/tests/data_files/ec_prv.specdom.der new file mode 100644 index 0000000000000000000000000000000000000000..a80a2e3ca8f64dde6b51eb5fb2175a980fe41aa5 GIT binary patch literal 214 zcmXqLyv)SN$fD4659*bng;n5O;PweHTd^&ShX_g{+ZxnSn#2(*5o3bPUe)3S380p3^o e^9o-rDsL%>UJ~wRzj?dci$+r}&h^@@Tz>%m9&f1t literal 0 HcmV?d00001 diff --git a/tests/suites/test_suite_pkparse.data b/tests/suites/test_suite_pkparse.data index dc13fdbde..b502017b0 100644 --- a/tests/suites/test_suite_pkparse.data +++ b/tests/suites/test_suite_pkparse.data @@ -198,6 +198,10 @@ Parse EC Key #14 (SEC1 PEM, bp512r1) depends_on:POLARSSL_PEM_PARSE_C:POLARSSL_ECP_C:POLARSSL_ECP_DP_BP512R1_ENABLED pk_parse_keyfile_ec:"data_files/ec_bp512_prv.pem":"NULL":0 +Parse EC Key #15 (SEC1 DER, secp256k1, SpecifiedECDomain) +depends_on:POLARSSL_PEM_PARSE_C:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP256K1_ENABLED:POLARSSL_PK_PARSE_EC_EXTENDED +pk_parse_keyfile_ec:"data_files/ec_prv.specdom.der":"NULL":0 + Key ASN1 (Incorrect first tag) pk_parse_key_rsa:"":"":POLARSSL_ERR_PK_KEY_INVALID_FORMAT