/*1* PSP Software Development Kit - http://www.pspdev.org2* -----------------------------------------------------------------------3* Licensed under the BSD license, see LICENSE in PSPSDK root for details.4*5* decrypt.h - Declarations for functions in decrypt.c6*7* Copyright (c) 2005 Jim Paris <[email protected]>8* Coypright (c) 2005 psp1239*10* $Id: decrypt.h 1562 2005-12-10 20:52:45Z jim $11*/1213#include <pspchnnlsv.h>1415/* Detect the samegame format and decrypt it. See main.c for an example. */16int decrypt_file(const char *decrypted_filename,17const char *encrypted_filename,18const unsigned char *gamekey,19const int mainSdkVersion);2021/* Do the actual hardware decryption.22mode is 3 for saves with a cryptkey, or 1 otherwise.23data, alignedLen, and cryptkey must be multiples of 0x10.24cryptkey is NULL if mode == 1.25*/26int decrypt_data(unsigned int mode,27unsigned char *data,28int *dataLen,29int *alignedLen,30unsigned char *cryptkey);313233