From 5225fd7ea83d7c2d52e11f0e97e2cf2dfb7c46bd Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Wed, 9 Oct 2024 08:08:30 +0800 Subject: [PATCH] Updated SM4 with GFNI (markdown) --- SM4-with-GFNI.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/SM4-with-GFNI.md b/SM4-with-GFNI.md index bb913fa..10c2abe 100644 --- a/SM4-with-GFNI.md +++ b/SM4-with-GFNI.md @@ -7,5 +7,14 @@ - [SM4 GFNI](https://github.com/intel/ipp-crypto/blob/36e76e2388f3dd10cc440e213dfcf6ef59a0dfb8/sources/ippcp/pcpsms4_gfni.h#L4) - [gf2p8affineqb: int8 shifting](https://wunkolo.github.io/post/2020/11/gf2p8affineqb-int8-shifting/) +# SM4 SBOX实现对比 +## AESNI +1. 多条指令实现的仿射 +2. AESENCLAST +3. 多条指令实现的仿射 +## GFNI +1. Affine Transformation (单指令) +2. Affine Transformation Inverse (单指令) + # 生成映射 [AES SM4 GFNI](https://gist.github.com/emmansun/cb9f14beafa9f75954f3e1883b62a2d3)