Method for processing CAP file by intelligent card
A smart card and file technology, applied in the field of smart cards, can solve the problems of occupying smart card resources, increasing storage management costs, and not being able to guarantee the integrity of CAP files, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0129] Embodiment 1 of the present invention provides a kind of method for smart card processing CAP file; figure 1 Described method is introduced, concrete steps are as follows:
[0130] Step 101: establish a connection between the smart card and an external terminal, and perform initialization;
[0131] Preferably, in this embodiment, the first status flag is 0 after the smart card is initialized;
[0132] Step 102: the smart card receives the APDU command corresponding to the CAP file, and stores the data contained in the APDU command into the communication buffer;
[0133] Step 103: The smart card judges the value of the first state flag, and when the value of the first state flag is the first preset value, step 104 is executed; when the value of the first state flag is is the second preset value, then execute step 105; when the value of the first status flag is the third preset value, then execute step 106; when the value of the first status flag is the fourth preset s...
Embodiment 2
[0307] Embodiment 2 of the present invention provides another method for smart cards to process CAP files, combined below Figure 4 Described method is introduced, concrete steps are as follows:
[0308] Step 401: establish a connection between the smart card and an external interrupt, and perform initialization;
[0309] Step 402: the smart card receives the APDU command corresponding to the CAP file, and stores the data contained in the APDU command into the communication buffer;
[0310] Step 403: The smart card judges the status parameter in the APDU command, if the value of the status parameter is the first preset value, then perform step 404; if the value of the status parameter is the second preset value set value, then perform step 405; if the value of the state parameter is the third preset value, then perform step 406; if the value of the state parameter is the fourth preset value, then perform step 407; if the If the value of the state parameter is the fifth prese...
Embodiment 3
[0424] Embodiment 3 of the present invention provides a method for a smart card to download and parse constant pool components, combined below Figure 7 For an introduction, the specific steps are as follows:
[0425] Step 701: the smart card obtains the size information of the constant pool component from the directory array;
[0426] In this embodiment, the smart card obtains the size information of 12 components from the directory component when downloading and parsing the directory component, and stores it in the directory array;
[0427] Step 702: The smart card judges whether the constant pool component is smaller than the storage space of the first memory, if yes, execute step 703; otherwise, execute step 704;
[0428] In this embodiment, the first memory is a random access memory;
[0429] Step 703: The smart card reads the constant pool component data from the communication buffer and stores it in the first memory, and executes Step 705;
[0430] Step 704: The smar...
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