Adopt the smart card of programmable non-volatile memory as its program storage
The present invention relates to a kind of smart card (also claiming the CPU card) of new structure, exactly, relate to a kind of employing programmable non-volatile memory (NVM nonvolatile memory) as the smart card of its COS carrier storage, belong to have and conduct electricity the technical field of record carrier (for example credit card or identification card) of mark, P.e.c. or semiconductor circuit components.
Along with developing rapidly that global IC-card is used, the development of domestic IC-card and related industry thereof has become a big focus of China's informatization and the new source of economic growth of information industry.The CPU card) but also become a fastest-rising bright spot and in entire I C card market, the smart card with tight security (claims not only:.Especially the SIM that uses with the GSM digital mobile communication terminal (Subscriber Identity Module) Subscriber Identity Module is the smart card of representative, increases fast especially in recent years.By the end of in September, 2000, domestic mobile phone user's number surpasses 6,500 ten thousand, and the market owning amount that this means SIM card is above 6,500 ten thousand.In other application, as the ID card and social security card etc., following one to also developing rapidly in two years, and its market owning amount more can reach more than 1,000,000,000.
As everyone knows, smart card is actually the microcomputer system that is similar to the computer body system structure of an embedded microprocessor, and its system architecture is formed as shown in Figure 1: the left side is an intelligent card chip among the figure, and the right side then is the inner structure synoptic diagram of this chip.Microprocessor 1 as smart card control center links to each other with each storer by system bus, has constituted a microcomputer system.Total system realizes message exchange with the extraneous string line that relies on.
At present, most smart cards adopt traditional CPU+RAM+ROM+EEPROM architectural framework.Wherein: RAM is a random access memory, is used for storing some interim parameter or intermediate variables of application of IC cards process, and still, these data are promptly lost after the outage.ROM is a ROM (read-only memory), is used to store COS (the Chip Operating System) operating system program of smart card, and with safety, the relevant cryptographic algorithm of authentication or other application program etc.EEPROM is the electric erazable programmable storer, is used for storage and more user-dependent management datas and user data etc.COS wherein is the nerve center of smart card, and its control smartcard internal turns round and extraneous message exchange, and the storer in the management smart card is also blocking the inner processing of finishing various command.Present smart card mainly is to adopt the carrier of ROM as COS, yet this storage organization exists following many disadvantages:
(1) source program code of COS operating system must be given chip production producer and make mask, by manufacturer these codes is added at integrated circuit to be solidificated in the ROM man-hour.Yet COS is as the control maincenter of smart card, except operations such as the data access of bearing whole card, processing, computings, more bearing the safety, attack protection of smart card, anti-vigilance performance such as duplicate.The common practice is to embed a high-grade cryptographic algorithm in COS.The COS source program code is given manufacturer, in fact just equals whole programs on the smart card and algorithm have all been opened to the producer that produces chip, and this point is totally unfavorable to the safety of smart card! In the time of serious, even can threaten the safety of national information net or financial sector.This " predicament " limited greatly smart card in some safe confidential departments of China application and popularize.
(2) COS uses the ROM mode to store, in case after finishing mask, just can not change again.Because the ROM storage is to rely on chip physical connection stored programme and data, if developer or user want to revise COS, just must make mask again, so not only increase the research and development expense, more prolonged the construction cycle.
(3) because ROM relies on physical connection stored programme and data, use ordinary semiconductor conversed analysis engineering now, just can easily obtain the code of original storage, make the secret of smart card be not difficult to be broken, the safety of same entail dangers to smart card.
(4) since ROM storage can not the property revised, the cryptographic algorithm or other program that are stored among this ROM after making card sell all can not be revised again, promptly do not support online upgrading or online programming.
(5) card of ROM type must be determined the chip purposes in future when chip manufacture, and promptly chip is a tailor-made product, is unfavorable for technology innovation, has increased the market risk.
As can be seen from the above, it can only be the shaped article of customization that the memory architecture of traditional smart card has been doomed smart card, after in case chip manufacture is finished, do not have any extensibility and systemic openness, these weakness to a great extent limitation and restriction the expansion of design of Intelligent Card innovation and application scenario.
The purpose of this invention is to provide a kind of above-mentioned shortcoming that can overcome existing smart card, adopt the smart card of programmable non-volatile memory as its program storage, this novel smart card has been broken through the intrinsic framework of conventional smart card, released the notion of open smart card platform, make the application of smart card more convenient and flexible, motor-driven, and security performance is stronger, and this smart card will become the new focus in IC-card technology and the application.
The object of the present invention is achieved like this: a kind of smart card that adopts programmable non-volatile memory as its program storage, include microprocessor and peripheral circuit thereof, and it is characterized in that; Only be provided with two kinds of memory modules of random access memory ram and programmable non-volatile NVM (Non Volatile Memory) storer in the chip of this smart card, COS carrier wherein is a NVM storer able to programme.
Programmable non-volatile memory wherein is ultraviolet light erasable memory EPROM.
Programmable non-volatile memory wherein is electric charge erasable memory EEPROM.
Programmable non-volatile memory wherein is flicker type electric charge erasable memory Flash.
Programmable non-volatile memory wherein is non-volatile static read/write memory nvSRAM.
Programmable non-volatile memory wherein is ferroelectric memory FeRAM.
Programmable non-volatile memory wherein is to utilize molecular polarization drift angle direction to store the molecule-type storer of data.
Programmable non-volatile NVM storer wherein is two modules, also can be plural module; Wherein have at least one or more modules as storage this smart card COS and with safety, the relevant cryptographic algorithm of authentication or the program storage of other application program, another or a plurality of module are then as the data-carrier store of storage and user-dependent user data and management data.
Programmable non-volatile NVM storer wherein is a module, by setting up two or more logical partitions, with one of them logical partition as storage smart card COS and with safety, the relevant cryptographic algorithm of authentication or the program storage of other application program, another logical partition is then as the data-carrier store of storage and user-dependent user data and management data.
The division of the logical partition in the above-mentioned programmable non-volatile NVM storer is set by user flexibility, can be the logical partition of two equities, also can be two not reciprocity logical partitions, can also be the logical partition more than three or three.
It is to adopt NVM storer able to programme to replace original widely used ROM storer as the COS memory carrier as the maximum characteristics of the smart card of its program storage that the present invention adopts programmable non-volatile memory, so both can keep original smart card and adopt the whole advantages of ROM as the COS carrier, again because the rewriting property of NVM storer able to programme, make smart card development process simplify, and reduced investment risk.Like this, because the rewriting property of NVM able to programme, the developer just can be according to the different demands of oneself, write the COS of different purposes, design specialized algorithm and no longer need to announce voluntarily to chip manufacture manufacturer, and owing to the not detectable property of charge storage possesses high safety, thereby improve the safety and the confidentiality of smart card greatly.Can predict, the present invention will make smart card expand in some new fields of China and use and popularized.
Since in the identical intelligent card chip of memory construction the different COS of downloaded stored, just can make it to become have difference in functionality, the smart card of purposes.Therefore, the system platform that smart card of the present invention provided has broken away from the single application of conventional smart card, becomes the smart card platform of an opening; This smart card can be applied to digital mobile cellular telecommunication, finance, insurance, military affairs, user authentication card, secret communication encrypted card, social security, and other various application scenarios that need to use smart card.
Describe structure of the present invention, feature and effect in detail below in conjunction with drawings and Examples:
Fig. 1 is the traditional structure synoptic diagram of intelligent card chip architectural framework.
Fig. 2 is the structural representation of intelligent card chip architectural framework of the present invention.
Referring to Fig. 2, the present invention is a kind of smart card that adopts programmable non-volatile memory as its storer, includes microprocessor 1 and peripheral circuit thereof, and its principal feature is; Only be provided with two kinds of memory modules of random access memory ram and programmable non-volatile NVM (Non Volatile Memory) storer in the chip of this smart card, COS carrier wherein is a NVM storer able to programme.
So-called non-volatile NVM storer is exactly the storer that data are not lost after outage, traditional nonvolatile memory is a read only memory ROM, sort memory can only add man-hour with information hardness at integrated circuit, in use can only sense information and can not write or changed information.
Along with the progress of semiconductor process techniques, in these years engendered the rewritable nonvolatile memory of multiple non-ROM type, the ultraviolet light erasable memory is arranged, as: EPROM; The electric charge erasable memory, as: EEPROM; Flicker type electric charge erasable memory, as: Flash; Nonvolatile static read-write memory nvSRAM; Ferroelectric memory FeRAM; And utilize molecular polarization drift angle direction to store molecule-type storer of data etc., the novel nonvolatile memory of this class is repeatedly a programmatic with the difference of ROM maximum, so its NVM storer able to programme that is otherwise known as (claims again: programmable non-volatile memory).
Above-mentioned these various dissimilar rewritable nonvolatile memories of non-ROM type are as ultraviolet light erasable memory: EPROM; Electric charge erasable memory: EEPROM; Flicker type electric charge erasable memory: Flash; Nonvolatile static read-write memory nvSRAM; Ferroelectric memory FeRAM; And utilize molecular polarization drift angle direction to store molecule-type storer of data etc., can be used as programmable non-volatile NVM of the present invention (Non Volatile Memory) storer.In addition, programmable non-volatile NVM storer wherein can be two modules, also can be plural module; Wherein have at least one or more modules as storage this smart card COS and with safety, the relevant cryptographic algorithm of authentication or the program storage of other application program, another or a plurality of module are then as the data-carrier store of storage and user-dependent user data and management data.
Really, programmable non-volatile NVM storer wherein also can be a module, by setting up two or more logical partitions, with one of them logical partition as storage smart card COS and with safety, the relevant cryptographic algorithm of authentication or the program storage of other application program, another logical partition is then as the data-carrier store of storage and user-dependent user data and management data.The division of the logical partition in the above-mentioned programmable non-volatile NVM storer is set by user flexibility, can be the logical partition of two equities, also can be two not reciprocity logical partitions, can also be the logical partition more than three or three.
In a word, the present invention utilizes NVM storer able to programme to replace original widely used ROM storer and deposits carrier as COS, the whole advantages of former ROM had both been kept as the COS carrier, again because the rewriting property of novel NVM storer able to programme, make the development process of smart card simplify, reduced investment risk; The developer can write the COS of different purposes according to the different demands of oneself, voluntarily design specialized algorithm and no longer need to announce to chip manufacture manufacturer; And because of the not detectable property of its charge storage mode that adopts possesses tight security.The present invention also can by online programming or online upgrading download different COS just can make it to become have difference in functionality, the smart card of purposes.That is to say that novel smart card platform of the present invention has broken away from the single application of conventional smart card, become the smart card platform of an opening.