From: Niels Möller Date: Mon, 28 Nov 2022 18:54:32 +0000 (+0100) Subject: Make ctx argument to ocb_digest const. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2d0df004485a4ed799bbcbc82a99a6715ff1bc9;p=thirdparty%2Fnettle.git Make ctx argument to ocb_digest const. --- diff --git a/ocb.c b/ocb.c index 40ad4aa7..3a96cf0c 100644 --- 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 86ebef3a..8cf994e2 100644 --- 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);