From 9d313dfeebab6e1958d458cf9df5bc2b3ea686a4 Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Fri, 9 Dec 2022 11:38:59 +0100 Subject: [PATCH] test: pake: minor enhancement for opaque keys Signed-off-by: Valerio Setti --- tests/suites/test_suite_ssl.function | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/suites/test_suite_ssl.function b/tests/suites/test_suite_ssl.function index 01d4fe357..22620411f 100644 --- a/tests/suites/test_suite_ssl.function +++ b/tests/suites/test_suite_ssl.function @@ -6247,6 +6247,9 @@ void ssl_ecjpake_set_password( int use_opaque_arg ) ECJPAKE_TEST_SET_PASSWORD( MBEDTLS_ERR_SSL_HW_ACCEL_FAILED ); + /* check that the opaque key is still valid after failure */ + TEST_ASSERT( ! mbedtls_svc_key_id_is_null( pwd_slot ) ); + psa_destroy_key( pwd_slot ); /* Then set the correct usage */