Skip to content

Commit 9679c06

Browse files
authored
x.crypto.ascon: fix decryption (#25382)
1 parent 5bc82ed commit 9679c06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎vlib/x/crypto/ascon/aead128.v‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ fn aead128_partial_dec(mut out []u8, mut s State, cmsg []u8) {
431431
s.e0 = c0
432432
s.e1 = clear_bytes(s.e1, last_block.len)
433433
s.e1 |= c1
434-
s.e0 ^= pad(last_block.len)
434+
s.e1 ^= pad(last_block.len)
435435
} else {
436436
last_block := unsafe { cmsg[pos..] }
437437
c0 := load_bytes(last_block, last_block.len)

0 commit comments

Comments
 (0)