Skip to content

Commit 5bc8fb4

Browse files
committed
nrf_security: drivers: cc3xx: remove hash alg/len validation
From the verify_hash() function. Otherwise TLS tests would fail because of this. This relates to sdk-mbedtls commit 5ca712905aac158b310144d9e09fdfb66bd4a4a5 which has now been discarded. Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
1 parent 216095a commit 5bc8fb4

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

subsys/nrf_security/src/drivers/nrf_cc3xx/public_cc3xx_psa_asymmetric_signature.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ psa_status_t cc3xx_verify_hash(const psa_key_attributes_t *attributes, const uin
6161
size_t hash_length, const uint8_t *signature,
6262
size_t signature_length)
6363
{
64-
if (alg != PSA_ALG_RSA_PKCS1V15_SIGN_RAW &&
65-
hash_length != PSA_HASH_LENGTH(PSA_ALG_SIGN_GET_HASH(alg))) {
66-
return PSA_ERROR_INVALID_ARGUMENT;
67-
}
68-
6964
if (!PSA_KEY_TYPE_IS_ASYMMETRIC(psa_get_key_type(attributes))) {
7065
return PSA_ERROR_NOT_SUPPORTED;
7166
}

0 commit comments

Comments
 (0)