An implementation method of masking s-box of sm4 algorithm against power consumption attack

An implementation method and anti-power consumption technology, which is applied in the implementation field of SM4 algorithm mask S-box, can solve the problems of large area and low efficiency

Active Publication Date: 2020-05-19
北京万协通信息技术有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, the S-box of the SM4 algorithm in the official block cipher algorithm is expressed in the form of a lookup table, and if implemented in this way, the area is large and the efficiency is low. Therefore, it is urgent to find an implementation method that can To achieve the purpose of saving hardware resources

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
  • An implementation method of masking s-box of sm4 algorithm against power consumption attack
  • An implementation method of masking s-box of sm4 algorithm against power consumption attack
  • An implementation method of masking s-box of sm4 algorithm against power consumption attack

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention, and are not intended to limit the present invention.

[0044] Such as figure 1 As shown, the embodiment of the present invention provides a method for implementing an SM4 algorithm mask S-box resistant to power consumption attacks, including the following steps:

[0045] S1, obtain the algebraic expression of the S box: S(x)=I(xA 1 +C 1 )A 2 +C 2 ;

[0046] In the formula, A 1 , A 2 is an 8x8 matrix; C 1 , C 2 is a row vector;

[0047]

[0048] C 1 =C 2 =(11001011)

[0049] I(x) means that in GF(2 8 ) on the finite field, the corresponding 8-degree irreducible polynomial is:

[0050] f(x)=x 8 +x 7 +x 6 +x 5 +x 4 +x 3 +x 2 +1; ...

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 discloses a power analysis attack-resistant type SM4 algorithm mask S-box implementation method and relates to the technical field of cryptographic algorithm hardware implementation. According to the technical scheme of the invention, the method is realized through a composite domain-based S box. Specifically, by means of an isomorphic mapping matrix, the finite field of GF (28) is subjected to inversion operation to be converted in the composite domain of GF ((22) 2)2). Therefore, the design difficulty and the chip area are reduced. In addition, in the composite domain, on the basis of the regular basis-based inversion manner, the S box is subjected to mask technology-based treatment, and data are hidden based on random numbers. Therefore, the power consumption attack to SM4 is effectively defended.

Description

technical field [0001] The invention relates to the technical field of cryptographic algorithm hardware implementation, in particular to an implementation method of an SM4 algorithm mask S-box resistant to power consumption attacks. Background technique [0002] For the block cipher algorithm, its security is mainly guaranteed by the non-linear S-box, so the implementation of the S-box becomes particularly important. [0003] At present, the S-box of the SM4 algorithm in the official block cipher algorithm is expressed in the form of a lookup table, and if implemented in this way, the area is large and the efficiency is low. Therefore, it is urgent to find an implementation method that can To achieve the purpose of saving hardware resources. Contents of the invention [0004] The purpose of the present invention is to provide a method for implementing an SM4 algorithm mask S-box resistant to power consumption attacks, so as to solve the aforementioned problems in the prio...

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
Patent Type & Authority Patents(China)
IPC IPC(8): H04L9/06H04L9/00
CPCH04L9/003H04L9/0618
Inventor 李艳华张玉禄律博
Owner 北京万协通信息技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products