]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Make ctx argument to ocb_digest const.
authorNiels Möller <nisse@lysator.liu.se>
Mon, 28 Nov 2022 18:54:32 +0000 (19:54 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Mon, 6 Feb 2023 19:20:01 +0000 (20:20 +0100)
ocb.c
ocb.h

diff --git a/ocb.c b/ocb.c
index 40ad4aa7deab29bc35aef6e3d5bd0e6bf6d37fb4..3a96cf0c772cefa753e72e1adb7f277f33afd042 100644 (file)
--- a/ocb.c
+++ b/ocb.c
@@ -247,7 +247,7 @@ ocb_decrypt (struct ocb_ctx *ctx, const struct ocb_key *key,
 }
 
 void
-ocb_digest (struct ocb_ctx *ctx, const struct ocb_key *key,
+ocb_digest (const struct ocb_ctx *ctx, const struct ocb_key *key,
            const void *cipher, nettle_cipher_func *f,
            size_t length, uint8_t *digest)
 {
diff --git a/ocb.h b/ocb.h
index 86ebef3a0ce519562160777fd0e894ce8c049800..8cf994e28e0982c607064f9d9032a5533fee62d8 100644 (file)
--- a/ocb.h
+++ b/ocb.h
@@ -106,7 +106,7 @@ ocb_decrypt (struct ocb_ctx *ctx, const struct ocb_key *key,
             size_t length, uint8_t *dst, const uint8_t *src);
 
 void
-ocb_digest (struct ocb_ctx *ctx, const struct ocb_key *key,
+ocb_digest (const struct ocb_ctx *ctx, const struct ocb_key *key,
            const void *cipher, nettle_cipher_func *f,
            size_t length, uint8_t *digest);