[go: up one dir, main page]

FR2861234A1 - ENCRYPTION OF DATA IN AN ELECTRONIC APPARATUS WITH MULTIPLE SYMMETRIC PROCESSORS - Google Patents

ENCRYPTION OF DATA IN AN ELECTRONIC APPARATUS WITH MULTIPLE SYMMETRIC PROCESSORS Download PDF

Info

Publication number
FR2861234A1
FR2861234A1 FR0312206A FR0312206A FR2861234A1 FR 2861234 A1 FR2861234 A1 FR 2861234A1 FR 0312206 A FR0312206 A FR 0312206A FR 0312206 A FR0312206 A FR 0312206A FR 2861234 A1 FR2861234 A1 FR 2861234A1
Authority
FR
France
Prior art keywords
data word
circuit
pseudo
data
secret key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
FR0312206A
Other languages
French (fr)
Inventor
Marcus Volp
Claude Anguille
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
STMicroelectronics SA
Original Assignee
STMicroelectronics SA
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by STMicroelectronics SA filed Critical STMicroelectronics SA
Priority to FR0312206A priority Critical patent/FR2861234A1/en
Priority to EP04292137A priority patent/EP1524795B1/en
Priority to DE602004001732T priority patent/DE602004001732T2/en
Priority to US10/966,833 priority patent/US7657034B2/en
Priority to JP2004301252A priority patent/JP2005122745A/en
Publication of FR2861234A1 publication Critical patent/FR2861234A1/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/065Encryption by serially and continuously modifying data stream elements, e.g. stream cipher systems, RC4, SEAL or A5/3
    • H04L9/0656Pseudorandom key sequence combined element-for-element with data sequence, e.g. one-time-pad [OTP] or Vernam's cipher
    • H04L9/0662Pseudorandom key sequence combined element-for-element with data sequence, e.g. one-time-pad [OTP] or Vernam's cipher with particular pseudorandom sequence generator
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0894Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/12Details relating to cryptographic hardware or logic circuitry

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Storage Device Security (AREA)

Abstract

Pour le chiffrement de données à stocker dans une mémoire (23) externe à un circuit, on prévoit de stocker dans la mémoire externe des mots de données chiffrés (Ci) en association avec un vecteur d'initialisation (IVi) et un identificateur de clé (KIDi) associé à une clé secrète (Ki) ayant servi à le chiffrer.For the encryption of data to be stored in a memory (23) external to a circuit, provision is made to store in the external memory encrypted data words (Ci) in association with an initialization vector (IVi) and a key identifier (KIDi) associated with a secret key (Ki) used to encrypt it.

Description

CHIFFREMENT DE DONNEES DANS UN APPAREIL ELECTRONIQUE ADATA ENCRYPTION IN AN ELECTRONIC APPARATUS A

PLUSIEURS PROCESSEURS SYMETRIQUESMULTIPLE SYMMETRIC PROCESSORS

La présente invention concerne de façon générale le chiffrement ou cryptage de données destinées à être utilisées dans un ou plusieurs processeurs, lorsque ces données doivent être stockées dans une mémoire externe aux processeurs.  The present invention generally relates to the encryption or encryption of data for use in one or more processors, when these data are to be stored in a memory external to the processors.

Elle trouve des applications, en particulier, dans les appareils électroniques ayant une architecture à plusieurs processeurs symétriques et à mémoire externe partagée (ou architecture SMP, de l'anglais "Symetric Multi-Processor"). Plus précisément, la présente invention concerne les applications dans lesquelles on souhaite empêcher qu'un utilisateur non autorisé accède à données de façon exploitable, et dans lesquelles lesdites données doivent, au moins en partie, pouvoir être accédées par plus d'un circuit.  It finds applications, in particular, in electronic devices having a symmetric processor architecture and shared external memory (or SMP architecture, the "Symetric Multi-Processor"). More specifically, the present invention relates to applications in which it is desired to prevent an unauthorized user from accessing data in a usable manner, and wherein said data must, at least in part, be accessed by more than one circuit.

On fait ici référence au terme "données" pour désigner indifféremment n'importe quel code binaire qu'il s'agisse de programmes exécutables, ou de données binaires qui sont traitées par ces programmes. De plus, on fait référence au terme "circuit" pour désigner indifféremment n'importe quelle unité fonctionnelle d'un appareil électronique reliée à d'autres unités fonctionnelles via un ou plusieurs bus de communication, qu'il s'agisse d'un processeur, d'un contrôleur de périphérique (par exemple un contrôleur de disque), une carte réseau,etc.  Reference is here made to the term "data" to designate any binary code regardless of whether they are executable programs, or binary data that are processed by these programs. In addition, reference is made to the term "circuit" to denote any functional unit of an electronic device connected to other functional units via one or more communication buses, whether it be a processor , a device controller (for example a disk controller), a network card, etc.

La figure 1 illustre schématiquement l'architecture SMP d'un appareil électronique, à laquelle s'applique la présente invention. Plusieurs processeurs 2 (CPU) sont couplés à une mémoire externe 4 (EXT MEM), par l'intermédiaire d'un ou plusieurs bus 3. On peut définir une zone 1, dite zone sécurisée, à l'intérieur de laquelle se trouve un ou plusieurs processeurs 2, et à l'intérieur de laquelle on considère que les données traitées ne sont pas susceptibles d'être piratées. En pratique, la zone sécurisée 1 comprend le plus souvent une ou plusieurs puces de circuit intégré correspondant à des processeurs respectifs, la mémoire 4 étant une autre puce qui n'appartient pas à la zone sécurisée. En outre, d'autres circuits 5, comme un contrôleur de disque (DSK CTRL) ou une carte réseau (NET LARD), peuvent être reliés aux processeurs 2 par l'intermédiaire des bus 3.  Figure 1 schematically illustrates the SMP architecture of an electronic apparatus to which the present invention applies. Several processors 2 (CPU) are coupled to an external memory 4 (EXT MEM), via one or more buses 3. It is possible to define a zone 1, called a secure zone, inside which there is a or multiple processors 2, and within which it is considered that the processed data is not likely to be pirated. In practice, the secure area 1 usually includes one or more integrated circuit chips corresponding to respective processors, the memory 4 being another chip that does not belong to the secure area. In addition, other circuits 5, such as a disk controller (DSK CTRL) or a network card (NET LARD), can be connected to the processors 2 via the buses 3.

Le chiffrement auquel s'applique la présente invention concerne plus particulièrement celui des données transitant sur le ou les bus 3, entre la mémoire 4 et le ou les processeurs 2 de la zone 1. Dans le jargon de l'Homme du métier, on parle de chiffrement de la mémoire ou encore de chiffrement du bus. Ce chiffrement consiste à coder les données stockées dans la mémoire 4 au moyen d'une clé de chiffrement de bus connue par les processeurs concernés.  The encryption to which the present invention applies relates more particularly to that of the data transiting on the bus or buses 3, between the memory 4 and the processor or processors 2 of the zone 1. In the jargon of the person skilled in the art, reference is made to encryption of the memory or encryption of the bus. This encryption consists of coding the data stored in the memory 4 by means of a bus encryption key known by the processors concerned.

Des exemples de solution pour chiffrer une mémoire externe à un microprocesseur sont décrits dans les brevets américains 5 825 878, 10 5 982 887, et 6 041 449.  Examples of solutions for encrypting a memory external to a microprocessor are described in U.S. Patents 5,825,878, 5,982,887, and 6,041,449.

Ces solutions ne sont pas adaptées au cas des systèmes à architecture SMP, dans la mesure où l'on doit utiliser la même clé de chiffrement de bus pour chiffrer et pour déchiffrer les données alors que chaque processeur utilise une clé de chiffrement de bus qui lui est propre. En effet, des mesures doivent être prises pour permettre un autre processeur de la zone sécurisée de déchiffrer, en vue de les utiliser, des données chiffrées et stockées dans la mémoire externe partagée par un autre processeur de ladite zone sécurisée. Ces mesures doivent toutefois être compatibles avec le caractère de clé secrète des clés de chiffrement de bus.  These solutions are not suitable for SMP architecture systems, since the same bus encryption key must be used to encrypt and decrypt the data while each processor uses a bus encryption key which is clean. Indeed, measures must be taken to allow another processor of the secure area to decrypt, for use, encrypted data and stored in the external memory shared by another processor of said secure area. These measurements must, however, be compatible with the secret key character of the bus encryption keys.

Une autre contrainte est liée à la méthode de chiffrement utilisée. Dans l'art antérieur, on utilise généralement des chiffrements par blocs avec des algorithmes de type DES ("Data Encryption System") ou AES ("Advanced Encryption System"), selon un mode par carnet de codage électronique dit mode ECB ("Electronic Code Book") ou un mode par chaînage de blocs dit mode CBC ("Cipher-Block Chaining"). La taille d'un bloc dépend de l'algorithme de chiffrement utilisé. Dans le mode ECB, deux blocs identiques sont chiffrés de la même manière. Des attaques sont donc possibles, par la technique dite "du dictionnaire", dans la mesure où la redondance de messages chiffrés de façon identique peut permettre l'identification des messages en clair. Par opposition, dans le mode CBC, chaque bloc est chiffré en fonction des blocs précédents. Ce mode est plus robuste. Néanmoins, il nécessite un accès séquentiel à la mémoire, ce qui le rend incompatible avec le chiffrement de données auxquelles on souhaite pouvoir accéder aléatoirement dans la mémoire externe.  Another constraint is related to the encryption method used. In the prior art, block ciphers are generally used with algorithms of the DES ("Data Encryption System") or AES ("Advanced Encryption System") type, according to a mode of electronic coding book called ECB mode ("Electronic Code Book ") or a mode by block chaining said mode CBC (" Cipher-Block Chaining "). The size of a block depends on the encryption algorithm used. In ECB mode, two identical blocks are encrypted in the same way. Attacks are therefore possible, by the so-called "dictionary" technique, insofar as the redundancy of identically encrypted messages can allow the identification of messages in the clear. In contrast, in CBC mode, each block is encrypted based on the previous blocks. This mode is more robust. Nevertheless, it requires sequential access to the memory, which makes it incompatible with the data encryption which one wishes to be able to access randomly in the external memory.

La présente invention vise à proposer, dans le contexte d'un appareil électronique à architecture SMP, une nouvelle technique de chiffrement, par un processeur, de données à stocker dans une mémoire externe à ce processeur, lorsque les données doivent pouvoir être exploitées par plus d'un processeur.  The present invention aims at proposing, in the context of an SMP-based electronic apparatus, a new technique of encryption, by a processor, of data to be stored in a memory external to this processor, when the data must be able to be exploited more of a processor.

A cet effet, un premier aspect de l'invention prévoit un procédé de chiffrement dans un circuit d'un appareil électronique, de données à stocker dans une mémoire externe audit circuit, comprenant les étapes consistant à : - sélectionner une clé secrète, à partir d'une liste de clés secrètes respectivement stockées dans un ensemble de registres du circuit en association chacune avec un identificateur de clé, au moins l'une desdites clés étant une clé partagée avec au moins un autre circuit de l'appareil électronique; - découper les données en un flux de mots de données de taille déterminée; et, en continu pour chaque mot de données, générer un nombre pseudo aléatoire de taille déterminée au moyen d'un générateur pseudo aléatoire mettant en oeuvre un algorithme de génération en fonction de ladite clé secrète et d'un vecteur d'initialisation changeant de valeur à chaque mot de données; - combiner le mot de données et le nombre pseudo aléatoire correspondant, pour générer un mot de données chiffré ; puis, - stocker dans ladite mémoire externe chaque mot de données chiffré 25 en association avec le vecteur d'initialisation et l'identificateur de clé associé à la clé secrète ayant servi à le chiffrer.  For this purpose, a first aspect of the invention provides a method of encryption in a circuit of an electronic device, of data to be stored in a memory external to said circuit, comprising the steps of: - selecting a secret key, from a list of secret keys respectively stored in a set of registers of the circuit each associated with a key identifier, at least one of said keys being a key shared with at least one other circuit of the electronic apparatus; - Cut the data into a stream of data words of determined size; and, continuously for each data word, generating a pseudo-random number of determined size by means of a pseudo-random generator implementing a generation algorithm according to said secret key and a value-changing initialization vector each data word; - combine the data word and the corresponding pseudo-random number, to generate an encrypted data word; then, storing in said external memory each encrypted data word 25 in association with the initialization vector and the key identifier associated with the secret key used to encrypt it.

Un deuxième aspect de l'invention prévoit un procédé de déchiffrement, dans un circuit d'un appareil électronique, de données stockées sous la forme de mots de données chiffrés dans une mémoire externe audit circuit, comprenant les étapes consistant à : - lire dans ladite mémoire externe un mot de données chiffrés ainsi qu'un vecteur d'initialisation et qu'un identificateur de clé secrète respectivement associés audit mot de données; - sélectionner une clé secrète, à partir d'une liste de clés secrètes respectivement stockées dans un ensemble de registres du circuit et dont l'une au moins est une clé partagée avec au moins un autre circuit de l'appareil électronique, et à partir en outre dudit identificateur; et, en continu pour chaque mot de données chiffré, - générer un nombre pseudo aléatoire de taille déterminée au moyen d'un générateur pseudo aléatoire mettant en oeuvre un algorithme de génération en fonction de ladite clé secrète et dudit vecteur d'initialisation; et - combiner le mot de données et le nombre pseudo aléatoire correspondant, pour générer un mot de données déchiffré.  A second aspect of the invention provides a method of decrypting, in a circuit of an electronic apparatus, data stored in the form of ciphered data words in a memory external to said circuit, comprising the steps of: - reading in said external memory an encrypted data word and an initialization vector and a secret key identifier respectively associated with said data word; selecting a secret key, from a list of secret keys respectively stored in a set of registers of the circuit and at least one of which is a key shared with at least one other circuit of the electronic device, and from in addition to said identifier; and, continuously for each encrypted data word, generating a pseudo-random number of determined size by means of a pseudo-random generator implementing a generation algorithm according to said secret key and said initialization vector; and - combining the data word and the corresponding pseudorandom number, to generate a decrypted data word.

Un troisième aspect de l'invention se rapporte à un dispositif pour la mise en oeuvre d'un procédé de chiffrement selon le premier aspect, comprenant: - un ensemble des registres stockant des clés secrètes respectives, dont l'une au moins est une clé partagée avec un autre circuit de l'appareil électronique, en association chacune avec un identificateur de clé ; - une unité de sélection de clés secrètes adaptée pour sélectionner une clé secrète à partir de la liste des clés stockées dans ledit ensemble de registres; - une unité de segmentation adaptée pour découper les données de manière à former un flux de mots de données de taille déterminée; - un générateur de vecteur d'initialisation adapté pour générer un flux de vecteurs d'initialisation changeant de valeur à chaque mot de données; - un générateur de nombres pseudo aléatoires mettant en oeuvre un algorithme de génération adapté pour générer, pour chaque mot de données, en fonction de ladite clé secrète et d'un déterminé desdits vecteurs d'initialisation, un nombre pseudo aléatoire de taille déterminée; - une unité de combinaison adaptée pour combiner en continu le mot de données et le nombre pseudo aléatoire correspondant, pour générer un mot de données chiffré ; et, - des moyens pour stocker dans ladite mémoire externe chaque mot de données chiffré en association avec ledit vecteur d'initialisation déterminé et l'identificateur de clé associé à la clé secrète ayant servi à le chiffrer.  A third aspect of the invention relates to a device for implementing an encryption method according to the first aspect, comprising: a set of registers storing respective secret keys, at least one of which is a key shared with another circuit of the electronic apparatus, each associated with a key identifier; a secret key selection unit adapted to select a secret key from the list of keys stored in said set of registers; a segmentation unit adapted to cut the data so as to form a stream of data words of a determined size; an initialization vector generator adapted to generate a stream of initialization vectors changing in value with each data word; a pseudo-random number generator implementing a generation algorithm adapted to generate, for each data word, as a function of said secret key and of a predetermined one of said initialization vectors, a pseudo-random number of determined size; a combination unit adapted to continuously combine the data word and the corresponding pseudorandom number, to generate an encrypted data word; and means for storing in said external memory each encrypted data word in association with said determined initialization vector and the key identifier associated with the secret key used to encrypt it.

De plus, selon un quatrième aspect, l'invention propose un dispositif pour la mise en oeuvre d'un procédé de déchiffrement selon le deuxième aspect. Ce dispositif comprend: - un ensemble de registres stockant des clés secrètes respectives dont l'une au moins est une clé partagée, en association chacune avec un identificateur de clé ; - des moyens de lecture pour lire dans ladite mémoire externe un mot de données ainsi qu'un vecteur d'initialisation et qu'un identificateur d'une clé secrète respectivement associés audit mot de données; - des moyens de sélection pour sélectionner, pour chaque mot de données, une clé secrète à partir d'une liste de clés stockées dans lesdits registres et à partir en outre dudit identificateur de clé ; - un générateur de nombres pseudo aléatoires mettant en oeuvre un algorithme de génération adapté pour générer, pour chaque mot de données, en fonction de ladite clé secrète et dudit vecteur d'initialisation, un nombre pseudo aléatoire de taille déterminée; et, une unité de combinaison adaptée pour combiner le mot de données et le nombre pseudo aléatoire correspondant, de manière à déchiffrer ledit mot de données.  In addition, according to a fourth aspect, the invention proposes a device for implementing a decryption method according to the second aspect. This device comprises: a set of registers storing respective secret keys, at least one of which is a shared key, each associated with a key identifier; reading means for reading from said external memory a data word as well as an initialization vector and an identifier of a secret key respectively associated with said data word; selection means for selecting, for each data word, a secret key from a list of keys stored in said registers and further from said key identifier; a pseudo-random number generator implementing a generation algorithm adapted to generate, for each data word, as a function of said secret key and said initialization vector, a pseudo-random number of determined size; and, a combining unit adapted to combine the data word and the corresponding pseudo-random number, thereby decrypting said data word.

Un cinquième aspect de l'invention concerne un circuit comprenant une unité de chiffrement/déchiffrement formant dispositif de chiffrement selon le troisième aspect et dispositif de déchiffrement selon le quatrième aspect. L'ensemble de registres, le générateur de nombres pseudo aléatoires et l'unité de combinaison sont alors communs aux deux dispositifs.  A fifth aspect of the invention relates to a circuit comprising an encryption / decryption unit forming an encryption device according to the third aspect and a decryption device according to the fourth aspect. The set of registers, the pseudorandom number generator and the combination unit are then common to both devices.

Selon un sixième et dernier aspect, l'invention propose encore un appareil électronique comprenant au moins deux circuits selon le cinquième aspect, dans lequel au moins l'une des clés secrètes est partagée entre lesdits circuits de manière à former un sous-système sécurisé.  According to a sixth and last aspect, the invention also proposes an electronic apparatus comprising at least two circuits according to the fifth aspect, wherein at least one of the secret keys is shared between said circuits so as to form a secure subsystem.

Les clés sont dites partagées en ce sens que d'autres circuits de l'appareil électronique les connaissent, par exemple les circuits appartenant à la zone sécurisée, c'est-à-dire au sous-système sécurisé. L'invention offre ainsi une solution qui permet d'individualiser le chiffrement selon le processeur qui le réalise, tout en assurant que tous les processeurs ayant l'autorisation d'utiliser les données stockées dans la mémoire externe pourront les déchiffrer.  The keys are said to be shared in the sense that other circuits of the electronic device know them, for example the circuits belonging to the secure zone, that is to say the secure subsystem. The invention thus provides a solution that makes it possible to individualize the encryption according to the processor that carries it out, while ensuring that all the processors having the authorization to use the data stored in the external memory will be able to decrypt them.

Le chiffrement selon l'invention est du type d'un chiffrement en continu ("Stream Cipher"), qui est plus simple et donc plus rapide qu'un chiffrement par blocs. Un chiffrement en continu est en outre insensible aux attaques par dictionnaire, car le même mot de données est chiffré en un mot différent à chaque chiffrement.  The encryption according to the invention is of the type of a streaming encryption ("Stream Cipher"), which is simpler and therefore faster than block ciphering. Continuous encryption is also insensitive to dictionary attacks because the same data word is encrypted in a different word for each encryption.

De plus, le chiffrement selon l'invention est compatible avec un accès aléatoire à la mémoire externe.  In addition, the encryption according to the invention is compatible with random access to the external memory.

D'autres caractéristiques et avantages de l'invention apparaîtront encore à la lecture de la description qui va suivre. Celle-ci est purement illustrative et doit être lue en regard des dessins annexés sur lesquels: - la figure 1 est un schéma d'un appareil électronique auquel peuvent s'appliquer les différents aspects de l'invention - la figure 2 est un schéma fonctionnel d'un exemple de circuit couplé à une mémoire externe, selon un mode de réalisation d'un circuit selon l'invention.  Other features and advantages of the invention will become apparent on reading the description which follows. This is purely illustrative and should be read in conjunction with the accompanying drawings in which: - Figure 1 is a diagram of an electronic device to which the various aspects of the invention can be applied - Figure 2 is a block diagram an example of a circuit coupled to an external memory, according to an embodiment of a circuit according to the invention.

Sur les dessins, les mêmes éléments sont désignés par les mêmes références aux différentes figures. Pour des raisons de clarté, seules les étapes du procédé et les éléments qui sont nécessaires à la compréhension de l'invention ont été représentés et sont décrits dans la suite. En particulier, tous les éléments d'un circuit n'ont pas été détaillés, l'invention exploitant des composants connus pour sa mise en oeuvre.  In the drawings, the same elements are designated by the same references in the different figures. For the sake of clarity, only the steps of the method and the elements that are necessary for the understanding of the invention have been shown and are described hereinafter. In particular, not all elements of a circuit have been detailed, the invention using components known for its implementation.

Une caractéristique de la présente invention est de chiffrer des données (programmes, données binaires quelconques) devant être stockées dans une mémoire externe partagée par plusieurs circuits d'un appareil électronique. Les données sont chiffrées au moyen d'une clé secrète, propre au circuit réalisant le chiffrement, qui peut être différente de la clé secrète utilisée par d'autres circuits pour un chiffrement comparable.  A feature of the present invention is to encrypt data (programs, arbitrary bit data) to be stored in an external memory shared by several circuits of an electronic device. The data is encrypted by means of a secret key, specific to the circuit performing the encryption, which may be different from the secret key used by other circuits for comparable encryption.

Afin de permettre l'utilisation des données chiffrées par plus d'un circuit, certaines au moins des clés secrètes susceptibles d'être utilisées par un circuit sont partagées avec un ou des autres circuits, c'est-à-dire qu'elle sont connues de ces circuits tout en étant secrètes vis-à-vis du reste du système.  In order to allow the use of data encrypted by more than one circuit, at least some of the secret keys that can be used by a circuit are shared with one or more other circuits, that is to say they are known from these circuits while being secretive vis-à-vis the rest of the system.

Une clé partagée définit un sous-système de circuits pouvant utiliser des données communes stockées dans la mémoire externe. Typiquement, ce soussystème peut correspondre à une zone sécurisée telle que présentée en introduction en regard du schéma de la figure 1.  A shared key defines a circuit subsystem that can use common data stored in external memory. Typically, this subsystem may correspond to a secure zone as presented in the introduction with reference to the diagram of FIG.

De plus, les données sont stockées dans la mémoire externe en association avec un identificateur de la clé secrète ayant servi à les chiffrer. Cet identificateur permet aux circuits autorisés de déterminer la clé secrète à utiliser pour le déchiffrement des données. Cet identificateur peut correspondre à un index dans un ensemble de registres internes dans lesquels les clés secrètes supportées par un circuit sont respectivement stockées. Ce n'est donc pas la clé secrète elle-même qui est stockée avec les données chiffrées par elle, mais l'identificateur de cette clé secrète. La divulgation de l'identificateur par stockage dans la mémoire externe n'apporte aucune faiblesse de chiffrement, puisque seuls les circuits autorisés peuvent connaître la clé secrète à utiliser à partir de cet identificateur.  In addition, the data is stored in the external memory in association with an identifier of the secret key used to encrypt them. This identifier allows authorized circuits to determine the secret key to be used for decryption of data. This identifier may correspond to an index in a set of internal registers in which the secret keys supported by a circuit are respectively stored. It is therefore not the secret key itself which is stored with the data encrypted by it, but the identifier of this secret key. The disclosure of the identifier by storage in the external memory provides no weakness of encryption, since only authorized circuits can know the secret key to use from this identifier.

Une autre caractéristique de la présente invention est de prévoir un chiffrement et un déchiffrement en continu, lors des transferts entre un circuit et la mémoire externe. Ce chiffrement continu est obtenu à partir d'un découpage des données en mots de taille déterminée qui sont ensuite stockés sous forme chiffrée dans la mémoire externe. On prévoit également que le chiffrement utilise la combinaison d'un mot de données avec un nombre pseudo aléatoire, lequel est généré à partir de la clé secrète et d'un vecteur d'initialisation.  Another feature of the present invention is to provide encryption and decryption continuously, during transfers between a circuit and the external memory. This continuous encryption is obtained from a division of the data into words of determined size which are then stored in encrypted form in the external memory. Encryption is also expected to use the combination of a data word with a pseudo-random number, which is generated from the secret key and an initialization vector.

Avantageusement, le vecteur d'initialisation change de valeur pour chaque mot, de préférence de façon aléatoire, afin de renforcer la sécurité du chiffrement. Le vecteur d'initialisation ayant servi au chiffrement d'un mot de données est avantageusement stocké dans la mémoire externe en association avec le mot de données chiffré, de même que l'identificateur de la clé secrète comme indiqué ci-dessus. On s'affranchit ainsi des problèmes liés au chiffrement en continu qui sont classiquement incompatibles avec les accès directs aléatoires à une mémoire.  Advantageously, the initialization vector changes value for each word, preferably in a random manner, in order to reinforce the security of the encryption. The initialization vector used for the encryption of a data word is advantageously stored in the external memory in association with the encrypted data word, as well as the identifier of the secret key as indicated above. This eliminates problems related to continuous encryption that are classically incompatible with direct random access to a memory.

Le schéma de la figure 2 montre les moyens essentiels d'un exemple de réalisation d'un circuit convenant pour la mise en oeuvre du procédé de chiffrement (illustrée par les flèches en traits pleins) et pour la mise en oeuvre du procédé de déchiffrement (illustrée par les flèches en traits pointillés).  The diagram of FIG. 2 shows the essential means of an exemplary embodiment of a circuit suitable for implementing the encryption method (illustrated by the arrows in solid lines) and for the implementation of the decryption method ( illustrated by the arrows in dotted lines).

Le circuit est ici un processeur 2 (CPU) comprenant un coeur de processeur 44 (CORE), des mémoires cache 33 et 34 (CACHE), une unité 31 (KSEL) de sélection de clé de chiffrement (K), et une unité 38 (BEU) de chiffrement/déchiffrement.  The circuit here is a processor 2 (CPU) comprising a processor core 44 (CORE), cache memories 33 and 34 (CACHE), an encryption key selection unit (KSEL) 31 (KSEL), and a unit 38 (BEU) encryption / decryption.

L'unité 38 comprend une unité 22 (SEGM) de segmentation de données, un ensemble 32 (KREG) de registres de clés secrètes, un premier générateur pseudo aléatoire 24 (IVGEN), une mémoire cache 25 (IVCACHE), un registre de clé de chiffrement 12 et un registre de vecteur d'initialisation 13, un second générateur pseudo aléatoire 10 (PRNG), et enfin une unité de combinaison 11.  The unit 38 comprises a data segmentation unit 22 (SEGM), a set 32 (KREG) of secret key registers, a first pseudo random generator 24 (IVGEN), a cache memory 25 (IVCACHE), a key register 12 and an initialization vector register 13, a second pseudo random generator 10 (PRNG), and finally a combination unit 11.

L'unité de segmentation 22 a pour fonction de segmenter les données à chiffrer (DATA) qu'elle reçoit du coeur de processeur 44, en mots de données (W) de taille déterminée. Un mot de données peut ainsi comprendre un seul bit. De préférence, toutefois, la taille d'un mot est égale à un octet, c'est-à-dire qu'un mot comprend huit bits.  The segmentation unit 22 has the function of segmenting the data to be encrypted (DATA) that it receives from the processor core 44, into data words (W) of determined size. A data word can thus comprise a single bit. Preferably, however, the size of a word is one byte, i.e. one word comprises eight bits.

Chaque registre de l'ensemble 32 est adapté pour stocker de manière non volatile une clé secrète (K) à laquelle est associé un identificateur de clé secrète (KID). Tout ou partie des clés secrètes peut être fournie au processeur via un canal sécurisé, par exemple lors de la fabrication du système. Certaines au moins des clés secrètes peuvent, à l'inverse, être générées en interne selon un algorithme ad-hoc dont la description sortirait du cadre du présent exposé. Dans un exemple préféré pour sa simplicité, l'identificateur est un index, tel qu'un numéro de registre, permettant d'accéder à la clé secrète correspondante parmi la liste de clés secrètes supportées par le processeur et stockées dans l'ensemble 32.  Each register of the set 32 is adapted to non-volatile store a secret key (K) to which is associated a secret key identifier (KID). All or part of the secret keys can be provided to the processor via a secure channel, for example during the manufacture of the system. At least some of the secret keys may, conversely, be generated internally according to an ad-hoc algorithm whose description would be beyond the scope of this presentation. In a preferred example for its simplicity, the identifier is an index, such as a register number, making it possible to access the corresponding secret key from the list of secret keys supported by the processor and stored in the set 32.

Le générateur aléatoire 24 est adapté pour générer des vecteurs d'initialisation, au rythme d'un vecteur d'initialisation par mot de données à chiffrer, selon un algorithme pseudo aléatoire quelconque.  The random generator 24 is adapted to generate initialization vectors, at the rate of a data word initialization vector to be encrypted, according to any pseudo-random algorithm.

La mémoire cache 25 est adaptée pour stocker des paires formées chacune d'un vecteur d'initialisation et d'un identificateur de clé associés à un mot de données.  The cache memory 25 is adapted to store pairs each formed of an initialization vector and a key identifier associated with a data word.

Le registre 12 est adapté pour stocker une clé de chiffrement, à savoir l'une des clés secrètes stockées dans l'ensemble de registres 32. Ce registre est indiqué ici pour la clarté de l'exposé, mais il peut être omis si l'on prévoit des moyens de gestion de l'ensemble de registres 32 adaptés.  The register 12 is adapted to store an encryption key, namely one of the secret keys stored in the set of registers 32. This register is indicated here for the sake of clarity, but it can be omitted if the means for managing the set of adapted registers 32 are provided.

Le registre 13 de vecteur d'initialisation a pour fonction de stocker le vecteur d'initialisation généré en continu par le générateur pseudo aléatoire 24. De préférence, la taille des vecteurs d'initialisation est égale à la taille des mots de données à chiffrer.  The initialization vector register 13 has the function of storing the initialization vector generated continuously by the pseudo-random generator 24. Preferably, the size of the initialization vectors is equal to the size of the data words to be encrypted.

Le rôle du générateur pseudo aléatoire 10 est de générer en continu un flux de nombres pseudo aléatoires (PN), à raison d'un tel nombre par mot de données à chiffrer. Chaque nombre pseudo aléatoire est généré à partir de la clé de chiffrement stockée dans le registre 12 et du vecteur d'initialisation stocké dans le registre 13, ce dernier changeant de valeur à chaque mot de données.  The role of the pseudo-random generator 10 is to continuously generate a stream of pseudorandom numbers (PN), with such a number per data word to be encrypted. Each pseudo-random number is generated from the encryption key stored in the register 12 and the initialization vector stored in the register 13, the latter changing value to each data word.

Dans un exemple, l'unité de combinaison est une porte OU-Exclusif (XOR). Le générateur pseudo aléatoire 10 et une porte XOR forment un cryptosystème qui, en soi, est bien connu de l'Homme du métier. Les mots de données chiffrés qu'il délivre en sortie ont la même taille que les mots de données (avant chiffrement) reçus en entrée. Un tel cryptosystème présente l'avantage de fournir un algorithme de chiffrement simple, donc rapide, et dont la robustesse vis-à-vis des attaques de sécurité est déterminée par les détails internes du générateur pseudo aléatoire 10. Plus le flux de nombre PN généré par ce dernier est aléatoire, meilleure est la sécurité de l'algorithme de chiffrement. Un autre avantage d'un algorithme de chiffrement par porte XOR est que le déchiffrement s'effectue de la même façon que le chiffrement, ce qui simplifie la conception matérielle du cryptosystème.  In one example, the combining unit is an exclusive-OR (XOR) gate. The pseudo random generator 10 and an XOR gate form a cryptosystem which, in itself, is well known to those skilled in the art. The words of encrypted data that it outputs are the same size as the data words (before encryption) received as input. Such a cryptosystem has the advantage of providing a simple encryption algorithm, so fast, and whose robustness vis-à-vis security attacks is determined by the internal details of the pseudo-random generator 10. Plus the PN number flow generated by the latter is random, better is the security of the encryption algorithm. Another advantage of an XOR gate encryption algorithm is that the decryption is done in the same way as the encryption, which simplifies the hardware design of the cryptosystem.

Le fonctionnement du circuit en mode chiffrement, va maintenant être expliqué, en considérant les flèches en traits pleins représentés à la figure 2.  The operation of the circuit in encryption mode, will now be explained, considering the arrows in solid lines shown in Figure 2.

Le mode chiffrement est typiquement activé par le coeur de processeur 44 lorsque des données DATA stockées dans, ou transitant par la mémoire cache 34 doivent être écrites dans la mémoire externe 23, et doivent à cet effet transiter via le bus de communication 3.  The encryption mode is typically activated by the processor core 44 when DATA data stored in or passing through the cache memory 34 must be written to the external memory 23, and must for this purpose pass through the communication bus 3.

Le coeur 44 commande l'unité de sélection 31 de manière à sélectionner l'une des clés secrètes stockées dans l'ensemble de registre 32. Dans un exemple, l'unité 31 sélectionne un identificateur de clé secrète KIDi associé à une clé secrète déterminée. Cet identificateur KIDi est fourni par l'unité 31 à l'unité de chiffrement 38.  The heart 44 controls the selection unit 31 to select one of the secret keys stored in the register set 32. In one example, the unit 31 selects a secret key identifier KIDi associated with a certain secret key . This identifier KIDi is provided by the unit 31 to the encryption unit 38.

Dans l'unité de chiffrement 38, la clé Ki associée à l'identificateur KIDi est lue dans l'ensemble de registre 32 à l'aide dudit identificateur KIDi, utilisé par exemple comme index dans le parcours de l'ensemble de registres 32. La clé Ki est alors stockée dans le registre 12.  In the encryption unit 38, the key Ki associated with the identifier KIDi is read in the register set 32 by means of said identifier KIDi, used for example as an index in the path of the set of registers 32. The key Ki is then stored in the register 12.

Par ailleurs, le coeur 44 commande la mémoire cache 34 de manière que les données DATA sont fournies à l'unité de chiffrement 38, et plus particulièrement en entrée de l'unité de segmentation 22. Cette dernière délivre un flux de mots binaires Wi correspondant chacun à un segment du flux de données DATA. Parallèlement, le générateur pseudo aléatoire 24 génère un flux de vecteurs d'initialisation IVi, au rythme de la délivrance des mots de données Wi par l'unité 22, ces vecteurs d'initialisation changeant de valeur à chacun des mots Wi. Dit autrement, à chaque mot de données Wi est associé un vecteur d'initialisation IVi dont la valeur est différente de celle du vecteur d'initialisation associée au mot précédent dans le flux de mot de données. Les vecteurs d'initialisation IVi, qui sont générés en continu, sont à chaque fois stockés dans le registre 13.  Furthermore, the core 44 controls the cache memory 34 so that the data DATA is supplied to the encryption unit 38, and more particularly to the input of the segmentation unit 22. The latter delivers a corresponding bit stream Wi each to a segment of the DATA data stream. Meanwhile, the pseudo-random generator 24 generates a flow of initialization vectors IVi, at the rate of delivery of the data words Wi by the unit 22, these initialization vectors changing value to each of the words Wi. In other words, each data word Wi is associated with an initialization vector IVi whose value is different from that of the initialization vector associated with the previous word in the data word stream. The initialization vectors IVi, which are continuously generated, are each time stored in the register 13.

Pour chaque mot de données Wi, les opérations suivantes sont alors effectuées en continu.  For each data word Wi, the following operations are then performed continuously.

D'une part, le générateur pseudo aléatoire 10 génère un nombre pseudo aléatoire PNi en fonction de la clé secrète Ki stockée dans le registre 12 et du vecteur d'initialisation IVi stocké dans le registre 13. A chaque fois, le nombre PNi est délivré sur une seconde entrée de la porte XOR 11.  On the one hand, the pseudo-random generator 10 generates a pseudo-random number PNi as a function of the secret key Ki stored in the register 12 and the initialization vector IVi stored in the register 13. Each time, the number PNi is delivered on a second input of the XOR gate 11.

D'autre part, le mot de données Wi et le nombre pseudo aléatoire PNi correspondant sont combinés par la porte XOR 11, de manière à générer un 30 mot de données chiffré Ci.  On the other hand, the data word Wi and the corresponding pseudo-random number PNi are combined by the XOR gate 11 so as to generate an encrypted data word Ci.

L'unité de chiffrement 38 stocke alors le mot Ci dans la mémoire externe 23, ainsi que et en association avec le vecteur d'initialisation IVi, et l'identificateur de clé secrète KIDi qui ont servi à le chiffrer. Pour cette écriture, le mot de données chiffré Ci, le vecteur d'initialisation IVi et l'identificateur de clé secrète KIDi transitent par l'intermédiaire du bus de communication 3. Ceci n'est toutefois pas une faiblesse de sécurité du procédé de chiffrement, dans la mesure où le mot Ci est chiffré, où le vecteur d'initialisation IVi ne suffit pas à lui seul pour réaliser le déchiffrement, et où l'identificateur KIDi n'a aucune signification pour un autre circuit qui ne dispose pas de la clé secrète associée à cet identificateur.  The encryption unit 38 then stores the word Ci in the external memory 23, as well as and in association with the initialization vector IVi, and the secret key identifier KIDi that were used to encrypt it. For this writing, the encrypted data word Ci, the initialization vector IVi and the secret key identifier KIDi pass through the communication bus 3. However, this is not a security weakness of the encryption method since the word Ci is encrypted, where the initialization vector IVi is not sufficient in itself to perform the decryption, and where the identifier KIDi has no meaning for another circuit which does not have the secret key associated with this identifier.

Le fonctionnement du circuit en mode déchiffrement est maintenant exposé en considérant les flèches en traits pointillés représentés à la figure 2.  The operation of the circuit in decryption mode is now explained by considering the arrows in dashed lines shown in FIG.

Sous la commande du coeur de processeur 44, des mots de données chiffrés sont lus dans la mémoire externe 23 à des adresses déterminées. Chaque mot Cj ainsi lu est délivré sur la première entrée de la porte XOR 11. Pour chaque mot Cj, le vecteur d'initialisation IVj et l'identificateur de clé secrète KIDj qui sont associés à ce mot, sont également lus dans la mémoire externe 23.  Under the control of processor core 44, encrypted data words are read into external memory 23 at specific addresses. Each word Cj thus read is delivered on the first input of the gate XOR 11. For each word Cj, the initialization vector IVj and the secret key identifier KIDj which are associated with this word, are also read in the external memory 23.

A partir de l'identificateur KIDj, l'unité de déchiffrement 38 sélectionne la clé secrète Kj associée à cet identificateur, en cherchant dans la liste des clés secrètes stockées dans l'ensemble de registres 32. La clé Kj ainsi sélectionnée est stockée dans le registre 12. Parallèlement, le vecteur IVj est stocké dans le registre 13.  From the identifier KIDj, the decryption unit 38 selects the secret key Kj associated with this identifier, looking in the list of secret keys stored in the set of registers 32. The key Kj thus selected is stored in the register 12. In parallel, the vector IVj is stored in the register 13.

En fait, le vecteur IVj et l'identificateur KID] transitent par la mémoire cache 25. Cette mise en mémoire cache permet d'améliorer les performances de l'unité de déchiffrement, en terme de vitesse de déchiffrement. Le générateur pseudo aléatoire 10 génère alors un nombre pseudo aléatoire PNj à partir de la clé Kj stockée dans le registre 12 et du vecteur IVj stocké dans le registre 13. Le nombre PNj est délivré sur la seconde entrée de la porte XOR 11.  In fact, the vector IVj and the identifier KID] transit through the cache memory 25. This caching makes it possible to improve the performance of the decryption unit, in terms of decryption speed. The pseudo-random generator 10 then generates a pseudo-random number PNj from the key Kj stored in the register 12 and the vector IVj stored in the register 13. The number PNj is delivered on the second input of the XOR gate 11.

La porte XOR 11 combine le mot de données chiffrées Cj et le nombre pseudo aléatoire PNj et délivre en sortie un mot de donnée Wj correspondant 30 au mot Cj déchiffré.  The XOR gate 11 combines the encrypted data word Cj and the pseudo-random number PNj and outputs a data word Wj corresponding to the deciphered word Cj.

Le mot de données déchiffré Wj est alors fourni au coeur de processeur 44 à travers la mémoire cache 33.  The decrypted data word Wj is then supplied to the processor core 44 through the cache memory 33.

Bien entendu, la présente invention est susceptible de diverses variantes et modifications qui apparaîtront à l'Homme du métier. En particulier, l'invention pourra être mise en oeuvre avec n'importe quel algorithme de chiffrement continu connu, conditionnant le générateur pseudo aléatoire 10 à partir de la clé secrète et des vecteurs d'initialisation. De plus, on suppose que la réalisation pratique de l'invention est à la portée de l'Homme du métier à partir des indications fonctionnelles données plus haut. A cet égard, on notera que, selon un mode de réalisation de l'invention décrit ici, les différents outils de chiffrement et de déchiffrement sont réalisés par des ressources matérielles du processeur. Toutefois, une mise en oeuvre par des ressources logicielles est bien entendu envisageable.  Of course, the present invention is susceptible of various variants and modifications which will appear to those skilled in the art. In particular, the invention can be implemented with any known continuous encryption algorithm, conditioning the pseudo-random generator 10 from the secret key and the initialization vectors. In addition, it is assumed that the practical embodiment of the invention is within the abilities of those skilled in the art from the functional indications given above. In this respect, it will be noted that, according to one embodiment of the invention described here, the various encryption and decryption tools are made by hardware resources of the processor. However, implementation by software resources is of course conceivable.

En outre, l'invention ne se limite en aucune manière à une application dans un processeur. Bien au contraire, une unité de chiffrement/déchiffrement telle que l'unité 38 décrite plus haut peut être prévue dans d'autres circuits d'un appareil électronique tel que représenté à la figure 1, notamment dans le contrôleur de disque ou dans la carte réseau.  In addition, the invention is not limited in any way to an application in a processor. On the contrary, an encryption / decryption unit such as the unit 38 described above can be provided in other circuits of an electronic device as shown in FIG. 1, in particular in the disk controller or in the card. network.

On notera également que la totalité des données stockées dans la mémoire externe ne doit pas forcément être chiffrée. A cet égard, on peut prévoir qu'un identificateur de clé ayant la valeur nulle correspond à l'absence de chiffrement du mot de données correspondant, c'est-à-dire que ledit mot de données est stocké en clair dans la mémoire externe.  It should also be noted that not all the data stored in the external memory need be encrypted. In this regard, it can be provided that a key identifier having the value zero corresponds to the absence of encryption of the corresponding data word, that is to say that said data word is stored in clear in the external memory .

Claims (14)

REVENDICATIONS 1. Procédé de chiffrement dans un circuit (2) d'un appareil électronique, de données à stocker dans une mémoire (23) externe audit circuit, comprenant les étapes consistant à : - sélectionner une clé secrète (Ki), à partir d'une liste de clés secrètes (K) respectivement stockées dans un ensemble de registres (32) du circuit en association chacune avec un identificateur de clé (KID), au moins l'une desdites clés étant une clé partagée avec au moins un autre circuit de l'appareil électronique; découper les données en un flux de mots de données (Wi) de taille déterminée; et, en continu pour chaque mot de données, - générer un nombre pseudo aléatoire (PNi) de taille déterminée au moyen d'un générateur pseudo aléatoire mettant en oeuvre un algorithme de génération en fonction de ladite clé secrète et d'un vecteur d'initialisation (lVi) changeant de valeur à chaque mot de données; - combiner le mot de données et le nombre pseudo aléatoire correspondant, pour générer un mot de données chiffré (Ci) ; puis, - stocker dans ladite mémoire externe chaque mot de données chiffré en association avec le vecteur d'initialisation et l'identificateur de clé (KIDi) associé à la clé secrète ayant servi à le chiffrer.  1. A method of encryption in a circuit (2) of an electronic device, of data to be stored in a memory (23) external to said circuit, comprising the steps of: - selecting a secret key (Ki), from a list of secret keys (K) respectively stored in a set of registers (32) of the circuit each associated with a key identifier (KID), at least one of said keys being a key shared with at least one other circuit of the electronic device; cutting the data into a stream of data words (Wi) of determined size; and, continuously for each data word, generating a pseudo-random number (PNi) of determined size by means of a pseudo-random generator implementing a generation algorithm according to said secret key and a vector of initialization (lVi) changing value at each data word; - combine the data word and the corresponding pseudo-random number, to generate an encrypted data word (Ci); then, - storing in said external memory each encrypted data word in association with the initialization vector and the key identifier (KIDi) associated with the secret key used to encrypt it. 2. Procédé selon la revendication 1, suivant lequel la combinaison est du type OU-Exclusif, la taille des nombres pseudo aléatoires étant égale à la taille des mots de données.  2. Method according to claim 1, wherein the combination is of the exclusive-OR type, the size of the pseudo-random numbers being equal to the size of the data words. 3. Procédé selon l'une quelconque des revendications précédentes, suivant lequel au moins l'une des clés secrètes est propre au circuit.  3. Method according to any one of the preceding claims, wherein at least one of the secret keys is specific to the circuit. 4. Procédé de déchiffrement, dans un circuit (2) d'un appareil électronique, 30 de données stockées sous la forme de mots de données chiffrés dans une mémoire (23) externe audit circuit, comprenant les étapes consistant à : - lire dans ladite mémoire externe un mot de données chiffrés (Cj) ainsi qu'un vecteur d'initialisation (lVj) et qu'un identificateur de clé secrète (KlDj) respectivement associés audit mot de données; - sélectionner une clé secrète (Kj), à partir d'une liste de clés secrètes (K) respectivement stockées dans un ensemble de registres (32) du circuit et dont l'une au moins est une clé partagée avec au moins un autre circuit de l'appareil électronique, et à partir en outre dudit identificateur; et, en continu pour chaque mot de données chiffré, générer un nombre pseudo aléatoire (PNj) de taille déterminée, au moyen d'un générateur pseudo aléatoire (10) mettant en oeuvre un algorithme de génération en fonction de ladite clé secrète et dudit vecteur d'initialisation; et, - combiner le mot de données et le nombre pseudo aléatoire correspondant, pour générer un mot de données déchiffré (Wj).  4. A method of decrypting, in a circuit (2) of an electronic apparatus, data stored in the form of ciphered data words in a memory (23) external to said circuit, comprising the steps of: - reading in said external memory an encrypted data word (Cj) and an initialization vector (lVj) and a secret key identifier (KlDj) respectively associated with said data word; selecting a secret key (Kj), from a list of secret keys (K) respectively stored in a set of registers (32) of the circuit and at least one of which is a key shared with at least one other circuit of the electronic apparatus, and further from said identifier; and, continuously for each encrypted data word, generating a pseudo-random number (PNj) of determined size, by means of a pseudo-random generator (10) implementing a generation algorithm according to said secret key and said vector initialization; and, - combining the data word and the corresponding pseudo-random number, to generate a decrypted data word (Wj). 5. Procédé selon la revendication 4, suivant lequel la combinaison est du type OU-Exclusif, la taille des nombres pseudo aléatoires étant égale à la taille des mots de données.  5. The method of claim 4, wherein the combination is of the exclusive-OR type, the size of the pseudo random numbers being equal to the size of the data words. 6. Procédé selon l'une quelconque des revendications 4 et 5, suivant lequel le vecteur d'initialisation et l'identificateur de clé secrète lus dans la mémoire externe, sont stockés en association l'un avec l'autre dans une mémoire cache (25) du circuit.  The method according to any one of claims 4 and 5, wherein the initialization vector and the secret key identifier read in the external memory are stored in association with each other in a cache memory ( 25) of the circuit. 7. Dispositif pour la mise en oeuvre d'un procédé de chiffrement selon l'une quelconque des revendications 1 à 3, comprenant: - un ensemble des registres (32) stockant des clés secrètes (K) respectives, dont l'une au moins est une clé partagée avec un autre circuit de l'appareil électronique, en association chacune avec un identificateur de clé (KID); - une unité de sélection de clés secrètes adaptée pour sélectionner une clé secrète (Ki) à partir de la liste des clés stockées dans ledit ensemble de registres; - une unité de segmentation (22) adaptée pour découper les données de manière à former un flux de mots de données (Wi) de taille déterminée; - un générateur de vecteurs d'initialisation (24) adapté pour générer un flux de vecteurs d'initialisation (lVi) changeant de valeur à chaque mot de données; - un générateur de nombres pseudo aléatoires (10) mettant en oeuvre un algorithme de génération adapté pour générer, pour chaque mot de données, en fonction de ladite clé secrète et d'un déterminé desdits vecteurs d'initialisation, un nombre pseudo aléatoire (PNi) de taille déterminée; - une unité de combinaison (11) adaptée pour combiner en continu le mot de données et le nombre pseudo aléatoire correspondant, pour générer un mot de données chiffré (Ci) ; et, - des moyens pour stocker dans ladite mémoire externe chaque mot de données chiffré en association avec ledit vecteur d'initialisation déterminé et 15 l'identificateur de clé associé à la clé secrète ayant servi à le chiffrer.  7. Device for implementing an encryption method according to any one of claims 1 to 3, comprising: - a set of registers (32) storing respective secret keys (K), at least one of which is a key shared with another circuit of the electronic device, each associated with a key identifier (KID); a secret key selection unit adapted to select a secret key (Ki) from the list of keys stored in said set of registers; - a segmentation unit (22) adapted to cut the data so as to form a flow of data words (Wi) of determined size; an initialization vector generator (24) adapted to generate a flow of initialization vectors (lVi) changing value to each data word; a pseudo-random number generator (10) implementing a generation algorithm adapted to generate, for each data word, as a function of said secret key and of a predetermined one of said initialization vectors, a pseudo-random number (PNi ) of a determined size; a combination unit (11) adapted to continuously combine the data word and the corresponding pseudorandom number, to generate an encrypted data word (Ci); and means for storing in said external memory each encrypted data word in association with said determined initialization vector and the key identifier associated with the secret key used to encrypt it. 8. Dispositif pour la mise en oeuvre d'un procédé de déchiffrement selon l'une quelconque des revendications 4 à 6, comprenant: - un ensemble de registres stockant des clés secrètes respectives dont 20 l'une au moins est une clé partagée, en association chacune avec un identificateur de clé ; - des moyens de lecture pour lire dans ladite mémoire externe un mot de données ainsi qu'un vecteur d'initialisation et qu'un identificateur d'une clé secrète respectivement associés audit mot de données; - des moyens de sélection pour sélectionner, pour chaque mot de données, une clé secrète à partir d'une liste de clés stockées dans lesdits registres et à partir en outre dudit identificateur de clé ; - un générateur de nombres pseudo aléatoires (10) mettant en oeuvre un algorithme de génération adapté pour générer, pour chaque mot de données, en fonction de ladite clé secrète et dudit vecteur d'initialisation, un nombre pseudo aléatoire de taille déterminée; et, - une unité de combinaison adaptée pour combiner le mot de données et le nombre pseudo aléatoire correspondant, de manière à déchiffrer ledit mot de données.  8. Device for implementing a decryption method according to any one of claims 4 to 6, comprising: a set of registers storing respective secret keys, at least one of which is a shared key, in association each with a key identifier; reading means for reading from said external memory a data word as well as an initialization vector and an identifier of a secret key respectively associated with said data word; selection means for selecting, for each data word, a secret key from a list of keys stored in said registers and further from said key identifier; a pseudo-random number generator (10) implementing a generation algorithm adapted to generate, for each data word, as a function of said secret key and said initialization vector, a pseudo-random number of determined size; and a combination unit adapted to combine the data word and the corresponding pseudo-random number so as to decode said data word. 9. Circuit comprenant une unité de chiffrement/déchiffrement (38) formant dispositif de chiffrement selon la revendication 7 et dispositif de déchiffrement selon la revendication 8, l'ensemble de registres, le générateur de nombres pseudo aléatoires et l'unité de combinaison étant communs aux deux dispositifs.  9. A circuit comprising an encryption / decryption unit (38) forming an encryption device according to claim 7 and a decryption device according to claim 8, the set of registers, the pseudo random number generator and the combination unit being common. to both devices. 10. Circuit selon la revendication 9, dans lequel l'unité de combinaison est une porte OU-Exclusif, la taille des nombres pseudo aléatoires étant égale à la taille des mots de données.  The circuit of claim 9, wherein the combining unit is an exclusive-OR gate, the size of the pseudo-random numbers being equal to the size of the data words. 11. Circuit selon l'une quelconque des revendications 9 et 10, dans lequel au moins l'une des clé secrètes est propre au circuit.  11. Circuit according to any one of claims 9 and 10, wherein at least one of the secret key is specific to the circuit. 12. Circuit selon l'une quelconque des revendications 9 à 11, dans lequel au moins l'une des clé secrètes est partagée avec un autre circuit d'un appareil électronique.  Circuit according to any one of claims 9 to 11, wherein at least one of the secret keys is shared with another circuit of an electronic device. 13. Circuit selon l'une quelconque des revendications 9 à 12, dans lequel l'unité de chiffrement/déchiffrement comprend une mémoire cache (25) dans laquelle le vecteur d'initialisation et l'identificateur de clé secrète lus dans la mémoire externe sont stockés en association l'un avec l'autre.  The circuit of any one of claims 9 to 12, wherein the encryption / decryption unit comprises a cache memory (25) in which the initialization vector and the secret key identifier read in the external memory are stored in association with each other. 14. Appareil électronique comprenant au moins deux circuits selon l'une quelconque des revendications 9 à 13, dans lequel au moins l'une des clés secrètes est partagée entre lesdits circuits de manière à former un soussystème sécurisé.  An electronic apparatus comprising at least two circuits according to any one of claims 9 to 13, wherein at least one of the secret keys is shared between said circuits so as to form a secure subsystem.
FR0312206A 2003-10-17 2003-10-17 ENCRYPTION OF DATA IN AN ELECTRONIC APPARATUS WITH MULTIPLE SYMMETRIC PROCESSORS Pending FR2861234A1 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
FR0312206A FR2861234A1 (en) 2003-10-17 2003-10-17 ENCRYPTION OF DATA IN AN ELECTRONIC APPARATUS WITH MULTIPLE SYMMETRIC PROCESSORS
EP04292137A EP1524795B1 (en) 2003-10-17 2004-09-06 Data encryption in an electronic apparatus with several symmetrical processors
DE602004001732T DE602004001732T2 (en) 2003-10-17 2004-09-06 Data encryption in an electronic device with multiple symmetric processors
US10/966,833 US7657034B2 (en) 2003-10-17 2004-10-14 Data encryption in a symmetric multiprocessor electronic apparatus
JP2004301252A JP2005122745A (en) 2003-10-17 2004-10-15 Data encryption in electronic devices with symmetric multiprocessors

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
FR0312206A FR2861234A1 (en) 2003-10-17 2003-10-17 ENCRYPTION OF DATA IN AN ELECTRONIC APPARATUS WITH MULTIPLE SYMMETRIC PROCESSORS

Publications (1)

Publication Number Publication Date
FR2861234A1 true FR2861234A1 (en) 2005-04-22

Family

ID=34355508

Family Applications (1)

Application Number Title Priority Date Filing Date
FR0312206A Pending FR2861234A1 (en) 2003-10-17 2003-10-17 ENCRYPTION OF DATA IN AN ELECTRONIC APPARATUS WITH MULTIPLE SYMMETRIC PROCESSORS

Country Status (5)

Country Link
US (1) US7657034B2 (en)
EP (1) EP1524795B1 (en)
JP (1) JP2005122745A (en)
DE (1) DE602004001732T2 (en)
FR (1) FR2861234A1 (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070258586A1 (en) * 2006-04-28 2007-11-08 Chien-Chung Huang Personal video recorder having dynamic security functions and method thereof
US7903812B2 (en) * 2006-09-07 2011-03-08 International Business Machines Corporation Detection and handling of encryption key and initialization vector
US20080084995A1 (en) * 2006-10-06 2008-04-10 Stephane Rodgers Method and system for variable and changing keys in a code encryption system
US7925890B2 (en) * 2006-10-23 2011-04-12 Harris Corporation Network centered recovery process for cryptographic processing modules
US8345713B2 (en) * 2006-10-25 2013-01-01 Verizon Patent And Licensing Inc. Methods and apparatus for content scrambling in a communications system
US8464069B2 (en) * 2007-02-05 2013-06-11 Freescale Semiconductors, Inc. Secure data access methods and apparatus
US8707082B1 (en) * 2009-10-29 2014-04-22 Symantec Corporation Method and system for enhanced granularity in fencing operations
US8990582B2 (en) * 2010-05-27 2015-03-24 Cisco Technology, Inc. Virtual machine memory compartmentalization in multi-core architectures
US8621260B1 (en) 2010-10-29 2013-12-31 Symantec Corporation Site-level sub-cluster dependencies
JP5806187B2 (en) * 2012-09-14 2015-11-10 レノボ・シンガポール・プライベート・リミテッド Secret information exchange method and computer
WO2016178728A1 (en) * 2015-05-01 2016-11-10 Marvell World Trade Ltd. Systems and methods for secured data transfer via inter-chip hopping buses
US10438006B2 (en) * 2017-07-27 2019-10-08 Citrix Systems, Inc. Secure information storage
TWI760546B (en) 2017-08-23 2022-04-11 安地卡及巴布達商區塊鏈控股有限公司 Computer-implemented system and method for highly secure, high speed encryption and transmission of data
GB201713499D0 (en) 2017-08-23 2017-10-04 Nchain Holdings Ltd Computer-implemented system and method
US11727127B2 (en) * 2020-10-16 2023-08-15 Micron Technology, Inc. Secure storage device verification with multiple computing devices

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5438622A (en) * 1994-01-21 1995-08-01 Apple Computer, Inc. Method and apparatus for improving the security of an electronic codebook encryption scheme utilizing an offset in the pseudorandom sequence
WO1999012310A1 (en) * 1997-08-28 1999-03-11 Telefonaktiebolaget Lm Ericsson (Publ) Encryption of data packets using a sequence of private keys generated from a public key exchange
US6061449A (en) * 1997-10-10 2000-05-09 General Instrument Corporation Secure processor with external memory using block chaining and block re-ordering
EP1229427A2 (en) * 2001-01-31 2002-08-07 Kabushiki Kaisha Toshiba Microprocessor using public key decryption processing

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3627384B2 (en) * 1996-01-17 2005-03-09 富士ゼロックス株式会社 Information processing apparatus with software protection function and information processing method with software protection function
US5818939A (en) * 1996-12-18 1998-10-06 Intel Corporation Optimized security functionality in an electronic system
US6857076B1 (en) * 1999-03-26 2005-02-15 Micron Technology, Inc. Data security for digital data storage
US7278016B1 (en) * 1999-10-26 2007-10-02 International Business Machines Corporation Encryption/decryption of stored data using non-accessible, unique encryption key
KR20040041684A (en) * 2001-10-12 2004-05-17 코닌클리케 필립스 일렉트로닉스 엔.브이. Apparatus and method for reading or writing block-wise stored user data
US20030196081A1 (en) * 2002-04-11 2003-10-16 Raymond Savarda Methods, systems, and computer program products for processing a packet-object using multiple pipelined processing modules
US7334124B2 (en) * 2002-07-22 2008-02-19 Vormetric, Inc. Logical access block processing protocol for transparent secure file storage
US8467534B2 (en) * 2003-04-16 2013-06-18 Broadcom Corporation Method and system for secure access and processing of an encryption/decryption key
US7543158B2 (en) * 2004-03-23 2009-06-02 Texas Instruments Incorporated Hybrid cryptographic accelerator and method of operation thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5438622A (en) * 1994-01-21 1995-08-01 Apple Computer, Inc. Method and apparatus for improving the security of an electronic codebook encryption scheme utilizing an offset in the pseudorandom sequence
WO1999012310A1 (en) * 1997-08-28 1999-03-11 Telefonaktiebolaget Lm Ericsson (Publ) Encryption of data packets using a sequence of private keys generated from a public key exchange
US6061449A (en) * 1997-10-10 2000-05-09 General Instrument Corporation Secure processor with external memory using block chaining and block re-ordering
EP1229427A2 (en) * 2001-01-31 2002-08-07 Kabushiki Kaisha Toshiba Microprocessor using public key decryption processing

Also Published As

Publication number Publication date
DE602004001732D1 (en) 2006-09-14
EP1524795A1 (en) 2005-04-20
EP1524795B1 (en) 2006-08-02
JP2005122745A (en) 2005-05-12
US7657034B2 (en) 2010-02-02
DE602004001732T2 (en) 2007-08-09
US20050138403A1 (en) 2005-06-23

Similar Documents

Publication Publication Date Title
EP1524795B1 (en) Data encryption in an electronic apparatus with several symmetrical processors
EP2120388B1 (en) Integrity test of an encryption key
FR2833120A1 (en) APPARATUS AND METHOD FOR ENCRYPTING DATA
WO2020070455A1 (en) Low latency calculation transcryption method applied to homomorphic encryption
EP2020773B1 (en) Masking of a data item in a calculation
EP4242884A1 (en) Method for protection against side-channel attacks
EP2166696B1 (en) protection of encrypted data Integrity using an intermediate cipher state to generate a signature
EP1617586B1 (en) Stream ciphering of the content of a memory which is external to a processor
FR2979443A1 (en) Method for storing data in memory interfacing with secure microcontroller, involves processing input data according to one of data processing methods to achieve data processed in different data formats
EP1355446B1 (en) Encryption of the content of a memory which is external to a processor
FR3106909A1 (en) INTEGRATED CIRCUIT CONFIGURED TO PERFORM SYMMETRICAL ENCRYPTION OPERATIONS WITH SECRET KEY PROTECTION
EP1352523A1 (en) Method for storing encrypted data
EP1419640B1 (en) Local digital network, methods for installing new devices and data broadcast and reception methods in such a network
EP1615369A1 (en) Block encryption of the content of a memory external to a processor
FR2690258A1 (en) An access control method of the type allowing access to an operating function of an operating module by means of a control word.
FR2922393A1 (en) TRACABLE SYSTEM FOR THE ENCRYPTION / ENCRYPTION OF DIFFUSED DIGITAL DATA
EP1723791B1 (en) Method of securing a scrambled content sent by a broadcaster
FR2910998A1 (en) Static digital data protecting method for electronic circuit i.e. integrated circuit, involves converting data to dynamic data flow by feedback registers, transmitting data flow to element, and decoding flow by another register
EP2294750B1 (en) Traceable method and system for broadcasting digital data
FR2857184A1 (en) METHOD OF ENCRYPTING / DECEIVING A MESSAGE AND ASSOCIATED DEVICE
EP1763029A2 (en) Protection of digital content on a physical medium
FR2889637A1 (en) METHOD AND SYSTEM FOR HIGH-RATE ENCRYPTION
FR3146220A1 (en) METHOD AND DEVICE FOR DISTRIBUTED ONLINE STORAGE OF FILES IN A ZERO TRUST CONTEXT
EP1479189A1 (en) Cryptographic method using a data flow-symmetrical cryptographic algorithm and use in a smart card
EP1605698A1 (en) Security method for a broadcast service