chiark
/
gitweb
/
~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release 1.0.5.
[catacomb-python]
/
ec.c
diff --git
a/ec.c
b/ec.c
index f31670e3a2f904a6dfab36feba9788d9f3355f1d..21aa352990ebdaaa0bfc6a23b3dc5317810d7c3b 100644
(file)
--- a/
ec.c
+++ b/
ec.c
@@
-1,6
+1,4
@@
/* -*-c-*-
/* -*-c-*-
- *
- * $Id$
*
* Elliptic curves
*
*
* Elliptic curves
*
@@
-774,10
+772,10
@@
static int ecmmul_fill(void *pp, PyObject *me, PyObject *x, PyObject *m)
{
ec_mulfactor *f = pp;
{
ec_mulfactor *f = pp;
+ EC_CREATE(&f->base);
if (getecpt(ECCURVE_C(me), &f->base, x) ||
(f->exp = getmp(m)) == 0)
return (-1);
if (getecpt(ECCURVE_C(me), &f->base, x) ||
(f->exp = getmp(m)) == 0)
return (-1);
- f->base = *ECPT_P(x);
return (0);
}
return (0);
}
@@
-1529,7
+1527,7
@@
static PyObject *namedcurves(void)
}
c = PyInt_FromLong(i);
found:
}
c = PyInt_FromLong(i);
found:
- PyDict_SetItemString(d, (/*unconst*/ char *)
ectab[i].name
, c);
+ PyDict_SetItemString(d, (/*unconst*/ char *)
p
, c);
Py_DECREF(c);
}
ncurves = i;
Py_DECREF(c);
}
ncurves = i;