nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ nrf_cc310_bl_ecdsa_verify_hash_secp256r1()

CRYSError_t nrf_cc310_bl_ecdsa_verify_hash_secp256r1 ( nrf_cc310_bl_ecdsa_verify_context_secp256r1_t *const p_context,
nrf_cc310_bl_ecc_signature_secp256r1_t const *const p_signature,
uint8_t const *const p_hash,
uint32_t hash_len )

#include <crypto/nrf_cc310_bl/include/nrf_cc310_bl_ecdsa_verify_secp256r1.h>

Function for executing an ECDSA verify operation using secp256r1 with hash input.

Note
The ECDSA verify context structure must be initialized prior to this call using nrf_cc310_bl_ecdsa_verify_init_secp256r1.
Parameters
[in,out]p_contextPointer to the structure holding context information for the ECDSA verify operation.
[in]p_signaturePointer to the structure holding the signature to use for the ECDSA verify operation.
[in]p_hashPointer to the hash to use in the ECDSA verify operation.
[in]hash_lenLength of the hash to verify.
Return values
CRYS_OKSignature was successfully verified.
CRYS_ECDSA_VERIFY_INVALID_USER_CONTEXT_PTR_ERRORp_context was NULL.
CRYS_ECDSA_VERIFY_USER_CONTEXT_VALIDATION_TAG_ERRORp_context was not initialized.
CRYS_ECDSA_VERIFY_INVALID_SIGNATURE_IN_PTR_ERRORp_signature was NULL.
CRYS_ECDSA_VERIFY_INVALID_MESSAGE_DATA_IN_PTR_ERRORp_hash was NULL.
CRYS_ECDSA_VERIFY_INVALID_MESSAGE_DATA_IN_SIZE_ERRORhash_len was invalid.
CRYS_ECDSA_VERIFY_INCONSISTENT_VERIFY_ERRORSignature verification failed.