NETCalcSHA1

Syntax

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

To store the hash length to be generated, be sure to pass a sufficient memory region in the digest argument. Because the context structure is allocated internally, make sure that you have sufficient stack space 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