Information processing device and information processing method

By employing multiple arithmetic circuits with varied processing times and random number generation, the solution enhances security against unauthorized access and fault-sensitivity attacks, ensuring reliable protection of confidential information.

JP2024142936APending Publication Date: 2024-10-11MEGACHIPS
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023055356
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing information processing devices are vulnerable to unauthorized access due to circumvention of detection functions, allowing attackers to exploit fault-sensitivity attacks and steal confidential information.

Method used

Implementing multiple arithmetic circuits with varied processing times and random number generation to vary output timings, using cyclic shift and selection circuits to randomize data output, and incorporating detection mechanisms to enhance security.

Benefits of technology

The solution effectively protects against fault-sensitivity attacks by randomizing output timings, reducing circuit scale, and minimizing power consumption while ensuring reliable protection of secret information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024142936000001_ABST
    Figure 2024142936000001_ABST
Patent Text Reader

Abstract

To provide an information processing device capable of reliably protecting confidential information from unauthorized access.SOLUTION: An information processing device includes: a plurality of arithmetic circuits that execute processing using implementation systems with different processing times on input data that is input, thereby outputting output data of the same value at different output timings for input data of the same value; a random number generation circuit that outputs random number values; and an output circuit that arranges or selects a plurality of pieces of output data output from the plurality of arithmetic circuits based on the random number values.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an information processing device and an information processing method. [Background technology]

[0002] Patent Document 1 discloses an information processing device including a command execution unit, a detection unit, and a protection processing unit. The command execution unit executes processing corresponding to an acquired command. The detection unit detects unauthorized access. When the detection unit detects unauthorized access, the protection processing unit randomly changes the timing at which the command execution unit starts executing the command based on a random number. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2009-289017 A Summary of the Invention [Problem to be solved by the invention]

[0004] According to the information processing device disclosed in Patent Document 1, if an attacker circumvents or disables the function of the detection unit to detect unauthorized access, the protection processing unit will not operate, thereby allowing unauthorized access.

[0005] The present invention has been made to solve such problems, and an object of the present invention is to provide an information processing device and an information processing method that can reliably protect confidential information from unauthorized access. [Means for solving the problem]

[0006] An information processing device according to a first aspect of the present invention comprises a plurality of arithmetic circuits that execute processing using implementation methods with different processing times on input data, thereby outputting output data of the same value at different output timings for input data of the same value, a random number generation circuit that outputs random value values, and an output circuit that arranges or selects the plurality of output data output from the plurality of arithmetic circuits based on the random value values.

[0007] According to the first aspect, when the same input data is input to a plurality of arithmetic circuits, the output timing of the output data differs for each arithmetic circuit, and the data output timing from the output circuit varies according to the random number value. Therefore, even if a fault sensitivity attack is made to steal secret information by generating a fault by inserting a glitch into a clock line, etc., and analyzing the relationship between the input value of the input data and the timing of glitch insertion at which the fault was successfully generated, the fault sensitivity attack is not successful because the relationship varies according to the random number value. As a result, it is possible to reliably protect secret information from unauthorized access by a fault sensitivity attack. In addition, since the delay time associated with the arithmetic processing of the arithmetic circuit can be set at the logic design stage by the adopted implementation method, compared to the case where the delay time is set by a delay element, strict adjustment in a later process is not required, which makes it easier to implement, and also makes it possible to improve resistance to environmental factors such as temperature.

[0008] An information processing device according to a second aspect of the present invention is the information processing device of the first aspect, wherein the implementation method includes an algorithm.

[0009] According to the second aspect, the processing times of the plurality of arithmetic circuits can be made different by making the algorithms of the plurality of arithmetic circuits different.

[0010] In an information processing device according to a third aspect of the present invention, in the first aspect, the realization method may include an implementation method.

[0011] According to the third aspect, by differentiating the implementation methods of the multiple arithmetic circuits, it is possible to make the processing times of the multiple arithmetic circuits different.

[0012] An information processing device according to a fourth aspect of the present invention is, in the first aspect, an input data input to each of the plurality of arithmetic circuits is byte-unit data of multiple bytes, an output data output from each of the plurality of arithmetic circuits is byte-unit data of multiple bytes, and the output circuit has a first cyclic shift circuit that arranges the multiple output data output from the plurality of arithmetic circuits by cyclically shifting them in a first direction by a shift amount based on the random value.

[0013] According to the fourth aspect, the shift amount of the first cyclic shift circuit is changed according to the random value, thereby varying the relationship between the input value and the glitch insertion timing. Therefore, it is possible to reduce the circuit size because there is no need for a useless arithmetic circuit that does not contribute to the arithmetic result when not selected.

[0014] An information processing device according to a fifth aspect of the present invention is, in the fourth aspect, further comprising a second cyclic shift circuit that cyclically shifts a plurality of input data to be input to the plurality of arithmetic circuits in a second direction opposite to the first direction by a shift amount based on the random value.

[0015] According to the fifth aspect, the second cyclic shift circuit executes a cyclic shift operation corresponding to the cyclic shift operation of the first cyclic shift circuit, so that input data and output data can be appropriately associated with each other.

[0016] An information processing device according to a sixth aspect of the present invention is, in the first aspect, an input data input to each of the plurality of arithmetic circuits is byte-unit data of multiple bytes, an output data output from each of the plurality of arithmetic circuits is byte-unit data of multiple bytes, and the output circuit has a first selection circuit that selects one output data from at least two output data output from at least two of the plurality of arithmetic circuits based on the random value value.

[0017] According to the sixth aspect, the variation of the relationship between the input value and the glitch insertion timing is realized by a selection circuit, not a cyclic shift circuit. Therefore, compared to the case where a cyclic shift circuit is used, the circuit size can be reduced, and the required bit width of the random value can be reduced, so that the load of the random number generation process can be reduced.

[0018] The information processing device according to a seventh aspect of the present invention is the sixth aspect, further comprising a second selection circuit which selects at least two pieces of input data to be input to the at least two arithmetic circuits based on the random value.

[0019] According to the seventh aspect, the second selection circuit executes a selection operation corresponding to the selection operation of the first selection circuit, so that input data and output data can be appropriately associated with each other.

[0020] An information processing device according to an eighth aspect of the present invention is, in the first aspect, the output circuit has a selection circuit that selects one output data from among the multiple output data output from the multiple arithmetic circuits based on the random value.

[0021] According to the eighth aspect, one output data is selected from the multiple output data output from the multiple arithmetic circuits based on a random value, thereby realizing the variation of the relationship between the input value and the glitch insertion timing. Therefore, it is not necessary to implement a cyclic shift circuit or other selection circuit in the front stage of the multiple arithmetic circuits, and the occurrence of delay time associated with the processing of these circuits can be avoided, thereby enabling high-speed operation. In addition, since the processing of each arithmetic circuit is independent, when it is desired to disable the countermeasure processing for the fault sensitivity attack, the arithmetic circuit with the shortest delay time associated with the arithmetic processing can be selected from the multiple arithmetic circuits, thereby minimizing the delay time without being affected by the other arithmetic circuits, thereby enabling high-speed operation. Furthermore, since the required bit width of the random value can be reduced by reducing the number of multiple arithmetic circuits, it is possible to reduce the load of the random number generation processing.

[0022] A ninth aspect of the present invention provides the information processing device of the eighth aspect, wherein the same input data is input to the plurality of arithmetic circuits.

[0023] According to the ninth aspect, the same input data is input to the plurality of arithmetic circuits, so that the plurality of arithmetic circuits can output the same output data at different output timings in response to the same input data.

[0024] An information processing device according to a 10th aspect of the present invention, in accordance with the 9th aspect, further includes a detection circuit that detects a fault attack based on a comparison result of at least two output data output from at least two of the plurality of arithmetic circuits, and a control circuit that activates the random number generation circuit when the detection circuit detects a fault attack.

[0025] According to the tenth aspect, since the detection circuit detects the fault attack based on the comparison result of the output data of the arithmetic circuit, it is possible to improve the detection accuracy of the fault attack compared to the case where an analog sensor such as a voltage sensor is used. Also, since the control circuit activates the random number generation circuit when the detection circuit detects the fault attack, and the random number generation circuit does not operate before the detection of the fault attack, it is possible to reduce power consumption.

[0026] An information processing device according to an eleventh aspect of the present invention is, in the tenth aspect, the control circuit further enables operation of arithmetic circuits other than the two arithmetic circuits among the plurality of arithmetic circuits when the detection circuit detects a fault attack.

[0027] According to the eleventh aspect, the control circuit further enables operation of all arithmetic circuits other than two of the multiple arithmetic circuits when the detection circuit detects a fault attack, and does not enable operation of all arithmetic circuits other than the two arithmetic circuits before the detection of the fault attack, thereby making it possible to further reduce power consumption.

[0028] An information processing method according to a twelfth aspect of the present invention has a configuration in which a plurality of arithmetic circuits execute processing on input data using implementation methods with different processing times, thereby outputting output data of the same value at different output timings for input data of the same value, a random number generation circuit outputs a random value, and an output circuit arranges or selects the plurality of output data output from the plurality of arithmetic circuits based on the random value.

[0029] According to the twelfth aspect, when the same input data is input to a plurality of arithmetic circuits, the output timing of the output data differs for each arithmetic circuit, and accordingly, the data output timing from the output circuit also varies according to the random number value. Therefore, even if a fault sensitivity attack is made to steal secret information by generating a fault by inserting a glitch into a clock line, etc., and analyzing the relationship between the input value of the input data and the timing of the glitch insertion that successfully generated the fault, the fault sensitivity attack is not successful because the relationship varies according to the random number value. As a result, it is possible to reliably protect secret information from unauthorized access by a fault sensitivity attack. In addition, since the delay time associated with the arithmetic processing of the arithmetic circuit can be set at the logic design stage by the adopted implementation method, compared to the case where the delay time is set by a delay element, strict adjustment in a later process is not required, and implementation can be facilitated, and resistance to environmental factors such as temperature can be improved. Effect of the Invention

[0030] According to the present invention, it is possible to reliably protect confidential information from unauthorized access. [Brief description of the drawings]

[0031] [Figure 1] 1 is a diagram showing a simplified configuration of an information processing device according to a first embodiment. [Diagram 2] FIG. 11 is a diagram illustrating a schematic flow of processing in a SubBytes processing circuit. [Diagram 3] FIG. 1 is a diagram illustrating a situation in which an information processing device is subjected to a fault sensitivity attack. [Figure 4] 10 is a diagram illustrating a part of the configuration of a SubBytes processing circuit in an information processing device according to a modified example of the first embodiment. FIG. [Diagram 5] FIG. 11 is a diagram illustrating a configuration of a SubBytes processing circuit in an information processing device according to a second embodiment. [Figure 6] FIG. 13 is a diagram illustrating a configuration of a SubBytes processing circuit in an information processing device according to a first modified example of the second embodiment. [Figure 7] FIG. 13 is a diagram illustrating a configuration of a SubBytes processing circuit in an information processing device according to a second modified example of the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0032] Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. Elements with the same reference numerals in different drawings indicate the same or corresponding elements. In addition, the following embodiments can be applied in any combination.

[0033] First Embodiment 1 is a diagram showing a simplified configuration of an information processing device 100A according to a first embodiment of the present invention. In this embodiment, the information processing device 100A is configured as an encryption circuit of AES (Advanced Encryption Standard), which is one of the common key cryptography methods.

[0034] For example, an encryption circuit of AES includes a SubBytes processing circuit 1A, a ShiftRows processing circuit 2, a MixColumns processing circuit 3, a register circuit 4, and an AddRoundKey processing circuit 5. The SubBytes processing circuit 1A performs data conversion processing on 16-byte input data D1 including, for example, the first byte to the 16th byte B1 to B16, using an S-BOX on a byte-by-byte basis. The ShiftRows processing circuit 2 performs order replacement processing by shifting data on a row-by-row basis on the data input from the SubBytes processing circuit 1A. The MixColumns processing circuit 3 performs matrix operation processing on a column-by-column basis on the data input from the ShiftRows processing circuit 2. The AddRoundKey processing circuit 5 performs data conversion processing on 1-byte basis using a round key on the data input from the MixColumns processing circuit 3 via the register circuit 4. A clock C is input to the register circuit 4. A series of these processes constitutes one round, and while the output data from the AddRoundKey processing circuit 5 is input to the SubBytes processing circuit 1A as input data D1, for example, 10 rounds of processing are repeatedly executed. The number of bytes of the input data D1 and the number of iteration rounds are not limited to the examples in this embodiment. The present invention is not limited to AES, and can be applied to any common key cryptosystem using S-BOX, such as Blowfish, Twofish, Camellia, or CLEFIA.

[0035] The SubBytes processing circuit 1A has a cyclic shift circuit 11, an arithmetic circuit 12 connected in the subsequent stage, a cyclic shift circuit 13 connected in the subsequent stage, and a random number generation circuit 14 connected to the cyclic shift circuits 11 and 13.

[0036] The arithmetic circuit 12 includes a plurality of (16 in this example) arithmetic circuits 12-1 to 12-16. The input data input from the cyclic shift circuit 11 to each of the arithmetic circuits 12-1 to 12-16 is data in units of 1 byte of the 16-byte input data D1. The arithmetic circuits 12-1 to 12-16 execute data conversion processing using different implementation methods on the input data, thereby outputting output data at different output timings. The implementation method includes an algorithm or implementation method. By making the algorithms or implementation methods of the plurality of arithmetic circuits 12 different, the time required for processing can be made different, and as a result, the output timing of the output data can be made different. Furthermore, when the input data has the same value, the arithmetic circuits 12-1 to 12-16 output output data of the same value. The output data output from each of the arithmetic circuits 12-1 to 12-16 is data in units of 1 byte. The algorithm of the arithmetic circuits 12-1 to 12-16 using S-BOX can be any known algorithm with different processing times, such as a composite field method, an extension field method, or the Ito-Tsujii algorithm. Also, the implementation method of the arithmetic circuits 12-1 to 12-16 using S-BOX can be any known implementation method with different processing times, such as an implementation method using SOP (sum of product), an implementation method using BDD (binary decision diagram), or a table method.

[0037] 1, 16 arithmetic circuits 12-1 to 12-16 are implemented for 16-byte input data D1, so that one round is executed in one cycle. This is not a limitation, and for example, one round may be executed in two cycles by implementing eight arithmetic circuits 12-1 to 12-8, or one round may be executed in four cycles by implementing four arithmetic circuits 12-1 to 12-4. Furthermore, the processing unit of each arithmetic circuit 12 is not limited to one byte, and may be less than one byte or multiple bytes.

[0038] The random number generation circuit 14 may be any known circuit such as a pseudorandom number generation circuit or a true random number generation circuit. The random number generation circuit 14 generates a random value R. The random value R is input to the cyclic shift circuits 11 and 13. The cyclic shift circuit 13 is a first cyclic shift circuit, and the cyclic shift direction of the cyclic shift circuit 13 is a first direction, and the cyclic shift circuit 11 is a second cyclic shift circuit, and the cyclic shift direction of the cyclic shift circuit 11 is a second direction.

[0039] The cyclic shift circuit 11 shifts the input data D1 received from the AddRoundKey processing circuit 5 in a second direction (for example, to the left) by an amount of shift that is set based on the random number value R.

[0040] The cyclic shift circuit 13 shifts the input data input from the arithmetic circuits 12-1 to 12-16 in a first direction (e.g., rightward) opposite to the second direction by the same shift amount as that of the cyclic shift circuit 11, which is set based on the input random number value R. The cyclic shift circuit 13 corresponds to an example of an output circuit that arranges multiple pieces of output data output from the multiple arithmetic circuits 12-1 to 12-16 based on the random number value R.

[0041] FIG. 2 is a diagram showing a schematic flow of processing in the SubBytes processing circuit 1A. As shown in (A), 16-byte input data D1 including bytes B1 to B16 is input to the cyclic shift circuit 11. As shown in (B), the cyclic shift circuit 11 shifts the input data to the left by a shift amount randomly set based on the random number value R. The shift amount is an integer multiple of the processing unit of each arithmetic circuit 12. In this example, the processing unit of each arithmetic circuit 12 is 1 byte, so the shift amount is, for example, 3 bytes. As shown in (C), the arithmetic circuits 12-1 to 12-16 convert the bytes B1 to B16 to bytes B1' to B16' by data conversion processing using S-BOX. As shown in (D), the cyclic shift circuit 13 shifts the input data to the right by a shift amount (3 bytes in this example) randomly set based on the random number value R. This restores the randomly shifted byte array to the byte array of the input data D1.

[0042] 3 is a diagram showing a schematic diagram of a situation in which the information processing device 100A is subjected to a fault sensitivity analysis (FSA). In a fault sensitivity attack, an attacker tries to steal confidential information from the information processing device 100A by injecting a glitch into the clock line of the information processing device 100A to generate a fault, and analyzes the relationship between the input value of a specific byte of input data and the glitch insertion timing at which the fault was successfully generated. In this case, the attacker tries to insert a glitch multiple times while changing the glitch insertion timing for the same input value in order to identify the limit value of the glitch insertion timing at which the fault is generated.

[0043] The attacker performs a fault sensitivity attack on a specific byte (byte B1 in the following example) of the input data D1. The attack location is, for example, the input / output of the register circuit 4, and a glitch is inserted during the period from the data output timing from the register circuit 4 to the data input timing to the register circuit 4.

[0044] 3, time T0 is the timing of data output from register circuit 4. Byte B1 is processed by one of a plurality of arithmetic circuits 12-1 to 12-16 depending on random value R. In the first attack, data output from arithmetic circuit 12 that processed byte B1 is completed at time T1. The attacker inserts a glitch at time T2, which is before time T1, and thus succeeds in faulting byte B1 in the first attack.

[0045] Because the attacker succeeds in causing a fault in the first attack, in the second attack, he inserts a glitch at time T4, which is before time T2. Byte B1 is processed by one of the plurality of arithmetic circuits 12-1 to 12-16 depending on the random value R. In the second attack, data output from the arithmetic circuit 12 that processed byte B1 is completed at time T3, which is before time T4. Therefore, because the attacker inserts a glitch at time T4, which is after time T3, he fails to cause a fault in byte B1 in the second attack.

[0046] Since the second attack fails to cause a fault, the attacker inserts a glitch at time T6, which is before time T2 and after time T4, in the third attack. Byte B1 is processed by one of the multiple arithmetic circuits 12-1 to 12-16 depending on the random value R. In the third attack, data output from the arithmetic circuit 12 that processed byte B1 is completed at time T5, which is after time T6. Therefore, since the attacker inserts a glitch at time T6, which is before time T5, the attacker succeeds in causing a fault in byte B1 in the third attack. As a result, the attacker identifies that the limit value of the glitch insertion timing for causing a fault in byte B1 of the input data D1 is time T6.

[0047] However, in this embodiment, byte B1 of input data D1 is processed not only by arithmetic circuit 12-1 but also by any of a plurality of arithmetic circuits 12-1 to 12-16 that are randomly shifted based on the random value R. The time required for arithmetic processing on byte B1 differs depending on arithmetic circuits 12-1 to 12-16. Therefore, even if an attacker repeatedly inserts glitches by changing the timing of glitch insertion, the attack does not target byte B1, and a fault sensitivity attack does not succeed. In other words, the attacker mistakenly believes that the limit value for the glitch insertion timing for byte B1 is time T6.

[0048] In this way, according to the information processing device 100A of the present embodiment, when input data of the same value is input to a plurality of arithmetic circuits 12, the output timing of the output data differs for each arithmetic circuit 12, and accordingly, the data output timing from the cyclic shift circuit 13 (output circuit) also varies according to the random number value R. Therefore, even if a fault sensitivity attack is performed in which a fault is generated by inserting a glitch into a clock line, and the relationship between the input value of the input data and the glitch insertion timing at which the fault was successfully generated is analyzed to steal secret information, the fault sensitivity attack is not established because the relationship varies according to the random number value R. As a result, it is possible to reliably protect secret information from unauthorized access by a fault sensitivity attack. In addition, since the delay time associated with the arithmetic processing of the arithmetic circuit 12 can be set at the logic design stage depending on the implementation method adopted, compared to the case where the delay time is set by a delay element, strict adjustment in a later process is not required, and implementation can be facilitated, and resistance to environmental factors such as temperature can be improved.

[0049] Furthermore, according to the information processing device 100A of this embodiment, the relationship between the input value and the glitch insertion timing is changed by varying the shift amount of the cyclic shift circuits 11 and 13 according to the random value R. This eliminates the need for unnecessary arithmetic circuits that do not contribute to the arithmetic result when not selected, thereby making it possible to reduce the circuit size.

[0050] In the information processing device 100A according to the present embodiment, the multiple arithmetic circuits 12-1 to 12-16 are configured to output output data at different output timings by executing data conversion processes using implementation methods (algorithms or implementation methods) with different processing times, but the method of making the output timings different is not limited to this example. Although it is a method different from the method of making the implementation methods different, for example, at least one delay element may be inserted between the output of the cyclic shift circuit 11 and the input of each of the arithmetic circuits 12-1 to 12-16, and the number of delay elements to be inserted may be made different for each of the arithmetic circuits 12-1 to 12-16, thereby making the output timings of the output data different. The same applies to other embodiments and other modified examples described later.

[0051] 4 is a diagram showing a part of the configuration of a SubBytes processing circuit 1B in an information processing device 100B according to a modified example of the first embodiment. Selection circuits 15 (15a, 15b,...) are implemented instead of the cyclic shift circuit 11, and selection circuits 16 (16a, 16b,...) are implemented instead of the cyclic shift circuit 13.

[0052] Selection circuit 15a inputs one of bytes B1 and B2 to arithmetic circuit 12-1 and the other to arithmetic circuit 12-2 based on a random number value R input from random number generation circuit 14. Similarly, selection circuit 15b inputs one of bytes B3 and B4 to arithmetic circuit 12-3 and the other to arithmetic circuit 12-4 based on a random number value R input from random number generation circuit 14. Selection circuit 16 is a first selection circuit, and selection circuit 15 is a second selection circuit.

[0053] By data conversion processing using S-BOX, arithmetic circuit 12-1 converts one of bytes B1, B2 to one of bytes B1', B2', and arithmetic circuit 12-2 converts the other of bytes B1, B2 to the other of bytes B1', B2'. Similarly, by data conversion processing using S-BOX, arithmetic circuit 12-3 converts one of bytes B3, B4 to one of bytes B3', B4', and arithmetic circuit 12-4 converts the other of bytes B3, B4 to the other of bytes B3', B4'.

[0054] The selection circuit 16a outputs byte B1' as the first byte of data and byte B2' as the second byte of data by selection based on the random number value R input from the random number generation circuit 14. Similarly, the selection circuit 16b outputs byte B3' as the third byte of data and byte B4' as the fourth byte of data by selection based on the random number value R input from the random number generation circuit 14. The selection circuits 16a, 16b, ... correspond to an example of an output circuit that selects a plurality of output data output from the plurality of arithmetic circuits 12-1 to 12-16 based on the random number value R.

[0055] Although omitted in FIG. 4, the same configuration and operation are also applied to bytes B5 to B16 of the fifth to sixteenth bytes.

[0056] 4, the selection circuits 15 and 16 select input data and output data for two adjacent arithmetic circuits 12, but this is not limiting. The selection circuits 15 and 16 may select input data and output data for two or more arithmetic circuits 12 that may or may not be adjacent to each other.

[0057] According to the information processing device 100B of this modification, the variation of the relationship between the input value and the glitch insertion timing is realized by the selection circuits 15 and 16, not by the cyclic shift circuits 11 and 13. Therefore, compared to the case where the cyclic shift circuits 11 and 13 are used, the circuit scale can be reduced, and the required bit width of the random value R can be reduced, so that the load of the random number generation process can be reduced.

[0058] <Second embodiment> FIG. 5 is a diagram showing the configuration of a SubBytes processing circuit 1C for byte B1 of input data D1 in information processing device 100C according to the second embodiment of the present invention. SubBytes processing circuit 1C has arithmetic circuit 12, selection circuit 16 connected to the latter stage, and random number generation circuit 14 connected to selection circuit 16. SubBytes processing circuit 1C similar to that shown in FIG. 5 is also configured for other bytes B2 to B16 of input data D1. Here, random number generation circuit 14 may be provided separately for each byte of input data D1, or one random number generation circuit 14 may be shared by all bytes. When random number generation circuit 14 is shared by all bytes of input data D1, for example, a 2-bit random number value R generated by random number generation circuit 14 may be used in common for all bytes, or each 2 bits of, for example, a 32-bit random number value R generated by random number generation circuit 14 may be used individually for each byte.

[0059] The arithmetic circuit 12 includes a plurality of (three in this example) arithmetic circuits 12-1 to 12-3. However, the number of arithmetic circuits 12 is not limited to three, and may be two or more. The input data input to each of the arithmetic circuits 12-1 to 12-3 is a byte B1 having a length of one byte. The arithmetic circuits 12-1 to 12-3 output bytes B1a to B1c at different output timings by performing data conversion processing using different implementation methods on the input byte B1. Furthermore, when the input bytes B1 have the same value, the arithmetic circuits 12-1 to 12-3 output bytes B1a to B1c having the same value. The output data output from each of the arithmetic circuits 12-1 to 12-3 is bytes B1a to B1c having a length of one byte.

[0060] The random number generation circuit 14 may be any known circuit such as a pseudorandom number generation circuit or a true random number generation circuit. The random number generation circuit 14 generates a random number value R. The random number value R is input to the selection circuit 16.

[0061] The selection circuit 16 selects one byte B1 from the plurality of bytes B1a-B1c output from the plurality of arithmetic circuits 12-1-12-3 based on a random number value R, and outputs the selected one byte B1. The selection circuit 16 corresponds to an example of an output circuit that selects the plurality of bytes B1a-B1c output from the plurality of arithmetic circuits 12-1-12-3 based on a random number value R.

[0062] According to the information processing device 100C of this embodiment, one byte B1 is selected from the multiple bytes B1a to B1c output from the multiple arithmetic circuits 12-1 to 12-3 based on the random value R, thereby realizing the variation of the relationship between the input value and the glitch insertion timing. Therefore, it is not necessary to implement the cyclic shift circuit 11 or other selection circuit 15 in the front stage of the multiple arithmetic circuits 12-1 to 12-3, and the occurrence of delay time associated with the processing of these circuits can be avoided, thereby enabling high-speed operation. Furthermore, since the processing of each arithmetic circuit 12-1 to 12-3 is independent, when it is desired to disable the countermeasure processing for the fault sensitivity attack, the delay time can be minimized without being influenced by other arithmetic circuits by selecting the arithmetic circuit with the shortest delay time associated with the arithmetic processing among the multiple arithmetic circuits 12-1 to 12-3, thereby enabling high-speed operation. Furthermore, since the required bit width of the random value R can be reduced by reducing the number of the multiple arithmetic circuits 12-1 to 12-3, it is possible to reduce the load of the random number generation processing.

[0063] Fig. 6 is a diagram showing the configuration of a SubBytes processing circuit 1D for byte B1 of input data D1 in an information processing device 100D according to a first modified example of the second embodiment. A control circuit 17 and a detection circuit 18 are added to the configuration shown in Fig. 5. During normal times when the information processing device 100D is not under a fault sensitivity attack, the operation of the random number generation circuit 14 is stopped.

[0064] The bytes B1a to B1c output from the arithmetic circuits 12-1 to 12-3 are input to the detection circuit 18. The detection circuit 18 compares the bytes B1a to B1c using a comparator, and detects that a fault attack (hereinafter referred to as a fault sensitivity attack) has not been made if all the bytes B1a to B1c match, and detects that a fault sensitivity attack has been made if at least one of the bytes B1a to B1c does not match. The detection circuit 18 inputs the detection result to the control circuit 17.

[0065] If the detection circuit 18 detects that a fault sensitivity attack is not being performed, the control circuit 17 stops the operation of the random number generation circuit 14 by the control signal S1. The control circuit 17 also takes a majority vote of the bytes B1a-B1c, and causes the selection circuit 16 to select one of the majority of normal bytes B1a-B1c by the control signal S2. The selection circuit 16 selects and outputs one of the majority of normal bytes B1a-B1c based on the control signal S2. Until a fault occurs in the majority of the bytes B1a-B1c due to the insertion of a glitch or the like, it is guaranteed that normal output data bytes B1a-B1c will be output by the majority vote.

[0066] When detection circuit 18 detects that a fault sensitivity attack is occurring, control circuit 17 activates random number generation circuit 14 using control signal S1, and also causes selection circuit 16 to execute a selection operation based on random number value R using control signal S2. Selection circuit 16 selects and outputs one of bytes B1a-B1c input to selection circuit 16 from arithmetic circuits 12-1-12-3 based on random number value R. Selection circuit 16 corresponds to an example of an output circuit that selects one of multiple bytes B1a-B1c output from multiple arithmetic circuits 12-1-12-3 based on random number value R.

[0067] In addition, detection circuit 18 does not need to compare all of the bytes B1a to B1c output from arithmetic circuits 12-1 to 12-3, but only needs to detect a fault sensitivity attack based on the comparison results of at least two of the bytes B1a to B1c output from at least two of arithmetic circuits 12-1 to 12-3.

[0068] According to the information processing device 100D of this modification, the detection circuit 18 detects a fault sensitivity attack based on the comparison result of the bytes B1a to B1c output from the arithmetic circuits 12-1 to 12-3, so it is possible to improve the detection accuracy of the fault sensitivity attack compared to the case where an analog sensor such as a voltage sensor is used. Also, the control circuit 17 activates the random number generation circuit 14 when the detection circuit 18 detects a fault sensitivity attack, and the random number generation circuit 14 does not operate before the detection of the fault sensitivity attack, so it is possible to reduce power consumption.

[0069] Fig. 7 is a diagram showing the configuration of a SubBytes processing circuit 1E in an information processing device 100E according to a second modified example of the second embodiment. A control circuit 17, a detection circuit 18, and selection circuits 19 and 20 are added to the configuration shown in Fig. 5. In normal operation when the information processing device 100E is not under a fault sensitivity attack, the operation of the random number generation circuit 14 is stopped, and the selection circuits 19 and 20 output 0. When 0 is input from the selection circuit 19, the arithmetic circuit 12-3 stops valid operation. When 0 is input from the selection circuit 20, the selection circuit 16 selects and outputs byte B1a.

[0070] The detection circuit 18 receives the bytes B1a and B1b output from the arithmetic circuits 12-1 and 12-2. The detection circuit 18 compares the bytes B1a and B1b using a comparator, and detects that a fault sensitivity attack has not been made if the bytes B1a and B1b match, and detects that a fault sensitivity attack has been made if the bytes B1a and B1b do not match. The detection circuit 18 inputs the detection result to the control circuit 17.

[0071] If the detection circuit 18 detects that it is not under a fault sensitivity attack, the control circuit 17 stops the operation of the random number generation circuit 14 using a control signal S1, causes the selection circuit 19 to output 0 using a control signal S3, and causes the selection circuit 20 to output 0 using a control signal S4.

[0072] When the detection circuit 18 detects that a fault sensitivity attack is occurring, the control circuit 17 activates the random number generation circuit 14 by a control signal S1, causes the selection circuit 19 to output byte B1 by a control signal S3, and causes the selection circuit 20 to output a random value R by a control signal S4. By receiving byte B1 from the selection circuit 19, the arithmetic circuit 12-3 starts a valid operation and outputs byte B1c. By receiving random value R from the selection circuit 20, the selection circuit 16 selects and outputs one of bytes B1a to B1c input to the selection circuit 16 from the arithmetic circuits 12-1 to 12-3 based on the random value R. The selection circuit 16 corresponds to an example of an output circuit that selects a plurality of bytes B1a to B1c output from a plurality of arithmetic circuits 12-1 to 12-3 based on the random value R.

[0073] According to the information processing device 100E of this modified example, when the detection circuit 18 detects a fault sensitivity attack, the control circuit 17 enables the operation of the arithmetic circuit 12-3 other than the arithmetic circuits 12-1 and 12-2 among the multiple arithmetic circuits 12-1 to 12-3, and does not enable the operation of the arithmetic circuit 12-3 before the detection of the fault sensitivity attack, thereby making it possible to further reduce power consumption.

[0074] The functions of the elements disclosed herein may be implemented using circuitry or processing circuitry including general purpose processors, special purpose processors, integrated circuits, ASICs ("application specific integrated circuits"), conventional circuitry, and / or combinations thereof configured to execute the disclosed elements or programmed to execute the disclosed functions. A processor is considered to be a processing circuitry or circuitry when it includes transistors and other circuitry therein. In this disclosure, a circuitry, unit, or means is hardware that performs the recited function or hardware that is programmed to perform the recited function. The hardware may be any hardware disclosed herein or other known that is programmed to perform the recited function or configured to perform the recited function. When the hardware is a processor, which may be considered as a type of circuitry, the circuitry, means, or unit is a combination of hardware and software, software used to configure the hardware, and / or processor. [Explanation of symbols]

[0075] 11,13 Cyclic shift circuit 12(12-1~12-16) Arithmetic circuit 14 Random number generator 15(15a,15b),16(16a,16b),19,20 Selection circuit 17 Control circuit 18 Detection circuit 100A~100E Information processing equipment

Claims

1. A plurality of arithmetic circuits each performing processing using an implementation method having a different processing time for input data, thereby outputting output data of the same value at different output timings in response to input data of the same value; A random number generating circuit that outputs a random value; an output circuit that arranges or selects a plurality of output data output from the plurality of arithmetic circuits based on the random value; An information processing device comprising:

2. The implementation method includes an algorithm; The information processing device according to claim 1 .

3. The implementation method includes an implementation method. The information processing device according to claim 1 .

4. the input data input to each of the plurality of arithmetic circuits is data in units of a plurality of bytes; the output data output from each of the plurality of arithmetic circuits is data in units of a plurality of bytes; the output circuit has a first cyclic shift circuit that cyclically shifts the plurality of output data output from the plurality of arithmetic circuits in a first direction by a shift amount based on the random value, The information processing device according to claim 1 .

5. a second cyclic shift circuit for cyclically shifting a plurality of pieces of input data to be input to the plurality of arithmetic circuits in a second direction opposite to the first direction by a shift amount based on the random value; The information processing device according to claim 4.

6. the input data input to each of the plurality of arithmetic circuits is data in units of a plurality of bytes; the output data output from each of the plurality of arithmetic circuits is data in units of a plurality of bytes; the output circuit has a first selection circuit which selects one output data from at least two output data outputted from at least two of the plurality of arithmetic circuits based on the random value; The information processing device according to claim 1 .

7. a second selection circuit for selecting at least two pieces of input data to be input to the at least two arithmetic circuits based on the random value; The information processing device according to claim 6.

8. the output circuit has a selection circuit which selects one output data from among the plurality of output data output from the plurality of arithmetic circuits based on the random value; The information processing device according to claim 1 .

9. The same input data is input to the plurality of arithmetic circuits. The information processing device according to claim 8.

10. a detection circuit that detects a fault attack based on a comparison result of at least two pieces of output data output from at least two of the plurality of arithmetic circuits; a control circuit that activates the random number generation circuit when the detection circuit detects a fault attack; Further comprising: The information processing device according to claim 9.

11. The control circuit further enables operations of the arithmetic circuits other than the two arithmetic circuits among the plurality of arithmetic circuits when the detection circuit detects a fault attack. The information processing device according to claim 9.

12. A plurality of arithmetic circuits execute processes using implementation methods with different processing times on input data, thereby outputting output data of the same value at different output timings in response to input data of the same value; The random number generating circuit outputs a random value, an output circuit that arranges or selects a plurality of pieces of output data output from the plurality of arithmetic circuits based on the random value; Information processing methods.

Citation Information

Patent Citations

  • Information processing apparatus

    JP2010021624A

  • Secure x-modular redundancy

    US20200065486A1

  • Information processing apparatus and method, program, and recording medium

    JP2009289017A