Skip to content

Commit

Permalink
ppc64x: try VPERMXOR last
Browse files Browse the repository at this point in the history
  • Loading branch information
emmansun authored Nov 7, 2024
1 parent 965f0d1 commit 0861724
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sm4/aesni_macros_ppc64x.s
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,10 @@
// - y: 128 bits temp register
// - z: 128 bits temp register
#define AFFINE_TRANSFORM(L, H, V_FOUR, x, y, z) \
VAND NIBBLE_MASK, x, z; \
VPERM L, L, z, y; \
VAND NIBBLE_MASK, x, y; \
VSRB x, V_FOUR, z; \
VPERM H, H, z, x; \
VXOR y, x, x
VPERM L, L, y, x; \
VPERMXOR H, H, z, x

// Affine Transform
// parameters:
Expand Down

0 comments on commit 0861724

Please sign in to comment.