Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Sbox generation instruction optimization method in AES (Advanced Encryption Standard) encryption algorithm and instruction set processor thereof

An instruction optimization and encryption algorithm technology, applied in concurrent instruction execution, electrical digital data processing, instruments, etc., can solve problems such as the improvement effect is not very obvious, the space for algorithm optimization is limited, and the scalability is weak.

Inactive Publication Date: 2011-06-01
SHANDONG UNIV
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] Using the method of hardware acceleration, although the acceleration effect is more obvious, this optimization method has weak scalability, occupies relatively more hardware resources, and is relatively difficult to combine with other modules in the program; optimize the algorithm itself The space is very limited, usually the improvement effect of optimization is not very obvious; and the third method not only reduces the execution code space and improves the execution speed of the algorithm through the design method of instruction set expansion optimization, but also is easy to implement and flexible in design. The performance is also relatively strong, and the requirements for hardware resources are much smaller than the first method, which is suitable for small-scale circuits

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
  • Sbox generation instruction optimization method in AES (Advanced Encryption Standard) encryption algorithm and instruction set processor thereof
  • Sbox generation instruction optimization method in AES (Advanced Encryption Standard) encryption algorithm and instruction set processor thereof
  • Sbox generation instruction optimization method in AES (Advanced Encryption Standard) encryption algorithm and instruction set processor thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0071] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0072] figure 1 It is a flowchart of the AES-Sbox generation algorithm, which mainly includes 6 execution steps. Under the premise of not changing the length of the instruction opcode, the number of instructions and not affecting the running speed of the processor, some steps of the Sbox generation process are accelerated. The specific process is as follows:

[0073] 1) In the process of Sbox generation, the inverse element needs to be solved, and the Galois field GF(2 8 ) within the multiplication operation. Analyzing the generation process of Sbox, it is found that in each cycle of multiplication in the domain, a post-judgment XOR process is required, which corresponds to figure 1 Step 1. In a traditional ARM processor, four assembly statements are required to complete this function, so four clock cycles are required. To speed up the pro...

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 instruction optimization method for an Sbox generation process in an AES (Advanced Encryption Standard) encryption algorithm and a design of an instruction set processor model thereof. In order to accelerate the Sbox generation process in the AES algorithm, the invention designs three new extended instructions: (1) ifand(src1),(src2),(xor_src1),(xor_src2), for accelerating in-domain multiplication operation in the Sbox generation process; (2) getbit(dest)=(src),(bitpos), for accelerating bit-getting operation in the affine transformation process; and (3) xor5(dest)=(src1),(src2),(src3),(src4),(src5), for accelerating quinary exclusive-or operation in the affine transformation process. The three instructions are completed within one clock cycle; but in the traditional ARM (Advanced RISC Machines) processor, the three instructions respectively need multiple clock cycles. Thus, the new instructions achieve the accelerating effect. The invention also designs a special instruction processor model (SASIP) corresponding to the new instruction set according to the new extended instructions. The processor model realizes the extended instructions on hardware logic, thereby being a processor model specializing in AES-Sbox acceleration.

Description

technical field [0001] The invention relates to the encryption and decryption technology of AES, in particular to the instruction optimization method of the Sbox generation process in the AES encryption algorithm and the design of the instruction set processor. Background technique [0002] AES is the abbreviation of The Advanced Encryption Standard (Advanced Encryption Standard). It is a specification for encrypting electronic data published by the National Institute of Standards and Technology (NIST). It is the most widely used block cipher algorithm. The AES algorithm adopts a symmetric block cipher system, the key length can be 128 bits, 192 bits, and 256 bits respectively, and the block length is fixed at 128 bits. [0003] The encryption technique of AES uses an encryption key to perform a series of transformations to convert intelligible data called "plaintext" into incomprehensible data called "ciphertext". In the AES encryption and decryption algorithm, the non-li...

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): G06F9/30G06F9/318G06F9/38
Inventor 李新贾智平陈仁海陈健
Owner SHANDONG UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products