test: add failing check for secp224r1 with compressed format
The test is expected to fail, so we verify that this is really not suppported Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
ff15953a01
commit
de7bb5b361
3 changed files with 14 additions and 0 deletions
|
@ -900,6 +900,10 @@ ec_pub.comp.pem: ec_pub.pem
|
|||
$(OPENSSL) ec -pubin -in $< -out $@ -conv_form compressed
|
||||
all_final += ec_pub.comp.pem
|
||||
|
||||
ec_224_pub.comp.pem: ec_224_pub.pem
|
||||
$(OPENSSL) ec -pubin -in $< -out $@ -conv_form compressed
|
||||
all_final += ec_224_pub.comp.pem
|
||||
|
||||
ec_256_pub.comp.pem: ec_256_pub.pem
|
||||
$(OPENSSL) ec -pubin -in $< -out $@ -conv_form compressed
|
||||
all_final += ec_256_pub.comp.pem
|
||||
|
|
4
tests/data_files/ec_224_pub.comp.pem
Normal file
4
tests/data_files/ec_224_pub.comp.pem
Normal file
|
@ -0,0 +1,4 @@
|
|||
-----BEGIN PUBLIC KEY-----
|
||||
MDIwEAYHKoZIzj0CAQYFK4EEACEDHgADFpOikPfwtXH+K0HV2EsBMnYx9Khg+ZX6
|
||||
MywJfw==
|
||||
-----END PUBLIC KEY-----
|
|
@ -920,6 +920,12 @@ Parse Public EC Key #3 (RFC 5480, secp224r1)
|
|||
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP224R1_ENABLED
|
||||
pk_parse_public_keyfile_ec:"data_files/ec_224_pub.pem":0
|
||||
|
||||
# Compressed points parsing does not support MBEDTLS_ECP_DP_SECP224R1 and
|
||||
# MBEDTLS_ECP_DP_SECP224K1. Therefore a failure is expected in this case
|
||||
Parse Public EC Key #3a (RFC 5480, secp224r1, compressed)
|
||||
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP224R1_ENABLED
|
||||
pk_parse_public_keyfile_ec:"data_files/ec_224_pub.comp.pem":MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE
|
||||
|
||||
Parse Public EC Key #4 (RFC 5480, secp256r1)
|
||||
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP256R1_ENABLED
|
||||
pk_parse_public_keyfile_ec:"data_files/ec_256_pub.pem":0
|
||||
|
|
Loading…
Reference in a new issue