diff options
author | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
commit | cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch) | |
tree | e0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/libsec/port/dsagen.c | |
parent | 226d80b8213821af0cbf092d1507c52b504fd368 (diff) | |
download | plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2 plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip |
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/libsec/port/dsagen.c')
-rw-r--r-- | src/libsec/port/dsagen.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); |