From fee9403411095ee477583c54de6d38d427f51801 Mon Sep 17 00:00:00 2001 From: chaoskagami Date: Wed, 3 Aug 2016 21:50:04 -0400 Subject: [PATCH] Fix obvious mistake --- source/firm/decryptor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/firm/decryptor.c b/source/firm/decryptor.c index fe2599a..1d792db 100644 --- a/source/firm/decryptor.c +++ b/source/firm/decryptor.c @@ -54,8 +54,8 @@ cbc_decrypt(void *inbuf, void *outbuf, size_t size, uint32_t mode, uint8_t *iv) blocks -= current_blocks; - in += AES_BLOCK_SIZE; - out += AES_BLOCK_SIZE; + in += AES_BLOCK_SIZE * current_blocks; + out += AES_BLOCK_SIZE * current_blocks; } } -- 2.39.5