A kind of SM4 encryption, key extension method, device, equipment and medium
An encryption method and encryption key technology, which can be applied to encryption devices with shift registers/memory, secure communication devices, digital transmission systems, etc., and can solve the problems of complex calculation, inability to meet the fast encryption of massive data, and large amount of calculation. , to achieve the effect of improving computing efficiency and simplifying the SM4 key expansion algorithm
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0034] The specific implementation manners of the SM4 encryption and key expansion method, device, equipment and medium provided by the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0035] Such as figure 1 As shown, the SM4 encryption method that the embodiment of the present invention provides, its steps can comprise:
[0036] S11. Use the pre-generated round key to perform 32 iterative calculations on the 128-bit data to be encrypted, and the iterative calculation is: i=0, 1, ..., 31, where, RK i is the pre-generated round key, Indicates an XOR operation, and the calculation method of T is: if the input of T is A, but
[0037] During specific implementation, the round key may be generated using a method in the prior art, or may be generated using the round key extension method provided in the following embodiments of the present invention, which is not limited in this embodiment of the present i...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


