Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for realizing S box in SM4 algorithm

An algorithm and multiplication technology, which is applied in the field of realization of S-box in SM4 algorithm, can solve problems such as multi-circuit area, S-box equivalent NAND gate, and circuit area that have a great influence

Active Publication Date: 2019-09-24
UNIV OF SCI & TECH OF CHINA
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The only nonlinear computing unit in SM4 is the S-box, which is used in key expansion and round functions, so it has a great impact on the circuit area of ​​the entire SM4 algorithm. How to reduce the circuit area of ​​the S-box is particularly important. Some related optimization methods use the isomorphic mapping method based on the compound field, and put the S box in the finite field GF(2 8 ) in the form of non-redundant bases such as polynomial bases or normal bases. This representation method brings a certain degree of optimization, but the calculation is still relatively complicated, and the S-box requires a large number of equivalent and non-redundant bases. gate, consumes more circuit area

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for realizing S box in SM4 algorithm
  • Method and device for realizing S box in SM4 algorithm
  • Method and device for realizing S box in SM4 algorithm

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0051] The S-box is the only non-linear computing unit in the SM4 algorithm. It is generally realized by using a lookup table. Table 1 shows its visual representation. The first nibble of the input is the row number, and the second nibble is the column. number, the data at the intersection of rows and columns is the output of the S box, assuming the input is 'ef', the row number is e and the column number is f, and the value after nonlinear transf...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for realizing an S box in an SM4 algorithm, which comprises the following steps: performing first affine transformation and isomorphic transformation on an input element of the S box in a finite field GF (28) to obtain an element in a composite field; decomposing the inverse multiplication operation of the element in the composite domain into inverse operation and multiplication operation on GF (24), performing inverse operation on GF (24) on a polynomial ring base, and performing multiplication operation on GF (24) on a redundant representation base to obtain an inverse element on the composite domain; and performing inverse isomorphic transformation and second affine transformation on the inverse element in the composite domain to obtain an output result of the S box. Calculation of the S box is carried out on the basis of corresponding high efficiency, so that the structure of the S box is more compact and efficient, and the circuit area and time delay of the S box in the SM4 algorithm are further reduced.

Description

technical field [0001] The present invention relates to the technical field of cryptographic algorithm hardware implementation, and more specifically, to a method and device for implementing an S-box in an SM4 algorithm. Background technique [0002] SM4 is a block cipher algorithm used by wireless LAN products. It was approved by the State Cryptography Administration in 2006 and is the first commercial cipher algorithm officially announced in China. With the development of the standardization of cryptographic algorithms in my country, the SM4 algorithm was released in March 2012 as the national cryptographic industry standard. It was released as a national standard in August 2016. [0003] The only nonlinear computing unit in SM4 is the S-box, which is used in key expansion and round functions, so it has a great impact on the circuit area of ​​the entire SM4 algorithm. How to reduce the circuit area of ​​the S-box is particularly important. Some related optimization metho...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L9/06
CPCH04L9/0618H04L2209/122H04L2209/80
Inventor 胡红钢陈颖
Owner UNIV OF SCI & TECH OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products