From 4a52217ed410dfbfdceee4688688d756fa0d097e Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Tue, 17 Aug 2004 10:20:20 +0000 Subject: default initialisers for mp_ints --HG-- extra : convert_revision : af69bacb50a31523e383e8f73844d04681f9e394 --- genrsa.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'genrsa.c') diff --git a/genrsa.c b/genrsa.c index 330ebf2..5711519 100644 --- a/genrsa.c +++ b/genrsa.c @@ -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); -- cgit v1.2.3