From cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 1 Apr 2006 19:24:03 +0000 Subject: Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. --- src/libsec/port/dsagen.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libsec/port/dsagen.c') diff --git a/src/libsec/port/dsagen.c b/src/libsec/port/dsagen.c index 46c369e1..cf35f043 100644 --- a/src/libsec/port/dsagen.c +++ b/src/libsec/port/dsagen.c @@ -29,9 +29,9 @@ dsagen(DSApub *opub) pub->key = mpnew(0); priv->secret = mpnew(0); - // find a generator alpha of the multiplicative - // group Z*p, i.e., of order n = p-1. We use the - // fact that q divides p-1 to reduce the exponent. + /* find a generator alpha of the multiplicative */ + /* group Z*p, i.e., of order n = p-1. We use the */ + /* fact that q divides p-1 to reduce the exponent. */ exp = mpnew(0); g = mpnew(0); r = mpnew(0); @@ -49,7 +49,7 @@ dsagen(DSApub *opub) mpfree(g); mpfree(exp); - // create the secret key + /* create the secret key */ mprand(bits, genrandom, priv->secret); mpmod(priv->secret, pub->p, priv->secret); mpexp(pub->alpha, priv->secret, pub->p, pub->key); -- cgit v1.2.3