3 This file is part of the AVR-Crypto-Lib.
4 Copyright (C) 2006-2010 Daniel Otte (daniel.otte@rub.de)
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 .global rotate64_1bit_left
34 .global rotate64_1bit_right
48 .global rotate64_nbit_autodir
49 rotate64_nbit_autodir:
51 brcc rotate64_nbit_left
52 .global rotate64_nbit_right
54 ldi r30, pm_lo8(rotate64_1bit_right)
55 ldi r31, pm_hi8(rotate64_1bit_right)
57 .global rotate64_nbit_left
59 ldi r30, pm_lo8(rotate64_1bit_left)
60 ldi r31, pm_hi8(rotate64_1bit_left)
146 rjmp rotate64_1byte_left
147 rjmp rotate64_2byte_left
148 rjmp rotate64_3byte_left
149 rjmp rotate64_4byte_left
150 rjmp rotate64_5byte_left
151 rjmp rotate64_6byte_left
152 rjmp rotate64_7byte_left
154 .global rotate64left_code
156 ldi r30, pm_lo8(byte_rot_jmp_table)
157 ldi r31, pm_hi8(byte_rot_jmp_table)
168 rjmp rotate64_nbit_autodir