]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
ChangeLog entries. relax-gcm_update
authorNiels Möller <nisse@lysator.liu.se>
Sun, 10 Mar 2024 09:33:06 +0000 (10:33 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Sun, 10 Mar 2024 09:33:06 +0000 (10:33 +0100)
ChangeLog

index 4fa4a72f003f561c8ad8751c44a64449305396d4..589fac27b19bda3bd8a4a733810a15add9116d30 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,26 @@
+2024-03-10  Niels Möller  <nisse@lysator.liu.se>
+
+       * 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  <nisse@lysator.liu.se>
 
        Fix ubsan issues for empty hash updates.