NETSHA256GetDigest

Syntax

#include <revolution/net.h>

void NETSHA256GetDigest(NETSHA256Context* context, void* digest);

Arguments

context Pointer to the context structure used for SHA-256 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-256. You must use the NETSHA256Init function to initialize the context argument in advance, and then use the NETSHA256Update function to provide input data.

This function rewrites context internally, so you cannot continue to use the same context in the NETSHA256Update function.

To store the hash length to be generated, be sure to pass a sufficient memory region in the digest argument. For details, see the "SHA-256" section of the hash algorithm.

See Also

NETSHA256Init
NETSHA256Update

Revision History

2008/05/07 Initial version.


CONFIDENTIAL