mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@3 b08762b0-b915-fc4b-9d8c-17b2551a87ff
94 lines
3.3 KiB
C
94 lines
3.3 KiB
C
/*---------------------------------------------------------------------------*
|
|
Project: TwlSDK - OS - include
|
|
File: systemCall.h
|
|
|
|
Copyright 2007 Nintendo. All rights reserved.
|
|
|
|
These coded instructions, statements, and computer programs contain
|
|
proprietary information of Nintendo of America Inc. and/or Nintendo
|
|
Company Ltd., and are protected by Federal copyright law. They may
|
|
not be disclosed to third parties or copied or duplicated in any form,
|
|
in whole or in part, without the prior written consent of Nintendo.
|
|
|
|
$Date:: 2007-09-06$
|
|
$Rev$
|
|
$Author$
|
|
*---------------------------------------------------------------------------*/
|
|
|
|
#ifndef TWL_OS_SYSTEMCALL_H_
|
|
#define TWL_OS_SYSTEMCALL_H_
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int SVC_InitSignHeap(
|
|
int acmemory_pool[3],
|
|
void* heap,
|
|
unsigned int length
|
|
);
|
|
|
|
int SVC_DecryptoRSA(
|
|
const void* acmemory_pool,
|
|
const void* pData,
|
|
unsigned int* len // 出力サイズ
|
|
);
|
|
|
|
int SVC_DecryptoSign(
|
|
const void* acmemory_pool,
|
|
void* buffer, // 出力領域
|
|
const void* sgn_ptr, // データへのポインタ
|
|
const void* key_ptr // キーへのポインタ
|
|
);
|
|
|
|
int SVC_DecryptoSignDER(
|
|
const void* acmemory_pool,
|
|
void* buffer, // 出力領域
|
|
const void* sgn_ptr, // データへのポインタ
|
|
const void* key_ptr // キーへのポインタ
|
|
);
|
|
|
|
void SVC_SHA1Init( void *c );
|
|
void SVC_SHA1Update( void *c, const unsigned char *data, unsigned long len );
|
|
void SVC_SHA1GetHash( unsigned char *md, void *c );
|
|
|
|
int SVC_CalcSHA1(
|
|
void* buffer, // 出力領域
|
|
const void* buf, // データへのポインタ
|
|
unsigned int len // データの長さ
|
|
);
|
|
|
|
int SVC_CompareSHA1(
|
|
const void* decedHash, // SVC_Decrypto*の出力
|
|
const void* digest // SVC_GetDigestの出力
|
|
);
|
|
|
|
int SVC_RandomSHA1(
|
|
void* dest_ptr, // 出力データへのポインタ
|
|
unsigned int dest_len, // 出力データの長さ
|
|
const void* src_ptr, // 入力データへのポインタ
|
|
unsigned int src_len // 入力データの長さ
|
|
);
|
|
|
|
int SVC_UncompressLZ8FromDevice( const void* srcp,
|
|
void* destp,
|
|
const void* paramp,
|
|
const MIReadStreamCallbacks *callbacks
|
|
);
|
|
|
|
int SVC_UncompressLZ16FromDeviceIMG( const void* srcp,
|
|
void* destp,
|
|
const void* paramp,
|
|
const MIReadStreamCallbacks *callbacks
|
|
);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
/* TWL_OS_SYSTEMCALL_H_ */
|
|
#endif
|