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
(from parent 1:
d26c1ca
)
algorithms.c (hLATIN_prf): Allow all supported sizes of key.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 13 Oct 2019 23:59:30 +0000
(
00:59
+0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 22 Nov 2019 22:18:12 +0000
(22:18 +0000)
algorithms.c
patch
|
blob
|
blame
|
history
diff --git
a/algorithms.c
b/algorithms.c
index 3d79c039ca0ad599a369a0929b7e9c1871be4835..dcfb22d9e287cb0d4da54cc1c1db21ebab9a6a81 100644
(file)
--- a/
algorithms.c
+++ b/
algorithms.c
@@
-1568,7
+1568,7
@@
static PyTypeObject poly1305hash_pytype_skel = {
if (!PyArg_ParseTuple(arg, "s#s#:" #hdance "_prf", \
&k, &ksz, &n, &nsz)) \
goto end; \
- if (ksz !=
DANCE##_KEYSZ) VALERR("bad key length");
\
+ if (ksz !=
keysz(ksz, dance##_keysz)) VALERR("bad key length");
\
if (nsz != HDANCE##_INSZ) VALERR("bad input length"); \
rc = bytestring_pywrap(0, HSALSA20_OUTSZ); \
dance##_init(&dance, k, ksz, 0); \