From 396acb9f25f4f4ca9dc155cf500ca0a65107eca1 Mon Sep 17 00:00:00 2001 From: Ryan McConnell Date: Sun, 4 Jan 2026 10:39:34 -0500 Subject: [PATCH] init --- nimcrypto/bcmode.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimcrypto/bcmode.nim b/nimcrypto/bcmode.nim index d4dedba..68ab8bf 100644 --- a/nimcrypto/bcmode.nim +++ b/nimcrypto/bcmode.nim @@ -1195,8 +1195,8 @@ func decrypt*[T]( ctx.cipher.encrypt(ctx.y, ectr) for i in 0 ..< uselen: let ch = ectr[int(ctx.coffset) + i] xor input[offset + i] - output[offset + i] = ch ctx.hbuf[int(ctx.coffset) + i] = input[offset + i] + output[offset + i] = ch length -= uselen offset += uselen ctx.coffset = (ctx.coffset + uint8(uselen)) and uint8(GCMBlockSize - 1)