Semiconductor device

The semiconductor device employs a phase correction unit to align complementary signals, addressing phase alignment issues at high frequencies and ensuring reliable data transmission.

JP2024143045AInactive Publication Date: 2024-10-11LAPIS TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023055522
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In semiconductor devices, aligning the phases of two complementary signals output from two signal lines becomes difficult when the drive frequency is increased to operate at high speed, leading to potential malfunctions.

Method used

A semiconductor device with a phase correction unit that aligns the phases of two complementary signals output from two signal lines, preventing malfunctions even at high drive frequencies.

Benefits of technology

Ensures accurate data transmission by correcting phase shifts between complementary signals, preventing malfunctions and securing data integrity at high operating speeds.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024143045000001_ABST
    Figure 2024143045000001_ABST
Patent Text Reader

Abstract

To provide a semiconductor device in which occurrence of failure caused by a phase sift of two complementary signals is suppressed even when a driving frequency is raised in a semiconductor device in which one bit signal is output from two signal lines as complementary two signals.SOLUTION: A semiconductor device for executing data encryption process includes: a signal processing unit having an output bus which outputs a one-bit signal via two signal lines as complementary two signals; and a phase correction unit which corrects phases of two signals so that phases of two signals output from the output bus match each other.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a semiconductor device. [Background technology]

[0002] Various side channel attacks have been devised that analyze encryption keys by utilizing physical information such as the processing time, power consumption, and electromagnetic waves when a semiconductor device such as an LSI (Large Scale Integration) is operating.

[0003] Among side channel attacks, Simple Power Analysis (SPA) is known as an analysis method that uses power consumption information. Differential Power Analysis (DPA) is also known as a more advanced power analysis method than SPA.

[0004] As a method to counter power analyses such as SPA and DPA, cited document 1 describes a method in which a 1-bit signal is output as two complementary signals over two signal lines when outputting data from each memory cell in a memory cell array. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] International Publication No. 2012 / 014291 Summary of the Invention [Problem to be solved by the invention]

[0006] In a semiconductor device, when a 1-bit signal is output from two signal lines as two complementary signals to counter power analyses such as SPA and DPA, if the phases of the two complementary signals are not aligned, data cannot be transmitted accurately, which may cause malfunction.

[0007] However, when the driving frequency is increased in order to operate the semiconductor device at high speed, it becomes difficult to align the phases of the two complementary signals.

[0008] The present invention aims to provide a semiconductor device that outputs a 1-bit signal as two complementary signals from two signal lines, and that suppresses the occurrence of malfunctions caused by a phase shift between the two complementary signals even when the driving frequency is increased. [Means for solving the problem]

[0009] The semiconductor device of the present invention is a semiconductor device that performs data encryption processing, and includes a signal processing unit having an output bus that outputs a 1-bit signal as two complementary signals over two signal lines, and a phase correction unit that corrects the phases of the two signals output from the output bus so that the phases of the two signals match. Effect of the Invention

[0010] According to the semiconductor device of the present invention, in a semiconductor device that outputs a 1-bit signal as two complementary signals from two signal lines, it is possible to suppress the occurrence of malfunctions caused by a phase shift between the two complementary signals even when the driving frequency of the semiconductor device is increased. [Brief description of the drawings]

[0011] [Figure 1] 1 is a block diagram showing a schematic configuration of an encryption device according to a first embodiment. [Diagram 2] 3 is a block diagram showing a schematic configuration of a peripheral circuit of a phase correction unit of the encryption device of the first embodiment. FIG. [Diagram 3] FIG. 13 is a diagram for explaining a method of outputting a 1-bit signal from two signal lines as two complementary signals. [Figure 4] FIG. 13 is a diagram for explaining a method of outputting a 1-bit signal from two signal lines as two complementary signals. [Diagram 5]4A to 4C are diagrams illustrating signal waveforms of output buses of circuits in the periphery of a phase correction unit of the encryption device of the first embodiment. [Figure 6] FIG. 11 is a block diagram showing a schematic configuration of an encryption device according to a second embodiment. [Figure 7] FIG. 13 is a block diagram showing a schematic configuration of a peripheral circuit of a phase correction unit of an encryption device according to a second embodiment. [Figure 8] 13A and 13B are diagrams illustrating signal waveforms of output buses of circuits in the periphery of a phase correction unit of the encryption device according to the second embodiment. [Figure 9] FIG. 13 is a block diagram showing a schematic configuration of an encryption device according to a third embodiment. [Figure 10] FIG. 13 is a block diagram showing a schematic configuration of a peripheral circuit of a phase correction unit of an encryption device according to a third embodiment. [Figure 11] FIG. 13 is a diagram illustrating signal waveforms of an output bus of a circuit surrounding a phase correction unit of the encryption device according to the third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] [First embodiment] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. Fig. 1 is a block diagram showing a schematic configuration of an encryption device 1 according to a first embodiment of the present invention. Fig. 2 is a block diagram showing a schematic configuration of a peripheral circuit of a phase correction unit 15 of the encryption device 1 according to the first embodiment.

[0013] The encryption device 1 is a device that performs encryption processing to convert plain text into cipher text using the Advanced Encryption Standard (AES) with a key length of 128 bits, 192 bits, or 256 bits.

[0014] The encryption device 1 is configured with a semiconductor integrated circuit such as an IC (Integrated Circuit) or an LSI (Large Scale Integration), and is an example of a semiconductor device in the technology of the present disclosure.

[0015] As shown in FIG. 1, the encryption device 1 includes a round key setting unit 10, a plurality of add-round key processing units 11a to 11n, a plurality of sub-byte processing units 12a to 12n-1, a plurality of shift-row processing units 13a to 13n-1, a plurality of mix-column processing units 14a to 14n-1, and a plurality of phase correction units 15a to 15n-1.

[0016] The round key setting unit 10, the multiple add-round key processing units 11a to 11n, the multiple sub-byte processing units 12a to 12n-1, the multiple shift-row processing units 13a to 13n-1, the multiple mix-column processing units 14a to 14n-1, and the multiple phase correction units 15a to 15n-1 are each formed by independent circuit blocks, and the related circuit blocks are mutually connected by signal buses in accordance with the signal flow shown in Figure 1.

[0017] In the following description, when a common description is given without distinguishing between the individual units of the multiple ad-round key processing units 11a to 11n, the ad-round key processing unit may be referred to as an ad-round key processing unit 11. When a common description is given without distinguishing between the individual units of the multiple sub-bytes processing units 12a to 12n-1, the sub-bytes processing unit may be referred to as a sub-bytes processing unit 12. When a common description is given without distinguishing between the individual units of the multiple shift-laws processing units 13a to 13n-1, the shift-laws processing unit may be referred to as a shift-laws processing unit 13. When a common description is given without distinguishing between the individual units of the multiple mix columns processing units 14a to 14n-1, the mix columns processing unit may be referred to as a mix columns processing unit 14. When a common description is given without distinguishing between the individual units of the multiple phase correction units 15a to 15n-1, the phase correction unit may be referred to as a phase correction unit 15.

[0018] The round key setting unit 10 generates round keys based on a 128-bit, 192-bit, or 256-bit secret key, and transmits the round keys to each of the add-round key processing units 11a to 11n.

[0019] The ad-round key processing unit 11 performs an ad-round key conversion process defined by AES on the input data and outputs the processed data. Specifically, the ad-round key conversion process is a process of dividing the input data into 4×4 blocks and performing an exclusive OR (XOR) operation with the round key for each column.

[0020] Plaintext, which is data to be encrypted, is input to the first-stage ad-round key processing unit 11a, and ciphertext, which is data obtained by encrypting the plaintext, is output from the last-stage ad-round key processing unit 11n.

[0021] The subbytes processing unit 12 performs a subbytes conversion process defined by AES on the input data and outputs the processed data. The subbytes conversion process is specifically a process of converting the input data into different data for each byte using a substitution table.

[0022] Each of the sub-byte processing units 12a to 12n-1 includes a plurality of sub-block processing units 20a to 20n-1 that perform conversion processing on input data for each 8-bit (1-byte) sub-block using a substitution table. In the following description, when the plurality of sub-block processing units 20a to 20n-1 are not distinguished from one another and a common description is given, they may be referred to as a sub-block processing unit 20.

[0023] 2, a sub-block processing unit 20a included in a first-stage sub-bytes processing unit 12a outputs an 8-bit signal in response to an 8-bit signal input. Here, the output bus of the sub-block processing unit 20 outputs a 1-bit signal as two complementary signals via two signal lines.

[0024] As an example of a mode for outputting a 1-bit signal as two complementary signals through two signal lines, as shown in FIG. 3, when transmitting a signal with a bit value of "0", the signal value of signal line 1 may be set to "0" and the signal value of signal line 1 may be set to "1", and when transmitting a signal with a bit value of "1", the signal value of signal line 1 may be set to "1" and the signal value of signal line 1 may be set to "0".

[0025] Also, as shown in FIG. 4, when transmitting a signal with a bit value of "0", the signal value of signal line 1 may be set to "1" and the signal value of signal line 1 may be transmitted as "0", and when transmitting a signal with a bit value of "1", the signal value of signal line 1 may be set to "0" and the signal value of signal line 1 may be transmitted as "1".

[0026] A phase correction unit 15 is connected to the output bus of each of the plurality of sub-block processing units 20, and corrects the phases of the two signals output from the output bus so that the phases of the two signals match.

[0027] The phase correction unit 15 includes a signal processing unit and a buffer connected to each of the two signal lines. The signal processing unit performs an exclusive OR (XOR) operation on the two signals at a set period. Since the two signals are complementary as described above, if there is no phase shift, the result of the exclusive OR operation is always "1". However, if there is a phase difference between the two signals, there will be a time when the result of the exclusive OR operation becomes "0", and by detecting "0", it is possible to detect the occurrence of a phase shift. In addition, the amount of phase shift between the two signals can be detected by the number of consecutive "0"s.

[0028] Furthermore, when the signal processing unit detects a phase shift between the two signals, it enables a buffer connected to the signal line with the earlier phase and delays the signal with the earlier phase according to the amount of phase shift to align the phases of the two signals. Note that the signal with the earlier phase is determined by comparing the rising (0→1) or falling (1→0) of each of the two signals and determining the signal with the earlier rising or falling timing as the signal with the earlier phase.

[0029] After a 1-bit signal is output from the sub-block processing unit 20a included in the sub-bytes processing unit 12a in the first stage as two complementary signals via two signal lines, the 1-bit signal is output and input as two complementary signals via two signal lines in all processing units. Note that in Figures 1 and 2 and subsequent figures, "x2" written after the number of bits indicates that the signal lines of the output bus of each processing unit are duplicated as described above.

[0030] Returning to Fig. 1, the Shift Rows processing unit 13 performs Shift Rows conversion processing defined by AES on the input data and outputs the processed data. Specifically, the Shift Rows conversion processing is a processing for shifting the input data divided into 4x4 blocks by row according to a certain rule.

[0031] The mixcolumns processing unit 14 performs a mixcolumns conversion process defined by AES on the input data and outputs the processed data. The mixcolumns conversion process is, specifically, a process of converting column vectors of input data divided into 4x4 blocks according to a certain rule.

[0032] Next, the operation of the encryption device 1 will be described. In the encryption device 1, a combination of the processing of the add-round key processing unit 11, the processing of the subbytes processing unit 12, the processing of the shift-rows processing unit 13, and the processing of the mix columns processing unit 14 constitutes one round. Then, the output of the previous round is used as the input of the next round, and the processing of the number of rounds according to the key length is executed, whereby the plaintext is converted into the ciphertext.

[0033] Here, it is assumed that an attacker performs a power analysis on the encryption device 1 and estimates the round key K[1].

[0034] First, let us look at the output portion of the sub-block processing unit 20a in the first round. It is assumed that the voltage is proportional to the number of "1" outputs from the sub-block processing unit 20a.

[0035] The round key K[1] is 128 bits, 192 bits, or 256 bits, but when it is input to the sub-block processing unit 20a, it is divided into 8-bit lengths, added to plaintext data that is also divided into 8-bit lengths, and input to the sub-block processing unit 20a.

[0036] Since the plaintext is a value known to an attacker, if the round key K[1] is assumed, the input value of the sub-block processing unit 20 can be calculated. If the input value is known, the output value can also be calculated.

[0037] Let us assume that the least significant bit of the 8-bit output value of the sub-block processing unit 20a is a "1". If the input data (i.e., plaintext data) is changed, the least significant bit will change accordingly to be a "1" or a "0". Note that the bit of interest is not limited to the least significant bit, and can be any bit. The bit selected is called the selection function.

[0038] An 8-bit round key out of the round key K[1] input to one sub-block processing unit 20a is predicted. Once the round key is assumed and determined, it is determined whether the value of the selection function of the sub-block processing unit 20 is "0" or "1." A large number of random plaintext data are input, and the power consumption waveforms are divided into two groups depending on whether the selection function of the output value is "0" or "1."

[0039] Suppose the predicted round key is correct. In this case, the value of the least significant bit is always correct, so the least significant bit should be correctly classified as a waveform with a "0" or a waveform with a "1". The voltage of the power consumption waveform with the least significant bit classified as a "1" is always one bit larger than the power consumption waveform with the least significant bit classified as a "0". Therefore, if an average is taken over a large amount of plaintext data, the noise is removed and the voltage difference of one bit becomes clearly visible.

[0040] On the other hand, suppose the predicted round key is incorrect. In this case, even though the predicted selection function is "1", "0" or "1" may be output. Conversely, even if the predicted selection function is "0", both "0" and "1" may be output. In either case, the probability of outputting "0" or "1" is 1 / 2, so when the voltage of the power consumption waveform is averaged, it will converge to somewhere between "0" and "1".

[0041] By performing the above-described processing of the power consumption waveform for the selection function for 8 bits, it is possible to identify the 8-bit round key of the round key K[1] input to one sub-block processing unit 20a. Furthermore, by performing the same processing for all sub-block processing units 20a included in the sub-bytes processing unit 12a, it is possible to identify the value of all bits of the 128-bit, 192-bit, or 256-bit round key K[1].

[0042] In addition, after all bits of the round key K[1] have been identified, the values ​​of all bits of the round keys K[2] and onward can be identified by sequentially performing the same process as for the round key K[1].

[0043] In order to prevent the round key K from being identified by analyzing the power consumption of the encryption device 1 as described above, in the encryption device 1 of this embodiment, as shown in Figure 2, the output bus from the sub-block processing unit 20a included in the first-stage sub-bytes processing unit 12a onwards is configured to output a 1-bit signal as two complementary signals via two signal lines.

[0044] As a result, the power consumption is the same regardless of whether the bit value of the signal output from the sub-block processing unit 20 is “0” or “1”, making it impossible to identify the round key K by analyzing the power consumption as described above.

[0045] However, when a 1-bit signal is output as two complementary signals over two signal lines, if the driving frequency is increased to operate the encryption device 1 at high speed, it becomes difficult to align the phases of the two complementary signals.

[0046] Even if the phases of two complementary signals are slightly out of sync, data can be transmitted accurately if the shift is less than the sampling period of the signals, but when multi-stage processing is performed as in the encryption device 1 of this embodiment, the shift accumulates and may result in a shift that is greater than the sampling period. If the phase shift between the two complementary signals exceeds the sampling period, data cannot be transmitted accurately, and there is a risk of malfunction.

[0047] Therefore, in the encryption device 1 of this embodiment, as shown in Figure 2, a phase correction unit 15 that corrects the phases of the two signals output from the output buses is connected to each output bus of the multiple sub-block processing units 20 so that the phases of the two signals match.

[0048] As a result, as shown in Figure 5, two signals output from the sub-block processing unit 20 with a phase shift are corrected in the phase correction unit 15 so that their phases match, and two signals with the same phase are output from the phase correction unit 15.

[0049] Therefore, the phase shift between the two signals is corrected for each processing round, and the shift does not accumulate, so data transmission is not hindered and malfunctions caused by the phase shift between two complementary signals can be suppressed.

[0050] [Second embodiment] Next, an encryption device 2 of a second embodiment will be described. The encryption device 2 of this embodiment is different from the encryption device 1 of the first embodiment in the connection position of the phase correction unit 15. In the encryption device 2 of this embodiment, the same components as those in the encryption device 1 of the first embodiment are given the same reference numerals, and descriptions thereof will be omitted unless otherwise necessary.

[0051] Fig. 6 is a block diagram showing a schematic configuration of the encryption device 2 according to the second embodiment of the present invention, and Fig. 7 is a block diagram showing a schematic configuration of a peripheral circuit of the phase correction unit 15 of the encryption device 2 according to the second embodiment.

[0052] As shown in FIG. 6, the encryption device 2 includes a round key setting unit 10, a plurality of add-round key processing units 11a to 11n, a plurality of sub-byte processing units 12a to 12n-1, a plurality of shift-row processing units 13a to 13n-1, a plurality of mix-column processing units 14a to 14n-1, and a plurality of phase correction units 15a to 15n-1.

[0053] 7, the sub-block processing unit 20a outputs an 8-bit signal in response to an 8-bit signal input. Here, the output bus of the sub-block processing unit 20a outputs a 1-bit signal as two complementary signals via two signal lines.

[0054] In addition, after a 1-bit signal is output as two complementary signals via two signal lines from the sub-block processing unit 20a included in the first-stage sub-byte processing unit 12a, the 1-bit signal is output / input as two complementary signals via two signal lines in all processing units.

[0055] In the encryption device 2 of this embodiment, a phase correction unit 15 that corrects the phases of two signals output from the output bus is connected to the output bus of the shift-lows processing unit 13 so that the phases of the two signals match.

[0056] As a result, as shown in Figure 8, two signals output from the sub-block processing unit 20 and the shift-lows processing unit 13 with a phase shift are corrected in the phase correction unit 15 so that their phases match, and two signals with the same phase are output from the phase correction unit 15.

[0057] Therefore, the phase shift between the two signals is corrected for each processing round, and the shift does not accumulate, so data transmission is not hindered and malfunctions caused by the phase shift between two complementary signals can be suppressed.

[0058] [Third embodiment] Next, an encryption device 3 of a third embodiment will be described. The encryption device 3 of this embodiment is different from the encryption device 1 of the first embodiment in the connection position of the phase correction unit 15. In the encryption device 3 of this embodiment, the same components as those in the encryption device 1 of the first embodiment are given the same reference numerals, and descriptions thereof will be omitted unless otherwise necessary.

[0059] Fig. 9 is a block diagram showing a schematic configuration of an encryption device 3 according to a third embodiment of the present invention, and Fig. 10 is a block diagram showing a schematic configuration of a peripheral circuit of a phase correction unit 15 of the encryption device 3 according to the third embodiment.

[0060] As shown in FIG. 9, the encryption device 2 includes a round key setting unit 10, a plurality of add-round key processing units 11a to 11n, a plurality of sub-byte processing units 12a to 12n-1, a plurality of shift-row processing units 13a to 13n-1, a plurality of mix-column processing units 14a to 14n-1, and a plurality of phase correction units 15a to 15n-1.

[0061] 10, the sub-block processing unit 20a outputs an 8-bit signal in response to an 8-bit signal input. Here, the output bus of the sub-block processing unit 20a outputs a 1-bit signal as two complementary signals via two signal lines.

[0062] In addition, after a 1-bit signal is output as two complementary signals via two signal lines from the sub-block processing unit 20a included in the first-stage sub-byte processing unit 12a, the 1-bit signal is output / input as two complementary signals via two signal lines in all processing units.

[0063] In the encryption device 3 of this embodiment, a phase correction unit 15 that corrects the phases of two signals output from the output bus is connected to the output bus of the mix columns processing unit 14 so that the phases of the two signals match.

[0064] As a result, as shown in Figure 11, two signals output with a phase shift from the sub-block processing unit 20, the shift-lows processing unit 13, and the mix-columns processing unit 14 are corrected to have the same phase in the phase correction unit 15, and two signals with the same phase are output from the phase correction unit 15.

[0065] Therefore, the phase shift between the two signals is corrected for each processing round, and the shift does not accumulate, so data transmission is not hindered and malfunctions caused by the phase shift between two complementary signals can be suppressed.

[0066] Although the encryption devices 1 to 3 according to the embodiments of the present invention have been described above, the present invention is not limited to the above-mentioned embodiments.

[0067] For example, the encryption processing circuit in the encryption devices 1 to 3 is not limited to an encryption processing circuit based on AES, and may be any encryption processing circuit such as an encryption processing circuit based on RSA (Rivest-Shamir-Adleman cryptosystem) or an encryption processing circuit based on elliptic curves.

[0068] In addition to the above, it goes without saying that unnecessary parts may be deleted, new elements may be added, or substitutions may be made to the contents described and illustrated above, without departing from the spirit of the technology of the present disclosure. [Explanation of symbols]

[0069] 1~3 Encryption device 10 Round key setting section 11. Ad-round key processing unit 12 Subbytes Processing Section 13 Shift Lows Processing Unit 14 Mixed column processing section 15 Phase correction section 20 Sub-block processing section

Claims

1. A semiconductor device that performs data encryption processing, a signal processing unit including an output bus for outputting a 1-bit signal as two complementary signals through two signal lines; a phase correction unit that corrects the phases of the two signals output from the output bus so that the phases of the two signals match; A semiconductor device comprising:

2. A semiconductor device that performs encryption processing using AES, a subbytes processing unit that performs subbytes processing; a shift-rows processing unit that performs a shift-rows process on the data output from the subbytes processing unit; a mix columns processing unit that performs a mix columns process on the data output from the shift-rows processing unit, The phase correction unit corrects the phases of two signals output from the output bus of the sub-bytes processing unit serving as the signal processing unit. The semiconductor device according to claim 1 .

3. A semiconductor device that performs encryption processing using AES, a subbytes processing unit that performs subbytes processing; a shift-rows processing unit that performs a shift-rows process on the data output from the subbytes processing unit; a mix columns processing unit that performs a mix columns process on the data output from the shift-rows processing unit, The phase correction unit corrects the phases of two signals output from the output bus of the shift-lows processing unit serving as the signal processing unit. The semiconductor device according to claim 1 .

4. A semiconductor device that performs encryption processing using AES, a subbytes processing unit that performs subbytes processing; a shift-rows processing unit that performs a shift-rows process on the data output from the subbytes processing unit; a mix columns processing unit that performs a mix columns process on the data output from the shift-rows processing unit, The phase correction unit corrects the phases of two signals output from the output bus of the mix column processing unit serving as the signal processing unit. The semiconductor device according to claim 1 .

Citation Information

Patent Citations

  • Tamper-resistant memory integrated circuit and encryption circuit using same

    WO2012014291A1