/*1* PSP Software Development Kit - http://www.pspdev.org2* -----------------------------------------------------------------------3* Licensed under the BSD license, see LICENSE in PSPSDK root for details.4*5* hash.h - Declarations for functions in hash.c6*7* Copyright (c) 2005 Jim Paris <[email protected]>8* Coypright (c) 2005 psp1239*10* $Id: hash.h 1559 2005-12-10 01:10:11Z jim $11*/1213#include <pspchnnlsv.h>1415/* Update the hashes in the param.sfo data, using16the given file hash, and by computing the param.sfo hashes.17filehash must be a multiple of 16 bytes, and is reused to18store other hashes. The filename is e.g. "DATA.BIN". */19int update_hashes(unsigned char *data,20int len,21const char *filename,22unsigned char *filehash,23int encryptmode);2425/* Build a single hash using the given data and mode.26data, and alignedLen must be multiples of 0x10.27cryptkey is NULL for savedata.*/28int build_hash(unsigned char *output,29unsigned char *data,30unsigned int len,31unsigned int alignedLen,32int mode,33unsigned char *cryptkey);343536