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:
7f38dc7
)
algorithms.c (AEADAAD.copy): Propagate the hashed length to the copy.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 13 Oct 2019 23:52:58 +0000
(
00:52
+0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 27 Nov 2019 15:11:29 +0000
(15:11 +0000)
algorithms.c
patch
|
blob
|
blame
|
history
diff --git
a/algorithms.c
b/algorithms.c
index 37d52cd49d88dafad281bbb87e059f27799c6603..1615c12bcb87edf2d622fe291dcae293a938ca1c 100644
(file)
--- a/
algorithms.c
+++ b/
algorithms.c
@@
-987,6
+987,7
@@
static PyObject *gaeameth_copy(PyObject *me, PyObject *arg)
VALERR("can't duplicate nonce-dependent aad");
rc = gaeadaad_pywrap((PyObject *)me->ob_type,
GAEAD_DUP(GAEADAAD_A(me)), 0, 0);
VALERR("can't duplicate nonce-dependent aad");
rc = gaeadaad_pywrap((PyObject *)me->ob_type,
GAEAD_DUP(GAEADAAD_A(me)), 0, 0);
+ GAEADAAD_HLEN(rc) = GAEADAAD_HLEN(me);
end:
return (rc);
}
end:
return (rc);
}