HAL_HASH_SHA1_Accmlt() function
If not already done, initialize the HASH peripheral in SHA1 mode then processes pInBuffer.
Arguments
hhash
HASH handle.
pInBuffer
pointer to the input buffer (buffer to be hashed).
Size
length of the input buffer in bytes, must be a multiple of 4.
Return value
HAL status
Notes
Consecutive calls to HAL_HASH_SHA1_Accmlt() can be used to feed several input buffers back-to-back to the Peripheral that will yield a single HASH signature once all buffers have been entered. Wrap-up of input buffers feeding and retrieval of digest is done by a call to HAL_HASH_SHA1_Accmlt_End(). Field hhash->Phase of HASH handle is tested to check whether or not the Peripheral has already been initialized. Digest is not retrieved by this API, user must resort to HAL_HASH_SHA1_Accmlt_End() to read it, feeding at the same time the last input buffer to the Peripheral. The input buffer size (in bytes) must be a multiple of 4 otherwise, the HASH digest computation is corrupted. Only HAL_HASH_SHA1_Accmlt_End() is able to manage the ending buffer with a length in bytes not a multiple of 4.
Functions called by HAL_HASH_SHA1_Accmlt()
HAL_HASH_SHA1_Accmlt()
Data read by HAL_HASH_SHA1_Accmlt()
HAL_HASH_SHA1_Accmlt()
Type of HAL_HASH_SHA1_Accmlt()
HAL_HASH_SHA1_Accmlt()