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

◆ nrf_cc310_bl_hash_sha256_finalize()

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 
)

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

Function for finalizing the hash calculation.

Note
Memory pointed to in hash digest must be allocated prior to this call.
Parameters
[in,out]p_hash_contextStructure holding context information for the SHA-256 operation.
[in,out]p_digestPointer to the structure holding SHA-256 hash digest. Data pointed to must be 32 bytes long.
Return values
CRYS_HASH_INVALID_USER_CONTEXT_POINTER_ERRORp_hash_context was NULL.
CRYS_HASH_USER_CONTEXT_CORRUPTED_ERRORp_hash_context was corrupted.
CRYS_HASH_INVALID_RESULT_BUFFER_POINTER_ERRORp_digest was NULL.