The present invention relates to memory means comprising at least one set of data in a memory area. The memory means may be implemented with volatile RAM devices or with non-volatile silicon devices, such as EEPROM, Flash-EPROM or ROM. Usually, such memory stores operating system software modules, application programs and application data. In areas where such computer systems according to the invention may be particularly applicable, some or all of the operating system software modules are stored in ROM.
In some applications, typically financial transaction processes, storing must be done very safely. Such safe storage applications are known as requiring “Atomicity of Update” in “persistent” storage means. In order to carry out such safe updating, the use of update logs is known from the prior art. Such update logs register which parts of a set of data has to be changed during an update session. Only when the set of data together with its updated parts has been stored in memory, all references to the former version of the set of data may be removed.
The object of the present invention is to support persistent application-data storage by providing a mechanism for atomicity of update for data stored in non-volatile memory devices, especially in silicon storage devices such as EEPROM or Flash-EEPROM.
Therefore, the invention is directed to a computer-readable medium storing a data structure for supporting persistent storage of a set of data, said data structure comprising:
The application of such unique tags related to the different memory areas allows to uniquely identify which one of the versions are older versions. Moreover, the application of such tags allows for identifying which versions relate to the same original set of data. Thus, in a memory, different versions of different sets of data may be present at the same time. Moreover, during updating the most recently updated version the older versions, as well as the most recently updated version, are not removed from memory. Only after an update action of the most recently updated version has been entirely completed the oldest version of the set of data may be removed from memory.
When, during an update action the updating is interrupted, the most recently updated version is still present in de memory, thus guaranteeing the presence of at least one valid version of the set of data. Thus, “Atomicity of Update” is guaranteed. Such atomic updates guarantee either a complete replacement of the data or unmodified previously stored data, even if the update operation is disrupted.
In one embodiment, each of the versions of the set of data are stored in one or more memory pages, and each of the memory pages includes one tag, each tag comprising references to the set of data, a version number and a page number.
A page is defined as a memory area of consecutive memory locations which are dealt with as a unity such as appropriate for the storage technology concerned. Each page may correspond to one word line, thus facilitating memory unit read and write operations. Version numbers are assigned to the different generations of the set of data. Thus, different version numbers relate to different generations. Different page numbers refer to different pages within the same generation of the set of data.
The invention also relates to a computer arrangement including a processor and at least one computer-readable medium as defined above.
Preferably, the processor is arranged to write tags with redundancy as to the content and, after having read tags from the memory means, to analyze from the redundancy whether or not write errors have occurred. Such a redundancy can be used as an indication whether or not the tags concerned and the set of data to which the tags refer have valid values.
Preferably, the most recently updated version comprises a plurality of pages, each page having a unique tag, and the processor is arranged for updating said most recently updated version of said set of data and to write a predetermined tag of a predetermined one of said plurality of pages into said memory means as a last step of said updating. The predetermined tag, which is written last, can be read by the processor. If the processor detects the presence of this predetermined tag in the memory means, the processor can conclude that the updating action has been completed entirely.
The application of such tags provides for several new options. For instance, at least one of the tags may include additional data as to indicate ownership and use-rights, the processor being arranged to recognize ownership and use-rights from these additional data.
The use-rights may differ for different parts of the set of data and the processor may be arranged to recognize these different use-rights for these different parts.
Preferably, the processor is arranged to analyze tag values and is only allowed to access the versions of the set of data by reference through the tag values. Thus, access to the different versions of the set of data is not controlled by a usual program counter but by the tag values. In other words, the memory has become content addressable memory.
In the latter embodiment, the processor preferably comprises a central processing unit and a distinct memory managing unit, where the tag values are only known to the memory managing unit. Then, the physical address space of the memory means is not included in the address space of the central processing unit, especially not in the address space where application program or operating system software instructions are stored. In this manner, additional protection against “probing” can be obtained. To realize this potential protection, the memory managing unit may provide to the central processing unit additional interface functionality with a tag-size address register.
In order to increase the safety of stored data, the memory managing unit may encode tags with a cryptographic key prior to writing them into the memory, the cryptographic key being only known to the memory managing unit. Such a cryptographic key may relate to a cryptographic one-way function.
The present invention also relates to a method for supporting persistent storage of a set of data, comprising the steps of:
Hereinafter, the present invention will be described in detail with reference to some drawings which are intended only to illustrate the present invention and not to limit its scope.
The memory comprises different generations (or versions) of a set of application data elements. Each generation may be stored in one or more pages. In
The generations k, k+1, and k+2 are indicated to form a “data chunk” which term is used here as a reference to one single set of application data elements. Pages required for storage are allocated from any location in memory that is not occupied by a page as determined by the memory manager 4. The different generations k, k+1, k+2 of the data chunk shown in
In practice, the memory will contain several “data chunks”, i.e., several sets of generations of different sets of data.
In a memory organized and managed in accordance with the present invention, atomicity of update is provided by the management policy carried out by the memory manager 4. After being stored, data related to a version of the set of application data elements will never be modified in the same memory area. In other words, a page once created is never modified. When the last updated set of application data elements needs to be amended in accordance with an application program running on the central processing unit 2, a new memory area, e.g., a new set of pages, is allocated by the memory manager 4. In this new memory area any changed values together with values of data elements of the set of application data elements that have not been changed are stored by the memory manager 4. In this way, the memory 10 will hold at any time at least one consistent, valid version of the data chunk.
Such an updating action may, e.g., relate to a smart card. Although updating of data in a smart card only takes a very short time (for instance about 3 msec) there is a small chance that the smart card is removed from a communicating terminal prior to completing the data transaction with the terminal. Thus, the updating may be interrupted prior to completion. When this happens, at least the last updated version is still present in the memory of the smart card.
In one embodiment, after completing the update of the set of data, the memory manager 4 proceeds by de-allocating the memory area storing the oldest version of the set of data. The memory manager 4 may, e.g., control the presence of no more than 10 versions of one set of application data elements. In a practical realization the application program running on the central processing unit 2 will interact with the memory manager 4 to control the process of updating its data, e.g., to indicate completion of the update. The application program will notify the completion of the update to the memory manager 4, after which the memory manager 4 completes the writing operations in the memory 10. Such update process signaling is customary in transaction processing systems.
When several versions of the set of application data elements are present in the memory the modification history of the data may be analyzed through the memory manager 4. The memory manager 4 does this by providing means for the application program running in the central processing unit 2 to inspect, but not modify, data values in previous versions.
In one specific realization of the invention the tag value is stored in the memory using a special encoding, e.g., using redundancy for instance with a qualifying number of bits set to one. This special encoding is used by the memory manager 4 to detect correct/incorrect data write operations. Only if the qualified number of bits is detected to be one (or high) the memory manager 4 decides that the tag value is valid. If this qualified number of bits is not set to one, the memory manager 4 decides that the tag value is invalid. Such a situation may, e.g., be caused by interrupting the power supplied to the memory device, for instance when a user of a smart card removes his smart card from a terminal prior to completion of a financial transaction.
In such an embodiment, prior to removing the oldest generation of the set of data, the memory manager 4 will determine the validity of the most recently updated generation. The specific tag-encoding method may be determined from the physical characteristics of the silicon storage device used. It should be chosen to have a very high likelihood of resulting in an invalid encoding if that memory device fails to write the page in its entirety. In dependence on the memory chip design (i.e. the transistor technology used), before writing new data in a page, some memories will first change all memory location values of a specified page into either zeros or ones. Therefore, as indicated above it is sometimes better to check whether a qualified number of bits in a tag is one whereas in other cases it might be better to check the presence of a qualified number of bits to be zero. Then, if the check on the tag is found to be correct it is a matter of known chance whether or not the content of the remainder of the page related to the tag is also written correctly.
this verification step may be carried out by checking the tag value as indicated above;
The tag value for each new page is defined with the assigned chunk identifier chid, the generation count value gen# of the most recently previous updated version incremented by 1, and the page count pg#.
Preferably, the pages are written to memory 10 page by page as indicated in step c. above. Preferably one predetermined page of the set of pages for one set of data must be written last, whereas all other pages can be written in any order. Conveniently, that predetermined page is the first page of the new set of pages. In practice, any of the pages may be written in parts. For example, a tag value of the page may be written separately from the application program data in the page. Preferably, however, the tag of the predetermined page, which is the last page to be written, is written in the last step of the updating action. This is a clear indication that the updating action has been completed. Until that tag of the predetermined page is written in memory, application program data written to any of the new pages may also be modified. However, it is to be noted that partial writes and modifications to page data may reduce the benefits obtainable with the invention, i.e., the total writing time may get longer. Writing the non-volatile memory 10, like EPROM, takes a relatively long time, nowadays about 3 msec. Therefore, it is best to write only once to memory 10, i.e., when the entire modified set of data is ready to be stored and not to write modified portions of the set of data in consecutive periods of time. Still, if time is available, as is often the case, it is common practice in the art to write modified portions of a set of data in non-volatile memory. However, this results in an increased number of write operations which leads to unnecessary wear of the non-volatile memory 10.
Therefore, in accordance with an embodiment of the invention, preferably, all steps necessary to completely amend a set of data are carried out on a working copy of the set of data in RAM 8 prior to writing the amended set of data to non-volatile memory 10.
Writing the tag value of the predetermined page as the last operation in an update session is an advantageous measure in realizing the atomicity of the multi-page update. The presence or absence of a valid tag, in the predetermined page then serves as a “commit” flag: a valid tag in the predetermined page indicates both the validity of the written page and the irrevocable completion of the entire update process.
Memory storage of the application program data can be made even more secure when the date stored in the memory can only be addressed physically by, the application using the chunk identifier chid. The memory 10 then has become a “content addressable memory” (CAM).
Although the memory manager 4 and the central processing unit 2 may be within one physical processing unit, it is especially advantageous for this latter feature that the central processing unit 2 and the memory manager 4 are two physically distinct units arranged to communicate with one another. It is to be understood that “physically distinct” may still refer to units manufactured on a single chip. Then, the physical address space of the memory 10 is not included in the address space of the central processing unit 2, specifically not in the address space where application program or operating system software instructions are stored. If, then, the memory manager 4 is also made tamper-resistant (like in a smart card), additional protection against “probing” will be obtained.
To realize, this potential additional protection for e.g. smart cards, the memory manager 4 may provide additional interface functionality, e.g., containing a tag-size address register 54 and a page-data size data register 52 (see
The interface 52, 54 and associated logic unit 50 may be implemented in hardware.
In addition, specific hardware circuits 56, 58 will be present as interfaces between the memory 6, 8, 10 and the logic unit 50 and between the central processing unit 2 and the logic unit 50, respectively. The logic unit 50 may provide a dedicated address counter combined with a tag-comparing logic circuit. An alternative hardware circuit may contain content addressable memory logic circuits implemented per memory page at least for the storage bits reserved to contain the tag value.
Additional security benefits may be obtained with a memory managed according to the invention when in addition to the special detecting encoding the tag value is further encoded using cryptographic techniques. Such cryptographic tag encoding intends to hide application data related to structural information like chunk identifier chid, generation count gen#, page count pg#, contained in the tag values. Cryptographic encoding may be done with any encoding technique known to a person skilled in the art. One advantageous method includes the use of secret cryptographic one-way functions in which the one-way function steps are related to a secret key only known to the memory manager 4. In this way, the memory manager 4 is able to recognize a previous generation by applying the one-way function one or more times to the encoded tag value of that previous generation and then comparing the resulting tag value with the tag value of the most recently updated generation. This will hamper reconstruction of application program data from an evil-in-tended forced “dump” of the memory device content.
The tagged memory structure as explained hereinbefore provides several advantageous options. For instance, the tag may include additional data to indicate ownership of the associated application program data. Moreover, such additional data in the tag value might indicate use-rights or sets of use-rights for different users of the application program data. Such different use-rights may, e.g., be related to different access conditions to different parts of the (application) program data in the memory 10. One part of the (application) program data may, e.g., be defined as read-only, whereas another part of the application program data may be defined to be read/write access.
The invention efficiently provides a transaction log stored in memory since the memory contains the history of updates to specific application data-elements in the form of consecutive generations.
As explained above, additionally, the number of write operations to memory devices managed in accordance with the present invention may be reduced using the memory-update/transaction logging mechanism disclosed. Additionally, a reduced number of write operations provided by the invention may result in reduced costs of the silicon storage device by extending its useful life. Security of data stored in, especially, the non-volatile memory on tamper-resistant single chip computers, like smart cards, is increased. The increase of security may be entirely obtained by software measures. Hardware measures, like the distinct memory manager 4 apart from the central processing unit 2, may further increase the security but are not strictly necessary.
This is a continuation of application Ser. No. 10/009,275, filed Dec. 10, 2001 which is the 35 U.S.C. 371 national phase of International Application No. PCT/NL99/00360, filed on Jun. 10, 1999, which designated the United States, and are incorporated herein by reference in their entirety.
Number | Name | Date | Kind |
---|---|---|---|
4425642 | Moses et al. | Jan 1984 | A |
4582985 | Lofberg | Apr 1986 | A |
4694396 | Weisshaar et al. | Sep 1987 | A |
4757495 | Decker et al. | Jul 1988 | A |
4853522 | Ogasawara | Aug 1989 | A |
4874935 | Younger | Oct 1989 | A |
4921278 | Shiang et al. | May 1990 | A |
4930129 | Takahira | May 1990 | A |
4953160 | Gupta | Aug 1990 | A |
5057997 | Chang et al. | Oct 1991 | A |
5148546 | Blodgett | Sep 1992 | A |
5177768 | Crespo et al. | Jan 1993 | A |
5204663 | Lee | Apr 1993 | A |
5204897 | Wyman | Apr 1993 | A |
5249212 | Covey et al. | Sep 1993 | A |
5283885 | Hollerbauer | Feb 1994 | A |
5365576 | Tsumura et al. | Nov 1994 | A |
5404377 | Moses | Apr 1995 | A |
5446901 | Owicki et al. | Aug 1995 | A |
5452431 | Bournas | Sep 1995 | A |
5453602 | Hanada | Sep 1995 | A |
5469559 | Parks et al. | Nov 1995 | A |
5479509 | Ugon | Dec 1995 | A |
5481715 | Hamilton et al. | Jan 1996 | A |
5511176 | Tsuha | Apr 1996 | A |
5517645 | Stutz et al. | May 1996 | A |
5534372 | Koshizuka et al. | Jul 1996 | A |
5544246 | Mandelbaum et al. | Aug 1996 | A |
5594227 | Deo | Jan 1997 | A |
5649118 | Carlisle et al. | Jul 1997 | A |
5649188 | Nomura et al. | Jul 1997 | A |
5657379 | Honda et al. | Aug 1997 | A |
5721781 | Deo et al. | Feb 1998 | A |
5742756 | Dillaway et al. | Apr 1998 | A |
5754649 | Ryan et al. | May 1998 | A |
5764763 | Jensen et al. | Jun 1998 | A |
5768385 | Simon | Jun 1998 | A |
5781723 | Yee et al. | Jul 1998 | A |
5790489 | O'Connor | Aug 1998 | A |
5802519 | De Jong | Sep 1998 | A |
5805899 | Evans et al. | Sep 1998 | A |
5832119 | Rhoads | Nov 1998 | A |
5862117 | Fuentes et al. | Jan 1999 | A |
5869823 | Bublitz et al. | Feb 1999 | A |
5881152 | Moos | Mar 1999 | A |
5884316 | Bernstein et al. | Mar 1999 | A |
5889868 | Moskowitz et al. | Mar 1999 | A |
5894550 | Thiriet | Apr 1999 | A |
5896393 | Yard et al. | Apr 1999 | A |
5905798 | Nerlikar et al. | May 1999 | A |
5905819 | Daly | May 1999 | A |
5912453 | Gungl et al. | Jun 1999 | A |
5915027 | Cox et al. | Jun 1999 | A |
5930363 | Stanford et al. | Jul 1999 | A |
5940363 | Ro et al. | Aug 1999 | A |
6005940 | Kulinets | Dec 1999 | A |
6052690 | De Jong | Apr 2000 | A |
6055615 | Okajima | Apr 2000 | A |
6058483 | Vannel | May 2000 | A |
6094656 | De Jong | Jul 2000 | A |
6104812 | Koltai et al. | Aug 2000 | A |
6128627 | Mattis et al. | Oct 2000 | A |
6168207 | Nishizawa | Jan 2001 | B1 |
6173391 | Tabuchi et al. | Jan 2001 | B1 |
6182158 | Kougiouris et al. | Jan 2001 | B1 |
6212633 | Levy et al. | Apr 2001 | B1 |
6220510 | Everett et al. | Apr 2001 | B1 |
6241153 | Tiffany, III | Jun 2001 | B1 |
6250555 | Inamoto | Jun 2001 | B1 |
6257486 | Teicher et al. | Jul 2001 | B1 |
6257490 | Tafoya | Jul 2001 | B1 |
6282700 | Grover et al. | Aug 2001 | B1 |
6292874 | Barnett | Sep 2001 | B1 |
6295313 | Noma et al. | Sep 2001 | B1 |
6310956 | Morito et al. | Oct 2001 | B1 |
6311186 | MeLampy et al. | Oct 2001 | B1 |
6311280 | Vishin | Oct 2001 | B1 |
6321981 | Ray et al. | Nov 2001 | B1 |
6325285 | Baratelli | Dec 2001 | B1 |
6345104 | Rhoads | Feb 2002 | B1 |
6349336 | Sit et al. | Feb 2002 | B1 |
6374355 | Patel | Apr 2002 | B1 |
6385645 | De Jong | May 2002 | B1 |
6480831 | Cordery et al. | Nov 2002 | B1 |
6480935 | Carper et al. | Nov 2002 | B1 |
6484946 | Matsumoto et al. | Nov 2002 | B2 |
6535997 | Janson et al. | Mar 2003 | B1 |
6546112 | Rhoads | Apr 2003 | B1 |
6572025 | Nishikado et al. | Jun 2003 | B1 |
6608911 | Lofgren et al. | Aug 2003 | B2 |
6742712 | Kawaguchi et al. | Jun 2004 | B1 |
6745307 | McKee | Jun 2004 | B2 |
6808118 | Field | Oct 2004 | B2 |
7114032 | Challenger et al. | Sep 2006 | B2 |
20020112116 | Nelson | Aug 2002 | A1 |
20050129334 | Wilder et al. | Jun 2005 | A1 |
20050193206 | Kunisa et al. | Sep 2005 | A1 |
Number | Date | Country |
---|---|---|
4126213 | Feb 1993 | DE |
4242247 | Jun 1994 | DE |
196 00 081 | Jul 1997 | DE |
0190733 | Aug 1986 | EP |
0251861 | Jan 1988 | EP |
0466969 | Jan 1992 | EP |
0581317 | Feb 1994 | EP |
0666550 | Aug 1995 | EP |
0674295 | Sep 1995 | EP |
0 723 226 | Jul 1996 | EP |
0849734 | Jun 1998 | EP |
0864996 | Sep 1998 | EP |
0 893 752 | Jan 1999 | EP |
0917152 | May 1999 | EP |
2776153 | Sep 1999 | FR |
01277993 | Nov 1989 | JP |
02156357 | Jun 1990 | JP |
05089303 | Apr 1993 | JP |
09326046 | Jun 1999 | JP |
200015886 | Jan 2000 | JP |
2001126046 | May 2001 | JP |
WO 8707062 | Nov 1987 | WO |
WO 8902140 | Mar 1989 | WO |
WO 9410657 | May 1994 | WO |
WO 9741562 | Nov 1997 | WO |
WO 9819237 | May 1998 | WO |
WO 9837526 | Sep 1998 | WO |
WO 9916030 | Sep 1998 | WO |
WO 9935791 | Jul 1999 | WO |
WO 9938162 | Jul 1999 | WO |
Number | Date | Country | |
---|---|---|---|
20050283579 A1 | Dec 2005 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 10009275 | US | |
Child | 10870953 | US |