X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=aes_dec-asm_faster.S;h=8822c32fea87c727be34d0ee4f5716be715ec938;hb=17332291e15183d71d88ed868275e3cb53917180;hp=08d3b979d8e71aadf9cd829d15fbbe90f8ef6c96;hpb=8ef8dfdc7299ac1c30869ec6ad4d11276f0cf5db;p=avr-crypto-lib.git diff --git a/aes_dec-asm_faster.S b/aes_dec-asm_faster.S index 08d3b97..8822c32 100644 --- a/aes_dec-asm_faster.S +++ b/aes_dec-asm_faster.S @@ -1,6 +1,6 @@ /* aes_dec-asm.S */ /* - This file is part of the Crypto-avr-lib/microcrypt-lib. + This file is part of the This file is part of the AVR-Crypto-Lib. Copyright (C) 2008, 2009 Daniel Otte (daniel.otte@rub.de) This program is free software: you can redistribute it and/or modify @@ -10,7 +10,7 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License @@ -92,13 +92,11 @@ aes_decrypt_core: add r26, r20 adc r27, r1 clt -; ldi CTR, 2 .irp param, ST00, ST01, ST02, ST03, ST10, ST11, ST12, ST13, ST20, ST21, ST22, ST23, ST30, ST31, ST32, ST33 ld \param, Z+ .endr ldi xREDUCER, 0x1b /* load reducer */ - ldi r31, hi8(aes_invsbox) .irp param, ST33, ST32, ST31, ST30, ST23, ST22, ST21, ST20, ST13, ST12, ST11, ST10, ST03, ST02, ST01, ST00 @@ -110,6 +108,7 @@ aes_decrypt_core: brne 2f set 2: + ldi r31, hi8(aes_invsbox) /* substitute and invShift */ .irp param, ST00, ST10, ST20, ST30 mov r30, \param @@ -384,7 +383,6 @@ exit: 3: eor T1, T3 eor ST30, T1 - ldi r31, hi8(aes_invsbox) rjmp 1b .balign 256