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

◆ bl_ed25519_validate()

int bl_ed25519_validate ( const uint8_t * hash,
uint32_t hash_len,
const uint8_t * signature )

#include <include/bl_crypto.h>

Validate an ed25519 signature.

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