NETAESCreate

C Specification

#include <revolution/net.h>

BOOL NETAESCreate( NETAESContext *context, const void *key, u32 keylen, const void *iv );

Arguments

context Pointer to the AES encryption context structure.
key Key to use for AES encryption.
keylen Length (in bytes) of the key. Choose between key lengths of 16 bytes (128 bits), 24 bytes (192 bits), and 32 bytes (256 bits).
iv The 16-byte initial vector to use for AES encryption.
The NET library only supports CBC mode for AES encryption.

Return Values

Returns TRUE if the AES encryption context has been generated correctly. Otherwise, returns FALSE.

Description

This function generates an AES encryption context. Make sure that this function is called before using NETAESEncrypt and NETAESDecrypt.
You must also call NETAESDelete to release the context after using these functions.

Note

See Also

NETAESEncrypt NETAESDecrypt NETAESDelete

Revision History

2006/10/27 Added arguments and explanations for the expanded specifications.
2006/10/12 Initial version.


CONFIDENTIAL