mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-25 18:39:54 +00:00
Merge pull request #7200 from paul-elliott-arm/interruptible_sign_hash_fail_tests
Enable all keys for interruptible op fail tests
This commit is contained in:
commit
e11c1ceac9
@ -245,13 +245,11 @@ void sign_fail(int key_type_arg, data_t *key_data,
|
|||||||
input, sizeof(input),
|
input, sizeof(input),
|
||||||
output, sizeof(output), &length));
|
output, sizeof(output), &length));
|
||||||
|
|
||||||
if (PSA_KEY_TYPE_IS_ECC(key_type)) {
|
|
||||||
TEST_STATUS(expected_status,
|
TEST_STATUS(expected_status,
|
||||||
psa_sign_hash_start(&sign_operation, key_id, alg,
|
psa_sign_hash_start(&sign_operation, key_id, alg,
|
||||||
input, sizeof(input)));
|
input, sizeof(input)));
|
||||||
|
|
||||||
PSA_ASSERT(psa_sign_hash_abort(&sign_operation));
|
PSA_ASSERT(psa_sign_hash_abort(&sign_operation));
|
||||||
}
|
|
||||||
|
|
||||||
if (!private_only) {
|
if (!private_only) {
|
||||||
/* Determine a plausible signature size to avoid an INVALID_SIGNATURE
|
/* Determine a plausible signature size to avoid an INVALID_SIGNATURE
|
||||||
@ -270,7 +268,6 @@ void sign_fail(int key_type_arg, data_t *key_data,
|
|||||||
input, sizeof(input),
|
input, sizeof(input),
|
||||||
output, output_length));
|
output, output_length));
|
||||||
|
|
||||||
if (PSA_KEY_TYPE_IS_ECC(key_type)) {
|
|
||||||
TEST_STATUS(expected_status,
|
TEST_STATUS(expected_status,
|
||||||
psa_verify_hash_start(&verify_operation, key_id, alg,
|
psa_verify_hash_start(&verify_operation, key_id, alg,
|
||||||
input, sizeof(input),
|
input, sizeof(input),
|
||||||
@ -278,7 +275,6 @@ void sign_fail(int key_type_arg, data_t *key_data,
|
|||||||
|
|
||||||
PSA_ASSERT(psa_verify_hash_abort(&verify_operation));
|
PSA_ASSERT(psa_verify_hash_abort(&verify_operation));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
psa_destroy_key(key_id);
|
psa_destroy_key(key_id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user