#include <revolution/nwc24.h>
#define NWC24_DL_PUBLICKEY_LENGTH (2048 / 8)
#define NWC24_DL_SECRETKEY_LENGTH (128 / 8)
NWC24Err NWC24SetDlSecretKey( const u8 publicKey[NWC24_DL_PUBLICKEY_LENGTH], const u8 secretKey[NWC24_DL_SECRETKEY_LENGTH] );
Specifies the RSA public key that the application will use for signature verification as well as the AES shared key for decryption. The specified key will not be used merely by calling this function. Specified keys should be set for use with NWC24SetDlFlags().
The first time the function executes, it creates a file with a 2KB maximum size in the Home directory that can be confirmed using NANDCheck.
taskPublic |
Pointer to the download task. |
publicKey |
Specifies the public key for the application. Do not directly specify in ASN.1 format. Rather, use only the 2048-bit public coefficient portion. (Takes the ASN.1 format if created with OpenSSL.) If NULL is specified, the contents are zeroed out.
|
secretKey |
Specifies the shared secret key for the application. When NULL |
NWC24_OK: Ended normally.
NWC24_ERR_LIB_NOT_OPENED: The library has not been opened.
NWC24_ERR_FILE_*: Error related to internal file operations.
NWC24_ERR_FATAL: A fatal error has occurred.
2007/07/13 Initial version.
CONFIDENTIAL