1 /* bmw_small_speed_asm_f0.S */
3 This file is part of the ARM-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/>.
22 .macro S32_0 out:req in:req
24 eor \out, \out, \in, LSL #3
25 eor \out, \out, \in, ROR #28
26 eor \out, \out, \in, ROR #13
29 .macro S32_1 out:req in:req
31 eor \out, \out, \in, LSL #2
32 eor \out, \out, \in, ROR #24
33 eor \out, \out, \in, ROR #9
36 .macro S32_2 out:req in:req
38 eor \out, \out, \in, LSL #1
39 eor \out, \out, \in, ROR #20
40 eor \out, \out, \in, ROR #7
43 .macro S32_3 out:req in:req
45 eor \out, \out, \in, LSL #2
46 eor \out, \out, \in, ROR #17
47 eor \out, \out, \in, ROR #3
51 eor \in, \in, \in, LSR #1
55 eor \in, \in, \in, LSR #2
63 .type bmw_small_f0, %function
66 push {r4, r5, r6, r7, r8, r9, r10, r11, r12, r14}
68 #include "f0_small_autogen_mix.i"
70 pop {r4, r5, r6, r7, r8, r9, r10, r11, r12, PC}