mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 04:06:18 +08:00
sm4: try VNAND
This commit is contained in:
parent
f6d2e319c1
commit
69e3749a10
@ -101,7 +101,7 @@ GLOBL ·rcon(SB), RODATA, $192
|
|||||||
// - y: 128 bits temp register
|
// - y: 128 bits temp register
|
||||||
// - z: 128 bits temp register
|
// - z: 128 bits temp register
|
||||||
#define AFFINE_TRANSFORM_N(L, H, V_FOUR, x, y, z) \
|
#define AFFINE_TRANSFORM_N(L, H, V_FOUR, x, y, z) \
|
||||||
VNAND NIBBLE_MASK, x, z; \
|
VNAND x, NIBBLE_MASK, z; \
|
||||||
VPERM L, L, z, y; \
|
VPERM L, L, z, y; \
|
||||||
VSRW x, V_FOUR, x; \
|
VSRW x, V_FOUR, x; \
|
||||||
VAND NIBBLE_MASK, x, z; \
|
VAND NIBBLE_MASK, x, z; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user