Cell array providing non-persistent secret storage through a mutation cycle
20 claims: 20 independent, 0 dependent
- 1A method of storing and retrieving data, comprising:performing mutations of a cell array (26) in a mutation cycle until a storage phase is reached;storing the data in storage regions (SR0-SR7) of the cell array (26) at the storage phase by providing a phase identification number (PIN) to the cell array (26) and using the PIN to determine the storage phase, there being more than one possible storage phase;mutating the cell array (26) through additional phases in which the data stored in the cell array (26) during the storage phase is encrypted by the mutations through the additional phases;andin response to a retrieval request, continuing the mutations until a retrieval phase is reached and the data is decrypted. Procédé de stockage et de récupération de données, comprenant les étapes consistant à : réaliser des mutations d'une matrice cellulaire (26) dans un cycle de mutation jusqu'à ce qu'une phase de stockage soit atteinte ;stocker les données dans des régions de stockage (SR0-SR7) de la matrice cellulaire (26) lors de la phase de stockage en fournissant un numéro d'identification de phase (en anglais « Phase Identification Number » - PIN) à la matrice cellulaire (26) et en utilisant le PIN pour déterminer la phase de stockage, plus d'une phase de stockage étant possible ;muter la matrice cellulaire (26) via des phases supplémentaires dans lesquelles les données stockées dans la matrice cellulaire (26) pendant la phase de stockage sont cryptées par les mutations à travers les phases supplémentaires ;eten réponse à une demande de récupération, continuer les mutations jusqu'à ce qu'une phase de récupération soit atteinte et les données décryptées. Verfahren zum Speichern und Abrufen von Daten, wobei das Verfahren folgendes umfasst: das Ausführen von Mutationen einer Zellenanordnung (26) in einem Mutationszyklus, bis eine Speicherphase erreicht wird;das Speichern der Daten in Speicherbereichen (SRO-SR7) der Zellenanordnung (26) in der Speicherphase, indem eine Phasenidentifikationsnummer (PIN) an die Zellenanordnung (26) bereitgestellt wird, und wobei die PIN verwendet wird, um die Speicherphase zu bestimmten, wobei mehr als eine Speicherphase möglich sind;das Mutieren der Zellenanordnung (26) durch zusätzliche Phasen, in denen die in der Zellenanordnung (26) während der Speicherphase gespeicherten Daten durch Mutationen durch die zusätzlichen Phasen verschlüsselt werden;unddas Fortführen der Mutationen als Folge auf eine Abrufanforderung, bis eine Abrufphase erreicht wird und die Daten entschlüsselt werden.
- 2Procédé selon la revendication 1, dans lequel le cycle de mutation comprend une phase de repos dans lequel les données sont cryptées. The method of claim 1, wherein the mutation cycle includes a rest phase wherein the data is encrypted. Verfahren nach Anspruch 1, wobei der Mutationszyklus eine Ruhephase aufweist, in welcher die Daten verschlüsselt sind.
- 3Procédé selon la revendication 1, dans lequel la phase de stockage et la phase de récupération sont la même phase du cycle de mutation. The method of claim 1, wherein the storage phase and the retrieval phase are the same phase of the mutation cycle. Verfahren nach Anspruch 1, wobei die Speicherphase und die Abrufphase die gleiche Phase des Mutationszyklus darstellen.
- 4Procédé selon la revendication 1, dans lequel la matrice cellulaire (26) est une structure binaire résistant aux manipulations. The method of claim 1, wherein the cell array (26) is a tamper resistant binary structure. Verfahren nach Anspruch 1, wobei es sich bei der Zellenanordnung (26) um eine gegen Missbräuche sichere binäre Struktur handelt.
- 5Procédé selon la revendication 1, dans lequel la mutation survient via des opérations OU exclusif à l'intérieur de la matrice cellulaire (26). The method of claim 1, wherein the mutating occurs through XOR operations of cells within the cell array (26). Verfahren nach Anspruch 1, wobei die Mutation durch XOR-Operationen der Zellen innerhalb der Zellenanordnung (26) auftritt.
- 6Procédé selon la revendication 1, dans lequel le PIN stocké dans la matrice cellulaire (26) pendant la phase de stockage est un premier PIN, et un second PIN est reçu dans le cadre d'une demande de récupération, et les premier et second PIN sont comparés pendant une phase de récupération. The method of claim 1, wherein the PIN is stored in the cell array (26) during the storage phase is a first PIN, and a second PIN is received as part of a retrieval request, and the first and second PINs are compared during a retrieval phase. Verfahren nach Anspruch 1, wobei es sich bei der PIN, die während der Speicherphase in der Zellenanordnung (26) gespeichert wird, um eine erste PIN handelt, und wobei eine zweite PIN als Teil einer Abrufanforderung empfangen wird, und wobei die ersten und zweiten PINs während einer Abrufphase verglichen werden.
- 7Procédé selon la revendication 6, dans lequel si les premier et second PIN correspondent, la matrice cellulaire (26) permet aux données d'être récupérées. The method of claim 6, wherein if the first and second PINs match, the cell array (26) allows the data to be retrieved. Verfahren nach Anspruch 6, wobei bei einer Übereinstimmung der ersten und zweiten PINs die Zellenanordnung (26) den Abruf der Daten ermöglicht.
- 8Procédé selon la revendication 6, dans lequel si les premier et second PIN ne correspondent pas, la matrice cellulaire (26) n'est pas autorisée à être récupérée. The method of claim 6, wherein if the first and second PINs do not match, the cell array (26) is not allowed to be retrieved. Verfahren nach Anspruch 6, wobei bei einer fehlenden Übereinstimmung der ersten und zweiten PINs ein Abruf der Daten durch die Zellenanordnung (26) nicht zugelassen wird.
- 9Procédé selon la revendication 6, dans lequel si les premier et second PIN ne correspondent pas, la matrice cellulaire (26) n'est pas autorisée à être récupérée et la matrice cellulaire (26) entre dans un mode d'autodestruction. The method of claim 6, wherein if the first and second PINs do not match, the cell array (26) is not allowed to be retrieved and the cell array (26) enters a self-destruct mode. Verfahren nach Anspruch 1, wobei bei einer fehlenden Übereinstimmung der ersten und zweiten PINs ein Abruf der Daten durch die Zellenanordnung (26) nicht zugelassen wird, und wobei die Zellenanordnung (26) in einen Selbstzerstörungsmodus eintritt.
- 10Procédé selon la revendication 1, dans lequel il y a des phases de stockage supplémentaires et des données supplémentaires qui sont stockées dans les phases de stockage supplémentaires. The method of claim 1, wherein there are additional storage phases and additional data that is stored in the additional storage phases. Verfahren nach Anspruch 1, wobei zusätzliche Speicherphasen vorhanden sind, und wobei zusätzliche Daten in den zusätzlichen Speicherphasen gespeichert werden.
- 11A computer-readable medium having instructions thereon which when executed cause a computer system (10) to perform acts comprising:providing a phase identification number (PIN) to a cell array (26);performing mutations of the cell array (26) in a mutation cycle until a storage phase is reached, the cell array (26) using the PIN to determine the storage phase at which the data is stored, there being more than one possible storage phase;storing data in a storage region (SRi) of the cell array (26) at the storage phase;mutating data in a storage region (SRi) of the cell array (26) at the storage phase;mutating the cell array (26) through additional phases in which the data stored in the cell array (26) during the storage phase is encrypted by the mutations through the additional phases;andin response to a retrieval request, continuing the mutations until a retrieval phase is reached and the data is decrypted. Computerlesbares Medium mit darauf enthaltenen Anweisungen, die bei einer Ausführung bewirken, dass ein Computersystem (10) Handlungen ausführt, folgendes umfassend: das Bereitstellen einer Phasenidentifikationsnummer (PIN) an eine Zellenanordnung (26);das Ausführen von Mutationen der Zellenanordnung (26) in einem Mutationszyklus, bis eine Speicherphase erreicht wird, wobei die Zellenanordnung (26) die PIN verwendet, um die Speicherphase zu bestimmen, in der die Daten gespeichert werden, wobei mehr als eine Speicherphase möglich sind;das Speichern der Daten in einem Speicherbereich (SRi) der Zellenanordnung (26) in der Speicherphase;das Mutieren von Daten in einem Speicherbereich (SRi) der Zellenanordnung (26) in der Speicherphase;das Mutieren der Zellenanordnung (26) über zusätzliche Phasen, in denen Daten, die während der Speicherphase in der Zellenanordnung (26) gespeichert werden, durch Mutationen über die zusätzlichen Phasen verschlüsselt werden;unddas Fortführen der Mutationen als Reaktion auf eine Abrufanforderung, bis eine Abrufphase erreicht wird und die Daten entschlüsselt werden. Support lisible par ordinateur ayant des instructions dessus qui, lorsqu'elles sont exécutées, amènent un système informatique (10) à réaliser des actes consistant à : fournir un numéro d'identification de phase (en anglais « Phase Identification Number » - PIN) à la matrice cellulaire (26) ;réaliser des mutations de la matrice cellulaire (26) dans un cycle de mutation jusqu'à ce qu'une phase de stockage soit atteinte, la matrice cellulaire (26) utilisant le PIN pour déterminer la phase de stockage à laquelle les données sont stockées;plus d'une phase de stockage étant possible ;stocker les données dans une région de stockage (SRi) de la matrice cellulaire (26) lors de la phase de stockage ;muter les données dans une région de stockage (SRi) de la matrice cellulaire (26) lors de la phase de stockage ;muter la matrice cellulaire (26) via des phases supplémentaires dans lesquelles les données stockées dans la matrice cellulaire (26) pendant la phase de stockage sont cryptées par les mutations à travers les phases supplémentaires ;eten réponse à une demande de récupération, continuer les mutations jusqu'à ce qu'une phase de récupération soit atteinte et les données décryptées.
- 12Medium nach Anspruch 11, wobei die Speicherphase und die Abrufphase die gleiche Phase des Mutationszyklus darstellen. Support selon la revendication 11, dans lequel la phase de stockage et la phase de récupération sont la même phase du cycle de mutation. The medium of claim 11, wherein the storage phase and the retrieval phase are the same phase of the mutation cycle.
- 13Medium nach Anspruch 11, wobei der PIN während der Speicherphase in der Zellenanordnung (26) gespeichert wird und es sich um einen ersten PIN handelt, und wobei ein zweiter PIN als Teil einer Abrufanforderung empfangen wird, und wobei die ersten und zweiten PINs während einer Abrufphase verglichen werden. Support selon la revendication 11, dans lequel le PIN est stocké dans la matrice cellulaire (26) pendant la phase de stockage et est un premier PIN, et un second PIN est reçu dans le cadre d'une demande de récupération, et les premier et second PIN sont comparés pendant une phase de récupération. The medium of claim 11, wherein the PIN is stored in the cell array (26) during the storage phase and is a first PIN, and a second PIN is received as part of a retrieval request, and the first and second PINs are compared during a retrieval phase.
- 14Medium nach Anspruch 1, wobei es sich bei dem Medium um eine CD-ROM (90) handelt. Support selon la revendication 1, dans lequel le support est un disque CD-ROM (90). The medium of claim 1, wherein the medium is a CD-ROM disk (90).
- 15A system for storing and retrieving data, comprising:memory (16) containing a cell array (26) having storage regions (SRO-SR7);anda processor (14) adapted to perform mutations of the cell array (26) in a mutation cycle until a storage phase is reached, stores data in multiple storage regions (SR0-SR7) of the cell array (26) at that storage phase, whereby a phase identification number (PIN) is used to determine the storage phase in which the data is stored, there being more than one possible storage phase, and mutates the cell array (26) to additional phases in which the data stored in the cell array (26) during the storage phase is encrypted by the mutations through the additional phases. System zum Speichern und Abrufen von Daten, wobei das System folgendes umfasst: einen Speicher (16), der eine Zellenanordnung (26) mit Speicherbereichen (SRO-SR7) aufweist;einen Prozessor (14), der Mutationen der Zellenanordnung (26) in einem Mutationszyklus ausführen kann, bis eine Speicherphase erreicht wird, wobei er Daten in mehreren Speicherbereichen (SRO-SR7) der Zellenanordnung (26) während der Speicherphase speichert, wobei eine Phasenidentifikationsnummer (PIN) dazu verwendet wird, die Speicherphase zu bestimmen, in der die Daten gespeichert werden, wobei mehr Phasen als eine Speicherphase möglich sind, und wobei er die Zellenanordnung (26) in zusätzliche Phasen mutiert, wobei die Daten, die in der Speicherphase in der Zellenanordnung (26) gespeichert werden, durch die Mutation in den zusätzlichen Phasen verschlüsselt werden. Système pour stocker et récupérer les données, comprenant : une mémoire (16) contenant une matrice cellulaire (26) ayant des régions de stockage (SR0-SR7) ;etun processeur (14) adapté pour réaliser des mutations de la matrice cellulaire (26) dans un cycle de mutation jusqu'à ce qu'une phase de stockage soit atteinte, stocker les données dans de multiples régions de stockage (SRO-SR7) de la matrice cellulaire (26) à cette phase de stockage, moyennant quoi un numéro d'identification de phase (en anglais « Phase Identification Number » - PIN) est utilisé pour déterminer la phase de stockage dans laquelle les données sont stockées, plus d'une phase de stockage étant possible, et muter la matrice cellulaire (26) vers des phases supplémentaires dans lesquelles les données stockées dans la matrice cellulaire (26) pendant la phase de stockage sont cryptées par les mutations via les phases supplémentaires.
- 16System nach Anspruch 15, wobei der Speicher (16) und der Prozessor (14) in einem DVD-Player enthalten sind. Système selon la revendication 15, dans lequel la mémoire (16) et le processeur (14) sont inclus dans un lecteur DVD. The system of claim 15, wherein the memory (16) and processor (14) are included in a DVD player.
- 17System nach Anspruch 15, wobei der Speicher (16) und der Prozessor (14) in einem Personalcomputer enthalten sind. Système selon la revendication 15, dans lequel la mémoire (16) et le processeur (14) sont inclus dans un ordinateur personnel. The system of claim 15, wherein the memory (16) and processor (14) are included in a personal computer.
- 18System nach Anspruch 15, wobei der Prozessor ferner die Daten bestimmt, die in einer ersten Phase in der Zellenanordnung (26) gespeichert werden, durch:(i) das Erzeugen einer Matrix P von in einem Mutationszyklus zu verwendenden Klartextzellen in dem Speicher, wobei die Matrix P Don't Care-Abschnitte zur Verwendung als Speicherbereiche aufweist;(ii) das Empfangen zu verschlüsselnder und in den Don't Care-Abschnitten zu verarbeitender Daten;(iii) das Erzeugen einer Matrix M der Partnerbildung in dem Speicher, wobei die Matrix Informationen über die Phase und Zellenplatzierung aufweist;(iv) das Invertieren der Matrix M, so dass eine invertierte Matrix M-1 erzeugt wird;und(v) das Bestimmen einer anfänglichen Phase I der Zellenanordnung durch eine Matrixmultiplikation I = M-1*P. Système selon la revendication 15, dans lequel le processeur détermine en outre les données stockées dans la matrice cellulaire (26) lors d'une première phase en : (i) créant dans la mémoire une matrice P d'appels de texte en clair à utiliser dans un cycle de mutation, la matrice P incluant des sections indifférentes à utiliser comme régions de stockage ;(ii) recevant les données à crypter et décrypter dans les sections indifférentes ;(iii) créant dans la mémoire une matrice M de partenariat qui contient les informations sur la phase et le placement des cellules ;(iv) inversant la matrice M pour produire une matrice M-1 ;et(v) déterminant une phase initiale I de la matrice cellulaire via une multiplication de matrice I=M-1*P. The system of claim 15, wherein the processor further determines the data stored in the cell array (26) at a first phase by: (i) creating in the memory a matrix P of plain text calls to be used in a mutation cycle, the matrix P including don't care sections for use as storage regions;(ii) receiving data to be encrypted and decrypted in the don't care sections;(iii) creating in the memory a matrix M of partnering that contains information about phase and cell placement;(iv) inverting the matrix M to produce an inverted matrix M-1;and(v) determining an initial phase 1 of the cell array through a matrix multiply I=M-1*P.
- 19System nach Anspruch 18, wobei zumindest ein Teil der Don't Care-Abschnitte der Matrix P einen gleichen Versatz von den Anfängen der Klartextzellen aufweist. Système selon la revendication 18, dans lequel au moins une partie des sections indifférentes de la matrice P ont un même décalage depuis les débuts des cellules de texte en clair. The system of claim 18, wherein at least a portion of the don't care sections of the matrix P have a same offset from beginnings of the plain text cells.
- 20A computer program comprising computer program code means adapted to perform all the operations of claim 1 when that program is run on a computer. Computerprogramm mit einer Computerprogrammcodeeinrichtung, die alle Operationen aus Anspruch 1 ausführen kann, wenn das Programm auf einem Computer ausgeführt wird. Système informatique comprenant des moyens de code de programme informatique adaptés pour réaliser toutes les opérations de la revendication 1 lorsque ce programme est exécuté sur un ordinateur.
Independent claims20
56 paragraphs, as filed
Background of the Invention
<u style="single">Technical Field of the Invention</u>: The present invention relates to storage of secret data and, more particularly, to a storage of secret data through use of a mutation cycle of a cell array.
<u style="single">Background Art:</u> Most computer applications make no deliberate attempt to secure secrets during execution. Rather, they store secret values so as to be plainly readable in memory at all times, making them vulnerable to any process that can gain access to that memory. For example, an active program can search a hard disk looking for particular subject matter holding a secret. Once found, the secret or program holding the secret may be analyzed and/or destroyed. The secret and program may be removed or copied from the hard disk via a modem for remote analysis.
More sophisticated applications only have secrets plainly readable in memory, or "in the clear." at times when they are actually in use. The remainder of the time, they are kept in some encrypted form. This has the problem that another secret must be employed to decrypt the stored secrets. This protecting secret must then be protected for the values to be secure. Decrypting the various secrets can be time consuming. For example, the encrypted secrets may be stored on hard disks which require time to access
Computers & Security October 1993, pages 565-584, discloses in general terms compression and encryption and gives the example of an XOR gate which may be used to produce a random set of instructions which can be recovered by performing another XOR function.
WO97/48203, filed June 13, 1996 and published 18.12.97, entitled "Tamper Resistant Method and Apparatus" of Aucsmith et al. describes a tamper resistant procedure in which cells are exclusive-ORed with other cells to create mutations. The pattern of execution of this procedure may be the protecting secret. However, if bits are altered, the cells do not properly mutate.
According, there is a need for a method and apparatus to securely store secret data in such a way that the secret data may be rapidly stored and retrieved.
Summary of the Invention
According to a first aspect of this invention there is provided a method as claimed in claim 1 herein.
According to a second aspect of this invention there is provided a computer-readable medium as claimed in claim 11 herein.
According to a third aspect of this invention there is provided a system as claimed in claim 15 herein.
Preferred features of the invention are defined by the accompanying claims.
Brief Description of the Drawings
The invention will be understood more fully from the detailed description given below and from the accompanying drawings of embodiments of the invention which, however, should not be taken to limit the invention to the specific embodiments described, but are for explanation and understanding only. <ul id="ul0001" list-style="none" compact="compact"><li>FIG. 1 is a block diagram representation of a computer system according to one embodiment of the present invention.</li><li>FIG. 2 is an illustration of a cell array used in one embodiment of the present invention.</li><li>FIG. 3 is a table showing the pairings and cells in plain text at different phases of a simplified mutation cycle of one embodiment of the present invention.</li><li>FIG. 4A illustrates a register and contents thereof that is used in connection with one embodiment of the present invention.</li><li>FIG. 4B is an illustration of the cell array of FIG. 2 and contents of storage regions therein during a particular phase of execution.</li><li>FIG. 5 is a block diagram representation of a DVD player employing a cell array according to the present invention.</li><li>FIG. 6 is a block diagram representation of a computer system that uses a cell array according to the present invention to store secret data until it is needed.</li><li>FIG. 7A is a top view of a disk, such as a CD ROM.</li><li>FIG. 7B is computer system used as a server or as a user of a cell array according to the present invention.</li></ul>
Detailed Description of Preferred Embodiments
Referring to FIG. 1, a computer system 10 includes a processor 14 and memory 16. Memory 16 may be in random access memory (RAM), a hard drive, and/or other format. Processor 14 communicates with memory 16 through bus and related logic 20. Computer system 10 is not restricted to any particular type of computer system. For example, computer system 10 may be a system in which processor 14 is a Pentium® II processor manufactured by Intel Corporation. Details needed to implement memory, bus and related logic, and processors are well known and not discussed. Computer system 10 includes numerous other well known components which are not illustrated or described because doing so is not necessary to understanding the invention and may obfuscate the invention.
In the specification, the phrase "one embodiment" refers to one embodiment of the invention. It should be appreciated that the particular components or features referenced with respect to that one embodiment also may be present in other embodiments of the invention. Further, the various components or features mentioned are not required to be all present in the same embodiment of the invention. The various components or features may be mixed and matched in various embodiments.
Memory 16 includes register(s) 24 and cell array 26. At any particular time, code, data, and other binary values from cell array 26 may be distributed between on processor cache, off-processor cache (e.g., L2 cache), main memory, a hard drive, and/or other memory. The term "cell array" is intended to be interpreted broadly to include a binary structure that includes multiple cells, without restriction to particular form. For example, cell array 26 may be in contiguous memory locations within memory 16 or be distributed among non-contiguous memory locations.
Referring to FIG. 2, cell array 26 includes multiple cells. For ease of illustration and discussion, cell array 26 includes only eight cells: cells 0, 1, ..., 7 (collectively cells 0-7). In practice, cell array 26 may include many more cells. Cell array 26 mutates or otherwise passes through various phases. Mutating through the various phases is an example of a mutation cycle or phase cycle.
In one embodiment, the mutations occur because processor 14 performs exclusive-OR (XOR) operations between the cells. In one embodiment, half the cells (e.g., cells 0-3) are in a first portion of cell array 26, while the other half of the cells (e.g., cells 4-7) are in a second portion of cell array 26. In one embodiment, an XOR operation is performed on each of the cells of the first portion of cell array 26 with a partner from the cells of the second portion. In one embodiment, what is meant by one cell being XORed with another cell is that bits of the one cell are XORed with corresponding bits of the other cell. For example, bit 0 of cell 0 is XORed with bit 0 of cell 4; bit 1 of cell 0 is XORed with bit 1 of cell 4 and so forth so that bit n of cell 0 is XORed with bit n of cell 4. In other embodiments, a different order of bits (e.g., not incrementing or successive) may be used. In some embodiments, not all bits are XORed in every cell or phase. In the XOR function, 0 XOR 0 = 0, 0 XOR 1=1,1 XOR 0 = 1, and 1 XOR 1 = 0. In this respect, code, data, and other binary are merely 1's and 0's and are susceptible to XOR operations.
At least one cell includes at least some plain text (or clear text) in each phase from which processor 14 (or other circuitry) may obtain instructions so that cell array 26 may at least mutate or otherwise pass to the next phase. Plain text is part of the original program (in phase 0) or compiler generated mutations thereof that may be executed. Other cells may contain what looks like executable code and, in fact, portions of the cells could be executable, but the cells are not executed. Indeed, the mutated binary bits that originated as code, data, or other binary may randomly have some meaning. This is desirable because it makes understanding cell array 26 all the more difficult to an attacker.
In FIG. 2, cells 0, 1, ..., 7 in cell array 26 include storage regions SR0, SR1, ... SR7, respectively. Some or all of the storage regions hold data from register(s) 24 of FIG. 1. The secret data from register(s) 24 is in mutated form in most or all but one of the phases. The act of mutating the data is a form of encryption and returning the data to a non-mutated form is a form of decryption.
The cell array is made tamper resistant by arranging the code and other binary such that if a bit is changed other than through XOR mutation or storage in a storage region SR0 - SR7 at the appropriate phase, the contents of cell array 26 becomes corrupted. Depending on factors such as which bits are changed, in which phase and cell they are changed, and the number of cells and phases, cell array 26 could stop executing altogether or simply not give back the correct secret data. Depending on factors such as the code, the number of cells, the number of phases, and which bits are XORed and in which phase they are XORed, it is possible that there could be one or more bits other than the storage region that could be altered without preventing cell array 26 from giving back the correct secret data. However, with a large number of phases and well written code, the probability of that is very low. Further, if such bits existed, the number of them would be so small as to make them of little use to an attacker who presumably would not know their location.
The cells are not restricted to any particular size. However, they would be at least large enough to hold certain code and one of the storage regions. In one embodiment, all the cells are the same size and all the storage regions are the same size. The cells may also hold certain bits other than the code or data which are not executed. A purpose of these bits is to further obfuscate the contents and operation of the cells. The length of the code held in the cells will vary from depending on the implementation. For example, under one embodiment of the invention, cell array 26 is a part of a dynamic link library (DLL). When called by calling function 22, cell array 26 merely stores secret data to or retrieves secret data from register(s) 24 and goes through the various phases to encrypt or decrypt the data. In other embodiments, the cell array may perform other functions.
Storage regions SR0 - SR7 may be any of various sizes (e.g., one or two bytes each). Storage regions SR0 - SR7 may be located at any particular location within the cells. For example, the storage regions may begin at the beginning of the cells or some distance into the cells. For example, the storage regions may begin 8, 32, or 64 bytes, or some other number of bytes (e.g. so as to be placed at the end of the cells) from the beginning of the cells.
In one embodiment, secret data from register(s) 24 is stored in and later retrieved from cell array 26 during a storage/retrieval phase. If the number of units (e.g., bytes) of the secret data is less than the number of storage locations, not every storage location will contain a secret data unit (e.g., a byte) or mutation thereof in every phase. Depending on the code, number of phases, and number of storage locations, there may be some storage locations that do not store secret data or a mutation thereof during any of the phases.
A calling function 22 stored in memory 16 calls cell array 26. In one embodiment, calling function 26 includes the following arguments not necessarily in order: (1) secret data, (2) an offset, (3) length, (4) store/retrieve, and (5) a phase identification number (PIN) (which may be mapped into designating the storage/retrieval phase). The secret data is the data in register(s) 24 to be stored in cell array 26. In one embodiment, the offset is the offset within a starting cell that designates the storage region location in which the PIN is to be held. Code in the starting cell may designate the storage region that holds a first portion (byte 0) of the secret data and so forth. The length is the length of the secret data and perhaps the PIN (e.g., the total bytes or words) to be stored or retrieved. Store/retrieve may be a single bit. For example, a logical 1 may designate a store causing secret data from register(s) 24 to be written into cell array 26 during phase 0, and a logical 0 may designate a retrieve causing secret data stored in cell array 26 to be written from cell array 26 into register(s) 24 or register(s) 28.
The PIN designates the storage/retrieval phase either directly or indirectly through mapping. In one embodiment, cell array 26 includes many possible storage/retrieval phases. The PIN may be, for example, 8 bits, which designates up to 256 items. Where the number of storage/retrieval phases is less than the possible PIN combinations, the PIN is mapped (e.g., through logical ANDing part of the bits with a number) into the storage/retrieval phase. The relationship between the PIN and the storage/retrieval phase may be scrambled through mapping to further obfuscate the operation of cell array 26. A user may select the PIN or it may be selected, e.g., randomly, for the user. As used herein, the term "random" without further explanation covers both true random numbers and pseudo-random numbers.
An illustrative example of the operation of cell array 26 is provided in the table of FIG. 3. It should be emphasized, however, that the example of FIG. 3 is merely intended to illustrate general information regarding the invention, and is not necessarily completely mathematically precise. A commercial implementation of the invention may include many more cells and many more phases so as to make it much more difficult for an attacker to discover either the specific secret data or perform a class attack on the mutation cycle. Cell array 26 may include different pairings. With these caveats, the following explanation of FIG. 3 is provided.
Cell array 26 has an initial state or initial phase, also called phase 0. When cell array 26 is not operating, phase 0 is a rest phase. While cell array 26 is in phase 0, only cell 0 is in plain text. That is, cell 0 includes code that is executed by processor 14. Cells 1 - 7 are not executed in phase 0, but could include what has the appearance of plain text. (The plain text in phase 0 could be in a cell other than cell 0.) In cell 0, there may be some bits (perhaps non-sense binary) in locations other than storage region SR0 that are not executed. It is desirable, but not required, that as much of cell array 26 as is possible has the appearance of plain text to obfuscate the operation of cell array 26.
Calling function 22 calls cell array 26 with a storage request to write secret data from register(s) 24 into cell array 26. Some or all of the arguments of calling function 22 may be stored in register(s) 24. These arguments may remain in memory 16 until they are needed or be placed into registers or a stack of processor 14 at the time of calling until they are needed. The PIN is, for example, "202." Through a mapping system, PIN "202" maps to phase number 3.
In response to the function call, code in cell 0 causes XOR pairings of certain cells listed in FIG. 3 which causes cell array 26 to mutate from phase 0 to phase 1. The storage regions SR0 - SR7 of the cells are XORed with other ones of storage regions SR0 - SR7 according to the pairings of the cells. For example, according to the listing of FIG. 3, cell 0 is XORed with cell 4. Therefore, SR0 is XORed with SR4 because SR0 is within cell 0 and SR4 is within cell 4. Under one embodiment, bit 0 of SR0 is XORed with bit 0 of SR4, bit 1 of SR0 is XORed with bit 1 of SR4 and so forth. (However, a different order of XORing bits could be used.) In one embodiment, storage regions are only XORed with other storage regions. At the end of the mutation, cell array 26 is in phase 1 and only cell 5 is in plain text.
Code in cell 5 causes XOR pairings of certain cells listed in FIG. 3 which causes cell array 26 to mutate from phase 1 to phase 2. At the end of the mutation, only cells 2 and 7 are in plain text meaning that either cell 2 or cell 7 could be executed depending on some condition or circumstance. There may be more than one cell in plain text for two reasons. First, having more than one cell in plain text could make it more difficult for an attacker because the attacker does not know which plain text is actually executed. Second, there may be a branch so that more than one cell is possible depending on some value.
Code in either cell 2 or 7 causes the mutation of cell array 26 from phase 2 to phase 3. At the end of the mutation, only cell 6 is in plain text. As noted, the PIN in combination with code in cell array 26 instructs processor 14 to write the secret data of register(s) 24 into particular ones of storage regions SR0 - SR7. In the example, the offset is 36 bytes and the length is 4 bytes. Under one embodiment, the PIN is stored in storage regions along with the bytes of secret data, and the PIN is the first of the 4 bytes. Therefore, there are three remaining bytes of secret data. Referring to FIG. 4A, register(s) 24 could include the arguments for the calling function (although a different order of storage may be chosen). In FIG. 4A, the PIN is one byte, and bytes B0, B1, and B2 are 3 bytes of secret data.
FIG. 4B illustrates the contents of cell array 26 in phase 3 after the calling function writes the PIN and secret data bytes B0, B1, and B2 into storage regions SR0, SR1, SR4, and SR5 of cell array 26. In one embodiment, part of the PIN and byte B0 are written into the first region of cell array 26 (i.e., cells 0-3) and bytes B I and B2 are written into the second region of cell array 26 (i.e., cells 4 - 7) as is illustrated in FIG. 4B. Further, the cell pairings are such that the PIN and bytes of secret data are mutated during the first transition to the next phase, as in the example of FIGS. 3 and 4B.
In response to the XORs of the pairing listed in FIG. 3, cell array 26 mutates from phase 3 to phase 4. Likewise, cell array 26 mutates from phase 4 to phase 5 and from phase 5 back to phase 0, which is the rest phase. Likewise, the PIN and secret data bytes B1, B2, and B3 mutate from phase 3 to phase 4, and further from phase 4 to phase 5, and further yet from phase 5 to phase 0. Cell array 26 stays in its rest phase (phase 0) until it is called again. These mutations encrypt the PIN and secret data. (If the PIN and secret data may have already been in an encrypted form in register(s) 24, they are further encrypted by the mutations.)
Calling function 22 calls cell array 26 to retrieve the secret data. To decrypt the PIN and secret data, cell array 26 mutates from phase 0 to phase 1, from phase 1 to phase 2, and from phase 2 to phase 3. With each phase, the storage regions are mutated with other storage regions according to the pairing listed in FIG. 3. At phase 3, storage regions SR0, SR1, SR4 and SR5 contain the original PIN and secret data bytes B1, B2, and B3, respectively. Calling function 22 provides the PIN from register(s) 24 or else while cell array 26 is in phase 0 or a relatively low phase number. In one embodiment, the PIN is used by the code of cell array 26 beginning in cell 0 of phase 0. The PIN presented by calling function 22 is compared with the PIN in SR0 at phase 3. If there is a match, then the contents of SR1, SR4, and SR5 are written to an external register (e.g., register(s) 24 or register(s) 28). If there is not a match, cell array 26 does not allow the contents of SR1, SR4, and SR5 to be read. Further, in one embodiment, cell array 26 goes into a self-destruct mode because it is assumed that someone is attempted to misuse cell array 26. The self-destruct mode can include altering certain bits which cause the code and/or secret data to become corrupted and unexecutable. Cell array 26 could allow two chances to get the correct PIN before self-destroying. The self-destruction is a form of tamper resistance.
Rather than retrieving data, calling function 22 could call cell array 26 to write new secret data into cell array 26. During a store operation, in the storage regions, the bits which are not written over with the PIN and secret data may be left at whatever logical state they were in. Alternatively, for example, random numbers or all zeros or all ones may be written into these locations of the storage regions.
Different versions of cell array 26 may be created in which there are different possible phases in which the PIN can select from. The different versions may also include other differences including different numbers of phases and cells, different sizes of cells and storage regions, different order of passing arguments, and other features. A seller of the software under the invention may sell different versions to different customers. An original equipment manufacturer (OEM) may receive different versions and install different versions on different machines. Having different versions further increases the difficulty of discovering the operations of cell array 26.
Cell array 26 may be designed to include an anti-debug self-destruct feature which is activated if cell array 26 detects that certain flags in processor 14 have been set. For example, Pentium® processors of Intel Corporation have flags that are set if a debugger attempts to set break points or single step through a program. The code of cell array 26 may include features that put cell array 26 into self-destruct mode if it detects that certain bits are changed or it may merely destruct naturally through XOR operations with the wrong code. The tamper-resistant character of cell array 26 makes it resistant to debugging, tracing or static analysis.
One technique for determining the contents of cell array 26 at phase 0 is as follows. A matrix P contains all plain text cells used in any phase. Don't care sections such as storage regions may have random numbers or all 1s or all 0s. Matrix P is a N X 1 matrix, where N is the number of cells of plain text. It may be useful to have N be a multiple of two. Extra cells of random numbers or all 0s or all 1s may be added to bring N to a multiple of two. A matrix M is a matrix of partnering that contains information about time (phase) and spatial (cell) placement. A matrix I is the initial phase (phase 0) of cell array 26. It is noted that P = M * I, where * signifies matrix multiply. Therefore, I = M<sup>-1</sup> * P. M may be inverted through, for example, pivots and eliminations of the well known Gauss-Jordon technique.
Referring to FIG. 5, the present invention may be used in connection with a software based DVD player 60 including a disk drive 64 to temporarily store secret data (such as encryption key values) in connection with a processor 14 and memory 16 and visual and audio devices 68. The PIN may be randomly chosen with each store of secret data in cell array 26. Doing so makes it more difficult to discover the secret data involved in DVD decoding.
Referring to FIG. 6, the present invention may be used in connection with an electronic commerce system 80 including an input device 84, such as a keyboard, and a processor 14 and memory 16 to stored passwords or other secret data on either or temporary, semi-permanent, or permanent basis. In some implementations, the contents of cell array 26 is lost once the owning process is terminated. In other implementations, cell array 26 is stored on disk. However, long term storage, particularly on disk, may make cell array 26 more available for attack. The password or other secret data may be made available on conductors 88. The same secret data may be retrieved multiple times from cell array 26. The PIN may be picked by the user or through some other means (e.g., randomly).
Referring to FIGS. 7A and 7B, cell array 26 or code that creates cell array 26, and/or calling function 22 may be stored in computer-readable form. For example, FIG. 7A illustrates a disk 90, which may be a compact disk read only memory (CD ROM), a DVD, a hard drive (as in a PC or a server), or other disk. A CD ROM or other disk may be mailed or carried to various vendors or end user purchasers. Different CD ROMs may contain different versions of cell array 26 or programs that create cell array 26.
Referring to FIG. 7B, a computer system 92 includes a disk drive 94, a processor 14, memory 16, and a modem 98. Computer system 92 may represent a system that transmits cell array 26, or code that creates cell array 26, from modem 98 to another computer. For example, computer system 92 could act as a server that provides the code through, for example, the World Wide Web or Internet E-mail. Cell array 26 or code that creates cell array 26 may reside in RAM in memory 16 from which it is provided to a remote location. Different versions of cell array 26 could be provided at different times. Alternatively, computer system 92 could represent a computer that plays disk 90 through disk drive 94 to store secret data in cell array 26. Computer system 92 may also represent a computer that executes a cell array or creates a cell array from code received over modem 98 from a remote source.
The present invention is not restricted to the above-described embodiments, but may be implemented in a variety of forms that will be apparent to those skilled in the art having the benefit of this disclosure. For example, in addition to the variations describe above, the following features may be included in various embodiments.
Although in an above-described embodiment, the code is self-contained within the cell array, in an alternative embodiment, there could be some code that is used in executing the cell array that remains unmutated and outside the cell array. Some of the cells could be of different sizes, some of the storage regions could be of different sizes, and not all the cells or all parts of the cells have to be XORed in each phase, however, doing these variations may increase the complexity of the code somewhat. It is not necessary that storage and retrieval of the secret data occur in the same phase. Further, secret data could be stored and retrieved over several phases. For example, in each of multiple phases, one byte of the secret data could be stored. Likewise, for example, in each of multiple phases, one byte of the secret data could be retrieved.
The results of XOR operations may be further obfuscated and encrypted by XORing, for example, 32-bit sections of the results with random cyclic constants.
The storage/retrieval phase is preferably several phases from phase 0 (on either end of the mutation cycle).
Although in the above illustrated embodiment, cells from a first portion (cells 0 - 3) of cell array 26 are only XORed with cells from a second portion (cells 4 - 7) of cell array 26, in different embodiments any cells could be XORed with any other of the cells.
An advantage of the present invention over other techniques is the speed at which secret data may be stored and retrieved. Another advantage is the tamper resistant nature of the cell array in which the secret data is encrypted and decrypted. The invention is lightweight in many embodiments because in many embodiments it takes a relatively small amount of memory.
Because of the nature of XOR operations, the total number of phases may be a multiple of 6. The number of cells in a commercial embodiment may be in the hundreds or thousands. Practically speaking, there is no reasonable limit to the number of bits in the secret data.
A middle point of the encryption/decryption mutation cycle does not necessarily occur at the rest phase (phase 0).
Use of a PIN, length, offset, and storage/retrieval in the calling function are not necessary. These parameters could be built into the cell array and/or be partially accomplished by using different calling functions. The calling function could include additional arguments not discussed herein. The storage process could be called by a different function that the retrieval process. The cell array does not have to be called by a function.
The term "responsive" and related terms mean that one signal or event is influenced to some extent by another signal or event, but not necessarily completely or directly.
The following claims define the scope of the invention.
6 sheets
Sheet 1 Sheet 2 Sheet 3 Sheet 4 Sheet 5 Sheet 6
Every citation, both waysCites: the store holds 8 of 9
| Document | Relation | Office |
|---|---|---|
| US4120030A | Cites | United States of America |
| US4278837A | Cites | United States of America |
| US4306289A | Cites | United States of America |
| US4319079A | Cites | United States of America |
| US4465901A | Cites | United States of America |
| US4847902A | Cites | United States of America |
| WO9704394A | Cites | World Intellectual Property Organization (WIPO) |
| WO9748203A | Cites | World Intellectual Property Organization (WIPO) |
49 members in 9 offices
Priority claims9
| Document | Office | Kind | Date |
|---|---|---|---|
| 906693 | United States of America | – | |
| 90669397 | United States of America | A | |
| 90669397 | United States of America | A | |
| 9814713 | United States of America | W | |
| 9814713 | United States of America | W | |
| 906693 | – | – | – |
| US19970906693 | – | – | – |
| US1998014713 | – | – | – |
| WO1998US14713 | – | – | – |
Members49
| Document | Office | Kind | |
|---|---|---|---|
| CA2258087A1 | Canada | A1 | |
| WO9748203A1 | World Intellectual Property Organization (WIPO) | A1 | |
| AU3488397A | Australia | A | |
| WO9908416A1 | World Intellectual Property Organization (WIPO) | A1 | |
| AU8658598A | Australia | A | |
| EP0900488A1 | European Patent Office (EPO) | A1 | |
| WO9913613A1 | World Intellectual Property Organization (WIPO) | A1 | |
| WO9913614A1 | World Intellectual Property Organization (WIPO) | A1 | |
| WO9913615A1 | World Intellectual Property Organization (WIPO) | A1 | |
| AU8412598A | Australia | A | |
| AU8412698A | Australia | A | |
| AU8495798A | Australia | A | |
| US5892899A | United States of America | A | |
| WO9908416A8 | World Intellectual Property Organization (WIPO) | A8 | |
| TW364098B | Taiwan Province of China | B | |
| US6049609A | United States of America | A | |
| EP1000482A1 | European Patent Office (EPO) | A1 | |
| EP1010291A1 | European Patent Office (EPO) | A1 | |
| EP1018236A1 | European Patent Office (EPO) | A1 | |
| EP1020049A1 | European Patent Office (EPO) | A1 | |
| AU723556B2 | Australia | B2 | |
| TW405073B | Taiwan Province of China | B | |
| EP1018236A4 | European Patent Office (EPO) | A4 | |
| EP1020049A4 | European Patent Office (EPO) | A4 | |
| EP0900488A4 | European Patent Office (EPO) | A4 | |
| CA2258087C | Canada | C | |
| US6175925B1 | United States of America | B1 | |
| US6178509B1 | United States of America | B1 | |
| US6205550B1 | United States of America | B1 | |
| KR20010023731A | Republic of Korea | A | |
| KR20010023732A | Republic of Korea | A | |
| KR20010023733A | Republic of Korea | A | |
| JP2001516908A | Japan | A | |
| EP1000482A4 | European Patent Office (EPO) | A4 | |
| EP1010291A4 | European Patent Office (EPO) | A4 | |
| KR20030085085A | Republic of Korea | A | |
| KR20030085086A | Republic of Korea | A | |
| KR100405574B1 | Republic of Korea | B1 | |
| KR100479681B1 | Republic of Korea | B1 | |
| KR100482775B1 | Republic of Korea | B1 | |
| EP0900488B1 | European Patent Office (EPO) | B1 | |
| EP1000482B1This record | European Patent Office (EPO) | B1 | |
| DE69735103D1 | Germany | D1 | |
| DE69833947D1 | Germany | D1 | |
| DE69735103T2 | Germany | T2 | |
| DE69833947T2 | Germany | T2 | |
| EP2131524A2 | European Patent Office (EPO) | A2 | |
| EP2131524A3 | European Patent Office (EPO) | A3 | |
| JP4544739B2 | Japan | B2 |
26 legal events, as 4 offices reported them to INPADOC
Over the term
Point at a mark for the eventEvents
| Event | Code | Office | |
|---|---|---|---|
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Gb: european patent ceased through non-payment of renewal feeCeasedGBPC | GBPC | EP | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Application deemed withdrawn, or ip right lapsed, due to non-payment of renewal feeWithdrawnR119 | R119 | DE | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Notification of lapseLapsedST | ST | FR | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| No opposition filedOpposition26N | 26N | EP | |
| No opposition filed within time limitOppositionORIGINAL CODE: 0009261PLBE | PLBE | EP | |
| Information on the status of an ep patent application or granted ep patentGrantedSTATUS: NO OPPOSITION FILED WITHIN TIME LIMITSTAA | STAA | EP | |
| Fr: translation filedET | ET | EP | |
| Corresponds to:REF | REF | EP | |
| Designated contracting statesAK | AK | EP | |
| European patent grantedGrantedFG4D | FG4D | GB | |
| (expected) grantORIGINAL CODE: 0009210GRAA | GRAA | EP | |
| Grant fee paidORIGINAL CODE: EPIDOSNIGR3GRAS | GRAS | EP | |
| Despatch of communication of intention to grant a patentORIGINAL CODE: EPIDOSNIGR1GRAP | GRAP | EP | |
| First examination report despatched17Q | 17Q | EP | |
| Supplementary search report drawn up and despatchedA4 | A4 | EP | |
| Designated contracting statesAK | AK | EP | |
| Information provided on ipc code assigned before grant7H 04L 9/00 A, 7G 06F 12/14 B, 7G 11C 7/10 BRIC1 | RIC1 | EP | |
| Request for examination filed17P | 17P | EP | |
| Designated contracting statesAK | AK | EP | |
| Public reference made under article 153(3) epc to a published international application that has entered the european phaseORIGINAL CODE: 0009012PUAI | PUAI | EP |
Numbers
- Publication
- 1000482
- Publication, DOCDB
- 1000482
- Publication, EPODOC
- EP1000482
- Application
- 98937959
- Application, DOCDB
- 98937959
- Application, EPODOC
- EP19980937959
Titles3
- German
- SPEICHERZELLENANORDNUNG ZUR ERZEUGUNG EINER GEHEIMEN NICHT DAUERHAFTEN SPEICHERUNG
- English
- CELL ARRAY PROVIDING NON-PERSISTENT SECRET STORAGE THROUGH A MUTATION CYCLE
- French
- ENSEMBLE DE CELLULES FOURNISSANT UNE MEMOIRE SECRETE NON PERMANENTE AU MOYEN D'UN CYCLE DE MUTATION
Classification
- CPC, 1
- G06F21/79
- IPC, 5
- H04L9 00
- G06F12 14
- G11C7 10
- G06F1 00
- G06F21 00
Designated states3
- Contracting states, 3
- Germany
- France
- United Kingdom
