Masking method and device for SM4 algorithm

A technology of masking and algorithm, which is applied in the field of masking method and device of SM4 algorithm, can solve the problem of high complexity of SM4 algorithm and circuit implementation, and achieve the effect of preventing side channel attacks and reducing complexity

Inactive Publication Date: 2016-08-24
BEIJING HUADA INFOSEC TECH
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, since this masking method needs to know the algebraic expression of the S-box, correspondingly, an additional multiplication circuit needs to be added to calculate the intermediate data in order to remove the mask in the hardware implementation, so the complexity of the SM4 algorithm and circuit implementation of the masking method is relatively high. high

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
  • Masking method and device for SM4 algorithm
  • Masking method and device for SM4 algorithm
  • Masking method and device for SM4 algorithm

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0074] The following embodiments of the present invention provide a SM4 algorithm masking method and device, so as to reduce the complexity of SM4 algorithm and circuit implementation.

[0075] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, and to make the above-mentioned purposes, features and advantages of the embodiments of the present invention more obvious and understandable, the following describes the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings For further detailed explanation.

[0076] Such as figure 1 As shown, it is a flowchart of a masking method of an SM4 algorithm provided by an embodiment of the present invention, and the masking method may include the following steps:

[0077] In step S110, plaintext input data to be processed is obtained.

[0078] Wherein, the plaintext input data to be processed is the plain...

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 masking method and a masking device for an SM4 algorithm. The method can comprise the steps of acquiring plaintext input data to be processed; acquiring a mask S box obtained by performing random row-column transformation and masking treatment on an initial S box; performing multiple rounds of key extension transformation and demasking treatment on the key input data to be processed by using the mask S box and a random number corresponding to the mask S box, and thus obtaining a mask round key; performing multiple rounds of encryption conversion and demasking treatment on the plaintext input data to be processed by using the mask S box, mask round key and random number, and thus obtaining initial ciphertext output data; and using the initial ciphertext output data to generate ciphertext output data. Compared with the prior art, in the case that middle data in an encryption process is randomly masked, the method does not need an additional multiplying circuit to compute the middle data, so that the complexity for implementing the SM4 algorithm and circuit is reduced.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to an SM4 algorithm masking method and device. Background technique [0002] In January 2006, the State Encryption Administration released the SM4 block cipher algorithm specification, which was originally designated for use in wireless authentication and security infrastructure to protect the security of data packets in wireless networks. In particular, after the SM4 algorithm was released as a cryptographic industry standard in March 2012, it has been widely used in cryptographic devices such as security chips, smart cards, or USB KEYs. In the specific implementation, because the SM4 algorithm will leak energy, electromagnetic radiation and other information related to the intermediate data during the encryption process, which allows the attacker to use the side channel attack technology to obtain the key, so how to improve the encryption process of the SM4 algorithm? Sec...

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/00H04L9/28H04L29/06
CPCH04L63/1441H04L9/002H04L9/003
Inventor裴超
OwnerBEIJING HUADA INFOSEC TECH