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

Method and system for running encryption program in Flash in XIP mode

A program and block encryption technology, applied in the field of computer science, can solve problems such as redundant clock cycles and low execution efficiency, and achieve the effects of improving security, preventing active attacks, and improving execution efficiency.

Active Publication Date: 2020-09-25
XIAN AEROSPACE UNISTAR ELECTRONICS SCI & TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] For this reason, the embodiment of the present invention provides a kind of XIP mode operation method and the system of encrypting program in Flash, to solve the need to consume redundant clock cycles existing in the process of existing XIP mode operating the encrypting program in Flash, CPU execution efficiency low problem

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
  • Method and system for running encryption program in Flash in XIP mode
  • Method and system for running encryption program in Flash in XIP mode
  • Method and system for running encryption program in Flash in XIP mode

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] This embodiment proposes a method for encrypting programs in the XIP mode to run Flash, such as figure 1 As shown, the method includes the following steps:

[0034] Step 110, receiving an instruction fetch request sent by the CPU.

[0035] Generally, a cache miss will consume more time. When a cache miss occurs, the CPU fetches instructions in XIP mode.

[0036] Step 120, judge whether hit in the Cache, if hit, then directly return the content of hit to CPU, if not hit, then according to the instruction fetch request, read the ciphertext instruction by corresponding address place in Flash, wherein The program is encrypted and stored in AES CTR mode, by using the key to encrypt the combination of the counter Counter and the true random number Counterbase and / or the mathematical operation value, and then XOR the encryption result with the plaintext of each group to obtain the encryption of each group arts.

[0037] Further, the method also includes: before the program ...

Embodiment 2

[0046] Corresponding to above-mentioned embodiment 1, present embodiment proposes a kind of system that XIP mode runs encryption program in Flash, described system comprises CPU, XIP control module and AES CTR encryption and decryption module;

[0047] The CPU is used to send an instruction fetch request to the XIP control module;

[0048] The XIP control module is used to receive an instruction fetch request sent by the CPU;

[0049] Judging whether there is a hit in the Cache, if it is a hit, then directly return the content of the hit to the CPU, if it is not a hit, then according to the instruction fetch request, the ciphertext instruction is read from the corresponding address in the Flash, wherein the program in the Flash uses For group encrypted storage in AESCTR mode, the combination of the counter Counter and the true random number Counterbase and / or the mathematical operation value are encrypted by using a key, and then the encrypted result is XORed with the plaintex...

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 embodiment of the invention discloses a method and a system for running an encryption program in Flash in an XIP (Extensible Internet Protocol) mode, which adopt an AES (Advanced Encryption Standard) CTR (Computed Tomography Register) mode to encrypt the program in the Flash, improve the safety of the encryption program and prevent active attacks. The encryption program in the Flash is operated in the XIP mode, real-time decryption is achieved, the decrypted plaintext instruction is transmitted to the CPU, no redundant clock period is needed in the process, and the execution efficiency ofthe CPU using the XIP mode is improved.

Description

technical field [0001] The embodiment of the present invention relates to the field of computer science and technology, in particular to a method and system for running an encrypted program in Flash in XIP mode. Background technique [0002] Flash memory has the advantages of small size, low power consumption, reliability and stability, long data storage time, high rewritable times, etc., and is widely used in embedded products. In order to improve data security, the application program in Flash will be encrypted and stored. Generally, when running the program in Flash in the XIP (eXecute In Place, that is, in-chip execution) mode, it will take more time when the cache misses. If the program in Flash is encrypted, the speed of the decryption process will also affect the CPU instruction fetch cycle, resulting in the consumption of redundant clock cycles and the reduction of CPU execution efficiency. Contents of the invention [0003] For this reason, the embodiment of 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

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F21/60G06F21/79
CPCG06F21/602G06F21/79
Inventor 范荔峰
Owner XIAN AEROSPACE UNISTAR ELECTRONICS SCI & TECH
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