chiark
/
gitweb
/
~mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d86dc1
)
pub/dh-kcdsa.c: Free the correct factor.
author
Mark Wooding
<mdw@distorted.org.uk>
Wed, 23 Oct 2019 03:10:27 +0000
(
04:10
+0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 16 Dec 2019 17:13:12 +0000
(17:13 +0000)
pub/dh-kcdsa.c
patch
|
blob
|
blame
|
history
diff --git
a/pub/dh-kcdsa.c
b/pub/dh-kcdsa.c
index e7733095b7ea6ca1ad1622fe7a9f0d47e5a4b4e8..5feda92f3871ac75385b2ef7ec2e030aa4b4c44a 100644
(file)
--- a/
pub/dh-kcdsa.c
+++ b/
pub/dh-kcdsa.c
@@
-88,7
+88,7
@@
int dh_kcdsagen(dh_param *dp, unsigned ql, unsigned pl,
dp->q = pgen("p", MP_NEW, x, ev, ec,
steps, pgen_simulstep, &ss,
rabin_iters(ql), pgen_simultest, &ss);
- mp_drop(sp[
0
].mul);
+ mp_drop(sp[
1
].mul);
if (!dp->q)
goto fail_1;
dp->p = sp[1].u.x;