chiark
/
gitweb
/
~mdw
/
catacomb-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
24b3d57
)
ec: Convert generator to external form in ECInfo constructor.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 16 Nov 2006 00:13:06 +0000
(
00:13
+0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Thu, 16 Nov 2006 00:13:06 +0000
(
00:13
+0000)
This fixes a stupid bug.
ec.c
patch
|
blob
|
blame
|
history
diff --git
a/ec.c
b/ec.c
index 51733568dfb89ddf4ba025d62bbd5314d84153db..fcbb8c253cc6ee160f97276b065b95451e11c061 100644
(file)
--- a/
ec.c
+++ b/
ec.c
@@
-1327,7
+1327,7
@@
static PyObject *ecinfo_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw)
TYERR("point not from this curve");
ei.c = ECCURVE_C(e);
EC_CREATE(&ei.g);
TYERR("point not from this curve");
ei.c = ECCURVE_C(e);
EC_CREATE(&ei.g);
- EC_
COPY(
&ei.g, ECPT_P(g));
+ EC_
OUT(ei.c,
&ei.g, ECPT_P(g));
rc = (ecinfo_pyobj *)ty->tp_alloc(ty, 0);
rc->ei = ei;
rc->cobj = e;
rc = (ecinfo_pyobj *)ty->tp_alloc(ty, 0);
rc->ei = ei;
rc->cobj = e;