NETAESDecrypt

C Specification

#include <revolution/net.h>

BOOL NETAESDecrypt( NETAESContext *context, void *dst, const void *src, u32 len );

Arguments

context Pointer to the AES encryption context structure.
dst Destination buffer for storing plain text.
The start address of the cache must be aligned at a 32-byte boundary.
src Encrypted text data from which plain text is to be generated.
The start address of the cache must be aligned at a 32-byte boundary.The same address as the storage location (dst) cannot be specified.
len Length of encrypted text.
Because block encryption is used, encrypted text must be aligned at a 16-byte boundary.

Return Values

Returns TRUE if decryption is successful. Otherwise, returns FALSE.

Description

This function decrypts encrypted text, using an AES encryption context. AES encryption context must be generated first by calling the NETAESCreate function.
Restrictions on decryption are the same as those on encryption. For details, see the description of the NETAESEncrypt function.

See Also

NETAESCreate NETAESEncrypt NETAESDelete

Revision History

2006/10/27 Revised descriptions.
2006/10/12 Initial version.


CONFIDENTIAL