SM4 rapid software implementation method based on AES-NI instruction set
The invention discloses an SM4 rapid software implementation method based on an AES-NI (Advanced Enhanced Standard New Instructions) instruction set, which comprises the following steps of: optimizing an SM4 algorithm based on an AVX2 (Advanced Enhanced Standard New Instructions) instruction set and...
Gespeichert in:
Hauptverfasser: | , , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses an SM4 rapid software implementation method based on an AES-NI (Advanced Enhanced Standard New Instructions) instruction set, which comprises the following steps of: optimizing an SM4 algorithm based on an AVX2 (Advanced Enhanced Standard New Instructions) instruction set and an AES-NI (Advanced Enhanced Standard New Instructions) instruction set, realizing parallel encryption of eight groups of plaintexts, mapping an S box in the SM4 algorithm to an S box of an AES algorithm by finding an isomorphic relationship among finite fields, and finishing S box operation of the SM4 algorithm by using an AES-NI extension instruction; in algorithm implementation, a shuffle instruction in an AVX2 instruction set is used to improve the matrix operation efficiency in a round function.
本发明公开了一种基于AES-NI指令集的SM4快速软件实现方法,该方法包括:基于AVX2(Advanced Vector Extensions)指令集以及AES-NI(Advanced Encryption Standard New Instructions)指令集对SM4算法进行优化,实现了8组明文并行加密,通过找到有限域间的同构关系,将SM4算法中的S盒映射到AES算法的S盒上,使用AES-NI扩展指令完成SM4算法的S盒运算 |
---|