#include <nitro/math/dgt.h>
static inline void MATH_SHA1GetHash( MATHSHA1Context *context, void* digest );
context | Pointer to the context structure used for SHA-1 generation. |
digest | Pointer to the memory location that holds the message digest value. |
None.
This function gets the digest value using SHA-1. You must use the MATH_SHA1Init
function to initialize the context
argument and then use the MATH_SHA1Update
function to provide the input data.
The length of the generated message digest value is 160 bits, or MATH_SHA1_DIGEST_SIZE (= 20)
context
internally, so you cannot continue to use the same context with the MATH_SHA1Update
function.
SHA-1 is an algorithm to find the message digest value. For details, see RFC (Request For Comments) 3174, which is published by IETF (The Internet Engineering Task Force).
MATH_SHA1Init
, MATH_SHA1Update
2005/07/11 Added to Description.
2005/04/12 Changed function name.
2005/04/01 Initial version.
CONFIDENTIAL