NetSHA1_Result

This function returns the 160-bit message digest into the Message_Digest array provided by the caller.

Files

net_sha1.h/net_sha1.c

Prototype

CPU_BOOLEAN  NetSHA1_Result (NET_SHA1_CTX  *p_ctx,
                             CPU_CHAR      *p_msg_digest,
                             NET_SHA1_ERR  *p_err)

Arguments

p_ctx

Pointer to the SHA1 context.

p_msg_digest

Pointer to the buffer that receive the message digest.

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 operation is successful.

DEF_FAIL, if the operation failed.

Required Configuration

None.

Notes / Warnings

The first octet of hash is stored in the 0th element, the last octet of hash in the 19th element.