TwlToolsRED/build/tools/sctools/common/src/my_rsa_sign.h
miya 72d3a76d98 license表記追加
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlToolsRED@388 7061adef-622a-194b-ae81-725974e89856
2009-07-29 02:08:13 +00:00

32 lines
672 B
C

#ifndef _MY_RSA_SIGN_H_
#define _MY_RSA_SIGN_H_
#ifdef __cplusplus
extern "C" {
#endif
#define MY_RSA_SIGN_HASH_SIZE 32
#define MY_RSA_SIGN_RSA_SIZE 128
#define MY_RSA_SIGN_SUCCESS 0
#define MY_RSA_SIGN_ERROR_RSA_INIT_FAILED 1
#define MY_RSA_SIGN_ERROR_RSA_HASH_DECRYPT_FAILED 2
#define MY_RSA_SIGN_ERROR_HASH_CHECK_FAILED 3
#define MY_RSA_SIGN_ERROR_RSA_CONTENT_DECRYPT_FAILED 4
int my_rsa_sign( u8 *inbuf, u8 *outbuf, int buf_size, int *output_size );
BOOL RsaTestInit(void);
int RsaTestDecrypt(char *input, int in_len, char *output, int outlen);
#ifdef __cplusplus
}
#endif
#endif /* _MY_RSA_SIGN_H_ */