diff options
author | Niels Möller <nisse@lysator.liu.se> | 2022-11-28 19:54:32 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2023-02-06 20:20:01 +0100 |
commit | a2d0df004485a4ed799bbcbc82a99a6715ff1bc9 (patch) | |
tree | 4d99ad5847e12f691db5ee6642c8feeadb00ed31 | |
parent | 8b91028f56c1a1f39476e62a2c94ad262a042a59 (diff) | |
download | nettle-a2d0df004485a4ed799bbcbc82a99a6715ff1bc9.tar.gz |
Make ctx argument to ocb_digest const.
-rw-r--r-- | ocb.c | 2 | ||||
-rw-r--r-- | ocb.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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) { @@ -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); |