MATH_SHA1GetHash

Syntax

#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 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) 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

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


CONFIDENTIAL