chiark
/
gitweb
/
~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
catacomb.c: Publish `RAND_IBITS' constant.
[catacomb-python]
/
algorithms.c
diff --git
a/algorithms.c
b/algorithms.c
index dcfb22d9e287cb0d4da54cc1c1db21ebab9a6a81..61459a1f977eb4ab4da72f51bcfb1a7270a68dca 100644
(file)
--- a/
algorithms.c
+++ b/
algorithms.c
@@
-1645,7
+1645,7
@@
static PyObject *kxvikmeth_extract(PyObject *me, PyObject *arg)
unsigned i;
unsigned n;
unsigned i;
unsigned n;
- if (!PyArg_ParseTuple(arg, "O&:
mix
", convuint, &n)) goto end;
+ if (!PyArg_ParseTuple(arg, "O&:
extract
", convuint, &n)) goto end;
if (n > 200) VALERR("out of range");
rc = bytestring_pywrap(0, n);
q = (octet *)PyString_AS_STRING(rc);
if (n > 200) VALERR("out of range");
rc = bytestring_pywrap(0, n);
q = (octet *)PyString_AS_STRING(rc);
@@
-1880,7
+1880,7
@@
static PyObject *shakemeth_copy(PyObject *me, PyObject *arg)
rc->h = *SHAKE_H(me);
rc->st = SHAKE_ST(me);
end:
rc->h = *SHAKE_H(me);
rc->st = SHAKE_ST(me);
end:
- return ((PyObject *)
me
);
+ return ((PyObject *)
rc
);
}
static PyObject *shakemeth_get(PyObject *me, PyObject *arg)
}
static PyObject *shakemeth_get(PyObject *me, PyObject *arg)