Encryption device, decryption device, encryption method, and encryption program

The encryption device and method extend key length support in cryptographic systems by dividing excess key length into constants and input parameters, enhancing security against quantum computers without altering the encryption algorithm, effectively addressing the vulnerability of traditional 128-bit keys.

WO2024181563A1PCT designated stage expired Publication Date: 2024-09-06KDDI CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/007800
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-02
Filing Date
2024-03-01
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Traditional cryptographic systems using 128-bit keys are vulnerable to quantum computers, necessitating the use of 256-bit keys for 128-bit security, but higher security levels require support for longer key lengths.

Method used

An encryption device, decryption device, and method that accept keys longer than the specified length by dividing the excess key into constants and input parameters for the stream encryption method, allowing existing systems to support longer keys without altering the encryption algorithm, using techniques like Rocca, Rocca-S, AEGIS, and ChaCha.

Benefits of technology

Enables existing encryption systems to support keys longer than the original design, enhancing security up to twice the original key length without modifying the encryption method, thereby providing improved resistance against quantum computer attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024007800_06092024_PF_FP
    Figure JP2024007800_06092024_PF_FP
Patent Text Reader

Abstract

This encryption device comprises: a parameter setting unit that receives an input of a key longer than a prescribed key length for use in a prescribed stream encryption system, divides a part exceeding the prescribed key length, and allocates the part as a constant which is an input parameter of the stream encryption system; an initialization processing unit that initializes the stream encryption system on the basis of the input parameter allocated by the parameter setting unit; and an encryption execution unit that executes encryption in accordance with the stream encryption system.
Need to check novelty before this filing date? Find Prior Art

Description

Encryption device, decryption device, encryption method, and encryption program

[0001] This disclosure relates to a technique for improving the security of cryptographic methods. This application claims priority to Japanese Patent Application No. 2023-031548, filed on March 2, 2023, the contents of which are incorporated herein by reference.

[0002] Conventionally, symmetric key cryptography using a 128-bit key has been widely used, but for quantum computers that can execute calculation algorithms more efficiently than classical computers, 128 ) and it has been pointed out that there is a possibility that it may be decrypted by a large-scale quantum computer. Therefore, in order to ensure 128-bit security even against quantum computers, encryption methods compatible with 256-bit key lengths have been proposed (see, for example, Non-Patent Documents 1 to 3).

[0003] Hongjun Wu and Bart Preneel, AEGIS: A Fast Authenticated Encryption Algorithm, Selected Areas in Cryptography -- SAC 2013.Daniel J. Bernstein. ChaCha, a variant of Salsa20. In Workshop Record of SASC, volume 8, 2008.K. Sakamoto, F. Liu, Y. Nakano, S. Kiyomoto and T. Isobe. Rocca: An Efficient AES-based Encryption Scheme for Beyond 5G. IACR Transactions on Symmetric Cryptology, 2021(2), 1-30.

[0004] By using a 256-bit key, 128-bit security can be ensured even against quantum computers, but to achieve even higher security, an encryption method that supports longer key lengths is desired.

[0005] An example of an object of the present disclosure is to provide an encryption device, a decryption device, an encryption method, and an encryption program that can support keys longer than a specified key length in existing encryption methods.

[0006] The encryption device according to the present disclosure includes a parameter setting unit that accepts input of a key longer than a specified key length used in a specified stream encryption method, divides the portion exceeding the specified key length, and assigns it as a constant that is an input parameter of the stream encryption method; an initialization processing unit that initializes the stream encryption method using the input parameters assigned by the parameter setting unit; and an encryption execution unit that performs encryption in accordance with the stream encryption method.

[0007] The constant may be a value that is initialized as part of the internal state of the stream cipher.

[0008] The stream encryption method may be Rocca or Rocca-S, and the parameter setting unit may assign a portion of a 512-bit key to each of two 128-bit constants.

[0009] The decryption device according to the present disclosure includes a parameter setting unit that accepts input of a key longer than a specified key length used in a predetermined stream encryption method, divides the portion exceeding the specified key length, and assigns it as a constant that is an input parameter of the stream encryption method; an initialization processing unit that initializes the stream encryption method using the input parameters assigned by the parameter setting unit; and a decryption execution unit that decrypts a ciphertext output by an encryption device described in any one of claims 1 to 3 in accordance with the stream encryption method.

[0010] The encryption method according to the present disclosure is executed by a computer, and includes a parameter setting step of accepting input of a key longer than a specified key length used in a specified stream encryption method, dividing the portion exceeding the specified key length, and assigning it as a constant that is an input parameter of the stream encryption method; an initialization processing step of initializing the stream encryption method using the input parameters assigned in the parameter setting step; and an encryption execution step of performing encryption in accordance with the stream encryption method.

[0011] The encryption program according to the present disclosure is for causing a computer to function as the encryption device.

[0012] According to the present disclosure, as an example, it is possible to support keys longer than the specified key length in existing encryption methods.

[0013] It is a diagram showing the functional configuration of an encryption device in an embodiment. It is a diagram showing an example of a parameter setting method in an embodiment. It is a diagram showing the functional configuration of a decryption device in an embodiment.

[0014] An example of an embodiment of the present disclosure will be described below. The encryption method of this embodiment is an improved method for existing stream ciphers. When encrypting data using a stream cipher, initialization must be performed as the first step. There are three values ​​to be input into the encryption program during initialization: a key, an initial value, and a constant. In this embodiment, of these three values, a part of the key is input for the constant instead of the original value, thereby supporting keys longer than the key length originally supported by the encryption method.

[0015] 1 is a diagram showing the functional configuration of an encryption device 1 according to this embodiment. The encryption device 1 is an information processing device (computer) that includes a control unit 11, a storage unit 12, and various communication devices, and may be a general-purpose device such as a server or a personal computer, or may be small hardware such as a mobile terminal or an IoT (Internet of Things) device.

[0016] The control unit 11 is a part that controls the entire encryption device 1, and realizes each function in this embodiment by appropriately reading and executing various programs stored in the storage unit 12. The control unit 11 may be a CPU (Central Processing Unit). The storage unit 12 is a storage area for various programs and various data for causing the hardware group to function as the encryption device 1, and may be a ROM (Read Only Memory), RAM (Random Access Memory), flash memory, hard disk drive (HDD), etc.

[0017] The encryption device 1 may be configured such that the control unit 11 executes the encryption program stored in the memory unit 12, but the control unit 11 and the memory unit 12 may also be implemented as hardware circuits dedicated to the encryption device 1.

[0018] The control unit 11 includes a parameter setting unit 111 , an initialization processing unit 112 , and an encryption execution unit 113 .

[0019] When the parameter setting unit 111 receives an input of a key longer than the specified key length used in a predetermined stream encryption method, it divides the portion exceeding the specified key length and assigns it as a constant, which is an input parameter of the stream encryption method. This constant is a value that is initialized as part of the internal state of the stream encryption method.

[0020] 2 is a diagram illustrating a parameter setting method in this embodiment. In this example, an encryption method with a specified key length of 256 bits and a constant of 256 bits is described.

[0021] The input parameters for initializing the internal state are a key, an initial value, and a constant, but the key can only be set to 256 bits. To make this encryption method compatible with a 512-bit key, the parameter setting unit 111 divides 256 bits of the 512-bit key and sets them as a constant. Note that a different initial value is set each time the initialization process is performed.

[0022] The keys and constants set in this manner are common values ​​on the encryption side (encryption device 1) and the decryption side (decryption device 2), and as a result, encryption and decryption are possible without modifying the encryption method (algorithm).

[0023] The initialization processing unit 112 initializes the stream encryption method using the input parameters assigned by the parameter setting unit 111. The encryption execution unit 113 executes encryption in accordance with the algorithm of the target stream encryption method.

[0024] 3 is a diagram showing the functional configuration of the decryption device 2 in this embodiment. The decryption device 2 is a device that decrypts data encrypted by the encryption device 1 using a corresponding decryption algorithm. Like the encryption device 1, the decryption device 2 is an information processing device (computer) that includes a control unit 21, a storage unit 22, and various communication devices, and may be a general-purpose device such as a server or a personal computer, or may be small hardware such as a mobile terminal or IoT device.

[0025] The control unit 21 is a part that controls the entire decoding device 2, and realizes each function of this embodiment by appropriately reading and executing various programs stored in the storage unit 22. The control unit 21 may be a CPU. The storage unit 22 is a storage area for various programs and various data for causing the hardware group to function as the decoding device 2, and may be a ROM, RAM, flash memory, hard disk drive (HDD), etc.

[0026] In addition, the decoding device 2 may be configured so that the control unit 21 executes the decoding program stored in the memory unit 22, but the control unit 21 and the memory unit 22 may also be implemented as hardware circuits dedicated to the decoding device 2.

[0027] The control unit 21 includes a parameter setting unit 211 , an initialization processing unit 212 , and a decoding execution unit 213 .

[0028] The parameter setting unit 211 and the initialization processing unit 212 respectively perform the same functions as the parameter setting unit 111 and the initialization processing unit 112 of the encryption device 1. That is, as described above, the keys and constants are shared between the encryption side (encryption device 1) and the decryption side (decryption device 2) and initialization is performed, thereby enabling encryption and decryption without modifying the encryption method (algorithm).

[0029] The decryption execution unit 213 is a functional unit corresponding to the encryption execution unit 113 of the encryption device 1, and executes decryption of data encrypted by the encryption device 1 in accordance with the algorithm of the target stream encryption method.

[0030] Here, the initialization process improved by this embodiment will be described by taking a specific example of the stream encryption method in question.

[0031] [AEGIS] In the case of the encryption method AEGIS-256, which is specified in Non-Patent Document 1 and has a key length of 256 bits, during initialization, the key K, initial value IV, and constant const are set for six internal states S (128 bits each) as follows: S(-16,0) = K(256,0) + IV(256,0); S(-16,1) = K(256,1) + IV(256,1); S(-16,2) = const1; S(-16,3) = const0; S(-16,4) = K(256,0) + const0; S(-16,5) = K(256,1) + const1 (where + denotes bitwise exclusive OR).

[0032] K(256,0) and K(256,1) are the first 128 bits and the last 128 bits, respectively, of the 256-bit key K. Const1 and const0 are the first 128 bits and the last 128 bits, respectively, of the constant const. IV(256,0) and IV(256,1) are the first 128 bits and the last 128 bits, respectively, of the initial value IV.

[0033] Here, to accommodate a 512-bit key, the parameter setting unit 111 allocates, for example, 128 bits each of the first 256 bits to K(256,0) and K(256,1), and 128 bits each of the last 256 bits to const1 and const0. This allows the encryption device 1 to realize a stream cipher using a 512-bit key, which is greater than 256 bits, by using the 256-bit constant portion as part of the key.

[0034] [ChaCha] In the case of the encryption method ChaCha, which is described in Non-Patent Document 2 and has a specified key length of 256 bits, the following matrix, each element of which is 32 bits, is defined as the internal state: x 0 x 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x 10 x 11 x 12 x 13 x 14 x 15

[0035] In the initialization, for each element, a key 0 ~key 7 (total 256 bits), initial value counter 0 and nonce 0 ~ nonce 2 , and the constant const 1 ~const 3 (total of 128 bits) is set as follows: const 0 const 1 const 2 const 3 key 0 key 1 key 2 key 3 key 4 key 5 key 6key 7 counter 0 nonce 0 nonce 1 nonce 2

[0036] Here, the parameter setting unit 111 corresponds to a 384-bit key, so for example, the first 256 bits are set as key 0 ~key 7 32 bits are allocated to each, and the latter 128 bits are allocated to const 1 ~const 3 In this way, the encryption device 1 can realize a stream cipher using a 384-bit key, which is greater than 256 bits, by using the 128-bit constant portion as part of the key.

[0037] [Rocca] In the case of the Rocca encryption method with a specified key length of 256 bits as described in Non-Patent Document 3, for eight internal states S (each 128 bits), a key K 0 , K 1 (128 bits each), initial value N, constant Z 0 , Z 1 (128 bits each) are set as follows: S[0] = K 1 , S[1]=N, S[2]=Z 0 , S[3]=Z 1 , S[4]=N+K 1 , S[5]=0, S[6]=K 0 , S[7] = 0 (where + is bitwise exclusive OR)

[0038] Similarly, in the case of the Rocca-S encryption method with a specified key length of 256 bits, for seven internal states S (each 128 bits), the key K 0 , K 1 (128 bits each), initial value N, constant Z 0 , Z 1 (128 bits each) are set as follows: S[0] = K 1 , S[1]=N, S[2]=Z 0 , S[3]=K​0 , S[4]=Z 1 , S[5]=N+K 1 , S[6] = 0 (where + is bitwise exclusive OR)

[0039] Here, the parameter setting unit 111 corresponds to a 512-bit key, so for example, the first 256 bits are designated as K 0 , K 1 128 bits are assigned to each, and the latter 256 bits are assigned to Z. 0 , Z 1 128 bits are assigned to each of the 256-bit constants. As a result, the encryption device 1 can realize a stream cipher using a 512-bit key, which exceeds the 256-bit key length originally designed, by using the 256-bit constant portion as part of the key. As a result, it is possible to support a longer key length than originally designed without making major changes to existing encryption methods, thereby enabling the construction of a more secure encryption method.

[0040] According to this embodiment, the encryption device 1 and the decryption device 2 accept input of a key longer than the specified key length used in a stream encryption method, divide the portion of the key that exceeds the specified key length, and assign it as a constant that is an input parameter of the encryption method. This makes it possible to support keys longer than the specified key length in existing encryption methods without modifying the encryption algorithm.

[0041] Although fixed values ​​are usually specified as constants for input parameters as specifications of the encryption algorithm, other values ​​are also possible as long as they are shared between the encryption side (encryption device 1) and the decryption side (decryption device 2). Therefore, by inputting a part of the key instead of the usual constants input during initialization, the encryption device 1 and the decryption device 2 can increase the corresponding key size compared to conventional methods.

[0042] The size of the constant varies depending on the encryption method. For example, as mentioned above, the key size can be extended up to 2 or 1.5 times the original length. At this time, by padding the input key with a fixed value, keys shorter than the maximum length can also be accommodated. Furthermore, the key length of the stream encryption method targeted for improvement in this embodiment is not limited to 256 bits. By applying this embodiment to encryption methods using a conventionally widely used 128-bit key, or encryption methods such as 64-bit or 512-bit keys, the security of each method can be enhanced.

[0043] Furthermore, the constants that are input parameters are values ​​that are initialized as part of the internal state of the stream cipher, and replacing these values ​​with part of the key does not cause any problems for the cipher algorithm, making it possible to easily improve security without modifying the existing algorithm. For example, in the case of Rocca or Rocca-S as the stream cipher, by assigning part of the key (256 bits) to each of two 128-bit constants, a maximum key of 512 bits can be used, thereby achieving 256 bits of security.

[0044] Furthermore, this embodiment can improve the security of stream ciphers, for example, and therefore can contribute to Goal 9 of the Sustainable Development Goals (SDGs) led by the United Nations, which is to "Develop resilient infrastructure, promote sustainable industrialization and foster innovation."

[0045] Although the embodiments of the present disclosure have been described above, the present disclosure is not limited to the above-described embodiments. Furthermore, the effects described in the above-described embodiments are merely a list of the most preferable effects resulting from the present disclosure, and the effects of the present disclosure are not limited to those described in the embodiments.

[0046] The encryption method and decryption method performed by the encryption device 1 and the decryption device 2 are realized by software. When realized by software, the programs constituting this software are installed in an information processing device (computer). These programs may be recorded on removable media such as CD-ROMs and distributed to users, or may be distributed by being downloaded to the user's computer via a network. Furthermore, these programs may be provided to the user's computer as a web service via a network without being downloaded.

[0047] According to the present disclosure, as an example, it is possible to support keys longer than the specified key length in existing encryption methods.

[0048] REFERENCE SIGNS LIST 1 Encryption device 2 Decryption device 11 Control unit 12 Storage unit 21 Control unit 22 Storage unit 111 Parameter setting unit 112 Initialization processing unit 113 Encryption execution unit 211 Parameter setting unit 212 Initialization processing unit 213 Decryption execution unit

Claims

1. An encryption device comprising: a parameter setting unit that accepts input of a key longer than a specified key length used in a specified stream encryption method, divides the portion exceeding the specified key length, and assigns it as a constant that is an input parameter of the stream encryption method; an initialization processing unit that initializes the stream encryption method using the input parameters assigned by the parameter setting unit; and an encryption execution unit that performs encryption in accordance with the stream encryption method.

2. The encryption device according to claim 1, wherein the constant is a value that is initialized as part of an internal state of the stream encryption method.

3. The encryption device according to claim 1, wherein the stream encryption method is Rocca or Rocca-S, and the parameter setting unit assigns a portion of a 512-bit key to each of two 128-bit constants.

4. A decryption device comprising: a parameter setting unit that accepts input of a key longer than a specified key length used in a specified stream encryption method, divides the portion exceeding the specified key length, and assigns it as a constant which is an input parameter of the stream encryption method; an initialization processing unit that initializes the stream encryption method using the input parameters assigned by the parameter setting unit; and a decryption execution unit that decrypts a ciphertext output by an encryption device described in any one of claims 1 to 3 in accordance with the stream encryption method.

5. An encryption method performed by a computer, comprising: a parameter setting step of accepting input of a key longer than a specified key length used in a specified stream encryption method, dividing the portion exceeding the specified key length, and assigning it as a constant which is an input parameter of the stream encryption method; an initialization processing step of initializing the stream encryption method using the input parameters assigned in the parameter setting step; and an encryption execution step of performing encryption in accordance with the stream encryption method.

6. An encryption program for causing a computer to function as the encryption device according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Method for preventing data counterfeiting

    CN114357474A