mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-05 19:35:48 +03:00
tests|programs: remove usage of mbedtls_ecp_set_max_ops()
PK restartable operations are now implemented using PSA interruptible ones, so mbedtls_ecp_set_max_ops() can be removed in favor of psa_interruptible_set_max_ops(). Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
@@ -2173,7 +2173,6 @@ usage:
|
|||||||
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
||||||
if (opt.ec_max_ops != DFL_EC_MAX_OPS) {
|
if (opt.ec_max_ops != DFL_EC_MAX_OPS) {
|
||||||
psa_interruptible_set_max_ops(opt.ec_max_ops);
|
psa_interruptible_set_max_ops(opt.ec_max_ops);
|
||||||
mbedtls_ecp_set_max_ops(opt.ec_max_ops);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -681,7 +681,6 @@ void x509_verify_restart(char *crt_file, char *ca_file,
|
|||||||
TEST_EQUAL(mbedtls_x509_crt_parse_file(&ca, ca_file), 0);
|
TEST_EQUAL(mbedtls_x509_crt_parse_file(&ca, ca_file), 0);
|
||||||
|
|
||||||
psa_interruptible_set_max_ops(max_ops);
|
psa_interruptible_set_max_ops(max_ops);
|
||||||
mbedtls_ecp_set_max_ops(max_ops);
|
|
||||||
|
|
||||||
cnt_restart = 0;
|
cnt_restart = 0;
|
||||||
do {
|
do {
|
||||||
|
Reference in New Issue
Block a user