| ... | @@ -507,7 +507,7 @@ pub fn chacha20poly1305OpenDetached(dst: []u8, ciphertext: []const u8, tag: *con | ... | @@ -507,7 +507,7 @@ pub fn chacha20poly1305OpenDetached(dst: []u8, ciphertext: []const u8, tag: *con |
| 507 | // See https://github.com/ziglang/zig/issues/1776 | 507 | // See https://github.com/ziglang/zig/issues/1776 |
| 508 | var acc: u8 = 0; | 508 | var acc: u8 = 0; |
| 509 | for (computedTag) |_, i| { | 509 | for (computedTag) |_, i| { |
| 510 | acc |= (computedTag[i] ^ tag.*[i]); | 510 | acc |= (computedTag[i] ^ tag[i]); |
| 511 | } | 511 | } |
| 512 | if (acc != 0) { | 512 | if (acc != 0) { |
| 513 | return error.AuthenticationFailed; | 513 | return error.AuthenticationFailed; |