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

Data protection method for preventing power down

A data protection and anti-power-off technology, applied in the field of information security, can solve the problems of reducing the security of smart cards, data loss in the destination storage area, and smart cards not working properly, etc.

Active Publication Date: 2014-05-14
FEITIAN TECHNOLOGIES
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] With the development of science and technology, the market of smart cards continues to expand, and in the process of using smart cards, there will be unknown circumstances due to abnormal conditions (power failure, power loss or power quality not meeting the demand) that may cause smart cards to malfunction. If the smart card is in the process of erasing and writing the target storage area, the original data in the target storage area will be lost due to sudden power failure, thereby reducing the security of the smart card

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
  • Data protection method for preventing power down
  • Data protection method for preventing power down
  • Data protection method for preventing power down

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0072] Embodiment 1 of the present invention provides a data protection method against power failure, such as figure 1 As shown, including: the java card virtual machine presets a mark page, a backup page and a cache page, and this embodiment takes only one page in the cache as an example;

[0073] Step 101: the java card virtual machine is powered on and initialized;

[0074] Step 102: the java card virtual machine obtains the current marked page, and judges according to the mark in the current marked page whether power-on recovery data is needed, if yes, then execute step 103, otherwise execute step 104;

[0075] Step 103: The java card virtual machine writes the data in the backup page into the destination storage area according to the information of the backup page contained in the current tag page, uses the next tag page of the current tag page as the current tag page, and updates the current tag page. To mark the information of the page, go to step 104;

[0076] Step 1...

Embodiment 2

[0085] Embodiment 2 of the present invention provides a data protection method against power failure. Specifically, 8 mark pages, 24 backup pages, and 3 cache pages are used as an example, and each page is 64 bytes. figure 2 As shown, the method includes:

[0086] The mark page structure is shown in Table 1: the backup page number array occupies 48 bytes, the count value occupies 4 bytes, the mark occupies 2 bytes, the used backup page number occupies 1 byte, and the unused backup page The starting page number occupies 1 byte, the check code occupies 2 bytes, and the remaining 6 bytes are padding values; the structure of the backup page and the cache page is determined by the structure of the destination storage page;

[0087] Table 1

[0088]

[0089] Step 201: power on the java card virtual machine;

[0090] Step 202: the java card virtual machine traverses the marked area, and judges whether there is a marked page with correct verification code, if yes, then execute s...

Embodiment 3

[0147] Embodiment 3 of the present invention provides a data protection method against power failure, such as image 3 and Figure 4 As shown, including: in this embodiment, the java card virtual machine presets a markup page, a backup page and a cache page, wherein the cache area is provided with a primary cache area and a secondary cache area, and the primary cache area contains one or more Level 1 cache page, the level 2 cache contains one or more level 2 cache pages;

[0148] In this embodiment, 8 markup pages, 24 backup pages, 3 first-level cache pages and 6 second-level cache pages, and each page is 64 bytes as an example for illustration:

[0149]The mark page structure is: the backup page number array occupies 48 bytes, the count value occupies 4 bytes, the mark occupies 2 bytes, the number of the used backup page occupies 1 byte, and the starting page of the unused backup page The number occupies 1 byte, the check code occupies 2 bytes, and the remaining 6 bytes are...

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 discloses a data protection method for preventing power down, and belongs to the field of information safety. The method includes A, powering on a java card virtual machine, judging whether power on and data recovery are necessary or not, if so, writing backup page data into a target storing area, and executing B; if not, executing B directly; B, when triggered operation for writing data to the target storing area is detected, acquiring a current target storage page number according to address computing of data to be written; C, judging whether the current target storage page number exists in cache or not, if so, using the data to be written to modify cache data, and executing D; if not, writing target storage page data in a backup page firstly, then writing in the cache, using the data to be written to modify the cache data, and executing D; D, when the data to be written is processed completely, writing the cache data into the target storing area, and data recovery is omitted while powering on. By adopting the technical scheme, when power down occurs in unknown conditions, original storage area data can be recovered and safety of the original data is guaranteed.

Description

technical field [0001] The invention relates to the field of information security, in particular to a data protection method against power failure. Background technique [0002] With the development of science and technology, the market of smart cards continues to expand, and in the process of using smart cards, there will be unknown circumstances due to abnormal conditions (power failure, power loss or power quality not meeting the demand) that may cause smart cards to malfunction. If the smart card is in the process of erasing and writing the target storage area, the original data in the target storage area will be lost due to sudden power failure, thereby reducing the security of the smart card. Contents of the invention [0003] In order to solve the deficiencies in the prior art, the present invention provides a data protection method against power failure. [0004] The technical solution adopted in the present invention is: a data protection method against power fai...

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): G06F12/16G06F12/08G06F9/445G06F11/14
Inventor 陆舟于华章
Owner FEITIAN TECHNOLOGIES
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