]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Fix missing const in drbg_ctr_aes256_init prototype. master
authorNiels Möller <nisse@lysator.liu.se>
Sat, 4 Apr 2026 17:48:19 +0000 (19:48 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Sat, 4 Apr 2026 17:48:19 +0000 (19:48 +0200)
ChangeLog
drbg-ctr-aes256.c
drbg-ctr.h
nettle.texinfo

index 8e670385e661bb1e5f5a22ea00bc06d034cf2330..66dea15a1cc4ea15297706f8cc8d1eef02118870 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2026-04-03  Niels Möller  <nisse@lysator.liu.se>
+
+       * drbg-ctr-aes256.c (drbg_ctr_aes256_init): Use const for
+       seed_material argument.
+
 2026-03-19  Niels Möller  <nisse@lysator.liu.se>
 
        * nettle.texinfo (Curve 25519 and Curve 448): Document that one
index d9fdae89b54f2334bf8392e684df769fae8f7879..75fba500ccb39e1062b45fc30482d563d3a5509c 100644 (file)
@@ -74,7 +74,7 @@ drbg_ctr_aes256_update (struct drbg_ctr_aes256_ctx *ctx,
 }
 
 void
-drbg_ctr_aes256_init (struct drbg_ctr_aes256_ctx *ctx, uint8_t *seed_material)
+drbg_ctr_aes256_init (struct drbg_ctr_aes256_ctx *ctx, const uint8_t *seed_material)
 {
   static const uint8_t zero_key[AES256_KEY_SIZE] = {0};
 
index f911d5e7870b16187220bb24c15a5a363ee16c95..bfd4b5b06b1f3078d15c08c83f65b14cd2f4926f 100644 (file)
@@ -56,7 +56,7 @@ struct drbg_ctr_aes256_ctx
    SEED_MATERIAL.  */
 void
 drbg_ctr_aes256_init (struct drbg_ctr_aes256_ctx *ctx,
-                     uint8_t *seed_material);
+                     const uint8_t *seed_material);
 
 /* Output N bytes of random data into DST.  */
 void
index 59a395dabf9c81348d11c61d9cf71e5f8b88c4b7..fb602106158912431f88cb131f7cde97858c5335 100644 (file)
@@ -6270,7 +6270,7 @@ Nettle defines DRBG-CTR in @file{<nettle/drbg-ctr.h>}.
 The size of the seeding material.
 @end defvr
 
-@deftypefun void drbg_ctr_aes256_init (struct drbg_ctr_aes256_ctx *@var{ctx}, uint8_t *@var{seed_material})
+@deftypefun void drbg_ctr_aes256_init (struct drbg_ctr_aes256_ctx *@var{ctx}, const uint8_t *@var{seed_material})
 Initialize the DRBG-CTR-AES256 context using
 @code{DRBG_CTR_AES256_SEED_SIZE} bytes of @var{seed_material}.
 @end deftypefun