From 0a2abed6b92ccfd5a3856afb337636b1e7c3556a Mon Sep 17 00:00:00 2001 From: nakasima Date: Wed, 6 Jun 2007 10:26:35 +0000 Subject: [PATCH] add sha-1 elements in syscall. git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/twl_wrapsdk/trunk@113 4ee2a332-4b2b-5046-8439-1ba90f034370 --- include/twl/os/common/systemCall.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/twl/os/common/systemCall.h b/include/twl/os/common/systemCall.h index eba5835..5c41cbd 100644 --- a/include/twl/os/common/systemCall.h +++ b/include/twl/os/common/systemCall.h @@ -48,13 +48,17 @@ int SVC_DecryptoSignDER( const void* key_ptr // キーへのポインタ ); -int SVC_GetDigest( +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_CompareDigest( +int SVC_CompareSHA1( const void* decedHash, // SVC_Decrypto*の出力 const void* digest // SVC_GetDigestの出力 ); @@ -72,6 +76,7 @@ int SVC_UncompressLZ16FromDeviceIMG( const void* srcp, ); + #ifdef __cplusplus } /* extern "C" */ #endif