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