NETSHA1GetDigest

C Specification

#include <revolution/net.h>

void NETSHA1GetDigest(NETSHA1Context* 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 NETSHA1Init function to initialize the "context" argument in advance, and then use NETSHA1Update to provide input data. This function rewrites context internally, so you cannot continue to use the same context with the NETSHA1Update() function.

Be sure to pass enough memory region in the digest argument to store the hash length to be generated.
For details, see the "SHA-1" section of the hash algorithm.

See Also

NETSHA1Init, NETSHA1Update

Revision History

2006/09/01 Initial version.


CONFIDENTIAL