| ... | ... | @@ -585,12 +585,12 @@ fn Aegis256XGeneric(comptime degree: u7, comptime tag_bits: u9) type { |
| 585 | 585 | var dst: [block_length]u8 align(alignment) = undefined; |
| 586 | 586 | var i: usize = 0; |
| 587 | 587 | while (i + block_length <= ad.len) : (i += block_length) { |
| 588 | | state.enc(&dst, ad[i..][0..block_length]); |
| 588 | state.absorb(ad[i..][0..block_length]); |
| 589 | 589 | } |
| 590 | 590 | if (ad.len % block_length != 0) { |
| 591 | 591 | @memset(src[0..], 0); |
| 592 | 592 | @memcpy(src[0 .. ad.len % block_length], ad[i..][0 .. ad.len % block_length]); |
| 593 | | state.enc(&dst, &src); |
| 593 | state.absorb(&src); |
| 594 | 594 | } |
| 595 | 595 | i = 0; |
| 596 | 596 | while (i + block_length <= m.len) : (i += block_length) { |