2 * Common registers for PPC AES implementation
4 * Copyright (c) 2015 Markus Stockhausen <stockhausen@collogia.de>
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2 of the License, or (at your option)
13 #define rKS r0 /* copy of en-/decryption key pointer */
14 #define rDP r3 /* destination pointer */
15 #define rSP r4 /* source pointer */
16 #define rKP r5 /* pointer to en-/decryption key pointer */
17 #define rRR r6 /* en-/decryption rounds */
18 #define rLN r7 /* length of data to be processed */
19 #define rIP r8 /* potiner to IV (CBC/CTR/XTS modes) */
20 #define rKT r9 /* pointer to tweak key (XTS mode) */
21 #define rT0 r11 /* pointers to en-/decryption tables */
23 #define rD0 r9 /* data */
27 #define rW0 r16 /* working registers */
35 #define rI0 r24 /* IV */
39 #define rG0 r28 /* endian reversed tweak (XTS mode) */