SM4 with GFNI - emmansun/gmsm GitHub Wiki
参考
- Efficient Constant-Time Implementation of SM4 with Intel GFNI instruction set extension and Arm NEON coprocessor
- Unexpected Uses for the Galois Field Affine Transformation Instruction
- [PATCH 2/3] Add SM4 x86-64/GFNI/AVX2 implementation
- crypto: aria: add ARIA AES-NI/AVX/x86_64/GFNI implementation
- Intel® Integrated Performance Primitives Cryptography Acceleration on 3rd Generation Intel® Xeon® Processor Scalable and 10th Gen Intel® Core™ Processors
- SM4 GFNI
- gf2p8affineqb: int8 shifting
SM4 SBOX实现对比
AESNI
- 多条指令实现的仿射
- Shift Rows Inverse (Optional)
- AESENCLAST
- 多条指令实现的仿射
GFNI
- Affine Transformation (单指令)
- Affine Transformation Inverse (单指令)