decrypt.h

来自「psp游戏机上的SDK的开发例子」· C头文件 代码 · 共 31 行

H
31
字号
/*
 * PSP Software Development Kit - http://www.pspdev.org
 * -----------------------------------------------------------------------
 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
 *
 * decrypt.h - Declarations for functions in decrypt.c
 *
 * Copyright (c) 2005 Jim Paris <jim@jtan.com>
 * Coypright (c) 2005 psp123
 *
 * $Id: decrypt.h 1562 2005-12-10 20:52:45Z jim $
 */

#include <pspchnnlsv.h>

/* Detect the samegame format and decrypt it.  See main.c for an example.  */
int decrypt_file(const char *decrypted_filename,
		 const char *encrypted_filename,
		 const unsigned char *gamekey);

/* Do the actual hardware decryption.
   mode is 3 for saves with a cryptkey, or 1 otherwise.
   data, alignedLen, and cryptkey must be multiples of 0x10.
   cryptkey is NULL if mode == 1.
*/
int decrypt_data(unsigned int mode, 
		 unsigned char *data,
		 int *dataLen,
		 int *alignedLen,
		 unsigned char *cryptkey);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?