From 08f01a4ccc2ee517fe5863971c02ab5de0207f30 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 14 Oct 2019 00:52:58 +0100 Subject: [PATCH] algorithms.c (AEADAAD.copy): Propagate the hashed length to the copy. --- algorithms.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.11.0