NETCalcSHA1

C Specification

#include <revolution/net.h>

inline void NETCalcSHA1(void* digest, const void* input, u32 length);

Arguments

digest Pointer to the memory location that holds the calculated SHA-1 value.
data Pointer to the input data
dataLength Size of the input data

Return Values

None.

Description

This function calculates SHA-1. This is a utility function that successively calls NETSHA1Init, NETSHA1Update, and NETSHA1GetDigest.

Any size and alignment position can be used for the input data.

Be sure to pass enough memory region in the digest argument to store the hash length to be generated.
Since the context structure is allocated internally, make sure that you have sufficient stack when calling the function. For details, see the "SHA-1" section of the hash algorithm.

See Also

NETCalcSHA1

Revision History

2007/02/15 Corrected incorrect links.
2006/09/01 Initial version.


CONFIDENTIAL