NetSHA1_Reset

Initialize the NET_SHA1_CTX in preparation for computing a new SHA1 message digest.

Files

net_sha1.h/net_sha1.c

Prototype

CPU_BOOLEAN  NetSHA1_Reset (NET_SHA1_CTX  *p_ctx,
                            NET_SHA1_ERR  *p_err)

Arguments

p_ctx

Pointer to the SHA1 context.

p_err

Pointer to variable that will receive the error code from this function:

NET_SHA1_ERR_NONE
NET_SHA1_ERR_PTR_NULL

Returned Value

DEF_OK, if the the context is properly reset.

DEF_FAIL, if the operation failed.

Required Configuration

None.

Notes / Warnings

None.