diff options
author | Matt Johnston <matt@ucc.asn.au> | 2004-08-17 10:20:20 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2004-08-17 10:20:20 +0000 |
commit | 4a52217ed410dfbfdceee4688688d756fa0d097e (patch) | |
tree | aa75223fe057999adadd9aa8891ee9e926d11354 /genrsa.c | |
parent | 954a8dce0fdd5f4d16eeb5436e4a8659e91e1cbd (diff) |
default initialisers for mp_ints
--HG--
extra : convert_revision : af69bacb50a31523e383e8f73844d04681f9e394
Diffstat (limited to 'genrsa.c')
-rw-r--r-- | genrsa.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -40,7 +40,9 @@ static void getrsaprime(mp_int* prime, mp_int *primeminus, rsa_key * gen_rsa_priv_key(unsigned int size) { rsa_key * key; - mp_int pminus, qminus, lcm; + DEF_MP_INT(pminus); + DEF_MP_INT(qminus); + DEF_MP_INT(lcm); key = (rsa_key*)m_malloc(sizeof(rsa_key)); @@ -95,7 +97,7 @@ static void getrsaprime(mp_int* prime, mp_int *primeminus, mp_int* rsa_e, unsigned int size) { unsigned char *buf; - mp_int temp_gcd; + DEF_MP_INT(temp_gcd); buf = (unsigned char*)m_malloc(size+1); |