A system for implementing SM4 algorithm at ultra-high speed and its operation method

An ultra-high-speed, algorithmic technology, applied in encryption devices with shift registers/memory, etc., can solve problems such as reducing data processing speed, failing to meet requirements, and reducing system utilization.

Active Publication Date: 2018-01-05
BINZHOU POLYTECHNIC
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This patent has the following defects: a decryption operation needs to go through 96 rounds of iterations, which seriously reduces the data processing speed, and is not suitable for some occasions that require high speed
[0007] The above two patents are dedicated to reducing the area and redundancy of the system and combining the key expansion module with the encryption / decryption module. However, since the key expansion and data encryption / decryption cannot be performed simultaneously, an encryption operation must go through 32 Round key expansion and 32 rounds of encryption have a total of 64 rounds of iteration time, which seriously reduces the data processing speed and is not suitable for some occasions that require high speed
[0008] In the traditional design, the key expansion module, the encryption module and the decryption module are separated, and the method of starting the encryption module after waiting for 32 rounds of key calculation is usually adopted, which obviously cannot meet the requirements of high-speed fields such as network transmission and video encryption.
At the same time, since the key of the same user is relatively fixed most of the time, the same round of key can continuously encrypt / decrypt multiple sets of data. At this time, the traditional design still needs additional key expansion, which will not only reduce the processing speed of the operation, but also Bring unnecessary dynamic power consumption; moreover, because a set of data to be processed is often far more than 128 bits, most applications will have continuous encryption or decryption tasks, resulting in the continuous operation of the encryption module but the long-term idle of the decryption module, or the decryption The module runs continuously. The encryption module is idle for a long time, which reduces the utilization rate of the system and seriously affects the calculation speed of the data.

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
  • A system for implementing SM4 algorithm at ultra-high speed and its operation method
  • A system for implementing SM4 algorithm at ultra-high speed and its operation method
  • A system for implementing SM4 algorithm at ultra-high speed and its operation method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0155] An ultra-high-speed system for implementing the SM4 algorithm, comprising: a control module 1, a cryptographic expansion / encryption / decryption module 19, an encryption / decryption module 20, a decryption / encryption module 21, a data splitter 17, and a cryptographic expansion / encryption / decryption selector 18. Wheel secret / result splitter 22, result selector 23, the control module 1 includes a microprocessor interface 12, a startup module 2, a data path module 3, a data cache area 5, a comparator 4, and an exclusive OR operation module 15 and new / old round secret selector 16, described data cache area 5 comprises old key storage area 6, new key storage area 7, system parameter storage area 8, intrinsic parameter storage area 9, original data storage area 10, Old round secret storage area 11, new round secret storage area 13 and result data storage area 14;

[0156] The microprocessor interface 12 is connected to the microprocessor; the three groups of iterations input of ...

Embodiment 2

[0159] According to the system described in Embodiment 1, the difference is that the dense expansion / encryption / decryption module 19 includes a bidirectional shift register group, a D flip-flop group with retention, a state machine module 31, an F / F' conversion module 43, Band enable optional D flip-flop group, the bidirectional shift register group is a four-input 32-bit bidirectional shift register U0_332, and the four-input 32-bit bidirectional shift register U0_332 includes four 32-bit registers, namely U0 — U3, the D flip-flop group with hold is a 32-bit D flip-flop U430 with hold function, and the D flip-flop group with enable option is a 32-bit D flip-flop with an optional input for output enable Device Yd44;

[0160] The data input module of described dense expansion / encryption / decryption module 19 comprises described four input 32-bit bidirectional shift register U0_332 and the 32-bit D flip-flop U430 of described band holding function, and described dense expansion / e...

Embodiment 3

[0163] According to the system described in embodiment 1 or embodiment 2, the difference is that the instruction output, key output, and data output of the microprocessor interface 12 are respectively connected to the instruction input and the new key storage area 7 of the startup module 2 And the input of comparator 4, the input of original data storage area 10; The input of described comparator 4 connects the key output of described microprocessor interface 12 and the output of old round secret storage area 11; The output of described comparator 4 The output is connected to the comparison signal input of the startup module 2; the enable signal output en1 and en0 of the startup module 2 are respectively connected to the enable input and new password of the new round secret storage area 13 assigned to the old round secret storage area 11. The key storage area 7 is assigned to the enable input of the old key storage area 6; the three module data number outputs of the startup mod...

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 relates to an ultra-high-speed system for realizing the SM4 algorithm, including a control module, a cryptographic expansion / encryption / decryption module, an encryption / decryption module, a decryption / encryption module, a data splitter, a cryptographic expansion / encryption / decryption selector, and a round encryption / result splitter and result selector, the present invention solves the problem of low speed caused by having to wait for 32 round keys to be calculated before encryption in the existing hardware system, and the processing speed can reach Nearly twice that of the existing hardware system; based on the idea of ​​module reuse, the present invention realizes the synchronous encryption / decryption operation of three groups of tasks, solves the problem that the decryption module is idle during frequent encryption tasks in the traditional design, and effectively improves The utilization rate and operation speed of the system are improved, and the processing speed is three times that of single-task operation when the key is not changed in multi-task operation, and the fastest is six times that of the existing hardware system.

Description

technical field [0001] The invention relates to an ultra-high-speed implementation of SM4 algorithm system and its operation method, belonging to the technical field of information encryption. Background technique [0002] In March 2012, the State Encryption Security Administration officially established the SM4 block cipher algorithm as an industry standard. At present, the SM4 standard has been commercially promoted on a certain scale in some fields in my country. In the next ten years, wireless local area network, finance, national defense, e-commerce, video encryption and other fields will need nearly 100 million SM4 algorithm encryption and decryption systems. Therefore, the development of high-performance SM4 algorithm encryption and decryption systems has become a hot spot in the industry. [0003] The SM4 algorithm is a block cipher algorithm with a data length of 128 bits and a key length of 128 bits. The key undergoes 32 nonlinear iterative operations to generate ...

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/06
Inventor 吕茜曹艳艳崔立功
Owner BINZHOU POLYTECHNIC
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