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.
CN110784306APending Publication Date: 2020-02-11中电科网络安全科技股份有限公司

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
中电科网络安全科技股份有限公司
Publication Date
2020-02-11

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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