Mercurial > dropbear
diff genrsa.c @ 84:29a5c7c62350
default initialisers for mp_ints
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 17 Aug 2004 10:20:20 +0000 |
parents | fe6bca95afa7 |
children | c9483550701b |
line wrap: on
line diff
--- a/genrsa.c Tue Aug 17 09:56:23 2004 +0000 +++ b/genrsa.c Tue Aug 17 10:20:20 2004 +0000 @@ -40,7 +40,9 @@ 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 @@ 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);