mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-05 09:33:01 +02:00
tests: suite_x509parse: set PSA max operations in x509_verify_restart()
Set also psa_interruptible_set_max_ops() when mbedtls_ecp_set_max_ops() is set so that the same amount of operations will be used both if legacy ECDSA_C or PSA is used under the hood to perform the operation. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
@@ -679,6 +679,7 @@ void x509_verify_restart(char *crt_file, char *ca_file,
|
||||
TEST_EQUAL(mbedtls_x509_crt_parse_file(&crt, crt_file), 0);
|
||||
TEST_EQUAL(mbedtls_x509_crt_parse_file(&ca, ca_file), 0);
|
||||
|
||||
psa_interruptible_set_max_ops(max_ops);
|
||||
mbedtls_ecp_set_max_ops(max_ops);
|
||||
|
||||
cnt_restart = 0;
|
||||
|
||||
Reference in New Issue
Block a user