From 5829c668e7bb4e9bc393dcad5d4fa6ec7a2f88f4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niels=20M=C3=B6ller?= Date: Sun, 10 Mar 2024 10:33:06 +0100 Subject: [PATCH] ChangeLog entries. --- ChangeLog | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4fa4a72f..589fac27 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,26 @@ +2024-03-10 Niels Möller + + * md-internal.h (MD_FILL_OR_RETURN): Take block and index as + separate arguments. + * sha256.c (sha256_update): Adjust use of MD_FILL_OR_RETURN. + + * gcm.c (gcm_set_iv): Drop initialization of ctr. + (gcm_update): Allow arbitrary length argument, reuse the ctr field + for buffering any leftover associated data. + (gcm_pad_adata, gcm_init_crypt): New functions. + (gcm_encrypt, gcm_decrypt): Explicitly check for empty input and + return. Call gcm_init_crypt on first call with non-empty input, + (gcm_digest): Call gcm_pad_adata if not done by previous + gcm_encrypt or gcm_decrypt. + + * testsuite/testutils.c (test_aead): Test with associated split + data into two pieces in different ways. Also add an call to + update(ctx, 0, NULL) in the middle, and encrypt calls with empty + input. + + * poly1305-update.c (_nettle_poly1305_update): Explicitly check + for empty input and return. + 2024-03-08 Niels Möller Fix ubsan issues for empty hash updates. -- 2.47.2