Lines Matching +full:1 +full:- +full:v0
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * SM4-CCM AEAD Algorithm using ARMv8 Crypto Extensions
13 #include "sm4-ce-asm.h"
15 .arch armv8-a+crypto
17 .irp b, 0, 1, 8, 9, 10, 11, 12, 13, 14, 15, 16, 24, 25, 26, 27, 28, 29, 30, 31
32 mov vctr.d[1], x8; \
34 adds x8, x8, #1; \
57 ld1 {v0.16b-v3.16b}, [x2], #64
60 eor RMAC.16b, RMAC.16b, v0.16b
72 sub w3, w3, #1
74 ld1 {v0.16b}, [x2], #16
77 eor RMAC.16b, RMAC.16b, v0.16b
96 ld1 {v0.16b}, [x1]
98 SM4_CRYPT_BLK2(RMAC, v0)
100 /* en-/decrypt the mac with ctr0 */
101 eor RMAC.16b, RMAC.16b, v0.16b
133 inc_le128(v9) /* +1 */
137 ld1 {v0.16b-v3.16b}, [x2], #64
140 eor v8.16b, v8.16b, v0.16b
141 eor RMAC.16b, RMAC.16b, v0.16b
152 st1 {v8.16b-v11.16b}, [x1], #64
166 ld1 {v0.16b}, [x2], #16
169 eor v8.16b, v8.16b, v0.16b
170 eor RMAC.16b, RMAC.16b, v0.16b
187 ldrb w0, [x2], #1 /* get 1 byte from input */
194 strb w9, [x1], #1 /* store out byte */
195 strb w6, [x5], #1 /* store MAC byte */
197 subs w4, w4, #1
201 ext RMAC.16b, RMAC.16b, RMAC.16b, #1
202 ext v8.16b, v8.16b, v8.16b, #1
245 inc_le128(v9) /* +1 */
249 ld1 {v0.16b-v3.16b}, [x2], #64
252 eor v8.16b, v8.16b, v0.16b
264 st1 {v8.16b-v11.16b}, [x1], #64
278 ld1 {v0.16b}, [x2], #16
281 eor v8.16b, v8.16b, v0.16b
299 ldrb w0, [x2], #1 /* get 1 byte from input */
306 strb w9, [x1], #1 /* store out byte */
307 strb w6, [x5], #1 /* store MAC byte */
309 subs w4, w4, #1
313 ext RMAC.16b, RMAC.16b, RMAC.16b, #1
314 ext v8.16b, v8.16b, v8.16b, #1