Commit f46e375bbe

Frank Denis <github@pureftpd.org>
2020-08-17 00:10:49
std/crypto: gimli.Aead.decrypt()'s ad should be const
1 parent 8d8d568
Changed files (1)
lib
std
crypto
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);