diff --git a/include/twl/os/common/systemCall.h b/include/twl/os/common/systemCall.h index 455d00b..8982095 100644 --- a/include/twl/os/common/systemCall.h +++ b/include/twl/os/common/systemCall.h @@ -17,8 +17,9 @@ #ifndef TWL_OS_SYSTEMCALL_H_ #define TWL_OS_SYSTEMCALL_H_ -#define SVC_SHA1_BLOCK_SIZE 64 #define SVC_SHA1_DIGEST_SIZE 20 +#define SVC_SHA1_BLOCK_SIZE 64 +#define SVC_RSA1024_BLOCK_SIZE 128 #ifdef __cplusplus extern "C" { @@ -124,6 +125,14 @@ void SVC_HMACSHA1Update( SVCHMACSHA1Context *ctx, const void *data, u32 len ); void SVC_HMACSHA1GetHash( SVCHMACSHA1Context *ctx, void* md ); void SVC_CalcHMACSHA1( void* md, const void* data, u32 len, const void* key, u32 keylen ); +// internal + +int SVCi_DecryptSign( + const SVCSignHeapContext* acmemory_pool, + void* buffer, // 出力領域 + const void* sgn_ptr, // データへのポインタ + const void* key_ptr // キーへのポインタ + ); #ifdef __cplusplus } /* extern "C" */ diff --git a/lib/ARM7-TS/etc/libsyscall_sp.twl.a b/lib/ARM7-TS/etc/libsyscall_sp.twl.a index c800f6a..4a03677 100644 Binary files a/lib/ARM7-TS/etc/libsyscall_sp.twl.a and b/lib/ARM7-TS/etc/libsyscall_sp.twl.a differ diff --git a/lib/ARM9-TS/etc/libsyscall.twl.a b/lib/ARM9-TS/etc/libsyscall.twl.a index bf97d8f..0d830ab 100644 Binary files a/lib/ARM9-TS/etc/libsyscall.twl.a and b/lib/ARM9-TS/etc/libsyscall.twl.a differ