From f46e375bbe0ac0893717bd477eab78f51863e277 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 17 Aug 2020 00:10:49 +0200 Subject: [PATCH] std/crypto: gimli.Aead.decrypt()'s ad should be const --- lib/std/crypto/gimli.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/crypto/gimli.zig b/lib/std/crypto/gimli.zig index 2bfbfe32f0..6861c72a63 100644 --- a/lib/std/crypto/gimli.zig +++ b/lib/std/crypto/gimli.zig @@ -269,7 +269,7 @@ pub const Aead = struct { /// npub: public nonce /// k: private key /// NOTE: the check of the authentication tag is currently not done in constant time - pub fn decrypt(m: []u8, c: []const u8, at: [State.RATE]u8, ad: []u8, npub: [16]u8, k: [32]u8) !void { + pub fn decrypt(m: []u8, c: []const u8, at: [State.RATE]u8, ad: []const u8, npub: [16]u8, k: [32]u8) !void { assert(c.len == m.len); var state = Aead.init(ad, npub, k);