Extensible pipelined circuit aiming at SM4 cryptographic algorithm and implementation method thereof

A cryptographic algorithm and pipeline technology, which is applied in the field of scalable pipeline circuits and its realization, can solve problems such as low throughput rate, not allowing new data to be loaded, and large area overhead

CN105577363AActive Publication Date: 2016-05-11NANJING QINHENG MICROELECTRONICS CO LTD
2 Cites 10 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2016-05-11

Smart Images

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

Abstract

The invention discloses an extensible pipelined circuit aiming at an SM4 cryptographic algorithm and an implementation method thereof. According to the invention, an encryption and decryption iterative operation and a key extending algorithm are implemented through an SM4 algorithm core array, the SM4 algorithm core array comprises N / 4 SM4 algorithm cores, each SM4 algorithm core performs loop iteration 32 times to finish encryption / decryption of 128 bits of data, the N / 4 SM4 algorithm cores perform parallel execution, the number of the SM4 algorithm cores is regulated according to I / O bit width, and given that the I / O bit width is N, so the number of the algorithm cores in the structure is N / 4. According to the invention, encryption / decryption of the SM4 algorithm can be executed in a pipelined form, and a circuit structure can be regulated according to I / O interfaces with different bit widths.
Need to check novelty before this filing date? Find Prior Art

Description

Technical field:

[0001] The invention relates to the fields of information security technology and integrated circuit design, in particular to an extensible pipeline circuit for SM4 encryption algorithm and its realization method. Background technique:

[0002] The SM4 algorithm, the original SMS4 algorithm, is a block symmetric cipher algorithm for wireless LAN products announced by the State Commercial Encryption Administration Office in January 2006, and was approved as an industry standard by the State Encryption Administration in March 2012.

[0003] The SM4 algorithm is a block cipher algorithm, and its block length and key length are both 128 bits. In the SM4 algorithm standard, the algorithm is divided into three parts: encryption algorithm, decryption algorithm and key expansion algorithm. The encryption algorithm consists of 32 iterative operations and 1 reverse sequence transformation. Each iterative operation needs to load a set of round keys into the round func...

Examples

Embodiment Construction

[0018] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0019] The present invention provides a kind of extensible pipeline circuit aimed at SM4 cryptographic algorithm, such as figure 1 As shown, it specifically includes: an input data buffer module S101, a data distribution and enable signal generation module S102, a control state machine S103, an SM4 algorithm core array S104, and an output data buffer S105. Among them, the input data buffer module S101 splices the continuously input N (N is equal to 8, 16, 32, 64) bit data into 128-bit data after 128 / N cycles; the data distribution and enable signal generation module S102 will input The 128-bit data output by the buffer is allocated to each SM4 algorithm core in turn, and provides an enable signal for each SM4 algorithm co...