mirror of
https://github.com/emmansun/gmsm.git
synced 2025-05-13 20:46:17 +08:00
[SM4] align tab
This commit is contained in:
parent
e0d9d44154
commit
c04833a236
@ -107,7 +107,8 @@ TEXT ·gcmSm4Finish(SB),NOSPLIT,$0
|
||||
#undef dlen
|
||||
|
||||
#define SM4_SBOX(x, y, z, z1, z2) \
|
||||
VMOV $0x0F0F0F0F0F0F0F0F, z1.D2; \ // nibble mask
|
||||
MOVD $0x0F0F0F0F0F0F0F0F, R19; \
|
||||
VMOV R19, z1.D2; \ // nibble mask
|
||||
VAND x.B16, z1.B16, z2.B16; \
|
||||
MOVD $0x9197E2E474720701, R19; \
|
||||
VMOV R19, z.D[0]; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user