mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2025-12-06 07:12:32 +01:00
test_suite_cipher: use TEST_ASSUME() to evaluate supported ciphers
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
5cd18f9150
commit
9d9b4b547f
|
|
@ -183,9 +183,7 @@ void cipher_invalid_param_unconditional()
|
||||||
mbedtls_cipher_init(&invalid_ctx);
|
mbedtls_cipher_init(&invalid_ctx);
|
||||||
|
|
||||||
/* Ensure that there is at least 1 supported cipher, otherwise exit gracefully */
|
/* Ensure that there is at least 1 supported cipher, otherwise exit gracefully */
|
||||||
if (*cipher_list == 0) {
|
TEST_ASSUME(*cipher_list != 0);
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
valid_info = mbedtls_cipher_info_from_type(*cipher_list);
|
valid_info = mbedtls_cipher_info_from_type(*cipher_list);
|
||||||
|
|
||||||
TEST_ASSERT(mbedtls_cipher_setup(&valid_ctx, valid_info) == 0);
|
TEST_ASSERT(mbedtls_cipher_setup(&valid_ctx, valid_info) == 0);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue