nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ nrf_cc310_bl_hash_sha256_update()

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 
)

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

Function for running an update to the SHA-256 hash calculation.

Parameters
[in,out]p_hash_contextStructure holding context information for the SHA-256 operation.
[in]p_srcInput data to be added to the digest.
[in]lenAmount of data passed in p_src.
Return values
CRYS_OKIf call was successful.
CRYS_HASH_INVALID_USER_CONTEXT_POINTER_ERRORp_hash_context was NULL.
CRYS_HASH_USER_CONTEXT_CORRUPTED_ERRORp_hash_context not initialized.
CRYS_HASH_LAST_BLOCK_ALREADY_PROCESSED_ERRORp_hash_context already finalized.