nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_cc310_bl_ecdsa_verify_secp256r1()

CRYSError_t nrf_cc310_bl_ecdsa_verify_secp256r1 ( nrf_cc310_bl_ecdsa_verify_context_secp256r1_t *const  p_context,
nrf_cc310_bl_ecc_public_key_secp256r1_t const *const  p_public_key,
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 in integrated form.

Note
This will run initialization of ECDSA context and run ECDSA verify in a single step.
Parameters
[in,out]p_contextPointer to the structure holding context information for the ECDSA verify operation.
[in]p_public_keyPointer to the structure holding the public key 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_SIGNER_PUBL_KEY_VALIDATION_TAG_ERRORp_public_key was NULL.
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.