commit f46e375bbe0ac0893717bd477eab78f51863e277 (tree)
parent 8d8d568854d33be7bcc2bc9874029d1082914af7
Author: Frank Denis <github@pureftpd.org>
Date: Mon, 17 Aug 2020 00:10:49 +0200
std/crypto: gimli.Aead.decrypt()'s ad should be const
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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);