nrfxlib API 0.1.0
|
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.
[in,out] | p_context | Pointer to the structure holding context information for the ECDSA verify operation. |
[in] | p_signature | Pointer to the structure holding the signature to use for the ECDSA verify operation. |
[in] | p_hash | Pointer to the hash to use in the ECDSA verify operation. |
[in] | hash_len | Length of the hash to verify. |
CRYS_OK | Signature was successfully verified. |
CRYS_ECDSA_VERIFY_INVALID_USER_CONTEXT_PTR_ERROR | p_context was NULL. |
CRYS_ECDSA_VERIFY_USER_CONTEXT_VALIDATION_TAG_ERROR | p_context was not initialized. |
CRYS_ECDSA_VERIFY_INVALID_SIGNATURE_IN_PTR_ERROR | p_signature was NULL. |
CRYS_ECDSA_VERIFY_INVALID_MESSAGE_DATA_IN_PTR_ERROR | p_hash was NULL. |
CRYS_ECDSA_VERIFY_INVALID_MESSAGE_DATA_IN_SIZE_ERROR | hash_len was invalid. |
CRYS_ECDSA_VERIFY_INCONSISTENT_VERIFY_ERROR | Signature verification failed. |