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

Common declarations for nrf_cc310_bl ECDSA verify APIs. More...

Data Structures

struct  nrf_cc310_bl_ecc_public_key_secp256r1_t
 Structure holding the secp256r1 public key represented by X,Y coordinates. More...
 
struct  nrf_cc310_bl_ecc_signature_secp256r1_t
 Structure holding the secp256r1 signature represented by R,S values. More...
 
struct  nrf_cc310_bl_ecdsa_verify_context_secp256r1_t
 Structure holding memory required for allocation of CC310 ECDSA verify context using curve secp256r1. More...
 
struct  nrf_cc310_bl_hash_context_sha256_t
 Structure to hold SHA-256 context information. More...
 

Macros

#define NRF_CC310_BL_ECDSA_CONTEXT_INITIALIZED   (0xBBAA55DD)
 
#define NRF_CC310_BL_ECDSA_VERIFY_CONTEXT_SIZE_SECP224R1   (140)
 Macro for the size of the ECDSA Verify context.
 
#define NRF_CC310_BL_ECDSA_VERIFY_CONTEXT_SIZE_SECP256R1   (160)
 Macro for the size of the ECDSA Verify context.
 
#define NRF_CC310_BL_HASH_CONTEXT_INITIALIZED   (0xBBAA55DD)
 Value indicating that the hash context is initialized.
 
#define NRF_CC310_BL_HASH_CONTEXT_BUFFER_SIZE_SHA256   (112)
 Size of internal representation of SHA-256 hash context.
 
#define NRF_CC310_BL_SHA256_DIGEST_SIZE_IN_WORDS   (8)
 Size of SHA-256 hash digest in words.
 
#define NRF_CC310_BL_SHA256_DIGEST_SIZE_IN_BYTES   (32)
 Size of SHA-256 hash digest in bytes.
 

Typedefs

typedef uint8_t nrf_cc310_bl_hash_digest_sha256_t[(32)]
 Array to hold SHA-256 hash digest.
 

Functions

CRYSError_t nrf_cc310_bl_ecdsa_verify_init_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)
 Function for initializing the context information for an ECDSA verify operation.
 
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)
 Function for executing an ECDSA verify operation using secp256r1 with hash input.
 
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)
 Function for executing an ECDSA verify operation using secp256r1 with hash input in integrated form.
 
CRYSError_t nrf_cc310_bl_hash_sha256_init (nrf_cc310_bl_hash_context_sha256_t *const p_hash_context)
 Function for initializing the SHA-256 context.
 
CRYSError_t nrf_cc310_bl_hash_sha256_update (nrf_cc310_bl_hash_context_sha256_t *const p_hash_context, uint8_t const *p_src, uint32_t len)
 Function for running an update to the SHA-256 hash calculation.
 
CRYSError_t nrf_cc310_bl_hash_sha256_finalize (nrf_cc310_bl_hash_context_sha256_t *const p_hash_context, nrf_cc310_bl_hash_digest_sha256_t *const p_digest)
 Function for finalizing the hash calculation.
 
CRYSError_t nrf_cc310_bl_init (void)
 

Detailed Description

Common declarations for nrf_cc310_bl ECDSA verify APIs.

Function for initializing the CC310 hardware and runtime library.

Type definitions and public APIs for nrf_cc310_bl HASH using SHA-256.

Shared declarations used by nrf_cc310_bl for hash APIs.

Type definitions and APIs for nrf_cc310_bl ECDSA verify using curve secp256r1.

Note
Running this initialization is intended for cases where there is no direct requirement for the RNG subsystem (all operations are deterministic).
Return values
CRYS_OKInitialization was successful.