SM4 algorithm white box implementation method and device, electronic equipment and computer medium

A technology of implementation method and algorithm, applied in the field of information security, which can solve the problems of limited security, single construction method, difficult system, etc.

Pending Publication Date: 2020-02-11
中电科网络安全科技股份有限公司
View PDF10 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in the existing white-box implementation methods of the SM4 algorithm, most of them use external coding, which is difficult to be compatible with the existing system, res...

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
  • SM4 algorithm white box implementation method and device, electronic equipment and computer medium
  • SM4 algorithm white box implementation method and device, electronic equipment and computer medium
  • SM4 algorithm white box implementation method and device, electronic equipment and computer medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0056] see figure 1 , figure 1 It is a first flow chart of a white-box implementation method of SM4 algorithm according to an exemplary embodiment.

[0057] A white-box implementation method of SM4 algorithm involved in the present disclosure may include the following steps:

[0058] Step S101: Obtain plaintext information to be encrypted.

[0059] It can be understood that the information type of the plaintext information to be encrypte...

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 an SM4 algorithm white box implementation method and device, electronic equipment and a computer medium. The method comprises the steps of obtaining plaintext information to beencrypted; performing 32 rounds of transformation on the plaintext information to obtain an encryption result corresponding to the plaintext information, wherein each round of transformation in the 32rounds of transformation comprises the following steps: in the round of lookup table TAr, searching a first lookup result corresponding to the second round of data to be processed and the third roundof data to be processed; searching a first search result of the round and a second search result corresponding to fourth to-be-processed data of the round in the round search table TBr; searching a third search result corresponding to the second search result in the round of lookup table TCr; in the round of lookup table TDr, searching a fourth lookup result corresponding to the first round of data to be processed and the third round of lookup result, wherein r is equal to 1, 2, 3,..., 32, the lookup table TAr, the lookup table TBr, the lookup table TCr and the lookup table TDr are used for completing the rth round of operation of the SM4 algorithm, and encoding protection is carried out on an operation result; and the key has high security.

Description

technical field [0001] The present disclosure relates to the technical field of information security, and more specifically, to a white-box implementation method, device, electronic device and computer medium of the SM4 algorithm. Background technique [0002] With the popularization of the network and smart terminals, all kinds of private data are read, encrypted and decrypted on the terminal, and the environment of the terminal is often uncontrollable. Attackers or malicious users can obtain the intermediate calculation results of the encryption and decryption algorithms through reverse engineering and other technologies, and then It is very easy to recover the key of the encryption and decryption algorithm, so as to obtain the data. How to protect the key of the encryption and decryption algorithm on the uncontrollable terminal is an urgent problem to be solved at present. [0003] The existing method to solve the above problems is to protect the key by white-boxing the ...

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/0631H04L2209/16
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