Update a SHA-512 context for streaming hashing operations.
Update a SHA-512 context with a chunk of message. The caller should call this function zero, one
or more times with every sequential chunk (of size #SHA_512_BLOCK_SIZE) of the message,
including the final chunk (of up to #SHA_512_BLOCK_SIZE), and then call
safequard_sha512_finalise().
@param[in] context The buffer to the context.
@param[in] chunk The buffer to the message chunk.
Brief
Update a SHA-512 context for streaming hashing operations.
Update a SHA-512 context with a chunk of message. The caller should call this function zero, one or more times with every sequential chunk (of size #SHA_512_BLOCK_SIZE) of the message, including the final chunk (of up to #SHA_512_BLOCK_SIZE), and then call safequard_sha512_finalise().
@param[in] context The buffer to the context. @param[in] chunk The buffer to the message chunk.
Throws
if
contextis not valid for this operation.