From 179c15f6b0e4d7d103055eff09c0f8bac727dd71 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Wed, 21 Aug 2019 16:32:38 +0100 Subject: [PATCH] TinyCrypt Test: Add PK priv'key test for TinyCrypt-based Secp256r1 Even though exhaustive testing of TinyCrypt is left for later, without this test we don't have any evidence that PK writing works for TinyCrypt-based PK context. --- tests/suites/test_suite_pkwrite.data | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/suites/test_suite_pkwrite.data b/tests/suites/test_suite_pkwrite.data index 0c1c02b02..8e1532500 100644 --- a/tests/suites/test_suite_pkwrite.data +++ b/tests/suites/test_suite_pkwrite.data @@ -30,6 +30,14 @@ Private key write check EC 192 bits depends_on:MBEDTLS_ECP_C:MBEDTLS_BASE64_C:MBEDTLS_ECP_DP_SECP192R1_ENABLED:!MBEDTLS_USE_TINYCRYPT pk_write_key_check:"data_files/ec_prv.sec1.pem" +Private key write check EC 256 bits (legacy ECC) +depends_on:MBEDTLS_ECP_C:MBEDTLS_BASE64_C:MBEDTLS_ECP_DP_SECP256R1_ENABLED:!MBEDTLS_USE_TINYCRYPT +pk_write_key_check:"data_files/ec_256_prv.pem" + +Private key write check EC 256 bits (TinyCrypt) +depends_on:MBEDTLS_BASE64_C:MBEDTLS_USE_TINYCRYPT +pk_write_key_check:"data_files/ec_256_prv.pem" + Private key write check EC 521 bits depends_on:MBEDTLS_ECP_C:MBEDTLS_BASE64_C:MBEDTLS_ECP_DP_SECP521R1_ENABLED:!MBEDTLS_USE_TINYCRYPT pk_write_key_check:"data_files/ec_521_prv.pem"