Encryption device and encryption method
By employing quantum circuits with controlled Hadamard gates to randomize quantum states, the proposed cryptographic technology enhances resistance to side-channel attacks, ensuring secure encryption even with improved attacker capabilities.
Patent Information
- Application Number
- PCT/JP2025/018514
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-05-22
- Publication Date
- 2026-11-26
Smart Images

Figure JP2025018514_26112026_PF_FP_ABST
Abstract
Description
Encryption device and encryption method
[0001] This disclosure relates to encryption devices and encryption methods.
[0002] A technique called leakage-resilient cryptography is known (for example, Non-Patent Document 1). Leakage-resilient cryptography is a cryptographic technique that is as resistant as possible to side-channel attacks in particular.
[0003] Yael Tauman Kalai and Leonid Reyzin. A survey of leakage-resilient cryptography. In Providing Sound Foundations for Cryptography: On the Work of Shafi Goldwasser and Silvio Micali, pages 727-794. 2019.
[0004] However, no absolutely secure leak-proof cryptographic technology exists, and if attackers improve the accuracy of their measurements of electromagnetic waves, currents, voltages, etc., through side-channel attacks, the likelihood of their attacks succeeding increases accordingly.
[0005] This disclosure is made in view of the above points and aims to realize cryptographic technology that is highly resistant to leakage against side-channel attacks.
[0006] An encryption device according to one aspect of the present disclosure comprises an input unit for inputting plaintext to be encrypted, a quantum circuit implemented on a quantum computer, and an encryption unit that generates ciphertext by encrypting the plaintext using a secret key, wherein the quantum circuit is a circuit in which controlled Hadamard gates are arranged before and after a quantum gate that represents a transformation for generating the ciphertext from the plaintext.
[0007] This enables cryptographic technology that is highly resistant to leaks from side-channel attacks.
[0008] This figure shows an example of a block cipher using an SPN structure. This figure shows an example of implementing a block cipher using an SPN structure on a quantum circuit. This figure shows an example of a quantum circuit representing an operator extended to a 2n-qubit unitary operator by arranging n controlled Hadamard gates in parallel. This figure shows an example of a unitary matrix A. This figure shows a unitary matrix V N This is a diagram illustrating an example of a unitary matrix V. L This figure shows an example. This figure shows an example of a proposed quantum circuit. This figure shows an example of the configuration of a cryptographic device according to one embodiment. This figure shows an example of the hardware configuration of a control device according to one embodiment. This figure shows an example of the functional configuration of a control device according to one embodiment. This flowchart shows an example of encryption processing according to one embodiment.
[0009] One embodiment of the present invention will be described in detail below with reference to the drawings.
[0010] <Background Technology> <Quantum Computation> First, we will explain the basics of quantum computing.
[0011] In classical quantum computing, all information is represented by bit sequences. An n-bit bit sequence consists of n 0s or 1s, and the set made up of n-bit bit sequences is {0, 1}. n It is expressed as follows. All possible n-bit sequences (states) are 2 n Hereafter, we will equate the bit string x with the non-negative integer when x is considered as a binary number. In particular, {0, 1} n And, {0, 1, 2, ..., 2 n This is equivalent to {-1}. For example, the 4-bit bit sequence "0101" is equivalent to the integer 5.
[0012] On the other hand, the state of a single qubit (quantum state) is represented by weighting classical bits of 0 and 1 with complex numbers. More specifically, the quantum state of a single qubit is represented in a two-dimensional complex vector space C. 2 It is represented by a unit vector.
[0013] Here, we have a two-dimensional complex vector space C. 2 The vectors are spanned by the following two basis vectors.
[0014]
[0015] Therefore, if the above two basis vectors are represented by the symbols |0⟩ and |1⟩ respectively, the two-dimensional complex vector space C 2 Any unit vector of is a 0 |0⟩ + a 1 It is expressed in the form of |1⟩. However, a 0 and a 1 is |a 0 | 2 +|a 1 | 2 It is a complex number that satisfies =1. Therefore, the quantum state of one qubit is a 0 |0⟩ + a 1 It is expressed as |1⟩.
[0016] For example, the following corresponds to a state in which 0 and 1 are evenly superposed. Such a superposition is called quantum superposition.
[0017]
[0018] Note that |0⟩ and |1⟩ correspond to classical bits 0 and 1, respectively.
[0019] In general, the quantum state of n qubits is represented by similarly weighting a bit string of n bits. That is, specifically, 2 n It is represented by a unit vector in a dimensional complex vector space. 2 n Among the vectors in the dimensional complex vector space, a vector whose xth component is 1 and all remaining components are 0 is represented by the symbol |x⟩. At this time, the quantum state |ψ⟩ of any n qubits is |0⟩, |1⟩, ..., |2 n It is expressed in the form of a linear combination of -1⟩. That is, it is expressed as follows.
[0020]
[0021] However, each a x is a complex number that satisfies the following.
[0022]
[0023] Note that each |x〉 corresponds to x in the classical bit sequence, and the above |ψ〉 is a superposition of each classical bit sequence weighted by a complex number.
[0024] n qubit space (that is, 2 n A complex vector space of dimension n is isomorphic to the product of n tensors of a 1-qubit space (i.e., a two-dimensional complex vector space). That is, an n-qubit space is isomorphic to the following:
[0025]
[0026] In the text of this specification, the operator representing the tensor product will be denoted as (×).
[0027] The above isomorphism is defined as each classical bit sequence x (hereinafter, the i-th bit of this classical bit sequence x is x). i It is represented by . ) Regarding 2 n This can be obtained by associating the basis vectors |x〉 of a complex vector space of a certain dimension with the following:
[0028]
[0029] Therefore, the tensor product of |x〉 and |x 1 > (×) | x 2 〉(×)・・・(×)|x n > is considered identical to |x. Also, the tensor product shown in the above equation 6 is simply |x 1 > | x 2 >...|x n It can be expressed as 〉 or |x 1 x 2 ...x n It can also be expressed as 〉.
[0030] Given two qubits whose states correspond to |ψ〉 and |φ〉 respectively, the overall state corresponds to the tensor product of |ψ〉 and |φ〉: |ψ〉(×)|φ〉.
[0031] To obtain meaningful information from an observed quantum state, an operation called observation is necessary. When making an observation, one orthonormal basis of the vector space to which the quantum state belongs is chosen and fixed, and the observation is then performed with respect to that basis.
[0032] The observed quantum state |φ〉 is n qubits n A complex vector space of dimension (that is, a space that can be represented by the product of n tensors of a two-dimensional complex vector space (C) 2 ) (×)n ) a certain orthonormal basis { |v i 〉|i=0,1,...,2 n Let's assume that -1} is determined. In this case, Σ i |b i | 2 b is a complex number that satisfies = 1. i (i=0,1,...,2 n -1) There exists a |φ〉= Σ i b i |v i > holds true. When the quantum state |φ> is observed, the probability |b i | 2 So "|v i The classical information obtained is that "> was observed", and the quantum state is |v i This change is irreversible. This phenomenon can also be interpreted as meaning that the information contained in a quantum state is uncertain until it is observed. Unless observation is performed, meaningful information cannot be obtained from the quantum state.
[0033] For example, when the following one-qubit quantum state |+> is observed with respect to the basis {|0>, |1>}, there is a probability of 1 / 2 that either 0 or 1 will be obtained.
[0034]
[0035] Furthermore, for example, if we observe |0〉 with respect to the same basis, we obtain 0 with a probability of 1.
[0036] Furthermore, using the following single-qubit quantum state |->, {|+>, |->} constitutes an orthonormal basis.
[0037]
[0038] In this case, when |+> is observed with respect to the basis {|+>, |->}, "+" is obtained with a probability of 1. Also, when |0> is observed with respect to the basis {|+>, |->}, "+" or "-" is obtained with a probability of 1 / 2 each.
[0039] It should be noted that prior information about the quantum state being observed is also important. For example, if we know that the quantum state we have is either |0> or |1>, we can determine whether the quantum state is |0> or |1> by making an observation on the basis {|0>, |1>}. However, if, for example, we have no idea whether the quantum state we have is one of |0>, |1>, |+>, or |->, and each has a 1 / 4 probability, then there is no way to determine it completely. Even if we obtain 0 as a result of observing on the basis {|0>, |1>}, the original quantum state could have been either |0> or |+>.
[0040] Quantum circuits: Classical calculations involving bit sequences can be represented as circuits combining several gates such as AND gates, NOT gates, and XOR gates. Similarly, quantum computation also involves several basic gates, and can be represented as circuits (quantum circuits) that combine these gates.
[0041] The difference from classical computation is that the gates of quantum circuits (quantum gates) always have the same number of input and output bits. A classical AND gate takes two bits x and y as inputs and outputs a one bit x ∧ y, but a quantum gate, if it has two bits as input, will also have a two-bit output. All quantum gates (and all quantum circuits) are required to be represented by unitary matrices.
[0042] For example, a quantum gate H called an Adamard gate has one qubit for both input and output bits, satisfying H|0>=|+> and H|1>=|->. In other words, the Adamard gate swaps the orthonormal basis {|0>, |1>} with {|+>, |->}, or vice versa.
[0043] Furthermore, for example, the quantum gate CH, known as the controlled Hadamard gate, has two input and output bits. If one bit is 1, the Hadamard gate H is applied to the other bit; if it is 0, nothing happens. In other words, the controlled Hadamard gate CH is a quantum gate that satisfies the following conditions:
[0044]
[0045] Furthermore, a quantum gate called a CCNOT gate (or Toffoli gate), which has three qubits for input and output, is a quantum gate that satisfies the following conditions when a, b, and c are each considered as one classical bit:
[0046]
[0047] In the text of this specification, the operator representing the exclusive OR (XOR) operation will be denoted as (+).
[0048] When c=0 is set in the above-mentioned CCNOT gate, this quantum gate produces the same result as a classical AND computation; therefore, a CCNOT gate with c=0 can be said to be a quantum gate corresponding to an AND gate. Similarly, there are quantum gates corresponding to NOT gates, XOR gates, etc. In particular, by replacing each gate of any classical circuit with its corresponding quantum gate, a classical circuit can be converted into a quantum circuit. In this sense, quantum circuits can be considered a complete extension of classical circuits.
[0049] When realizing quantum error-corrected quantum circuits as actual physical devices, a mechanism is needed to correct errors that occur due to unintended corruption of quantum states, etc. Such a mechanism is called quantum error correction. In the following, we will assume that quantum error correction is fully implemented and ignore errors that occur during quantum computation.
[0050] ≪Side-Channel Attacks≫ When there is a certain encryption algorithm (e.g., the RSA encryption algorithm), there is no single fixed method for how to program it into a computer program or how to implement it as an electronic circuit. For example, if two programmers, A and B, each program the RSA encryption algorithm, even if the inputs and outputs of their implemented algorithms are identical, it is often the case that programmer A's implementation will be overwhelmingly faster in execution time. The same applies when implementing an encryption algorithm as an electronic circuit; even with the same algorithm, there are various ways to construct the circuit (e.g., where and how many AND and XOR operations to use, etc.).
[0051] Typical attacks against cryptography include "inferring the original plaintext from the ciphertext" or "inferring the private key from the public key of a public-key cryptosystem." These attacks use only information obtained from data such as the ciphertext and public key. Therefore, other information (e.g., "how the encryption algorithm is specifically programmed" or "how it is implemented as an electronic circuit") is not used.
[0052] On the other hand, attacks known as side-channel attacks utilize information obtained from the implementation, such as "how the encryption algorithm is specifically programmed" or "how it is implemented as an electronic circuit." For example, if an encryption algorithm is implemented as an electronic circuit, the pattern of electromagnetic waves emitted during computation (e.g., a specific waveform when a specific value is processed by a specific computing element at a specific location, and a different waveform when a different value is processed) can sometimes be inferred to some extent from the circuit structure. By utilizing this, the electromagnetic waves emitted from the circuit during encryption processing can be analyzed, and information about the secret key can sometimes be obtained from the analysis results.
[0053] A typical model of a side-channel attack assumes that the Hamming weight Hw(x) is leaked when a certain value x passes through some arithmetic element, or that the number of bits that change when the input value to the arithmetic element changes from x to x' is leaked, Hw(x(+)x').
[0054] For more detailed information on side-channel attacks, please refer to, for example, Reference 1.
[0055] <<Leak-tolerant Cryptography>> Leak-tolerant cryptography refers to cryptographic techniques that are as resistant as possible, especially to side-channel attacks. While the leak resistance envisioned by leak-tolerant cryptography may also include resistance to attacks other than side-channel attacks (e.g., resistance to malware intrusion), this will not be explained further below.
[0056] There are two main types of leak-proof cryptographic techniques: (a) and (b).
[0057] (i) Modify the implementation methods of existing cryptographic technologies (e.g., AES) to make them leak-resistant.
[0058] (ii) Design a new algorithm specifically designed for leak resistance from the outset.
[0059] In the following, we will assume the leak-tolerant cryptographic technique of method (i) described above.
[0060] For more detailed information on leak-proof cryptography, please refer to, for example, Non-Patent Document 1.
[0061] <Challenges of Conventional Leak-Tolerant Cryptographic Technologies> Although various methods have already been proposed as leak-tolerant cryptographic technologies for the method described in (i) above, there is no leak-tolerant cryptographic technology that is absolutely secure. The better the performance of the equipment that can be used for side-channel attacks, the more accurately various information such as electromagnetic waves and circuit currents and voltages can be measured, thus increasing the likelihood of a successful attack. For this reason, there is a need for technologies that make it difficult for an attacker's measurement accuracy to lead to a successful attack (i.e., technologies that make it difficult for information such as the Hamming weights of some values in a circuit being calculated to leak).
[0062] <Proposed Technology> Below, we propose a cryptographic technology that is highly resistant to leakage against side-channel attacks. The proposed technology is a symmetric-key cryptographic technology that uses quantum computers to make it difficult for an attacker to increase their chances of success even if their measurement capabilities improve. More specifically, the proposed technology appropriately implements existing symmetric-key cryptographic algorithms (especially block ciphers with an SPN structure (Substitution Permutation Network Structure)) on quantum computers (implemented on quantum circuits), making it difficult for an attacker to obtain information due to the uncertainty inherent in the quantum state, even if they try to measure the contents of the quantum circuit with high precision.
[0063] <<Preparation: Block Cipher Using SPN Structure>> Before explaining the details of the proposed technology, we will explain the SPN structure as preparation. The SPN structure is a structure widely used in block ciphers such as AES. Figure 1 shows an example of a block cipher using the SPN structure. In Figure 1, plaintext x is encrypted using a secret key K with an n-bit block cipher E using the SPN structure, and the ciphertext E is obtained. K This shows the process of calculating (x). Here, k 0 ,k 1 , ..., k r x is a value calculated from the private key K, and is called a round key or partial key. (Plaintext x, Ciphertext E) K (x) and each round key k i All values are n bits. Also, N = {0, 1} n → {0, 1} n and L: {0, 1} n → {0, 1}n L is an n-bit permutation (i.e., a bijection whose domain and range are sets of n-bit sequences). L is linear (i.e., satisfies L(x(+)y) = L(x)(+)L(y)), while N is nonlinear. N is also called an S-Box and L is called a P-Box.
[0064] In the block cipher E using the SPN structure shown in Figure 1, the plaintext x is converted into ciphertext E by following steps 1 and 2 below. K It will be encrypted as (x).
[0065] Step 1: Round key k from private key K 0 ,k 1 , ..., k r Create.
[0066] Step 2: Round key k for plaintext x 0 The value obtained by the exclusive OR of these two values is the initial internal state S. 0 For i = 1, ..., r, the following processes (a) to (c) are repeatedly executed. Below, the internal state of the i-th is S i Let's assume that.
[0067] (a) Apply a nonlinear substitution N and set the internal state to S i ←N(S) i-1 ) and update.
[0068] (b) Apply a linear substitution L to the internal state S i ←L(S) i ) and update.
[0069] (c) Round key k i Applying the exclusive OR with, the internal state is S i ←S i (+)k i Update it.
[0070] Therefore, E K (x) = S r You can obtain this.
[0071] When the above block cipher E is implemented on a quantum circuit, the quantum circuit becomes as shown in Figure 2. Figure 2 shows an example of implementing a block cipher using an SPN structure on a quantum circuit. In Figure 2, U N For any n-bit quantum state |φ〉, the following UN This is a unitary matrix satisfying |φ⟩ implemented as a quantum circuit.
[0072]
[0073] Similarly, in FIG. 2, U L For any of the following n-bit quantum states |φ⟩, the following U L This is a unitary matrix satisfying |φ⟩ implemented as a quantum circuit.
[0074]
[0075] In FIG. 2, the black circle represents a control bit, and the symbol with a + sign inside a white circle represents applying an X gate (a quantum gate corresponding to exclusive OR) to the target bit.
[0076] ≪Details of the proposed technology≫ First, n controlled Hadamard gates CH are arranged in parallel and expanded to a unitary operator of 2n qubits (CH) (×)n shall operate as follows.
[0077]
[0078] Here, r and x are n-bit bit strings, r i is the i-th bit of r, x i is the i-th bit of x.
[0079] When the above operator (CH) (×)n is represented by a quantum circuit, the quantum circuit shown in FIG. 3 is obtained. Note that (CH) (×)n ·(CH) (×)n =I n (identity map).
[0080] Using the above operator (CH) (×)n , three unitary matrices A, V N , V L are defined as shown in FIGS. 4 to 6. Regarding the quantum circuit that implements the unitary matrix A, in order to later clarify which of the three registers it corresponds to, L K , L X , L R labels are attached.
[0081] The above unitary matrices A, V N , V L Using the operators (unitary operators) represented by these matrices, the block cipher E is implemented on a quantum circuit as shown in Figure 7. Here, in Figure 7, r is randomly selected each time encryption is performed. (CH) (×)n · (CH) (×)n = I n And from the definitions of the unitary matrices A, V N , V L It can be seen that the quantum circuit shown in Figure 7 (hereinafter also referred to as the "proposed quantum circuit") is completely equivalent to the quantum circuit shown in Figure 2 (that is, if the input is the same, the output will also be the same). In particular, when the input is classical information (that is, not in a quantum superposition state), the output is also classical information, so the proposed quantum circuit shown in Figure 7 can be used for encrypting classical data.
[0082] Note that for the unitary matrix A included in the proposed quantum circuit shown in Figure 7, the register corresponding to the label L K should be noted that it differs for each unitary matrix A. For example, in the proposed quantum circuit shown in Figure 7, in the first unitary matrix A, the register corresponding to |k 0 〉 is the register corresponding to label L K K , and in the second unitary matrix A, the register corresponding to |k 1 〉 is the register corresponding to label L K . In general, in the i-th unitary matrix A, the register corresponding to |k i-1 〉 is the register corresponding to label L K .
[0083] ≪Intuitive Explanation of the Proposed Technology≫ Applying a 1-qubit Hadamard gate H, roughly speaking, means replacing the orthonormal basis of the vector space C (×)2 to which the qubit belongs from {|0〉, |1〉} to {|+〉, |-〉} (or vice versa). Therefore, by randomly selecting r, (CH) (×)nApplying this means "randomly selecting qubits from the n qubits of |x〉 according to r, and replacing them with an orthonormal basis of the selected qubits." Also, the above unitary matrices A, V N , V L These operations correspond to "randomly selecting a qubit according to a randomly selected r, swapping the basis of the selected qubit, applying the key's XOR, permutation N, and permutation L respectively, and immediately restoring the basis." In particular, when applying the key's XOR, permutation N, and permutation L, the basis appears to the attacker as being randomly swapped, making it impossible to predict which basis is being used.
[0084] If an attacker attempts to measure information from a quantum circuit using a side-channel attack, they need to observe the quantum information using some basis to measure it. However, since the attacker cannot predict which basis is currently being used for which bit, it becomes extremely difficult for them to obtain useful information by observing the information with an inappropriate basis. Therefore, by using the proposed quantum circuit shown in Figure 7, even if the attacker's measurement accuracy improves, it is expected that information leakage from the proposed quantum circuit will be less likely to occur, making it less likely for the attack to succeed.
[0085] Below, the plaintext x is encrypted using the proposed technology described above to produce ciphertext E. K The cryptographic device 10 that generates (x) will be described below.
[0086] <Example of the configuration of the cryptographic device 10> Figure 8 is a diagram showing an example of the configuration of the cryptographic device 10 according to one embodiment. As shown in Figure 8, the cryptographic device 10 according to one embodiment includes a control device 100 and a quantum processor 200.
[0087] The control device 100 transmits control signals to the quantum processor 200 and obtains calculation results from the quantum processor 200. This enables quantum computing by the quantum processor 200. The control device 100 can be implemented, for example, by a classical computer.
[0088] The quantum processor 200 constitutes a quantum two-level system called a qubit (physical qubit), and executes quantum circuits in response to control signals from the control device 100, thereby realizing quantum computation using physical operations such as initialization, gate operations (unitary operations), and measurement for the physical qubit. The quantum system for realizing the qubit is not particularly limited, and any quantum system (e.g., superconducting circuits, ion traps, photons, quantum dots, etc.) may be used. The quantum processor 200 may also be called, for example, a "quantum computer," "quantum device," or "quantum hardware."
[0089] <Example of Hardware Configuration of Control Device 100> Figure 9 is a diagram showing an example of the hardware configuration of a control device 100 according to one embodiment. As shown in Figure 9, the control device 100 according to one embodiment includes an input device 101, a display device 102, an external I / F 103, a communication I / F 104, a RAM (Random Access Memory) 105, a ROM (Read Only Memory) 106, an auxiliary storage device 107, and a processor 108. Each of these hardware components is connected to communicate via a bus 109.
[0090] The input device 101 is, for example, a keyboard, mouse, touch panel, or physical button. The display device 102 is, for example, a display or display panel. The control device 100 does not necessarily have to have at least one of the input device 101 and the display device 102.
[0091] The external I / F 103 is an interface with external devices such as the recording medium 103a. Examples of recording media 103a include CDs (Compact Discs), DVDs (Digital Versatile Disks), SD memory cards (Secure Digital memory cards), and USB (Universal Serial Bus) memory cards.
[0092] The communication interface 104 is an interface for sending and receiving various signals with the quantum processor 200. The RAM 105 is a volatile semiconductor memory (storage device) that temporarily holds programs and data. The ROM 106 is a non-volatile semiconductor memory (storage device) that can retain programs and data even when the power is turned off. The auxiliary storage device 107 is a non-volatile storage device (storage device) such as an HDD (Hard Disk Drive), SSD (Solid State Drive), or flash memory. The processor 108 is an arithmetic unit such as a CPU (Central Processing Unit).
[0093] Note that the hardware configuration shown in Figure 9 is just one example, and the hardware configuration of the control device 100 is not limited to this. For example, the control device 100 may have multiple auxiliary storage devices 107 and multiple processors 108, it may not have some of the hardware shown, or it may have various other hardware components besides the hardware shown.
[0094] <Example of Functional Configuration of Control Device 100> Figure 10 is a diagram showing an example of the functional configuration of a control device 100 according to one embodiment. As shown in Figure 10, the control device 100 according to one embodiment has an input unit 110, an encryption unit 111, and an output unit 112. Each of these units is realized, for example, by a process in which one or more programs installed in the control device 100 are executed by a processor 108 or the like.
[0095] The input unit 110 receives a given plaintext x as input. The encryption unit 111 uses a proposed quantum circuit implemented on the quantum processor 200 to convert the plaintext x input by the input unit 110 into ciphertext E K (x) is generated. The output unit 112 outputs the ciphertext E generated by the encryption unit 111. K (x) is output to a predetermined output destination (e.g., the storage area of the auxiliary storage device 107, other devices that are connected to the control device 100 in a communicative manner, etc.).
[0096] <Example of encryption processing> Figure 11 is a flowchart showing an example of encryption processing according to one embodiment. Hereinafter, it is assumed that the control device 100 is provided with n bits of plaintext x. The plaintext x may be stored, for example, in the storage area of the auxiliary storage device 107.
[0097] The input unit 110 receives the given plaintext x (step S101).
[0098] The encryption unit 111 uses the proposed quantum circuit implemented on the quantum processor 200 to convert the plaintext x input in step S101 into ciphertext E K (x) is generated (step S102). That is, the encryption unit 111 generates a quantum state |x〉 corresponding to the plaintext x, a quantum state |x〉 corresponding to a randomly selected n-bit random number r, and a round key k generated from the secret key K. 0 ,k 1 , ..., k r The corresponding quantum states |k 0 >, |k 1 >, ..., | k r > is used as input to control the quantum processor 200 and execute the proposed quantum circuit implemented on the quantum processor 200, thereby generating the ciphertext E K (x) Corresponding quantum state |E K The (x)〉 is calculated. Then, the encryption unit 111 determines the quantum state |E K By observing (x), the ciphertext E K (x) is obtained. This allows us to obtain the ciphertext E from the plaintext x. K (x) is generated.
[0099] The output unit 112 outputs the ciphertext E generated in step S102 above. K (x) is output to a predetermined output destination (step S103).
[0100] <Summary> As described above, the cryptographic device 10 according to one embodiment uses the proposed quantum circuit shown in Figure 7 to convert plaintext x into ciphertext E K(x) is generated. Here, the proposed quantum circuit shown in Figure 7, when applying XOR with the round key, substitution N and L, randomly swaps the basis from {|0>, |1>} to {|+>, |->} (or vice versa) depending on the randomly selected r each time.
[0101] On the other hand, for an attacker in a side-channel attack to measure leaked information from a quantum circuit essentially means observing the quantum state with some basis. However, in the proposed quantum circuit shown in Figure 7, even if an attacker tries to measure some information to obtain information about the quantum circuit (e.g., a change in the Hamming weight of some part of the quantum circuit), it is difficult to predict which bit is currently using which basis. As a result, the attacker will end up observing with an inappropriate basis, making it very difficult for the attacker to obtain useful information. Therefore, by using the proposed quantum circuit shown in Figure 7, even if the attacker's measurement accuracy improves, it is expected that it will be easier to prevent information from leaking from the proposed quantum circuit, making it less likely for the attack to succeed.
[0102] Although the above embodiment of the cryptographic device 10 only describes the encryption process of plaintext x, the decryption process is the inverse transformation of the encryption process. Therefore, when ciphertext C is given, it is possible to decrypt it in the same way using the same secret key K. That is, it is possible to decrypt ciphertext C by performing the reverse order and reverse operation of the encryption process. For this reason, the above embodiment of the cryptographic device 10 may have a decryption unit that, when ciphertext C is given, decrypts it using the secret key K and a quantum circuit that realizes the inverse transformation of the proposed quantum circuit.
[0103] <Related Existing Technologies> As an existing technology related to the proposed technology, there is the technology described in Reference 2. Reference 2 provides a classical leak-tolerant implementation using knowledge of fault-tolerant quantum computing. The purpose of the technology described in Reference 2 is to create a leak-tolerant classical circuit, and a quantum circuit is obtained as an intermediate byproduct. While the configuration is theoretically very sophisticated, it involves the steps of first converting each gate of the original classical circuit into a quantum circuit composed of Toffoli gates, etc., and then replacing each of those gates with a further fault-tolerant configuration. As a result, the classical circuit that is ultimately created is much more complex than the original classical circuit. In contrast, the proposed quantum circuit is a very simple implementation that only inserts a few controlled Hadamard gates CH in the middle of the circuit representing the original encryption process. As a result, the proposed quantum circuit is expected to be more compact and efficient than the technology described in Reference 2.
[0104] <Supplement> The functions of the elements disclosed herein may be implemented using circuits or processing circuits that include general-purpose processors, special-purpose processors, integrated circuits, ASICs (Application Specific Integrated Circuits), FPGAs (Field Programmable Gate Arrays), conventional circuits, and / or combinations thereof that are programmed using one or more programs stored in one or more memories, or otherwise configured to perform the disclosed functions. A processor is considered a circuit or processing circuit because it includes transistors and other circuits. A processor may be a programmed processor that executes programs stored in memory. In this disclosure, a circuit, unit, or means is hardware that performs the enumerated functions, or hardware programmed to perform the enumerated functions. Hardware may be any hardware disclosed herein that is programmed or configured to perform the enumerated functions.
[0105] There is a memory for storing a computer program that includes computer instructions. These computer instructions provide logic and routines that enable hardware (e.g., circuits or processing circuits) to perform the methods disclosed herein. This computer program can be implemented in commonly known forms as a computer-readable storage medium, a computer program product, a memory device, a recording medium such as a CD-ROM or DVD, and / or memory of an FPGA or ASIC.
[0106] The following additional information is disclosed regarding the embodiments described above.
[0107] (Note 1) An encryption device comprising a memory and at least one processor connected to the memory, wherein the processor inputs plaintext to be encrypted, generates ciphertext by encrypting the plaintext using a quantum circuit implemented on a quantum computer and a secret key, and the quantum circuit is a circuit in which controlled Hadamard gates are placed before and after a quantum gate that represents a transformation for generating the ciphertext from the plaintext. (Note 2) The encryption device according to Note 1, wherein the transformation includes a transformation that takes the exclusive OR of a subkey generated from the secret key, a nonlinear transformation, and a linear transformation. (Note 3) The encryption device according to Note 2, wherein the nonlinear transformation is an S-Box in an SPN structure, and the linear transformation is a P-Box in an SPN structure. (Note 4) The encryption device according to any one of Notes 1 to 3, wherein the processor selects a random value with the same number of bits as the plaintext, uses a qubit representing a quantum state corresponding to the random value as the control bit of the controlled Hadamard gate, and a qubit representing a quantum state corresponding to the plaintext as the target bit of the controlled Hadamard gate to generate the ciphertext from the plaintext. (Note 5) The encryption device according to Note 4, wherein the processor selects a random value with the same number of bits as the plaintext each time the plaintext is encrypted. (Note 6) The non-temporary storage medium storing a program that can perform encryption processing by a computer, wherein the encryption processing inputs plaintext to be encrypted, generates ciphertext by encrypting the plaintext using a quantum circuit implemented on a quantum computer and a secret key, and the quantum circuit is a circuit in which controlled Hadamard gates are arranged before and after a quantum gate that represents a transformation for generating the ciphertext from the plaintext.
[0108] The present invention is not limited to the embodiments specifically disclosed above, and various modifications, changes, and combinations with known technologies are possible without departing from the spirit of the claims.
[0109] [References] Reference 1: Francois-Xavier Standaert. Introduction to side-channel attacks. Secure integrated circuits and systems, pages 27-42, 2010. Reference 2: Felipe Gomes Lacerda, Joseph M. Renes, and Renato Renner. Classical leakage resilience from fault-tolerant quantum computation. J. Cryptol., 32(4):1071-1094, 2019.
[0110] 10 Encryption device 100 Control device 101 Input device 102 Display device 103 External I / F 103a Recording medium 104 Communication I / F 105 RAM 106 ROM 107 Auxiliary storage device 108 Processor 109 Bus 110 Input unit 111 Encryption unit 112 Output unit 200 Quantum processor
Claims
1. An encryption device comprising: an input unit for inputting plaintext to be encrypted; an encryption unit that generates ciphertext by encrypting the plaintext using a quantum circuit implemented on a quantum computer and a secret key, wherein the quantum circuit is a circuit in which controlled Hadamard gates are placed before and after a quantum gate that represents a transformation for generating the ciphertext from the plaintext.
2. The encryption device according to claim 1, wherein the transformation includes a transformation that takes the exclusive OR of a partial key generated from the secret key, a nonlinear transformation, and a linear transformation.
3. The encryption device according to claim 2, wherein the nonlinear transformation is an S-Box in an SPN structure, and the linear transformation is a P-Box in an SPN structure.
4. The encryption device according to any one of claims 1 to 3, wherein the encryption unit selects a random value with the same number of bits as the plaintext, uses a qubit representing a quantum state corresponding to the random value as the control bit of the controlled Hadamard gate, and uses a qubit representing a quantum state corresponding to the plaintext as the target bit of the controlled Hadamard gate to generate the ciphertext from the plaintext.
5. The encryption device according to claim 4, wherein the encryption unit selects a random value with the same number of bits as the plaintext each time the plaintext is encrypted.
6. An encryption method comprising: an input procedure for inputting plaintext to be encrypted; an encryption procedure for generating ciphertext by encrypting the plaintext using a quantum circuit implemented on a quantum computer and a secret key, wherein the computer executes the following steps, and the quantum circuit is a circuit in which controlled Hadamard gates are placed before and after a quantum gate that represents a transformation for generating the ciphertext from the plaintext.
