Lines Matching +full:v1 +full:- +full:v6
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 * https://tools.ietf.org/id/draft-ribose-cfrg-sm4-10.html
30 ld1 {v16.16b-v19.16b}, [x5], #64; \
31 ld1 {v20.16b-v23.16b}, [x5], #64; \
32 ld1 {v24.16b-v27.16b}, [x5], #64; \
33 ld1 {v28.16b-v31.16b}, [x5];
62 /* sbox, non-linear part */ \
64 tbl RTMP0.16b, {v16.16b-v19.16b}, RX0.16b; \
66 tbx RTMP0.16b, {v20.16b-v23.16b}, RX0.16b; \
68 tbx RTMP0.16b, {v24.16b-v27.16b}, RX0.16b; \
70 tbx RTMP0.16b, {v28.16b-v31.16b}, RX0.16b; \
76 sri RTMP1.4s, RTMP0.4s, #(32-8); \
77 sri RTMP2.4s, RTMP0.4s, #(32-16); \
78 sri RTMP3.4s, RTMP0.4s, #(32-24); \
85 sri RTMP2.4s, RTMP1.4s, #(32-2); \
130 /* sbox, non-linear part */ \
132 tbl RTMP0.16b, {v16.16b-v19.16b}, RX0.16b; \
133 tbl RTMP1.16b, {v16.16b-v19.16b}, RX1.16b; \
136 tbx RTMP0.16b, {v20.16b-v23.16b}, RX0.16b; \
137 tbx RTMP1.16b, {v20.16b-v23.16b}, RX1.16b; \
140 tbx RTMP0.16b, {v24.16b-v27.16b}, RX0.16b; \
141 tbx RTMP1.16b, {v24.16b-v27.16b}, RX1.16b; \
144 tbx RTMP0.16b, {v28.16b-v31.16b}, RX0.16b; \
145 tbx RTMP1.16b, {v28.16b-v31.16b}, RX1.16b; \
152 sri RX0.4s, RTMP0.4s, #(32 - 8); \
153 sri RX1.4s, RTMP1.4s, #(32 - 8); \
154 sri RTMP2.4s, RTMP0.4s, #(32 - 16); \
155 sri RTMP3.4s, RTMP1.4s, #(32 - 16); \
164 sri RTMP2.4s, RTMP0.4s, #(32 - 24); \
165 sri RTMP3.4s, RTMP1.4s, #(32 - 24); \
170 sri RTMP2.4s, RX0.4s, #(32 - 2); \
171 sri RTMP3.4s, RX1.4s, #(32 - 2); \
229 mov v1.16b, v0.16b;
234 ld1 {v1.16b}, [x2], #16;
242 SM4_CRYPT_BLK4(v0, v1, v2, v3);
247 st1 {v1.16b}, [x1], #16;
271 ld1 {v0.16b-v3.16b}, [x2], #64;
274 mov v6.16b, v4.16b;
280 ld1 {v6.16b}, [x2], #16;
285 SM4_CRYPT_BLK8(v0, v1, v2, v3, v4, v5, v6, v7);
288 st1 {v0.16b-v3.16b}, [x1], #64;
293 st1 {v6.16b}, [x1], #16;
316 ld1 {v0.16b-v3.16b}, [x2], #64;
317 ld1 {v4.16b-v7.16b}, [x2], #64;
319 SM4_CRYPT_BLK8(v0, v1, v2, v3, v4, v5, v6, v7);
321 st1 {v0.16b-v3.16b}, [x1], #64;
322 st1 {v4.16b-v7.16b}, [x1], #64;
347 ld1 {v0.16b-v3.16b}, [x2], #64;
348 ld1 {v4.16b-v7.16b}, [x2];
350 SM4_CRYPT_BLK8(v0, v1, v2, v3, v4, v5, v6, v7);
354 ld1 {RTMP0.16b-RTMP3.16b}, [x2], #64;
355 eor v1.16b, v1.16b, RTMP0.16b;
358 st1 {v0.16b-v3.16b}, [x1], #64;
361 ld1 {RTMP0.16b-RTMP3.16b}, [x2], #64;
363 eor v6.16b, v6.16b, RTMP1.16b;
367 st1 {v4.16b-v7.16b}, [x1], #64;
395 ld1 {v1.16b, v2.16b, v3.16b}, [x2], #48;
396 ld1 {v4.16b-v7.16b}, [x2];
398 SM4_CRYPT_BLK8(v0, v1, v2, v3, v4, v5, v6, v7);
401 ld1 {RTMP0.16b-RTMP3.16b}, [x2], #64;
403 eor v1.16b, v1.16b, RTMP1.16b;
406 st1 {v0.16b-v3.16b}, [x1], #64;
408 ld1 {RTMP0.16b-RTMP3.16b}, [x2], #64;
411 eor v6.16b, v6.16b, RTMP2.16b;
413 st1 {v4.16b-v7.16b}, [x1], #64;
454 inc_le128(v1); /* +1 */
459 inc_le128(v6); /* +6 */
462 SM4_CRYPT_BLK8(v0, v1, v2, v3, v4, v5, v6, v7);
464 ld1 {RTMP0.16b-RTMP3.16b}, [x2], #64;
466 eor v1.16b, v1.16b, RTMP1.16b;
469 st1 {v0.16b-v3.16b}, [x1], #64;
471 ld1 {RTMP0.16b-RTMP3.16b}, [x2], #64;
474 eor v6.16b, v6.16b, RTMP2.16b;
476 st1 {v4.16b-v7.16b}, [x1], #64;