⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hash.h

📁 psp开发用的所有头文件。包含所有系统API。需要psp-gcc编译器。在www.psp-dev.com上有
💻 H
字号:
/* * PSP Software Development Kit - http://www.pspdev.org * ----------------------------------------------------------------------- * Licensed under the BSD license, see LICENSE in PSPSDK root for details. * * hash.h - Declarations for functions in hash.c * * Copyright (c) 2005 Jim Paris <jim@jtan.com> * Coypright (c) 2005 psp123 * * $Id: hash.h 1559 2005-12-10 01:10:11Z jim $ */#include <pspchnnlsv.h>/* Update the hashes in the param.sfo data, using   the given file hash, and by computing the param.sfo hashes.   filehash must be a multiple of 16 bytes, and is reused to   store other hashes.  The filename is e.g. "DATA.BIN". */int update_hashes(unsigned char *data,		  int len,		  const char *filename,		  unsigned char *filehash,		  int encryptmode);/* Build a single hash using the given data and mode.    data, and alignedLen must be multiples of 0x10.   cryptkey is NULL for savedata.*/int build_hash(unsigned char *output,	       unsigned char *data,	       unsigned int len,	       unsigned int alignedLen,	       int mode,	       unsigned char *cryptkey);

⌨️ 快捷键说明

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