nRF Connect SDK API 2.8.99
|
int bl_secp256r1_validate | ( | const uint8_t * | hash, |
uint32_t | hash_len, | ||
const uint8_t * | signature, | ||
const uint8_t * | public_key ) |
#include <include/bl_crypto.h>
Validate a secp256r1 signature.
[in] | hash | The hash to validate against. |
[in] | hash_len | The length of the hash. |
[in] | signature | The signature to validate. |
[in] | public_key | The public key to validate with. |
0 | The operation succeeded and the signature is valid for the hash. |
-EINVAL | A parameter was NULL, or the hash_len was not 32 bytes. |
-ESIGINV | The signature validation failed. |