1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

sys/psa_crypto: return proper error code for psa_verify_msg

This commit is contained in:
Mikolai Gütschow 2024-02-06 17:55:40 +01:00
parent 4d9e8a8dde
commit d978a57020
No known key found for this signature in database
GPG Key ID: 943E2F37AA659AD5
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ psa_status_t psa_ecc_ed25519_verify_message(const uint8_t *key_buffer,
ret = edsign_verify(signature, key_buffer, input, input_length);
if (!ret) {
return PSA_ERROR_GENERIC_ERROR;
return PSA_ERROR_INVALID_SIGNATURE;
}
(void)key_buffer_size;

View File

@ -133,7 +133,7 @@ psa_status_t CRYS_to_psa_error(CRYSError_t error)
case CRYS_ECMONT_PKI_ERROR:
case CRYS_ECMONT_IS_NOT_SUPPORTED:
case CRYS_ECEDW_IS_NOT_SUPPORTED:
return PSA_ERROR_INVALID_ARGUMENT;
return PSA_ERROR_INVALID_ARGUMENT;
default:
return PSA_ERROR_GENERIC_ERROR;
}