diff options
author | jbj <devnull@localhost> | 2003-05-23 15:55:57 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2003-05-23 15:55:57 +0000 |
commit | 0baf05de865499764c4d9ff82c56679737432a0d (patch) | |
tree | b948541cfc4e6190a63a907fdc5989231403d208 /beecrypt/dsa.c | |
parent | dac695e290b95514115d68dbfe21209eeb66ee82 (diff) | |
download | librpm-tizen-0baf05de865499764c4d9ff82c56679737432a0d.tar.gz librpm-tizen-0baf05de865499764c4d9ff82c56679737432a0d.tar.bz2 librpm-tizen-0baf05de865499764c4d9ff82c56679737432a0d.zip |
Another merge to beecrypt-3.0.0.
CVS patchset: 6872
CVS date: 2003/05/23 15:55:57
Diffstat (limited to 'beecrypt/dsa.c')
-rw-r--r-- | beecrypt/dsa.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/beecrypt/dsa.c b/beecrypt/dsa.c index ecea2a1b1..c8222d632 100644 --- a/beecrypt/dsa.c +++ b/beecrypt/dsa.c @@ -147,8 +147,10 @@ int dsavrfy(const mpbarrett* p, const mpbarrett* q, const mpnumber* g, const mpn pwksp = ptemp+2*psize; qwksp = qtemp+2*qsize; + mpsetx(qsize, qtemp+qsize, s->size, s->data); + /* compute w = inv(s) mod q */ - if (mpbinv_w(q, s->size, s->data, qtemp, qwksp)) + if (mpextgcd_w(qsize, qtemp+qsize, q->modl, qtemp, qwksp)) { /* compute u1 = h(m)*w mod q */ mpbmulmod_w(q, hm->size, hm->data, qsize, qtemp, qtemp+qsize, qwksp); |