From 77c4fcc96e45648588cd7b9483df3ae6ce518479 Mon Sep 17 00:00:00 2001 From: Jarno Lamsa Date: Wed, 30 Oct 2019 14:44:05 +0200 Subject: [PATCH] Use DER encoded keys with tinycrypt PEM and BASE64 aren't used with baremetal config by default and using DER encoded key enables the test without enabling PEM and BASE64. --- tests/data_files/ec_256_pub.der | Bin 0 -> 91 bytes tests/suites/test_suite_pk.data | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 tests/data_files/ec_256_pub.der diff --git a/tests/data_files/ec_256_pub.der b/tests/data_files/ec_256_pub.der new file mode 100644 index 0000000000000000000000000000000000000000..2ba259538d55d60a1d89a19c3a558e19c0997886 GIT binary patch literal 91 zcmXqrG!SNE*J|@PXUoLM#sOw9GqN)~F|d>urRFz!TTZIH`tW0g{F;2uSvD~XH#`mw tZ1(2Z7RMc~I^pd4{<6u5dp>)eKPVT+?$@HW_a4i>yi`k9mucenTmg74BDw$o literal 0 HcmV?d00001 diff --git a/tests/suites/test_suite_pk.data b/tests/suites/test_suite_pk.data index 5bdbea05c..c8f4d70d6 100644 --- a/tests/suites/test_suite_pk.data +++ b/tests/suites/test_suite_pk.data @@ -154,7 +154,7 @@ mbedtls_pk_check_pair:"data_files/ec_256_pub.pem":"data_files/server5.key":MBEDT Check pair #2 (EC, bad, TinyCrypt) depends_on:MBEDTLS_USE_TINYCRYPT -mbedtls_pk_check_pair:"data_files/ec_256_pub.pem":"data_files/server5.key":MBEDTLS_ERR_PK_BAD_INPUT_DATA +mbedtls_pk_check_pair:"data_files/ec_256_pub.der":"data_files/server5.key.der":MBEDTLS_ERR_PK_BAD_INPUT_DATA Check pair #3 (RSA, OK) depends_on:MBEDTLS_RSA_C:MBEDTLS_PKCS1_V15