Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version 3.03.00

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

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.