nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ bl_secp256r1_validate()

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.

Parameters
[in]hashThe hash to validate against.
[in]hash_lenThe length of the hash.
[in]signatureThe signature to validate.
[in]public_keyThe public key to validate with.
Return values
0The operation succeeded and the signature is valid for the hash.
-EINVALA parameter was NULL, or the hash_len was not 32 bytes.
-ESIGINVThe signature validation failed.