summaryrefslogtreecommitdiffhomepage
path: root/gendss.c
diff options
context:
space:
mode:
Diffstat (limited to 'gendss.c')
-rw-r--r--gendss.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/gendss.c b/gendss.c
index 6988552..d589722 100644
--- a/gendss.c
+++ b/gendss.c
@@ -31,7 +31,6 @@
#include "gendss.h"
#include "dss.h"
-#define PSIZE 128 /* 1024 bit*/
#define QSIZE 20 /* 160 bit */
/* This is just a test */
@@ -92,7 +91,10 @@ static void getq(dss_key *key) {
static void getp(dss_key *key, unsigned int size) {
- mp_int tempX, tempC, tempP, temp2q;
+ DEF_MP_INT(tempX);
+ DEF_MP_INT(tempC);
+ DEF_MP_INT(tempP);
+ DEF_MP_INT(temp2q);
int result;
unsigned char *buf;
@@ -150,7 +152,9 @@ static void getp(dss_key *key, unsigned int size) {
static void getg(dss_key * key) {
- mp_int div, h, val;
+ DEF_MP_INT(div);
+ DEF_MP_INT(h);
+ DEF_MP_INT(val);
m_mp_init_multi(&div, &h, &val, NULL);
@@ -185,7 +189,7 @@ static void getg(dss_key * key) {
static void getx(dss_key *key) {
- mp_int val;
+ DEF_MP_INT(val);
char buf[QSIZE];
m_mp_init(&val);