![]() |
nRF Connect SDK API 3.3.99
|
| int bl_secp256r1_validate | ( | const uint8_t * | hash, |
| uint32_t | hash_len, | ||
| const uint8_t * | public_key, | ||
| const uint8_t * | signature ) |
#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] | public_key | The public key to validate with. |
| [in] | signature | The signature to validate. |
| 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. |