DATA PROCESSING DEVICE FOR PROCESSING EXTENDED DATA
Patent Information
- Application Number
- DE602018073613
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2017-06-22
- Filing Date
- 2018-06-20
- Publication Date
- 2024-08-28
- Estimated Expiration
- 2038-06-20
AI Technical Summary
Cryptographic devices are vulnerable to side-channel attacks due to leakage of information through power consumption and electromagnetic emissions, which existing countermeasures like masking are insufficient to prevent, as these leaks are correlated with the hardware architecture.
A new hardware architecture for computing devices featuring two processors, one for sensitive data and one for dummy data, where the dummy data processor generates noise that masks the sensitive data processor's leakage, preventing attackers from isolating sensitive information through interleaving and expansion of data.
This approach effectively jams the leakage from the sensitive data processor with noise from the dummy processor, reducing the Signal to Noise Ratio and making it impossible for attackers to retrieve sensitive information from the global leakage, thus enhancing protection against side-channel attacks.
Description
FIELD OF THE INVENTION
[0001] The present invention relates to the field of cryptographic devices, and more particularly to cryptographic devices protected against side-channel attacks.BACKGROUND OF THE INVENTION
[0002] Cryptographic algorithms are commonly used for ensuring the privacy of communications by encryption, for authentication or for generating a verifiable signature. An example of such algorithms is block cipher algorithms such as DES or AES, in which input bits of data to be encrypted or decrypted are processed by blocks.
[0003] The computing devices performing such algorithms, even when protected against tampering, may leak information about the operations they perform through their power consumption or some electromagnetic or photonic emissions. Such leakage may occur at various stages of the operations such as a memory access, a data transfer on a bus or during the computation itself of logical or arithmetic operations on the internal registers of a processor.
[0004] When such leakage is correlated to the data processed by a computing device, this data becomes open to side-channel attacks, based on an analysis of the power consumption or electromagnetic signature of the computing device, as depicted on Figure 1. A particular type of side-channel attack is Differential Power Analysis (DPA) that performs a statistical analysis of the power consumption and may be used to recover at least some part of a secret key used for encryption.
[0005] A commonly used countermeasure against side-channel attacks such as DPA is the masking of the intermediate values of an encryption process with a random mask. Nevertheless, such a masking may be defeated by an attacker by combining information from enough leakages.
[0006] Consequently, a different approach should be used for protecting cryptographic processes against side-channel attacks. Since the power consumption or electromagnetic signature analyzed in such attacks is driven by the hardware architecture of the computing device performing the process, there is a need for a computing device with a new hardware architecture whose power consumption or electromagnetic signature would not leak any information on sensitive data used in the cryptographic process, such as cryptographic keys.
[0007] Protection against side channel using two processors, one for useful data and the other for dummy data is known from US2010 / 0095133.
[0008] US2011 / 0302404 discloses interleaving useful and dummy data and encrypting them in parallel using exclusive OR.SUMMARY OF THE INVENTION
[0009] The invention is defined by the appended claims.BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The following description and the annexed drawings set forth in detail certain illustrative aspects and are indicative of but a few of the various ways in which the principles of the embodiments may be employed. Other advantages and novel features will become apparent from the following detailed description when considered in conjunction with the drawings and the disclosed embodiments are intended to include all such aspects and their equivalents. Figure 1 is a schematic illustration of a system according to the present invention; Figure 2 is a schematic illustration of a computing device according to an embodiment of the present invention; Figure 3 is a schematic detailed illustration of a computing device according to an embodiment of the present invention; Figure 4 is a schematic illustration of the processing of sensitive and non-sensitive operations according to the invention; Figure 5 is a schematic illustration of a circuit arrangement according to an embodiment of the present invention; Figure 6 is a schematic illustration of an option to manage the positions of the dummy data and / or the useful data in the expanded data according to the invention; Figure 7 illustrates a method according to an embodiment of the present invention. DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION
[0011] In the description detailed below, reference is made to the accompanying drawings that show, by way of illustration, specific embodiments in which the invention may be practiced. These embodiments are described in sufficient detail to enable those skilled in the art to practice the invention. It is to be understood that the various embodiments of the invention, although different, are not necessarily mutually exclusive. For example, a particular feature, structure, or characteristic described herein in connection with one embodiment may be implemented within other embodiments without departing from the spirit and scope of the invention. In addition, it is to be understood that the location or arrangement of individual elements within each disclosed embodiment may be modified without departing from the spirit and scope of the invention. The description detailed below is, therefore, not to be taken in a limiting sense, and the scope of the present invention is defined only by the appended claims, appropriately interpreted, along with the full range of equivalents to which the claims are entitled.
[0012] The invention aims at providing a new hardware architecture for a computing device performing block cipher operations, and an associated method, such that these operations are protected against side-channel attacks.
[0013] As depicted on Figure 1, such a computing device 101, according to a first aspect of the invention, may be a stand-alone device connected to a personal computer or server 102 operated by a user and sending commands to the computing device for cryptographic operations: data encryption or decryption using a block cipher algorithm such as the Advanced Encryption Standard (AES) algorithm, the Data Encryption Standard (DES), Blowfish, Serpent or Gost algorithms. Alternatively, the computing device 101 may be embedded in the computer 102.
[0014] The computing device 101 may be a tamper resistant device secured against any unauthorized access. The computing device 101 may for example be a smart card, a hardware security module or a system on a chip.
[0015] Figure 2 is a schematic illustration of the computing device 101. The computing device 101 may include a processing system 201, connected via a bus 202 to a computer readable memory circuit including a random access memory (RAM) 203, a read-only memory (ROM) 204, and / or a non-volatile memory (NVM) 205. The computing device 101 may further include an interface 206 used to connect the computing device 101 to the computer 102. Such an interface may be either a wired interface such as a USB, Ethernet or Thunderbolt interface, or a wireless interface, such as a Bluetooth interface. The interface 206 may also be used to connect the computing device 101 to a wireless network, e.g., wide-area networks, WiFi networks, or mobile telephony networks through which communication may be performed with the computer 102.
[0016] In order to avoid leaking information about operations computed by the computing device when such operations are executed by the processing system 201, the processing system 201 includes a first processor 2011 and a second processor 2012, as depicted on Figure 3. The first processor may be used for executing the cryptographic operations to be performed by the computing device, whereas the second processor may be used for executing other operations such that any leakage generated by the first processor is jammed by the leakage generated by the second processor. By doing so an attacker performing a side channel analysis attack would capture a global leakage from both processors and would not be able from that global leakage to isolate the leakage from the first processor only which bears information on sensitive operations performed by the computing device.
[0017] In order to achieve such a jamming, the second processor may perform operations on dummy data while the first processor performs operations on useful data.
[0018] In order to achieve a full protection of the computing device against side channel analysis, the architecture of the computing device shall also prevent leakage about the useful data used as input to the operations performed by the first processor. Such a leakage may for example occur during a transfer of these data on the bus 202 or when loading it from the computer readable memory circuit of the computing device.
[0019] In order to do so, the useful data to be used as input to the first processor may be stored in the memories and transferred on the buses of the computing device under an expanded format in which these useful data are interleaved with the dummy data used as input to the second processor. By doing so an attacker performing a side channel analysis on the computing device can only capture from the memories and buses leakages related to such expanded data. He would be incapable from such a leakage to isolate information on the sensitive useful data used as input to the first processor of the computing device.
[0020] In order to recover from such expanded data the useful data to be provided to the first processor, the computing device also includes a selection circuit 207 which receives from an input bus 208 such expanded input data, determines the respective positions of useful and dummy data in the expanded data, extracts the dummy input data and useful input data from the expanded input data based on said determined positions and transmits them to the first and second processors.
[0021] More precisely, as depicted on Figure 3, the selection circuit 207 of the computing device executing a block cipher operation, of a cryptographic process on useful input data d 1 may be configured: for receiving, from the input bus 208, expanded input data d 1 ' obtained by interleaving dummy input data r 1 with said useful input data d 1 , for determining positions of the dummy input data r 1 in said expanded input data, for extracting said dummy input data r 1 and said useful input data d 1 from the expanded input data d 1 ' based on said determined positions.
[0022] The first processor performs an access to the extracted useful input data d 1 and the second processor performs an access to the dummy input data r 1 . A transmission of these two data could be performed simultaneously in order to prevent an attacker from obtaining the extracted useful input data d 1 .
[0023] The first processor is configured for executing said first cryptographic operation of said cryptographic process on said extracted useful input data d 1 to obtain useful output data d 2 .
[0024] The second processor is configured for executing a second operation on said extracted dummy input data r 1 to obtain dummy output data r 2 and the computing device is configured for having said operations executed such that leakage generated by said first operation is jammed by leakage generated by the second operation.
[0025] The dummy input data shall be uncorrelated with said useful input data. The leakage produced by the execution of the second operation may then be seen as noise added to the leakage from the first processor which is the signal of interest to the attacker. Performing the second operation lowers the Signal to Noise Ratio SNR of the global leakage, making it impossible for an attacker to retrieve from the global leakage information on the useful input data d 1 only. In other words, the computing device is configured for having a global leakage depending more on the power signature or electromagnetic emission generated by the dummy input data than one generated by the useful input data. Thus the useful input data cannot be retrieved from the global leakage. The computing device may be configured for having said first cryptographic operation and said second operation executed in parallel in order to have both leakages emitted almost at the same time. Alternatively the second operation may be executed only during one or more parts of the execution of the first cryptographic operation.
[0026] Before being stored in memory or provided to the selection circuit of the computing device, expanded input data shall be generated from useful data and dummy data. As shown on Figure 4, operations that are not sensitive such as F1 on Figure 4 may be performed on unprotected data d 0 . In order to prevent any leakage to an attacker, resulting useful data d 1 shall then be protected by using an expansion operation E generating expanded data d 1 ' before performing any sensitive operation such as F2. After such sensitive operations have been performed and data d 2 outputted by such operations may be revealed without risk to an attacker, useful data d 2 may be extracted from expanded data d 2 ' by applying an inverse operation E -1< in order to perform subsequent not-sensitive operations.
[0027] In a first embodiment, according to a second aspect of the invention, the computing device is included in a circuit arrangement 500 shown on Figure 5 also including: an external expansion circuit 501, said input bus 208 configured for connecting said external expansion circuit 501 and the selection circuit 207 of said computing device 101,
[0028] The external expansion circuit is configured for interleaving dummy input data r 1 with useful input data d 1 to obtain said expanded input data d 1 ' received by the selection circuit from said input bus 208, such that said dummy input data is uncorrelated with said useful input data.
[0029] As shown on Figure 5, the external expansion circuit may be external to the computing device. Alternatively, it may be included in the computing device.
[0030] The useful output data d 2 generated by the first processor may not be sensitive data and may be outputted to other components of the circuit arrangement. Alternatively, they may be sensitive data, and shall then also be protected against side channel analysis. The computing device may then include an expansion circuit 209 configured for interleaving said dummy output data r 2 with said useful output data d 2 to obtain expanded output data d' 2 which may be stored in the memories of the computing device, further provided to the selection circuit for performing another operation, or outputted to other components of the circuit arrangement.
[0031] In order to remove dummy data from the expanded output data produced by the computing device, the circuit arrangement may also comprise an external selection circuit 502, and an output bus 210 configured for connecting said computing device 101 and said external selection circuit 502, and said external selection circuit may be configured : for accessing, through said output bus, said expanded output data d' 2 , for determining positions of the dummy output data r 2 in said expanded output data d' 2 , and for extracting said useful output data d 2 from the expanded output data d' 2 based on said determined positions.
[0032] The circuit arrangement may then be configured for using said useful output data d 2 in a subsequent operation of the cryptographic process. Alternatively the circuit arrangement may comprise an external memory and may be configured for storing the useful output data d 2 in this external memory as result of the cryptographic process.
[0033] Such an external memory may also be used for storing the input data d 1 or the expanded input data d 1 ' when generated outside of the computing device, or the useful output data d 2 when outputted directly by the computing device, or the expanded output data d 2 '.
[0034] In an alternative embodiment, the external selection circuit 502 may be included in the computing device itself.
[0035] The computing device may be configured for performing only sensitive operations on expanded data. For example, when the computing device is embedded in a computer 102, the elements of the circuit arrangement not included in the computing device may be part of said computer which may perform all non-sensitive operations.
[0036] Alternatively, the computing device may be configured for performing both sensitive and non-sensitive operations. It may then expand data before performing a sensitive operation and then unexpand it when output data are not sensitive data anymore.
[0037] Different options may be used in order to manage the position of the dummy data and / or the useful data in the expanded data.
[0038] In a first embodiment, the positions of the dummy data in said expanded data are predetermined and are memorized by said computing device for being accessible by said selection circuit of said computing device or by said external selection circuit.
[0039] Alternatively, such positions may be transmitted together with the expanded data. In that case, the selection circuit of the computing device and the external selection circuit are configured for receiving said positions from the input bus or the output bus in order to determine the positions of the dummy data in the expanded data. In such a case, said positions may be randomly generated positions.
[0040] The useful data, the dummy data, the expanded data may be sequences of bits and in both cases the dummy data may be bit values randomly generated by the expansion circuit of the computing device or the external expansion circuit.
[0041] In order to randomly generate positions of dummy data in an expanded data, as depicted on Figure 6, the expansion circuit of the computing device or the external expansion circuit may use an insertion sequence r and a positions random number R such that for each bit in the positions random number R with a first value, for example 1 on the example of Figure 6, a bit of said expanded data d' is selected from the insertion sequence r and for each bit in the positions random number R with a second value, for example 0 on the example of Figure 6, a bit of said expanded data d' is selected from the useful data d.
[0042] The expansion circuit of the computing device or the external expansion circuit may be configured for generating said insertion sequence r randomly or for using a predetermined insertion sequence r.
[0043] The following paragraphs describe the steps of a method for secure execution of a first cryptographic operation of a cryptographic process on useful input data according to a third aspect of the invention as depicted on figure 7. These steps are performed by said computing device according to the first aspect of the invention comprising a first processor, a second processor, a selection circuit as descripted above.
[0044] In a first step S1, said selection circuit receives, from an input bus, expanded input data d 1 ' obtained by interleaving dummy input r 1 data with said useful input data d 1 .
[0045] In a second step S2, said selection circuit determines the positions of the dummy input data r 1 in said expanded input data d 1 '.
[0046] In a third step S3, said selection circuit extracts said dummy input data r 1 and said useful input data d 1 from the expanded input data d 1 ' based on the determined positions.
[0047] In a fourth step S4, said first processor executes said first cryptographic operation of said cryptographic process on said extracted useful input data d 1 to obtain useful output data d 2 .
[0048] In a fifth step S5, said second processor executes a second operation on said extracted dummy input data r 1 to obtain dummy output data r 2 .
[0049] Said operations are executed such that leakage generated by said first operation is jammed by leakage generated by the second operation.
[0050] In addition to these steps, the method according to the third aspect of the invention may comprise any other step corresponding to the operations, described here before, for which the circuit arrangement or its subcomponents are configured.
[0051] Finally, according to a fourth aspect of the invention, the invention relates to a computer program product directly loadable into the memory of at least one computer, comprising software code instructions for performing by a computer's processor the steps of the method according to the third aspect when said product is run on the computer.
[0052] As a result, using such a jamming of leakage during sensitive computations and using expanded data, such a computing device enables to protect any sensitive operation against side channel analysis attacks.
Claims
1. A circuit arrangement (500) comprising: - a computing device (101)for executing a first cryptographic operation of a cryptographic process on useful input data (d1), said computing device comprising a first processor (2011), a second processor (2012), a selection circuit (207) and an expansion circuit (209) wherein : • said selection circuit (207) is configured: - for receiving, from an input bus (208), expanded input data (d1') obtained by interleaving dummy input data (r1) with said useful input data (d1), - for determining positions of the dummy input data (r1) in said expanded input data (d1'), - and for extracting said dummy input data (r1) and said useful input data (d1) from the expanded input data (d1') based on said determined positions, • said first processor (2011) is configured for executing said first cryptographic operation of said cryptographic process on said extracted useful input data (d1) to obtain useful output data (d2), • said second processor (2012) is configured for executing a second operation on said extracted dummy input data (r1) to obtain dummy output data (r2), • said expansion circuit (209) is configured for interleaving said dummy output data (r2) with said useful output data (d2) to obtain expanded output data (d'2) said dummy input data (r1) being uncorrelated with said useful input data (d1) and, said computing device being configured for having said operations executed in parallel and such that leakage generated by said first cryptographic operation is jammed by leakage generated by the second operation, - an external expansion circuit (501), - said input bus (208) configured for connecting said external expansion circuit (501) and the selection circuit (207) of said computing device (101), - an external selection circuit (502), - and an output bus (210) configured for connecting said computing device (101) and said external selection circuit (502) wherein : -said external expansion circuit (501) is configured for interleaving dummy input data (r1) with useful input data (d1) to obtain said expanded input data (d1') received by the selection circuit (207) from said input bus (208), -said external selection circuit is configured : - for accessing, through said output bus (210), said expanded output data (d'2), - for determining positions of the dummy output data (r2) in said expanded output data (d'2), - and for extracting said useful output data (d2) from the expanded output data (d'2) based on said determined positions, and said circuit arrangement is configured for using said useful output data (d2) in a subsequent operation of the cryptographic process or said circuit arrangement comprises an external memory and is configured for storing said useful output data (d2) in said external memory as result of the cryptographic process, and wherein said first cryptographic operation is a block cipher operation.
2. The circuit arrangement of claim 1, where said computing device (101) is among a computer, a smart card, a hardware security module and a system on chip.
3. The circuit arrangement of claim 1, wherein determining positions of the dummy data in said expanded data comprises receiving said positions from said bus.
4. The circuit arrangement of claim 3, wherein said positions are randomly generated positions.
5. The circuit arrangement of claim 1, wherein said positions of the dummy data in said expanded data are predetermined and memorized by said computing device (101) or by said external selection circuit (502).
6. The circuit arrangement of claim 1, wherein the useful data, the dummy data, the expanded data are sequences of bits and wherein said dummy data are bit values randomly generated by the expansion circuit (209) of the computing device or the external expansion circuit (501).
7. The circuit arrangement of claim 1, wherein the useful data, the dummy data, the expanded data are sequences of bits and wherein said expansion circuits are configured for interleaving dummy data (r) with useful data (d) to obtain expanded data (d') using an insertion sequence (r) and a positions random number (R) such that for each bit in the positions random number (R) with a first value, a bit of said expanded data is selected from the insertion sequence (r) and for each bit in the positions random number (R) with a second value, a bit of said expanded data is selected from the useful data.
8. The circuit arrangement of claim 7, wherein said expansion circuits (209, 501) are configured for generating said insertion sequence randomly or for using a predetermined insertion sequence.
