aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFrank Denis <github@pureftpd.org>2020-08-17 00:10:49 +0200
committerJakub Konka <kubkon@jakubkonka.com>2020-08-17 07:16:06 +0200
commitf46e375bbe0ac0893717bd477eab78f51863e277 (patch)
treedfb564e96fdfa846bd514311731302fda8a38870 /lib
parent8d8d568854d33be7bcc2bc9874029d1082914af7 (diff)
downloadzig-f46e375bbe0ac0893717bd477eab78f51863e277.tar.gz
zig-f46e375bbe0ac0893717bd477eab78f51863e277.zip
std/crypto: gimli.Aead.decrypt()'s ad should be const
Diffstat (limited to 'lib')
-rw-r--r--lib/std/crypto/gimli.zig2
1 files changed, 1 insertions, 1 deletions
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);