mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #20346 from mguetschow/psa-crypto-ed25519-return
sys/psa_crypto: return proper error code for psa_verify_msg
This commit is contained in:
commit
cc6eb465df
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user