1
0
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:
benpicco 2024-02-06 21:41:08 +00:00 committed by GitHub
commit cc6eb465df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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;
}