#include <revolution/nwc24.h>
#define NWC24_DL_SECRETKEY_LENGTH (128 / 8)
NWC24Err NWC24SetDlSecretKey( const NWC24DlTask* taskPublic, const u8 secretKey[NWC24_DL_SECRETKEY_LENGTH] );
This function is retained for compatibility. From now on you should use NWC24SetDlKeys.
Sets the shared secret key for content decryption.
Calling this function is not sufficient for using the specified public key. You also need to call NWC24SetDlFlags() to enable the application's public key.
taskPublic |
Pointer to the download task. |
secretKey |
Shared secret key. |
NWC24_OK: Ended normally.
NWC24_ERR_LIB_NOT_OPENED: The library has not been opened.
NWC24_ERR_PROTECTED: Could not write the download task.
NWC24_ERR_INVALID_VALUE: The value of either taskPublic or publicKey is NULL, or the download task is invalid
NWC24_ERR_FILE_*: Error relating to internal file operations.
NWC24_ERR_FATAL: A fatal error has occurred.
2007/08/28 Added mention that use of this function is not recommended.
2007/06/06 Initial version.
CONFIDENTIAL