mirror of
https://github.com/rvtr/twl_wrapsdk.git
synced 2025-06-18 14:25:43 -04:00
SVC_DecryptSignの出力サイズをSVC_SHA1_DIGEST_SIZE(20バイト)固定に。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/twl_wrapsdk/trunk@331 4ee2a332-4b2b-5046-8439-1ba90f034370
This commit is contained in:
parent
866e14d076
commit
cda26b101e
@ -17,8 +17,9 @@
|
|||||||
#ifndef TWL_OS_SYSTEMCALL_H_
|
#ifndef TWL_OS_SYSTEMCALL_H_
|
||||||
#define TWL_OS_SYSTEMCALL_H_
|
#define TWL_OS_SYSTEMCALL_H_
|
||||||
|
|
||||||
#define SVC_SHA1_BLOCK_SIZE 64
|
|
||||||
#define SVC_SHA1_DIGEST_SIZE 20
|
#define SVC_SHA1_DIGEST_SIZE 20
|
||||||
|
#define SVC_SHA1_BLOCK_SIZE 64
|
||||||
|
#define SVC_RSA1024_BLOCK_SIZE 128
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
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_HMACSHA1GetHash( SVCHMACSHA1Context *ctx, void* md );
|
||||||
void SVC_CalcHMACSHA1( void* md, const void* data, u32 len, const void* key, u32 keylen );
|
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
|
#ifdef __cplusplus
|
||||||
} /* extern "C" */
|
} /* extern "C" */
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user