sm4: use POR, although it does not affect the correctness

This commit is contained in:
Sun Yimin 2023-09-27 09:22:22 +08:00 committed by GitHub
parent 232af559d7
commit 9a4cb2c34f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -394,7 +394,7 @@ GLOBL r24_mask256<>(SB), 8, $32
VPXOR tmp, y, y; \ VPXOR tmp, y, y; \
VPSLLD $2, y, tmp; \ VPSLLD $2, y, tmp; \
VPSRLD $30, y, y; \ VPSRLD $30, y, y; \
VPXOR tmp, y, y; \ VPOR tmp, y, y; \
VPSHUFB r24_mask<>(SB), x, tmp; \ VPSHUFB r24_mask<>(SB), x, tmp; \
VPXOR y, x, x; \ VPXOR y, x, x; \
VPXOR x, tmp, x VPXOR x, tmp, x
@ -597,7 +597,7 @@ GLOBL r24_mask256<>(SB), 8, $32
VPXOR z, y, y; \ VPXOR z, y, y; \
VPSLLD $2, y, z; \ VPSLLD $2, y, z; \
VPSRLD $30, y, y; \ VPSRLD $30, y, y; \
VPXOR z, y, y; \ VPOR z, y, y; \
VPSHUFB r24_mask256<>(SB), x, z; \ VPSHUFB r24_mask256<>(SB), x, z; \
VPXOR y, x, x; \ VPXOR y, x, x; \
VPXOR x, z, x VPXOR x, z, x