fix memory handling

This commit is contained in:
NIIBE Yutaka
2013-07-19 12:16:14 +09:00
parent 596a307219
commit 4db6994fa0
5 changed files with 35 additions and 18 deletions

View File

@@ -94,7 +94,7 @@ rsa_sign (const uint8_t *raw_message, uint8_t *output, int msg_len,
/*
* LEN: length in byte
*/
const uint8_t *
uint8_t *
modulus_calc (const uint8_t *p, int len)
{
mpi P, Q, N;
@@ -207,7 +207,7 @@ rsa_verify (const uint8_t *pubkey, const uint8_t *hash, const uint8_t *sig)
#define RSA_EXPONENT 0x10001
#ifdef KEYGEN_SUPPORT
const uint8_t *
uint8_t *
rsa_genkey (void)
{
int r;