nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ ocrypto_ecdsa_p256k1_verify_hash()

int ocrypto_ecdsa_p256k1_verify_hash ( const uint8_t sig[64],
const uint8_t hash[32],
const uint8_t pk[64] )

#include <crypto/nrf_oberon/include/ocrypto_ecdsa_p256k1.h>

ECDSA secp256k1 signature verification from SHA256 hash.

The signature sig of the message hash hash is verified using the signer's public key pk.

Parameters
sigInput signature.
hashInput hash.
pkSigner's public key.
Return values
0If the signature is valid.
-1Otherwise.