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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com