1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Common registers for PPC AES implementation
5 * Copyright (c) 2015 Markus Stockhausen <stockhausen@collogia.de>
8 #define rKS r0 /* copy of en-/decryption key pointer */
9 #define rDP r3 /* destination pointer */
10 #define rSP r4 /* source pointer */
11 #define rKP r5 /* pointer to en-/decryption key pointer */
12 #define rRR r6 /* en-/decryption rounds */
13 #define rLN r7 /* length of data to be processed */
14 #define rIP r8 /* potiner to IV (CBC/CTR/XTS modes) */
15 #define rKT r9 /* pointer to tweak key (XTS mode) */
16 #define rT0 r11 /* pointers to en-/decryption tables */
18 #define rD0 r9 /* data */
22 #define rW0 r16 /* working registers */
30 #define rI0 r24 /* IV */
34 #define rG0 r28 /* endian reversed tweak (XTS mode) */