MATH_SHA1GetHash

C Specification

#include <nitro/math/dgt.h>

static inline void MATH_SHA1GetHash( MATHSHA1Context *context, void* digest );

Arguments

context   Pointer to the context structure used for SHA-1 generation.
digest Pointer to the memory location that holds the message digest value.

Return Values

None.

Description

This function gets the digest value using SHA-1. You must use MATH_SHA1Init to initialize the "context" argument, and then use MATH_SHA1Update to provide input data. The length of the generated message digest value is 160 bits, or MATH_SHA1_DIGEST_SIZE (= 20) bytes. Use the "digest" argument to pass an area that can store a value of this size. This function rewrites 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).

See Also

MATH_SHA1Init, MATH_SHA1Update

Revision History

07/11/2005 Added to Description.
04/12/2005 Changed function name.
04/01/2005 Initial version.