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

Mask method and mask device for SM4 algorithm

A mask and algorithm technology, applied in the field of cryptographic algorithm hardware implementation, can solve problems such as energy leakage

Active Publication Date: 2017-01-25
CHINA INFORMATION TECH SECURITY EVALUATION CENT
View PDF3 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the above-mentioned technical problems, an embodiment of the present invention provides a masking method and device of the SM4 algorithm, which is used to solve the problem of energy leakage caused by real intermediate value information in the masking method that introduces a random mask in each round, The technical scheme is as follows:

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0080] 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.

[0081] The inventor of the present application, in the process of researching the masking method of the SM4 algorithm provided in the prior art, found that since each round of operation needs to input a random mask, and the random mask introduced in each round cannot be guaranteed to be completely the same, therefore Before introducing the next round of random masks, it is necessary to use the previous round of masks to unmask, and unmasking will ...

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 mask method and a mask device for an SM4 algorithm. The mask method comprises the following steps: acquiring an inputted masked plain text, a random mask and round keys; carrying out a first round operation of a round function on the masked plain text, the random mask and a first round key in the round keys, to obtain a first round ciphertext and a first round mask; carrying out a second round operation of the round function on the first round ciphertext, the first round mask and a second round key in the round keys, to obtain a second round ciphertext and a second round mask, so as to realize N rounds of operation of the round function in turn; and carrying out an XOR operation an N round ciphertext and an N round mask outputted from the N round operation, wherein the operation result is taken as an output of the SM4 algorithm. Namely, except for the first round operation in the N rounds of operation of the round function, masks required for each round operation are all obtained by the output of the last round operation next to the current round operation, and therefore a demask on an intermediate value of the N rounds of operation is not required by adopting the technical solution disclosed by the invention, so that a resistance to an energy attack is realized.

Description

technical field [0001] The invention relates to the technical field of cryptographic algorithm hardware implementation, in particular to a masking method and device for an SM4 algorithm. Background technique [0002] The SM4 algorithm is a block cipher algorithm announced by the National Commercial Cryptography Management Office. It is currently the most widely used block cipher algorithm independently designed by China. This algorithm is gradually being applied in smart cards and USBKeys. Considering the problem of operational efficiency, it has basically passed way of hardware implementation. In applications such as smart cards and USBKeys, the encryption algorithm must not only ensure the security of the protocol and mathematical algorithms, but more importantly, ensure that the power consumption or electromagnetic information of the encryption circuit during operation in actual use will not be used by the bypass analysis method, resulting in security threaten. [0003]...

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 Applications(China)
IPC IPC(8): H04L9/00H04L9/06H04L9/28H04L29/06
Inventor 王蓓蓓陈佳哲李贺鑫
Owner CHINA INFORMATION TECH SECURITY EVALUATION CENT
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