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
35 ld1 {v16.16b-v19.16b}, [x5], #64; \
36 ld1 {v20.16b-v23.16b}, [x5], #64; \
37 ld1 {v24.16b-v27.16b}, [x5], #64; \
38 ld1 {v28.16b-v31.16b}, [x5];
103 /* sbox, non-linear part */ \
105 tbl RTMP0.16b, {v16.16b-v19.16b}, RX0.16b; \
107 tbx RTMP0.16b, {v20.16b-v23.16b}, RX0.16b; \
109 tbx RTMP0.16b, {v24.16b-v27.16b}, RX0.16b; \
111 tbx RTMP0.16b, {v28.16b-v31.16b}, RX0.16b; \
117 sri RTMP1.4s, RTMP0.4s, #(32-8); \
118 sri RTMP2.4s, RTMP0.4s, #(32-16); \
119 sri RTMP3.4s, RTMP0.4s, #(32-24); \
126 sri RTMP2.4s, RTMP1.4s, #(32-2); \
172 /* sbox, non-linear part */ \
174 tbl RTMP0.16b, {v16.16b-v19.16b}, RX0.16b; \
175 tbl RTMP1.16b, {v16.16b-v19.16b}, RX1.16b; \
178 tbx RTMP0.16b, {v20.16b-v23.16b}, RX0.16b; \
179 tbx RTMP1.16b, {v20.16b-v23.16b}, RX1.16b; \
182 tbx RTMP0.16b, {v24.16b-v27.16b}, RX0.16b; \
183 tbx RTMP1.16b, {v24.16b-v27.16b}, RX1.16b; \
186 tbx RTMP0.16b, {v28.16b-v31.16b}, RX0.16b; \
187 tbx RTMP1.16b, {v28.16b-v31.16b}, RX1.16b; \
194 sri RX0.4s, RTMP0.4s, #(32 - 8); \
195 sri RX1.4s, RTMP1.4s, #(32 - 8); \
196 sri RTMP2.4s, RTMP0.4s, #(32 - 16); \
197 sri RTMP3.4s, RTMP1.4s, #(32 - 16); \
206 sri RTMP2.4s, RTMP0.4s, #(32 - 24); \
207 sri RTMP3.4s, RTMP1.4s, #(32 - 24); \
212 sri RTMP2.4s, RX0.4s, #(32 - 2); \
213 sri RTMP3.4s, RX1.4s, #(32 - 2); \
273 ld4 {v0.4s-v3.4s}, [x2], #64
274 ld4 {v4.4s-v7.4s}, [x2], #64
276 SM4_CRYPT_BLK8(v0, v1, v2, v3, v4, v5, v6, v7)
278 st1 {v0.16b-v3.16b}, [x1], #64
279 st1 {v4.16b-v7.16b}, [x1], #64
291 ld4 {v0.4s-v3.4s}, [x2], #64
293 SM4_CRYPT_BLK4(v0, v1, v2, v3)
295 st1 {v0.16b-v3.16b}, [x1], #64
303 ld1 {v1.16b}, [x2], #16
308 transpose_4x4(v0, v1, v2, v3)
310 SM4_CRYPT_BLK4(v0, v1, v2, v3)
315 st1 {v1.16b}, [x1], #16
340 ld4 {v0.4s-v3.4s}, [x2], #64
341 ld4 {v4.4s-v7.4s}, [x2]
343 SM4_CRYPT_BLK8_norotate(v0, v1, v2, v3, v4, v5, v6, v7)
346 rotate_clockwise_4x4(v0, v1, v2, v3)
347 rotate_clockwise_4x4(v4, v5, v6, v7)
353 ld1 {RTMP0.16b-RTMP3.16b}, [x2], #64
354 ld1 {RTMP4.16b-RTMP7.16b}, [x2], #64
356 eor v1.16b, v1.16b, RTMP0.16b
361 eor v6.16b, v6.16b, RTMP5.16b
366 st1 {v0.16b-v3.16b}, [x1], #64
367 st1 {v4.16b-v7.16b}, [x1], #64
379 ld1 {v0.16b-v3.16b}, [x2], #64
382 rev32 v5.16b, v1.16b
383 rev32 v6.16b, v2.16b
386 transpose_4x4(v4, v5, v6, v7)
388 SM4_CRYPT_BLK4_BE(v4, v5, v6, v7)
392 eor v6.16b, v6.16b, v1.16b
397 st1 {v4.16b-v7.16b}, [x1], #64
405 ld1 {v1.16b}, [x2], #16
411 rev32 v5.16b, v1.16b
412 rev32 v6.16b, v2.16b
414 transpose_4x4(v4, v5, v6, v7)
416 SM4_CRYPT_BLK4_BE(v4, v5, v6, v7)
425 mov RIV.16b, v1.16b
429 eor v6.16b, v6.16b, v1.16b
431 st1 {v6.16b}, [x1], #16
468 inc_le128(v1) /* +1 */
473 inc_le128(v6) /* +6 */
476 transpose_4x4_2x(v0, v1, v2, v3, v4, v5, v6, v7)
478 SM4_CRYPT_BLK8(v0, v1, v2, v3, v4, v5, v6, v7)
480 ld1 {RTMP0.16b-RTMP3.16b}, [x2], #64
481 ld1 {RTMP4.16b-RTMP7.16b}, [x2], #64
484 eor v1.16b, v1.16b, RTMP1.16b
489 eor v6.16b, v6.16b, RTMP6.16b
492 st1 {v0.16b-v3.16b}, [x1], #64
493 st1 {v4.16b-v7.16b}, [x1], #64
507 inc_le128(v1) /* +1 */
511 ld1 {v4.16b-v7.16b}, [x2], #64
513 transpose_4x4(v0, v1, v2, v3)
515 SM4_CRYPT_BLK4(v0, v1, v2, v3)
518 eor v1.16b, v1.16b, v5.16b
519 eor v2.16b, v2.16b, v6.16b
522 st1 {v0.16b-v3.16b}, [x1], #64
534 inc_le128(v1)
538 ld1 {v6.16b}, [x2], #16
542 transpose_4x4(v0, v1, v2, v3)
544 SM4_CRYPT_BLK4(v0, v1, v2, v3)
552 eor v1.16b, v1.16b, v5.16b
553 st1 {v1.16b}, [x1], #16
556 eor v2.16b, v2.16b, v6.16b