diff --git a/lib/std/crypto/chacha20.zig b/lib/std/crypto/chacha20.zig index 52c0857a675351ff664ac06d2913b72e82c4a36e..e51123eb81ff326b77d608d7ae17fa15f43952dc 100644 --- a/lib/std/crypto/chacha20.zig +++ b/lib/std/crypto/chacha20.zig @@ -507,7 +507,7 @@ pub fn chacha20poly1305OpenDetached(dst: []u8, ciphertext: []const u8, tag: *con // See https://github.com/ziglang/zig/issues/1776 var acc: u8 = 0; for (computedTag) |_, i| { - acc |= (computedTag[i] ^ tag.*[i]); + acc |= (computedTag[i] ^ tag[i]); } if (acc != 0) { return error.AuthenticationFailed;