| author | |
| committer | |
| log | cd591a9b25619809840b32d6bb115e573f54e221 |
| tree | b5229daa0df07507b27f711a1fa1abdf748e0bc1 |
| parent | 795033c35fd7bb411277079e72b148bf7810c18e |
1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/crypto/chacha20.zig+1-1| ... | ... | @@ -507,7 +507,7 @@ pub fn chacha20poly1305OpenDetached(dst: []u8, ciphertext: []const u8, tag: *con |
| 507 | 507 | // See https://github.com/ziglang/zig/issues/1776 |
| 508 | 508 | var acc: u8 = 0; |
| 509 | 509 | for (computedTag) |_, i| { |
| 510 | acc |= (computedTag[i] ^ tag.*[i]); | |
| 510 | acc |= (computedTag[i] ^ tag[i]); | |
| 511 | 511 | } |
| 512 | 512 | if (acc != 0) { |
| 513 | 513 | return error.AuthenticationFailed; |