X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/49915b4a09cc89ccd426b29f7113b380828361d3..6313f40e5130ed03dcadc0a464865915f07f80ae:/ec.c diff --git a/ec.c b/ec.c index f31670e..21aa352 100644 --- a/ec.c +++ b/ec.c @@ -1,7 +1,5 @@ /* -*-c-*- * - * $Id$ - * * Elliptic curves * * (c) 2004 Straylight/Edgeware @@ -774,10 +772,10 @@ static int ecmmul_fill(void *pp, PyObject *me, PyObject *x, PyObject *m) { ec_mulfactor *f = pp; + EC_CREATE(&f->base); if (getecpt(ECCURVE_C(me), &f->base, x) || (f->exp = getmp(m)) == 0) return (-1); - f->base = *ECPT_P(x); return (0); } @@ -1529,7 +1527,7 @@ static PyObject *namedcurves(void) } 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;