From: chaoskagami Date: Thu, 4 Aug 2016 01:50:04 +0000 (-0400) Subject: Fix obvious mistake X-Git-Tag: v0.3.0~66^2~1^2~3 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=fee9403411095ee477583c54de6d38d427f51801;p=corbenik%2Fcorbenik.git Fix obvious mistake --- 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; } }