From: Mark Wooding Date: Sun, 13 Oct 2019 23:52:58 +0000 (+0100) Subject: algorithms.c (AEADAAD.copy): Propagate the hashed length to the copy. X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/commitdiff_plain/de7abe027c49013c4b4254f9180e347c3f1d8cea algorithms.c (AEADAAD.copy): Propagate the hashed length to the copy. --- diff --git a/algorithms.c b/algorithms.c index 37d52cd..1615c12 100644 --- 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); + GAEADAAD_HLEN(rc) = GAEADAAD_HLEN(me); end: return (rc); }