Authenticated encryption device, authenticated decryption device, authenticated encryption system, method, and computer-readable medium
The authentication encryption system uses a cryptographic primitive to generate multiple encryption results and calculate checksums, addressing the limitations of existing technologies by achieving a security level greater than the input bit length, ensuring efficient encryption and tampering detection.
Patent Information
- Application Number
- PCT/JP2023/007069
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-27
- Publication Date
- 2024-09-06
AI Technical Summary
Current authenticated encryption technologies, such as those using Tweakable Block Ciphers and Forkcipher, face limitations in achieving a security level greater than the input bit length, particularly in detecting tampering and ensuring high security for communication.
The proposed solution involves an authentication encryption system that employs a cryptographic primitive capable of generating multiple n-bit encryption results from an n-bit plaintext, using a first encryption function to encrypt and decrypt plaintext blocks, and calculating checksums to generate authentication tags, thereby enhancing security beyond the input bit length.
This approach efficiently encrypts plaintext and detects tampering, achieving a higher security level than the input bit length, ensuring robust protection against unauthorized access and data integrity.
Smart Images

Figure JP2023007069_06092024_PF_FP
Abstract
Description
Authenticated encryption device, authenticated decryption device, authenticated encryption system, method, and computer-readable medium
[0001] The present disclosure relates to an authenticated encryption device, an authenticated decryption device, an authenticated encryption system, a method, and a computer-readable medium.
[0002] A technology called authenticated encryption (AE) is known, which uses a pre-shared secret key to simultaneously encrypt a plaintext message and calculate an authentication tag for tamper detection. Applying authenticated encryption AE to a communication channel makes it possible to conceal the content against eavesdropping and detect unauthorized tampering, thereby achieving strong protection for the communication content. Known examples of authenticated encryption technology include those disclosed in Patent Document 1 and Non-Patent Document 1.
[0003] Patent Literature 1 discloses an authenticated encryption method that uses a tweakable block cipher (TBC) as a cryptographic primitive. Non-Patent Literature 1 also discloses a relatively new cryptographic primitive (cryptographic component; encryption function) for authenticated encryption called "Forkcipher." Forkcipher corresponds to a TBC with an extended output length. Specifically, Forkcipher is a cryptographic primitive of a block cipher that takes n-bit plaintext as input and generates two different n-bit ciphertexts. The cryptographic primitive related to Forkcipher disclosed in Non-Patent Literature 1 can encrypt plaintext and detect tampering more efficiently than the TBC cryptographic primitive disclosed in Patent Literature 1.
[0004] International Publication No. 2021 / 214923
[0005] Elena Andreeva, Virginie Lallemand, Antoon Purnal, Reza Reyhanitabar, Arnab Roy, and Damian Vizar, "Forkcipher: a New Primitive for Authenticated Encryption of Very Short Messages", IACR Cryptology ePrint Archive: Paper 2019 / 1004, https: / / eprint.iacr.org / 2019 / 1004.pdf
[0006] In the technology disclosed in Non-Patent Document 1, when the input bits of an encryption function are n bits, there is no authenticated encryption with a security level greater than n bits. Therefore, a method is desired that achieves a security level greater than n bits when the input bits of an encryption function are n bits. In other words, it is desirable to achieve a high security level.
[0007] The purpose of the present disclosure has been made to solve such problems, and is to provide an authenticated encryption device, an authenticated decryption device, an authenticated encryption system, a method, and a program that can efficiently encrypt plaintext and detect tampering, thereby achieving a high level of security.
[0008] The authenticated encryption device according to the present disclosure includes plaintext processing means for encrypting a plurality of plaintext blocks obtained by dividing a first plaintext to be encrypted into n-bit lengths using a first encryption function corresponding to one cryptographic primitive, the first encryption function being capable of generating a plurality of mutually different n-bit encryption results using an n-bit plaintext as input, and a first decryption function corresponding to the first encryption function being capable of generating an n-bit plaintext and another n-bit encryption result using one encryption result of the plurality of encryption results as input, and for obtaining an n-bit first encryption result and an n-bit second encryption result, which are outputs of the first encryption function; and plaintext processing means for encrypting at least one n-bit first encryption result and an n-bit second encryption result using at least a plurality of the plaintext blocks. a first checksum calculation means for calculating a checksum of the plaintext blocks; a second checksum calculation means for calculating at least one second checksum of n bits using the second encryption result among a plurality of encryption results obtained by encrypting at least a plurality of the plaintext blocks using the first encryption function; and a tag generation means for generating authentication tags, the tag generation means generating at least one first authentication tag by the first encryption function using the first checksum, and generating at least one second authentication tag using the second encryption result obtained by encrypting at least a last plaintext block among the plurality of plaintext blocks using the first encryption function.
[0009] The authentication decryption device according to the present disclosure includes ciphertext processing means for decrypting each of first encryption results obtained from a plurality of ciphertext blocks obtained by dividing a first ciphertext into n-bit lengths, the first ciphertext corresponding to the encryption result obtained by encrypting a first plaintext, using a first decryption function that corresponds to a first encryption function corresponding to one cryptographic primitive and that is capable of generating a plurality of mutually different n-bit encryption results using an n-bit plaintext as input, and that is capable of generating an n-bit plaintext and another n-bit encryption result using the n-bit encryption result as input, to obtain an n-bit plaintext block and an n-bit second encryption result that are outputs of the first decryption function and correspond to the decryption result of the ciphertext block; first checksum calculation means for calculating at least one first checksum of n bits using at least a plurality of the plaintext blocks; and The encryption / decryption device includes a second checksum calculation means for calculating at least one n-bit second checksum using the second encryption result obtained by decrypting each of the ciphertext blocks; a tag generation means for generating verification tags, the tag generation means generating at least one first verification tag by the first encryption function using the first checksum, and generating at least one second verification tag using the second encryption result obtained by decrypting the first encryption result obtained from at least the last ciphertext block of the plurality of ciphertext blocks using the first decryption function; and a verification means for verifying whether or not tampering has occurred by comparing at least one first verification tag and at least one second verification tag with at least one input first authentication tag and at least one input second authentication tag, respectively, and controlling to output the verification result.
[0010] Also, an authenticated encryption system according to the present disclosure includes an authenticated encryption device and an authenticated decryption device that communicates with the authenticated encryption device, wherein the authenticated encryption device has a first encryption function corresponding to one cryptographic primitive that is capable of generating a plurality of mutually different n-bit encryption results using an n-bit plaintext as input, and a first decryption function corresponding to the first encryption function that is capable of generating an n-bit plaintext and another n-bit encryption result using one encryption result of the plurality of encryption results as input, plaintext processing means that encrypts each of a plurality of plaintext blocks obtained by dividing a first plaintext to be encrypted into n-bit lengths using the first encryption function, and obtains an n-bit first encryption result and an n-bit second encryption result that are outputs of the first encryption function, first checksum calculation means that calculates at least one n-bit first checksum using at least a plurality of the plaintext blocks, and the authentication / decryption device comprises: second checksum calculation means for calculating at least one n-bit second checksum; and first tag generation means for generating tags for authentication, the first tag generation means using the first checksum to generate at least one first authentication tag by a first encryption function, and using the second encryption result obtained by encrypting at least a last plaintext block of the plurality of plaintext blocks using the first encryption function to generate at least one second authentication tag; wherein the authentication / decryption device comprises: ciphertext processing means for using the first decryption function to decrypt each of the first encryption results obtained from a plurality of ciphertext blocks obtained by dividing a first ciphertext corresponding to the encryption result obtained by encrypting the first plaintext into n-bit lengths, and obtaining an n-bit plaintext block and an n-bit second encryption result which are outputs of the first decryption function and correspond to the decryption result of the ciphertext block; and third checksum calculation means for calculating at least one n-bit first checksum using at least a plurality of the plaintext blocks.a fourth checksum calculation means for calculating at least one second checksum of n bits using the second encryption result obtained by decrypting at least each of the plurality of first encryption results using the first decryption function; a second tag generation means for generating tags for verification, the second tag generation means generating at least one first verification tag by the first encryption function using the first checksum calculated by the third checksum calculation means, and generating at least one second verification tag using the second encryption result obtained by decrypting at least the first encryption result obtained from a last ciphertext block of the plurality of ciphertext blocks using the first decryption function; and a verification means for verifying the presence or absence of tampering by comparing at least one first verification tag and at least one second verification tag with at least one input first authentication tag and at least one second authentication tag, respectively.
[0011] The authenticated encryption method according to the present disclosure also provides a first encryption function corresponding to one cryptographic primitive, capable of receiving an n-bit plaintext as input and generating a plurality of mutually different n-bit encryption results, wherein a first decryption function corresponding to the first encryption function is capable of receiving one of the plurality of encryption results as input and generating an n-bit plaintext and another n-bit encryption result, the first encryption function encrypts each of a plurality of plaintext blocks obtained by dividing the first plaintext to be encrypted into n-bit lengths, and obtains an n-bit first encryption result and an n-bit second encryption result that are outputs of the first encryption function, and decrypts at least a plurality of the first encryption function; and the second encryption function. The encryption method further comprises: calculating at least one first checksum of n bits using a number of the plaintext blocks; calculating at least one second checksum of n bits using the second encryption result among a plurality of encryption results obtained by encrypting at least a plurality of the plaintext blocks using the first encryption function; generating at least one first authentication tag by the first encryption function using the first checksum; and generating at least one second authentication tag using the second encryption result obtained by encrypting at least a last plaintext block among the plurality of plaintext blocks using the first encryption function.
[0012] An authenticated decryption method according to the present disclosure includes: a first encryption function corresponding to one cryptographic primitive, capable of receiving an n-bit plaintext as input and generating a plurality of mutually different n-bit encryption results; and a first decryption function capable of receiving an n-bit encryption result as input and generating an n-bit plaintext and another n-bit encryption result; decrypting each of first encryption results obtained from a plurality of ciphertext blocks obtained by dividing a first ciphertext corresponding to the encryption result obtained by encrypting the first plaintext into n-bit lengths; obtaining an n-bit plaintext block and an n-bit second encryption result that are outputs of the first decryption function and correspond to the decryption results of the ciphertext block; calculating at least one n-bit first checksum using at least a plurality of the plaintext blocks; the first encryption result obtained by decrypting each of at least a plurality of first encryption results is used to calculate at least one second checksum of n bits; the first encryption function is used to generate at least one first verification tag; the second encryption result obtained by decrypting at least the last ciphertext block among the plurality of ciphertext blocks by using the first decryption function is used to generate at least one second verification tag; and the at least one first verification tag and at least one second verification tag are compared with the at least one first authentication tag and at least one second authentication tag input, respectively, to verify whether or not tampering has occurred, and control is performed to output the verification result.
[0013] The program according to the present disclosure also includes the steps of: encrypting, using a first encryption function corresponding to one cryptographic primitive, each of a plurality of plaintext blocks obtained by dividing a first plaintext to be encrypted into n-bit lengths, and obtaining an n-bit first encryption result and an n-bit second encryption result, the first encryption function being capable of generating a plurality of mutually different n-bit encryption results using an n-bit plaintext as an input; and decrypting, using at least a plurality of the plaintext blocks, each of the plurality of plaintext blocks. the computer is caused to perform the steps of: calculating at least one first checksum of n bits using the second encryption result among a plurality of encryption results obtained by encrypting at least a plurality of the plaintext blocks using the first encryption function; calculating at least one second checksum of n bits using the second encryption result among a plurality of encryption results obtained by encrypting at least a plurality of the plaintext blocks using the first encryption function; generating at least one first authentication tag by the first encryption function using the first checksum, and generating at least one second authentication tag using the second encryption result obtained by encrypting at least a last plaintext block among the plurality of plaintext blocks using the first encryption function.
[0014] The program according to the present disclosure also includes the steps of: decrypting each of the first encryption results obtained from a plurality of ciphertext blocks obtained by dividing a first ciphertext corresponding to the encryption result obtained by encrypting a first plaintext into n-bit lengths, using a first decryption function that corresponds to a first encryption function corresponding to one cryptographic primitive and that is capable of generating a plurality of mutually different n-bit encryption results using an n-bit plaintext as input, and that is capable of generating an n-bit plaintext and another n-bit encryption result using the n-bit encryption result as input, to obtain an n-bit plaintext block and an n-bit second encryption result that are outputs of the first decryption function and correspond to the decryption result of the ciphertext block; calculating at least one n-bit first checksum using at least a plurality of the plaintext blocks; and the step of calculating at least one n-bit second checksum using the second encryption result obtained by decrypting each of the encryption results of the plurality of ciphertext blocks; the step of generating at least one first verification tag by the first encryption function using the first checksum, and generating at least one second verification tag using the second encryption result obtained by decrypting the first encryption result obtained from at least the last ciphertext block of the plurality of ciphertext blocks using the first decryption function; and the step of verifying the presence or absence of tampering by comparing the at least one first verification tag and the at least one second verification tag with the at least one first authentication tag and the at least one second authentication tag that have been input, respectively, and performing control to output the verification result.
[0015] According to the present disclosure, it is possible to provide an authenticated encryption device, an authenticated decryption device, an authenticated encryption system, a method, and a program that can efficiently encrypt plaintext and detect tampering, thereby achieving a high level of security.
[0016] 1 is a diagram for explaining functions of cryptographic primitives related to Forkcipher according to Non-Patent Document 1. FIG. 2 is a diagram for explaining functions of cryptographic primitives related to Forkcipher according to Non-Patent Document 1. FIG. 3 is a diagram for explaining functions of cryptographic primitives related to Forkcipher according to Non-Patent Document 1. FIG. 4 is a diagram for explaining functions of cryptographic primitives related to Forkcipher according to Non-Patent Document 1. FIG. 5 is a diagram for explaining functions of cryptographic primitives related to Forkcipher according to Non-Patent Document 1. FIG. 6 is a diagram for explaining functions of cryptographic primitives related to Forkcipher according to Non-Patent Document 1. FIG. 7 is a diagram for explaining a configuration of an authenticated encryption device according to a first comparative example. FIG. 8 is a diagram for explaining a configuration of an authenticated encryption device according to a second comparative example. FIG. 9 is a diagram for explaining a configuration of an authenticated encryption system according to a first embodiment. FIG. 10 is a diagram for explaining a configuration of an authenticated encryption device according to a first embodiment. FIG. 11 is a diagram for explaining an outline of operations in authenticated encryption processing according to a first embodiment. FIG. 12 is a diagram for explaining an outline of operations in authenticated encryption processing according to a first embodiment. FIG. 13 is a diagram for explaining an outline of operations in authenticated decryption processing according to a first embodiment. FIG. 14 is a flowchart showing an authenticated encryption method executed by the authenticated encryption device according to a first embodiment. FIG. 15 is a flowchart showing an authenticated decryption method executed by the authenticated decryption device according to a first embodiment. FIG. 16 is a diagram for explaining a configuration of an authenticated encryption device according to a second embodiment. 1 is a diagram showing an outline of the operations in the authenticated encryption processing according to a second embodiment. FIG. 2 is a diagram showing an outline of the operations in the authenticated encryption processing according to the second embodiment. FIG. 3 is a diagram showing a configuration of an authentication decryption device according to the second embodiment. FIG. 4 is a diagram showing an outline of the operations in the authenticated decryption processing according to the second embodiment. FIG. 5 is a diagram showing a configuration of an authenticated encryption device according to a third embodiment. FIG. 6 is a diagram showing an outline of the operations in the authenticated encryption processing according to the third embodiment. FIG. 7 is a diagram showing an outline of the operations in the authenticated encryption processing according to the third embodiment. FIG. 8 is a diagram showing an outline of the operations in the authenticated encryption processing according to the third embodiment. FIG. 9 is a diagram showing a configuration of an authentication decryption device according to the third embodiment. FIG. 10 is a diagram showing an outline of the operations in the authenticated decryption processing according to the third embodiment. FIG.FIG. 1 is a block diagram illustrating an example of the hardware configuration of a calculation processing device capable of realizing an apparatus and a system according to each embodiment.
[0017] (Outline of Embodiments of the Present Disclosure) Prior to describing the embodiments of the present disclosure, an outline of the embodiments of the present disclosure will be described. Note that, although the embodiments of the present disclosure will be described below, the following embodiments do not limit the scope of the invention according to the claims. Furthermore, not all combinations of features described in the embodiments are necessarily essential to the solution of the invention. Furthermore, the indexes (alphabetical letters) used in the following description are not necessarily common throughout this specification. For example, the index i may mean different things in one context than in another.
[0018] First, the basic input and output of authenticated encryption (AE) will be explained. In the following explanation, we consider communication between Alice and Bob as two people who share a secret key K, and assume that Alice communicates a message encrypted using authenticated encryption to Bob.
[0019] The encryption function of authenticated encryption is denoted as Enc, and the decryption function is denoted as Dec. Furthermore, the plaintext to be encrypted is denoted as M, and a variable N (initial vector) called a nonce is further introduced. Furthermore, the associated data (AD) is denoted as A. Here, the associated data A (header) is a value that is not encrypted but is subject to tamper detection. The associated data A may not be necessary.
[0020] First, the encryption process on Alice's side will be described. After generating a nonce N, Alice executes a process expressed as (C, T) = Enc_K(N, A, M). Here, Enc_K is an encryption function with a private key K as a parameter, and C is the ciphertext. Furthermore, T is a fixed-length variable for tamper detection called a tag (authentication tag). Alice transmits a set (N, A, C, T) of the nonce N, associated data A, ciphertext C, and tag T to Bob. Here, the ciphertext C and the tag T do not need to be strictly distinguished. In other words, the ciphertext C and the tag T may be transmitted in the state of C||T). Note that "||" indicates a concatenation of bit strings.
[0021] Next, the decryption process on Bob's side will be described. Let the information received by Bob be (N', A', C', T'). In this case, Bob executes Dec_K(N', A', C', T') as the decryption process. Note that Dec_K is a decryption function with key K as a parameter. If tampering by a third party, Eve, occurs during communication, and (N', A', C', T')≠(N, A, C, T), an error message (error symbol ⊥) indicating tampering is output for Dec_K(N', A', C', T'). In other words, in this case, tampering is detected. On the other hand, if no tampering occurs during communication, and (N', A', C', T')=(N, A, C, T), the plaintext M encrypted by Alice is correctly decrypted for Dec_K(N', A', C', T').
[0022] Furthermore, in the above process, it is usually important to prevent the nonce N from accidentally matching a past value in encryption. To this end, the encryption side uses some kind of state variable, such as a counter, to prevent the nonce from matching. That is, typically, the most recently used N is stored as a state variable, and N is incremented each time, thereby ensuring that the nonce N does not overlap with past values.
[0023] Furthermore, Patent Document 1 uses a block cipher called a Tweakable Block Cipher (TBC), which introduces a public adjustment value (auxiliary variable) called a tweak during encryption and decryption. In other words, in a TBC, a keyed substitution including the tweak is performed on the input of the block cipher. TBCs with different tweaks can be considered to be independent block ciphers. Note that a TBC is a fixed-length input / output cryptographic primitive. In other words, when encrypting a plaintext using a TBC, the plaintext is divided into fixed-length (n bits) pieces and input to an encryption function (encryption component) related to the TBC. If the encryption function related to the TBC is a TBC function, the TBC function outputs an n-bit ciphertext (ciphertext block) in response to an n-bit plaintext (plaintext block) input.
[0024] 1 to 5 are diagrams for explaining the functions of cryptographic primitives related to Forkcipher according to Non-Patent Document 1. Here, the encryption function (first encryption function) related to Forkcipher is defined as F. Also, the decryption function related to Forkcipher, that is, the decryption function (first decryption function) corresponding to the encryption function related to Forkcipher is defined as F. -1 1 and 2 show the functionality of the encryption function for Forkcipher, and FIGS. 3 to 5 show the functionality of the decryption function for Forkcipher.
[0025] As shown in FIGS. 1 to 5, an encryption function F and a decryption function F -1 A key K and a tweak T are input to Forkcipher. As in the case of TBC, the tweak is a public tweak value (auxiliary variable). That is, Forkcipher performs keyed substitution including the tweak on the input of the block cipher. Block ciphers with different tweaks can be considered to be independent block ciphers. Forkcipher is a fixed-length input / output cryptographic primitive. Therefore, when encrypting plaintext using Forkcipher, the plaintext is divided into fixed-length (n bits) pieces, and the divided plaintext (plaintext blocks) are input to an encryption function (encryption component) associated with Forkcipher. Here, n indicates the bit length of the plaintext (plaintext block) input to the encryption function and is a natural number determined according to the block cipher. In FIGS. 1 to 4, plaintext M is assumed to be an n-bit plaintext block. 1 to 5, one ciphertext C (C_0, C_1; encryption result) is an n-bit ciphertext block.
[0026] As shown in FIGS. 1 and 2, the encryption function F receives the key K, the tweak T, the plaintext M, and the selector s1 as inputs, and outputs the ciphertext C (encryption result) according to the selector s1. The selector s1 can be switched appropriately by the user. As shown in FIG. 1, when the selector s1 indicates "b" (both) (i.e., when s1=b), the encryption function F outputs the ciphertext C_0 (the ciphertext C on the left side) as 0 ) and ciphertext C_1 (the ciphertext C on the right 1) is output. That is, using the encryption function F, two n-bit ciphertexts (encryption results; random numbers), C_0 and C_1, can be obtained from n-bit plaintext M. In other words, using the encryption function F, a 2n-bit ciphertext (2n-bit encryption result) can be obtained from n-bit plaintext M. The encryption results C_0 and C_1 are the encryption results of the plaintext M, which are a pair with each other.
[0027] 2, when the selector s1 indicates "0" (i.e., when s1=0), the encryption function F outputs ciphertext C_0. Although not shown, when the selector s1 indicates "1" (i.e., when s1=1), the encryption function F outputs ciphertext C_1. In other words, the encryption function F can output both of the two different encryption results, or can output any one of the two different encryption results, depending on the setting of the selector s1.
[0028] Here, the ciphertext (encryption result) C_0 and the ciphertext (encryption result) C_1 are different ciphertexts (encryption results) generated from the same plaintext M. Therefore, in terms of security, the encryption result C_0 and the encryption result C_1 can be considered to be mutually independent random numbers. In other words, the two encryption results C_0 and C_1 may correspond to two different ciphertexts (encryption results) obtained by inputting the same plaintext M to two encryption functions E (e.g., TBC functions) of two block ciphers with different keys. However, when generating two ciphertexts using the TBC function, the TBC function needs to be called twice. In contrast, when generating two ciphertexts using the encryption function F associated with Forkcipher, the encryption function F needs to be called only once. Therefore, by using the encryption function associated with Forkcipher, plaintext processing such as encryption can be performed more efficiently than when using the TBC function.
[0029] As shown in FIGS. 3 to 5, the decoding function F -1takes as input a key K, a tweak T, a ciphertext C (encryption result), an indicator β, and a selector s2, and outputs at least one of a plaintext M and another ciphertext C according to the selector s2. The indicator β and the selector s2 can be switched appropriately by the user. The indicator β is a symbol indicating which of the ciphertexts C_0 and C_1 is to be input. In the examples of FIGS. 3 to 5, the decryption function F -1 Since the ciphertext C_0 is input to the indicator β, the indicator β indicates "0".
[0030] As shown in FIG. 3, when the selector s2 indicates “i” (inverse) (i.e., when s2=i), the decoding function F -1 outputs the plaintext M corresponding to the ciphertext C_0. That is, the decryption function F -1 outputs plaintext M, which is the decryption result of the ciphertext C_0. Also, as shown in FIG. 4, when the selector s2 indicates "b" (both) (i.e., when s2=b), the decryption function F -1 outputs the plaintext M and another ciphertext C_1 corresponding to the ciphertext C_0. That is, the decryption function F -1 Using the decryption function F, it is possible to obtain, from the n-bit encryption result C_0, the plaintext M corresponding to the encryption result C_0 and another encryption result C_1 that pairs with the encryption result C_0. -1 5, when the selector s2 indicates "o" (other) (i.e., when s2=o), the decryption function F -1 outputs another ciphertext C_1 that pairs with the ciphertext C_0. That is, the decryption function F -1 may output both the plaintext and the other encrypted result, or may output any one of the plaintext and the other encrypted result, depending on the setting of selector s2.
[0031] Although not shown, the decoding function F -1 When the ciphertext C_1 is input to the selector s2, the indicator β indicates "1". When the selector s2 indicates "i", the decryption function F -1outputs the plaintext M corresponding to the ciphertext C_1. Also, when the selector s2 indicates "b", the decryption function F -1 outputs the plaintext M and another ciphertext C_0 corresponding to the ciphertext C_1. Also, if the selector s2 indicates "o", the decryption function F -1 outputs another ciphertext C_0 that pairs with the ciphertext C_1. -1 Even if ciphertext C_1 is input to the ciphertext C_0, the plaintext M that is output may be the same as the plaintext M obtained from the ciphertext C_0.
[0032] In this way, the encryption function F (first encryption function) corresponds to one cryptographic primitive that takes an n-bit plaintext as input and generates a plurality of n-bit encryption results that are different from each other. -1 The (first decryption function) receives one encryption result from among the plurality of encryption results as input and generates at least one of an n-bit plaintext and another n-bit encryption result.
[0033] Fig. 6 is a diagram showing the configuration of an authenticated encryption device 80 according to a first comparative example. Fig. 6 shows the configuration of the authenticated encryption device 80, which is realized using an encryption method in PAEF (Parallel AEAD (authenticated encryption with associated data) from a Fork cipher) according to Non-Patent Document 1. Fig. 6 also shows an outline of the calculations performed by the authenticated encryption device 80 according to the first comparative example. The lengths of the associated data A and plaintext M processed by the authenticated encryption device 80 according to the first comparative example are multiples of n bits.
[0034] The authentication encryption device 80 according to the first comparative example includes an AD processing unit 82, a plaintext processing unit 84, a checksum calculation unit 86, and a tag generation unit 88. For convenience, the checksum calculation unit 86 is depicted in FIG. 6 as being separated into a front-stage unit 86a and a rear-stage unit 86b, but the checksum calculation unit 86 may be an integrated unit. In other words, the checksum calculation unit 86 may be configured such that the front-stage unit 86a and the rear-stage unit 86b are continuous. This also applies to the checksum calculation units (first checksum calculation unit, second checksum calculation unit) shown in other figures described below.
[0035] The AD processing unit 82 processes associated data (AD) that is a multiple of n bits. Associated data A is input to the AD processing unit 82. The AD processing unit 82 divides the input associated data A into blocks (A_1, ..., A_a, A_*), each of which is n bits long. In other words, the associated data (AD) blocks A_1, ..., A_a, A_* each have a data length of n bits. Note that A_* indicates the last AD block. Therefore, in FIG. 6, the number of AD blocks is a+1.
[0036] The AD processing unit 82 encrypts each AD block using an encryption function F (F K ), and processes them in parallel. Specifically, the AD processing unit 82 encrypts the AD blocks A_1, ..., A_a, and A_* in parallel using encryption functions F to which different tweaks are input. Here, the encryption function F used in the AD processing unit 82 outputs only an n-bit ciphertext (random number) corresponding to one ciphertext C_0 as the encryption result, as shown in FIG. 2. Therefore, a selector s1 indicating "0" is input to the encryption function F used in the AD processing unit 82.
[0037] The tweak input to the encryption function F that processes each AD block is a data string (bit string) of a predetermined length (number of bits). For security reasons, the tweak input to the encryption function F that processes each AD block must be in a format that includes a nonce N and a block index i of the associated data A. For the encryption function F that processes an AD block A_i other than the final AD block A_*, the tweak may be in a format such as "N||000||" as shown in FIG. 6 . Here, "000" is a 3-bit bit string. Furthermore, "" is a value obtained by encoding i with a bit string of a predetermined number of bits. When i=1, if i is encoded with 5 bits, "" becomes "00001". For the encryption function F that processes the final AD block A_*, the tweak may be in a format such as "N||001||<a+1>" as shown in FIG. 6 . Here, "001" is a 3-bit bit string. Note that this part is different from the bit string "000" when processing AD blocks other than the final AD block for security reasons. By using the above format for Tweak, it is possible to prevent the Tweak input to each encryption function F from having the same value.
[0038] Although the tweaks input to the multiple encryption functions F are different from one another, the tweaks input to each encryption function F may contain the same value even when different plaintexts are encrypted at different times. In other words, the values of the tweaks input to each encryption function F, excluding the nonce, may be constants. For example, the tweak "N||000||<1>" input to the first encryption function F may be the same, except for the value of the nonce N, whether a certain plaintext Ma is encrypted or a different plaintext Mb is encrypted. The same applies to the tweaks input to the encryption functions F in the plaintext processing unit 84 and the tag generation unit 88 described below, except for the nonce value. The same applies to the tweaks input to the encryption functions F in the authentication encryption device according to the second comparative example and the embodiment described below, except for the nonce value.
[0039] The plaintext processing unit 84 processes plaintext M, which is a multiple of n bits. Plaintext M is input to the plaintext processing unit 84. The plaintext processing unit 84 divides the input plaintext M into blocks (M_1, ..., M_m, M_*), each of which is n bits long. In other words, the data length of each of the plaintext blocks M_1, ..., M_m, M_* is n bits. Note that M_* indicates the last plaintext block. Therefore, in FIG. 6, the number of plaintext blocks is m+1.
[0040] The plaintext processing unit 84 encrypts each plaintext block using an encryption function F (F K ), and processes them in parallel. Specifically, the plaintext processing unit 84 encrypts plaintext blocks M_1, ..., M_m, M_* in parallel using encryption functions F to which different tweaks are input. Here, the encryption function F used in the plaintext processing unit 84 outputs, as the encryption result, n-bit ciphertext (random numbers) corresponding to the two ciphertexts C_0 and C_1, as shown in FIG. 1 . Therefore, the encryption function F used in the plaintext processing unit 84 outputs a 2n-bit encryption result. Therefore, a selector s1 indicating "b" is input to the encryption function F used in the plaintext processing unit 84.
[0041] The Tweak input to the encryption function F that processes each plaintext block is a data string (bit string) of a predetermined length (number of bits). For security reasons, the Tweak input to the encryption function F that processes each plaintext block needs to be in a format that includes a nonce N and a block index i of plaintext M. For the encryption function F that processes a plaintext block M_i other than the final plaintext block M_*, the Tweak may be in a format such as "N||100||" as shown in FIG. 6 , where "100" is a 3-bit bit string. For the encryption function F that processes the final plaintext block M_*, the Tweak may be in a format such as "N||101||<m+1>" as shown in FIG. 6 , where "101" is a 3-bit bit string. The reason this part is different from the bit string "100" when processing plaintext blocks other than the final plaintext block is for security reasons. By using the above format for Tweak, it is possible to prevent Tweak from being input to each encryption function F with the same value.
[0042] Furthermore, the plaintext processing unit 84 obtains, as the ciphertext block C_i obtained by encrypting the plaintext block M_i, the encryption result (random number) corresponding to C_0 of the two encryption results C_0 and C_1 output from each encryption function F that processes a plaintext block M_i other than the final plaintext block M_*. That is, for 1≦i≦m, the plaintext processing unit 84 obtains, as the ciphertext block C_i obtained by encrypting the plaintext block M_i, the encryption result (random number) corresponding to the left C_0 of the two encryption results (random numbers) C_0 and C_1 output from each encryption function F. A method for obtaining the ciphertext block C_* from the encryption function F that processes the final plaintext block M_* will be described later. Furthermore, the encryption result (random number) corresponding to the right C_1 of the two encryption results C_0 and C_1 output from each encryption function F will be described later.
[0043] The checksum calculation unit 86 calculates a checksum using the encryption result (random number) obtained by the AD processing unit 82 and the plaintext processing unit 84. The checksum calculation unit 86 acquires the random number (encryption result) obtained by the encryption process, which is generated by the AD processing unit 82 and the plaintext processing unit 84. The checksum calculation unit 86 (front-stage unit 86a) acquires the ciphertext block (random number; encryption result) corresponding to the ciphertext C_0, which is output from the encryption function F used in the AD processing unit 82. In addition, the checksum calculation unit 86 (back-stage unit 86b) acquires the random number (encryption result) corresponding to the ciphertext C_1, which is output from the encryption function F used in the plaintext processing unit 84 to process plaintext blocks other than the final plaintext block M_*.
[0044] Then, the checksum calculation unit 86 calculates the initial value 0^n(0 n ) and each encryption result to obtain an n-bit checksum T_A, where 0^n indicates n bits of all zeros.
[0045] The plaintext processing unit 84 obtains the checksum T_A from the checksum calculation unit 86. The plaintext processing unit 84 obtains the ciphertext block C_* obtained by encrypting the final plaintext block M_* using the checksum T_A. Specifically, the plaintext processing unit 84 obtains the ciphertext block C_* by exclusive-ORing the checksum T_A with the encryption result corresponding to C_0 of the two encryption results C_0 and C_1 output from the encryption function F that processes the final plaintext block M_*.
[0046] The tag generation unit 88 generates a tag T. Specifically, the tag generation unit 88 acquires, as the tag T, the encryption result corresponding to C_1 out of two encryption results C_0 and C_1 output from the encryption function F that processes the final plaintext block M_*. The tag generation unit 88 outputs the generated tag T.
[0047] Note that the encryption function F used in the AD processing unit 82 may output only an n-bit encryption result (random number) corresponding to one encryption result C_1 when the selector s1 indicating “1” is input. Furthermore, the plaintext processing unit 84 may obtain a ciphertext block C_i obtained by encrypting the plaintext block M_i using the encryption result corresponding to C_1 of the two encryption results C_0 and C_1 output from each encryption function F. Furthermore, the checksum calculation unit 86 may obtain the encryption result obtained by the AD processing unit 82 and the encryption result corresponding to the ciphertext C_0 output from the encryption function F that processes a plaintext block other than the final plaintext block M_* in the plaintext processing unit 84. The checksum calculation unit 86 may then generate a checksum T_A using these encryption results. Furthermore, the tag generation unit 88 may obtain, as a tag T, the encryption result corresponding to C_0 of the two encryption results C_0 and C_1 output from the encryption function F that processes the final plaintext block M_*. These same features apply to a second comparative example and each embodiment described below. In other words, in the explanation below, the encryption result C_0 is referred to as the "first encryption result" and the encryption result C_1 is referred to as the "second encryption result," but the encryption result C_0 may also be referred to as the "second encryption result" and the encryption result C_1 may also be referred to as the "first encryption result."
[0048] FIG. 7 is a diagram showing the configuration of an authentication encryption device 80A according to a second comparative example. FIG. 7 shows the configuration of the authentication encryption device 80A implemented using the PAEF encryption method according to Non-Patent Document 1. FIG. 7 also shows an outline of the calculations of the authentication encryption device 80 according to the second comparative example. The lengths of the associated data A and plaintext M processed by the authentication encryption device 80A according to the second comparative example are not multiples of n bits. The authentication encryption device 80A according to the second comparative example includes an AD processing unit 82A, a plaintext processing unit 84A, a checksum calculation unit 86, and a tag generation unit 88A.
[0049] The AD processing unit 82A processes associated data AD that is not a multiple of n bits. Similar to the AD processing unit 82 shown in FIG. 6, the AD processing unit 82A processes each AD block by applying an encryption function F (FK ) are used to process the AD blocks A_1, ..., A_a in parallel. Here, the AD processing unit 82A performs substantially the same processing as the AD processing unit 82 shown in Fig. 6 for the AD blocks A_1, ..., A_a. The tweak input to the encryption function F that processes the AD blocks A_1, ..., A_a may be the same as the tweak input to the encryption function F shown in Fig. 6.
[0050] On the other hand, the bit length of the final AD block A_* is less than n bits. Therefore, the AD processing unit 82A performs padding processing on the final AD block A_* so that the length of the bit string input to the encryption function F becomes n bits. For example, the AD processing unit 82A performs one-zero padding processing (OZP) on the final AD block A_*. As a result, the AD processing unit 82A obtains an n-bit bit string "A_*∥10^*". Note that "10^*" indicates data added by the padding processing. In other words, if the bit length of the final AD block A_* is k (k<n), then "10^*" is an n-k-bit bit string. The AD processing unit 82A encrypts "A_*∥10^*" using the encryption function F to obtain an n-bit encryption result corresponding to one ciphertext C_0.
[0051] For security reasons, the tweak input to the encryption function F that processes the final AD block A_* is different from that in the first comparative example. Specifically, the tweak input to the encryption function F that processes the final AD block A_* may be in the format of "N||011||<a+1>", for example, as shown in Fig. 7. Here, "011" is a 3-bit bit string.
[0052] The plaintext processing unit 84A processes plaintext M that is not a multiple of n bits. Similar to the plaintext processing unit 84 shown in FIG. 6, the plaintext processing unit 84A processes each plaintext block using an encryption function F (F K) are used to process the plaintext blocks M_1, ..., M_m in parallel. Here, the plaintext processing unit 84A performs substantially the same processing as the plaintext processing unit 84 shown in Fig. 6 for the plaintext blocks M_1, ..., M_m. The tweak input to the encryption function F that processes the plaintext blocks M_1, ..., M_m may be the same as the tweak input to the encryption function F shown in Fig. 6.
[0053] On the other hand, the bit length of the final plaintext block M_* is less than n bits. Therefore, the plaintext processing unit 84A performs padding processing on the final plaintext block M_* so that the length of the bit string input to the encryption function F becomes n bits. For example, the plaintext processing unit 84A performs one-zero padding processing (OZP) on the final plaintext block M_*. As a result, the plaintext processing unit 84A obtains an n-bit bit string "M_*||10^*". Note that "10^*" indicates data added by the padding processing. In other words, if the bit length of the final plaintext block M_* is k (k<n), "10^*" is an n-k-bit bit string. The plaintext processing unit 84A encrypts "M_*||10^*" using the encryption function F to obtain n-bit encryption results corresponding to the two encryption results C_0 and C_1.
[0054] For security reasons, the tweak input to the encryption function F that processes the final plaintext block M_* is different from that in the first comparative example. Specifically, the tweak input to the encryption function F that processes the final plaintext block M_* may be in the format of "N||111||<m+1>", for example, as shown in Fig. 7, where "111" is a 3-bit bit string.
[0055] The processing of the checksum calculation unit 86 is substantially the same as that of the checksum calculation unit 86 shown in Fig. 6. That is, the checksum calculation unit 86 calculates an n-bit checksum T_A using the encryption result (random number) obtained by the AD processing unit 82A and the plaintext processing unit 84A.
[0056] The plaintext processing unit 84A obtains the checksum T_A from the checksum calculation unit 86. The plaintext processing unit 84A performs processing on the final plaintext block M_* in the same manner as the plaintext processing unit 84 shown in Fig. 6. That is, the plaintext processing unit 84A obtains an n-bit ciphertext block C_* obtained by encrypting the final plaintext block M_*, using the checksum T_A and the encryption result corresponding to C_0 of the two encryption results C_0 and C_1 of the final plaintext block M_*.
[0057] The tag generation unit 88A generates a tag T. Specifically, the tag generation unit 88A generates the tag T using the encryption result corresponding to C_1 out of two encryption results C_0 and C_1 output from the encryption function F that processes the final plaintext block M_*. More specifically, the tag generation unit 88A truncates an n-bit bit string indicating the encryption result corresponding to C_1 to the length of the final plaintext block M_*. For example, the length of the final plaintext block M_* is assumed to be k bits (k<n). In this case, the tag generation unit 88A retains the most significant k bits (the k bits on the left) of the n-bit bit string indicating the encryption result corresponding to C_1, and truncates the least significant n-k bits (the n-k bits on the right). In this way, the tag generation unit 88A generates a tag T of the same bit length (|M_*|) as M_*. The tag generation unit 88A outputs the generated tag T.
[0058] By doing so, it is possible to avoid making the length of the tag longer than the length of the final plaintext block M_*. In other words, the sum of the bit length of the ciphertext and the bit length of the tag can be made the same as the sum of the bit length of the plaintext and n bits. Here, even if the length of the tag T is made longer than the length of the final plaintext block M_*, security is not improved. Therefore, by doing as described above, it is possible to suppress the unnecessary use of communication resources.
[0059] Here, problems with the comparative example will be described from the perspective of security against tamper detection. For a certain encryption scheme ABC and a natural number n, "ABC has n-bit security" means "ABC is secure against an attacker with a computational complexity of 2^n." In other words, "ABC has n-bit security" means that an attacker without a key would need a computational complexity of 2^n to forge a tag. In other words, in order to forge a tag, it is generally necessary to know the value (checksum) of the tag before encryption. However, if the value is n bits, an attacker would need a computational complexity of 2^n (possibility of 2^n attempts) to tamper with the n-bit value (checksum). The larger n is, the more secure it is against an attacker with a larger computational complexity, and the higher the security level.
[0060] In the first comparative example, the bit length of the generated tag T is n bits. Therefore, the security level of the authenticated encryption according to the first comparative example is n bits. Furthermore, in the second comparative example, the bit length of the generated tag T is the same as the bit length k (k<n) of the last plaintext block. Meanwhile, in verification during decryption, in addition to verifying the k-bit tag, it is also verified whether the bit string of the lowest n-k bits of the decryption result of the last ciphertext block is in the format of "10^*" (i.e., the format of data added by padding). Therefore, the security level of the authenticated encryption according to the second comparative example is n bits. Therefore, the technology according to Non-Patent Document 1 cannot achieve a security level greater than n bits.
[0061] In contrast, in this embodiment, not only is a checksum calculated using the n-bit encryption result output from encryption function F to generate a tag, but also an n-bit checksum is calculated using the plaintext block input to encryption function F to generate a tag. This makes it possible to achieve a security level greater than n bits.
[0062] (First Embodiment) Hereinafter, an embodiment will be described with reference to the drawings. For clarity of explanation, the following description and drawings have been omitted and simplified as appropriate. Furthermore, in each drawing, the same elements are given the same reference numerals, and duplicate explanations are omitted as necessary. Note that the authenticated encryption method according to the first embodiment corresponds to a configuration obtained by improving the technology according to the first comparative example (Non-Patent Document 1) described above. That is, in the authenticated encryption method according to the first embodiment, the bit length of the associated data A and the bit length of the plaintext M to be encrypted (first plaintext) are assumed to be multiples of n bits.
[0063] 8 is a diagram showing the configuration of an authentication encryption system 1 according to the first embodiment. The authentication encryption system 1 includes an authentication encryption device 10 and an authentication decryption device 20. The authentication encryption device 10 and the authentication decryption device 20 may be physically integrated or may be separate devices. When the authentication encryption device 10 and the authentication decryption device 20 are physically separate devices, the authentication encryption device 10 and the authentication decryption device 20 are connected to each other so that they can communicate with each other via wire or wirelessly. Furthermore, the components of the authentication encryption device 10, which will be described later, may be implemented by different devices. Similarly, the components of the authentication decryption device 20, which will be described later, may be implemented by different devices.
[0064] In the following description, unless otherwise specified, the length of one block among the multiple blocks obtained by dividing the associated data A, plaintext M, ciphertext C, etc. is assumed to be a predetermined length of n bits. In addition, in the above-mentioned example of communication between Alice and Bob, the authentication encryption device 10 corresponds to Alice, and the authentication decryption device 20 corresponds to Bob. In other words, communication takes place between the authentication encryption device 10 and the authentication decryption device 20.
[0065] <Authentication Encryption Device> Fig. 9 is a diagram showing the configuration of an authentication encryption device 10 according to the first embodiment. Figs. 10 and 11 are diagrams showing an outline of the calculations in the authentication encryption process according to the first embodiment. As shown in Fig. 9, the authentication encryption device 10 has an input unit 100, a division unit 102, and a nonce generation unit 104. The authentication encryption device 10 also has an AD processing unit 110, a plaintext processing unit 120, a first checksum calculation unit 130, a second checksum calculation unit 140, a tag generation unit 150, and an output unit 160.
[0066] The authentication encryption device 10 can be realized by an information processing device such as a computer. That is, the authentication encryption device 10 has an arithmetic device such as a CPU (Central Processing Unit) and a storage device such as a memory or a disk. The authentication encryption device 10 realizes each of the above components by, for example, having the arithmetic device execute a program stored in the storage device. This also applies to other embodiments described below.
[0067] The input unit 100 functions as an input means. The division unit 102 functions as a division means. The nonce generation unit 104 functions as a nonce generation means. The AD processing unit 110 functions as an associated data processing means. The plaintext processing unit 120 functions as a plaintext processing means. The first checksum calculation unit 130 functions as a first checksum calculation means (checksum calculation means; calculation means). The second checksum calculation unit 140 functions as a second checksum calculation means (checksum calculation means; calculation means). The tag generation unit 150 functions as a tag generation means. The output unit 160 functions as an output means.
[0068] The input unit 100 accepts input of plaintext M (first plaintext) to be encrypted and related data A. The input unit 100 may be realized by an input device such as a keyboard. The input unit 100 may accept input of plaintext M and related data A from, for example, an external device connected via a network. Note that there may be cases where related data A does not exist, in which case related data A is not input. The input unit 100 outputs the plaintext M and related data A to the division unit 102.
[0069] The dividing unit 102 divides each of the plaintext M and the associated data A into blocks of a predetermined length. Specifically, the dividing unit 102 divides the plaintext M into plaintext blocks M[1], ..., M[m], each of which is n bits long. Here, m is the number of plaintext blocks. The dividing unit 102 outputs the plaintext blocks M[1], ..., M[m] to the plaintext processing unit 120. The dividing unit 102 also divides the associated data A into AD blocks A[1], ..., A[a], each of which is n bits long. Here, a is the number of AD blocks. The dividing unit 102 outputs the AD blocks A[1], ..., A[a] to the AD processing unit 110.
[0070] The nonce generation unit 104 generates a nonce N so that it does not overlap with past values. In other words, the nonce generation unit 104 generates a nonce N that is different from values generated in the past. Specifically, for example, the nonce generation unit 104 initially outputs an arbitrary fixed value. The nonce generation unit 104 also stores the value of the nonce generated most recently. Then, when generating a nonce N for the second time or later, the nonce generation unit 104 outputs a value obtained by adding 1 to the stored most recently generated value. In this way, the nonce generation unit 104 may generate a nonce N that is different from values generated in the past by outputting a value obtained by adding 1 to the previously output value. Note that the nonce generation unit 104 may generate a nonce using a method different from the above example, as long as it can generate a value different from values generated in the past. The nonce generation unit 104 outputs the generated nonce N to the AD processing unit 110, the plaintext processing unit 120, and the tag generation unit 150. Furthermore, the nonce generation unit 104 may output the generated nonce N to the output unit 160 .
[0071] The AD processing unit 110 processes associated data A (AD) that is a multiple of n bits, similar to the AD processing unit 82. The AD processing unit 110 processes the AD blocks A[1], ..., A[a] using an encryption function F (F K ) are used to process the AD blocks A[1], ..., A[a] in parallel. Specifically, the AD processing unit 110 encrypts the AD blocks A[1], ..., A[a] in parallel using encryption functions F to which different tweaks are input. Here, the encryption function F used in the AD processing unit 110 outputs, as the encryption result, n-bit ciphertexts (random numbers) z_0 and z_1 corresponding to the two ciphertexts C_0 and C_1, as shown in FIG. 1. Therefore, the encryption function F used in the AD processing unit 110 outputs a 2n-bit encryption result. Therefore, a selector s1 indicating "b" is input to the encryption function F used in the AD processing unit 110. This is also true in other embodiments.
[0072] That is, the AD processing unit 110 uses an encryption function F (first encryption function) to encrypt multiple AD blocks (associated data blocks) obtained by dividing associated data (AD) into n-bit blocks. The AD processing unit 110 thereby obtains an encryption result C_0 (first encryption result) and an encryption result C_1 (second encryption result) corresponding to the AD blocks. The AD processing unit 110 outputs a random number z_0 corresponding to the encryption result C_0 obtained using each AD block to the first checksum calculation unit 130. The AD processing unit 110 also outputs a random number z_1 corresponding to the encryption result C_1 to the second checksum calculation unit 140.
[0073] The tweaks input to the encryption functions used in the AD processing unit 110 may be different from the tweaks input to the encryption functions used in the AD processing unit 82. This will be described in detail later.
[0074] The plaintext processing unit 120 processes plaintext M, which is a multiple of n bits, in the same way as the plaintext processing unit 84. That is, the plaintext processing unit 120 processes plaintext blocks M[1], ..., M[m] using an encryption function F (F K ), and processes them in parallel. Specifically, the plaintext processing unit 120 encrypts plaintext blocks M[1], ..., M[m] in parallel using encryption functions F to which different tweaks are input. Here, the encryption function F used in the plaintext processing unit 120 outputs, as the encryption result, n-bit ciphertexts (random numbers) corresponding to the two ciphertexts C_0 and C_1 as shown in FIG. 1. Therefore, the encryption function F used in the plaintext processing unit 120 outputs a 2n-bit encryption result.
[0075] The plaintext processing unit 120 obtains the left-side encryption result C_0 output from each encryption function F that processes plaintext blocks M[i] other than the final plaintext block M[m] as the ciphertext block C[i] obtained by encrypting the plaintext block M[i]. The plaintext processing unit 120 also obtains the ciphertext block C[m] obtained by encrypting the final plaintext block M[m] using the left-side encryption result C_0 output from the encryption function F that processes the final plaintext block M[m] and a checksum Σ_2. Specifically, the plaintext processing unit 120 obtains the ciphertext block C[m] obtained by encrypting the final plaintext block M[m] by performing an exclusive OR operation on the encryption result C_0 obtained using the final plaintext block M[m] and the checksum Σ_2. The checksum Σ_2 is calculated by the second checksum calculation unit 140, which will be described later. Furthermore, the plaintext processing unit 120 obtains the right-side encryption result C_1 output from each encryption function F that processes the plaintext block M[i] as the random number Z[i].
[0076] That is, the plaintext processing unit 120 encrypts each of the multiple plaintext blocks using an encryption function F (first encryption function). Then, the plaintext processing unit 120 obtains an n-bit encryption result C_0 (first encryption result) and an n-bit encryption result C_1 (second encryption result), which are outputs of the encryption function F. At this time, the plaintext processing unit 120 obtains a ciphertext block obtained by encrypting the plaintext blocks other than the last plaintext block using the encryption function F, using the encryption result C_0 obtained by encrypting the last plaintext block using the encryption function F, and the checksum Σ_2 (second checksum), to obtain a ciphertext block obtained by encrypting the last plaintext block.
[0077] The plaintext processing unit 120 outputs the plaintext blocks M[1], ..., M[m] to the first checksum calculation unit 130. The plaintext processing unit 120 also outputs a random number Z[i] corresponding to the right-side encryption result C_1 obtained using a plaintext block M[i] other than the final plaintext block M[m] to the second checksum calculation unit 140. The plaintext processing unit 120 also outputs a random number Z[m] corresponding to the right-side encryption result C_1 obtained using the final plaintext block M[m] to the tag generation unit 150. The plaintext processing unit 120 also outputs the ciphertext blocks C[1], ..., C[m] to the output unit 160 as ciphertext C = C[1] ...C[m].
[0078] The tweaks input to the encryption functions used in the plaintext processing unit 120 may be different from the tweaks input to the encryption functions used in the plaintext processing unit 84. This will be described in detail later.
[0079] The first checksum calculation unit 130 calculates a checksum Σ_1 (first checksum) using a random number z_0 generated by the AD processing unit 110 and plaintext blocks M[1], ..., M[m]. The checksum Σ_1 is used to generate an authentication tag T_1. The first checksum calculation unit 130 calculates an n-bit checksum Σ_1 by performing an exclusive OR (XOR) between the initial value 0^n, each random number z_0, and each plaintext block. That is, the first checksum calculation unit 130 calculates at least one n-bit checksum Σ_1 (first checksum) using at least multiple plaintext blocks. The first checksum calculation unit 130 also calculates the checksum Σ_1 using the encryption result C_0 (first encryption result) corresponding to the AD block (associated data block). The first checksum calculation unit 130 outputs the checksum Σ_1 to the tag generation unit 150. In the decryption function of the authentication-decryption device 20, the plaintext blocks can be regarded as encrypted random numbers. Therefore, the checksum Σ_1 calculated by the exclusive OR of the plaintext blocks is kept secure. This also applies to the other embodiments.
[0080] The second checksum calculation unit 140 calculates a checksum Σ_2 (second checksum) using the random number z_1 generated by the AD processing unit 110 and the random numbers Z[1], ..., Z[m-1] generated by the plaintext processing unit 120. As described above, the checksum Σ_2 is used to generate the final ciphertext block C[m] corresponding to the final plaintext block M[m]. The second checksum calculation unit 140 calculates an n-bit checksum Σ_2 by taking the exclusive OR (XOR) of the initial value 0^n, each random number z_1, and each random number Z. That is, the second checksum calculation unit 140 calculates at least one n-bit checksum Σ_2 (second checksum) using the encryption results C_1 (second encryption results) obtained by encrypting at least each of a plurality of plaintext blocks. The second checksum calculation unit 140 also calculates a checksum Σ_2 using the encryption result C_1 (second encryption result) corresponding to the AD block (associated data block). The second checksum calculation unit 140 outputs the checksum Σ_2 to the plaintext processing unit 120.
[0081] The tag generation unit 150 generates an authentication tag. Specifically, the tag generation unit 150 generates an authentication tag T_1 by encrypting a checksum Σ_1 using an encryption function F associated with a Forkcipher to which a key K and a tweak have been input. Note that the encryption function F used to generate the authentication tag T_1 may output only an n-bit encryption result (random number) corresponding to one ciphertext C_0, as shown in FIG. 2 . Then, the tag generation unit 150 acquires the n-bit encryption result corresponding to the ciphertext C_0 as the authentication tag T_1.
[0082] Furthermore, the tag generator 150 generates an authentication tag T_2 (second authentication tag) using a random number Z[m] corresponding to the encryption result C_1 (second encryption result) obtained using the final plaintext block M[m]. More specifically, the tag generator 150 obtains the n-bit random number Z[m] as the authentication tag T_2.
[0083] That is, the tag generation unit 150 generates an authentication tag T_1 (first authentication tag) by an encryption function F using a checksum Σ_1 (first checksum). The tag generation unit 150 also generates an authentication tag T_2 (second authentication tag) by using an encryption result C_1 (second encryption result) obtained by encrypting at least the last plaintext block of the plurality of plaintext blocks using the encryption function F. The tag generation unit 150 also generates an authentication tag T_2 (second authentication tag) by using the encryption result C_1 (second encryption result) obtained by encrypting the last plaintext block using the encryption function F. The tag generation unit 150 outputs the authentication tag T_1 and the authentication tag T_2 to the output unit 160.
[0084] The output unit 160 performs control to output the ciphertext C and the tag T (T_1||T_2). At this time, the output unit 160 may output the ciphertext C and the tag T in a concatenated form. The output unit 160 may, for example, perform control to display the ciphertext C and the tag T on an output device such as a display. The output unit 160 may also perform control to output the ciphertext C and the tag T to, for example, an external device connected via a network. The output unit 160 may also perform control to output the nonce N and the associated data A. For example, the output unit 160 transmits (N, A, C, T) to the authentication / decryption device 20. The same applies to other embodiments.
[0085] The output unit 160 may transmit the ciphertext C and the tag T to the authentication and decryption device 20 without strictly distinguishing between them. That is, the output unit 160 may transmit (N, A, C||T) to the authentication and decryption device 20. This also applies to the other embodiments.
[0086] FIG. 10 is a diagram illustrating an outline of the calculations performed by the AD processing unit 110, the first checksum calculation unit 130, and the second checksum calculation unit 140 according to the first embodiment. FIG. 11 is a diagram illustrating an outline of the calculations performed by the plaintext processing unit 120, the first checksum calculation unit 130, the second checksum calculation unit 140, and the tag generation unit 150 according to the first embodiment. For convenience, the first checksum calculation unit 130 is depicted as being separated into a front-end unit 130a and a rear-end unit 130b in FIGS. 10 and 11 , but the first checksum calculation unit 130 may be an integrated unit. That is, the first checksum calculation unit 130 may be configured such that the front-end unit 130a and the rear-end unit 130b are continuous. Similarly, the second checksum calculation unit 140 is depicted as being separated into a front-end unit 140a and a rear-end unit 140b in FIGS. 10 and 11 , but the second checksum calculation unit 140 may be an integrated unit. That is, the second checksum calculation unit 140 may be configured with a front section 140a and a rear section 140b connected together. This also applies to the authentication decryption device 20 and other embodiments described later.
[0087] 10 , the AD processing unit 110 encrypts AD block A[1] using encryption function F to obtain random numbers z_0[1] and z_1[1]. Similarly, the AD processing unit 110 encrypts AD block A[2] using encryption function F to obtain random numbers z_0[2] and z_1[2]. Similarly, the AD processing unit 110 encrypts AD block A[i] using encryption function F to obtain random numbers z_0[i] and z_1[i]. Then, the AD processing unit 110 encrypts the final AD block A[a] using encryption function F to obtain random numbers z_0[a] and z_1[a].
[0088] 11 , the plaintext processing unit 120 performs substantially the same processing on plaintext blocks M[1], ..., M[m] as the plaintext processing unit 84. That is, the plaintext processing unit 120 encrypts plaintext block M[1] using encryption function F to obtain ciphertext block C[1] and random number Z[1]. Similarly, the plaintext processing unit 120 encrypts plaintext block M[2] using encryption function F to obtain ciphertext block C[2] and random number Z[2]. Similarly, the plaintext processing unit 120 encrypts plaintext block M[i] using encryption function F for 1≦i≦m−1 to obtain ciphertext block C[i] and random number Z[i].
[0089] 10 and 11, the first checksum calculation unit 130 calculates a checksum Σ_1 by taking the exclusive OR of the initial value 0^n, random numbers z_0[1], ..., z_0[a], and plaintext blocks M[1], ..., M[m]. The second checksum calculation unit 140 calculates a checksum Σ_2 by taking the exclusive OR of the initial value 0^n, random numbers z_1[1], ..., z_1[a], and random numbers Z[1], ..., Z[m-1].
[0090] 11 , the plaintext processing unit 120 obtains a ciphertext block C[m] corresponding to the plaintext block M[m] by performing an exclusive OR operation on the checksum Σ_2 and the encryption result C_0 obtained by encrypting the final plaintext block M[m] using the encryption function F. The tag generation unit 150 obtains, as the authentication tag T_1, the encryption result C_0 obtained by encrypting the checksum Σ_1 using the encryption function F. The tag generation unit 150 obtains, as the authentication tag T_2, the random number Z[m] obtained by encrypting the plaintext block M[m] using the encryption function F. In this way, the authenticating encryption device 10 according to the first embodiment generates ciphertext blocks C[1], ..., C[m] and authentication tags T_1 and T_2 (T_1|T_2).
[0091] As described above, the tweak input to each of the encryption functions F used in the AD processing unit 110 and the plaintext processing unit 120 is different from the tweak input to each of the encryption functions F used in the AD processing unit 82 and the plaintext processing unit 84. For the encryption function F that processes the AD block A[i] (1≦i≦a−1), the tweak may be in the form of, for example, “N∥0000∥” as shown in FIG. 10. Furthermore, for the encryption function F that processes the final AD block A[a], the tweak may be in the form of, for example, “N∥0001∥” as shown in FIG.
[0092] For an encryption function F that processes a plaintext block M[i] (1≦i≦m−1), the tweak may have a format such as “N∥0100∥” as shown in FIG. 11 . For an encryption function F that processes a final plaintext block M[m], the tweak may have a format such as “N∥0101∥<m>” as shown in FIG. 11 . For an encryption function F that processes a checksum Σ_1 to generate an authentication tag T_1, the tweak may have a format such as “N∥1101∥<m>” as shown in FIG. 11 . Setting the tweak in this manner prevents one tweak from matching another tweak.
[0093] <Authentication and Decryption Device> Fig. 12 is a diagram showing the configuration of the authentication and decryption device 20 according to the first embodiment. Fig. 13 is a diagram showing an outline of the calculations in the authentication and decryption process according to the first embodiment. As shown in Fig. 12, the authentication and decryption device 20 has an input unit 200 and a dividing unit 202. The authentication and decryption device 20 also has an AD processing unit 210, a ciphertext processing unit 220, a first checksum calculation unit 230, a second checksum calculation unit 240, a tag generation unit 250, and a verification unit 260.
[0094] The authentication and decryption device 20 can be realized by an information processing device such as a computer. That is, the authentication and decryption device 20 has an arithmetic unit such as a CPU and a storage device such as a memory or a disk. The authentication and decryption device 20 realizes the above-mentioned components by, for example, causing the arithmetic unit to execute a program stored in the storage device. This also applies to other embodiments described later.
[0095] The input unit 200 functions as an input means. The division unit 202 functions as a division means. The AD processing unit 210 functions as an associated data processing means. The ciphertext processing unit 220 functions as a ciphertext processing means. The first checksum calculation unit 230 functions as a first checksum calculation means (checksum calculation means; calculation means). The second checksum calculation unit 240 functions as a second checksum calculation means (checksum calculation means; calculation means). The tag generation unit 250 functions as a tag generation means. The verification unit 260 functions as a verification means. Note that the verification unit 260 may also function as an output means that outputs the verification result. This is the same in other embodiments.
[0096] The input unit 200 accepts input of the nonce N, the associated data A, the ciphertext C to be decrypted (first ciphertext), and the authentication tag T (T_1||T_2) transmitted from the authentication encryption device 10. The input unit 200 may be realized by an input device such as a keyboard. The input unit 200 may accept input of the nonce N, the associated data A, the ciphertext C, and the tag T from, for example, an external device connected via a network. Note that there may be cases where the associated data A does not exist, in which case the associated data A is not input. The input unit 200 outputs the nonce N to the AD processing unit 210, the ciphertext processing unit 220, and the tag generation unit 250. The input unit 200 also outputs the ciphertext C and the associated data A to the division unit 202. The input unit 200 also outputs the authentication tag T to the verification unit 260.
[0097] The dividing unit 202 divides each of the ciphertext C and the associated data A into blocks of a predetermined length. Specifically, the dividing unit 202 divides the ciphertext C into n-bit ciphertext blocks C[1], ..., C[m], where m is the number of ciphertext blocks. The dividing unit 202 outputs the ciphertext blocks C[1], ..., C[m] to the ciphertext processing unit 220. The dividing unit 202 also divides the associated data A into AD blocks A[1], ..., A[a], where a is the number of AD blocks. The dividing unit 202 outputs the AD blocks A[1], ..., A[a] to the AD processing unit 210.
[0098] The AD processing unit 210 performs substantially the same processing as the AD processing unit 110 described above. That is, the AD processing unit 210 performs the encryption function F(F K ) are used to process them in parallel. Note that the tweak input to each encryption function F used in the AD processing unit 210 may be set substantially in the same way as the tweak input to each encryption function F used in the AD processing unit 110 described above.
[0099] That is, the AD processing unit 210 encrypts a plurality of AD blocks (associated data blocks) obtained by dividing the associated data AD into n-bit lengths using an encryption function F (first encryption function). The AD processing unit 210 thereby obtains an encryption result C_0 (first encryption result) and an encryption result C_1 (second encryption result) corresponding to the AD blocks. The AD processing unit 210 outputs random numbers z_0 (z_0[1], ..., z_0[a]) corresponding to the encryption result C_0 obtained using each AD block to the first checksum calculation unit 230. The AD processing unit 210 also outputs random numbers z_1 (z_1[1], ..., z_1[a]) corresponding to the encryption result C_1 to the second checksum calculation unit 240.
[0100] The ciphertext processing unit 220 processes ciphertext C, which is a multiple of n bits. That is, the ciphertext processing unit 220 processes ciphertext blocks C[1], ..., C[m] using a decryption function F -1 (F -1 K Specifically, the ciphertext processing unit 220 processes the ciphertext blocks C[1], ..., C[m] in parallel using the decryption function F -1 Here, the decryption function F used in the ciphertext processing unit 220 is -1 As shown in FIG. 4, the decryption function F outputs an n-bit plaintext block (decryption result; random number) and another n-bit encryption result (random number). -1 takes as input a ciphertext block corresponding to ciphertext C_0, and outputs a plaintext block corresponding to the ciphertext block and ciphertext C_1, which is another encryption result.
[0101] The ciphertext processing unit 220 processes each decryption function F -1 , and obtains the decryption result output from each decryption function F as the plaintext block M[i] obtained by decrypting the ciphertext block C[i]. In other words, the ciphertext processing unit 220 uses the ciphertext blocks C[i] other than the final ciphertext block C[m] as the encryption result C_0 and decrypts the ciphertext blocks C[i] with each decryption function F -1 and obtains the output decryption result as the plaintext block M[i] obtained by decrypting the ciphertext block C[i]. -1 , and obtains the right-side encryption result C_1 output from the ciphertext processing unit 220 as the random number Z[i]. That is, the ciphertext processing unit 220 uses the ciphertext block C[i] as the encryption result C_0 and -1 The right-side encryption result C_1 corresponding to the encryption result C_0, which is output by inputting the above, is obtained as the random number Z[i].
[0102] The ciphertext processing unit 220 also generates a decryption function F -1, the final ciphertext block C[m], and the second checksum Σ_2 to obtain the plaintext block M[m] obtained by decrypting the final ciphertext block C[m]. Specifically, the ciphertext processing unit 220 uses the random number obtained by exclusive-ORing the final ciphertext block C[m] and the second checksum Σ_2 as the ciphertext C_0, and decrypts the plaintext block M[m] using the decryption function F -1 Then, the ciphertext processing unit 220 inputs the decryption function F -1 The decryption result output from the second checksum calculation unit 240 is acquired as the plaintext block M[m] obtained by decrypting the ciphertext block C[m]. The checksum Σ_2 is calculated by the second checksum calculation unit 240, which will be described later.
[0103] That is, the ciphertext processing unit 220 uses the decryption function F -1 (first decryption function) to decrypt each of the first encryption results obtained from the multiple ciphertext blocks. -1 The ciphertext processing unit 220 obtains an n-bit plaintext block corresponding to the decryption result of the ciphertext block and an n-bit encryption result C_1 (second encryption result) corresponding to the first encryption result. -1 The ciphertext processing unit 220 obtains the plaintext block by decrypting the ciphertext blocks other than the last ciphertext block using the decryption function F. The ciphertext processing unit 220 also obtains the plaintext block by using the last ciphertext block and the checksum Σ_2 (second checksum) as the encryption result C_0 and the value (random number) obtained using the checksum Σ_2 (second checksum). -1 As a result, the ciphertext processing unit 220 obtains the last plaintext block obtained by decrypting the last ciphertext block, and the encryption result C_1 corresponding to the encryption result C_0.
[0104] The ciphertext processing unit 220 outputs the plaintext blocks M[1], ..., M[m] to the first checksum calculation unit 230. The ciphertext processing unit 220 also outputs a random number Z[i] corresponding to the right-side encryption result C_1 obtained using a ciphertext block C[i] other than the final ciphertext block C[m] to the second checksum calculation unit 240. The ciphertext processing unit 220 also outputs a random number Z[m] corresponding to the right-side encryption result C_1 obtained using the final ciphertext block C[m] to the tag generation unit 250. The ciphertext processing unit 220 also outputs the plaintext blocks M[1], ..., M[m] to the verification unit 260 as plaintext M = M[1] || ... || M[m]. The decryption function F used in the ciphertext processing unit 220 is -1 The tweaks input to each of them may be set substantially in the same way as the tweaks input to each of the encryption functions F used in the plaintext processing unit 120 described above.
[0105] The first checksum calculation unit 230 performs processing similar to that of the above-described first checksum calculation unit 130. That is, the first checksum calculation unit 230 calculates a checksum Σ_1 (first checksum) using the random number z_0 generated by the AD processing unit 210 and the plaintext blocks M[1], ..., M[m]. The checksum Σ_1 calculated by the first checksum calculation unit 230 is calculated using the verification tag T * The first checksum calculation unit 230 calculates an n-bit checksum Σ_1 by taking the exclusive OR (XOR) of the initial value 0^n, each random number z_0, and each plaintext block. That is, the first checksum calculation unit 230 calculates at least one n-bit checksum Σ_1 (first checksum) using at least a plurality of plaintext blocks. The first checksum calculation unit 230 also calculates the checksum Σ_1 by using the encryption result C_0 (first encryption result) corresponding to the associated data AD. The first checksum calculation unit 230 outputs the checksum Σ_1 to the tag generation unit 250.
[0106] The second checksum calculation unit 240 performs processing similar to that of the second checksum calculation unit 140 described above. That is, the second checksum calculation unit 240 calculates a checksum Σ_2 (second checksum) using the random number z_1 generated in the AD process 2110 and the random numbers Z[1], ..., Z[m-1] generated in the ciphertext processing unit 220. As described above, the checksum Σ_2 calculated by the second checksum calculation unit 240 is used to generate the final plaintext block M[m] corresponding to the final ciphertext block C[m]. The second checksum calculation unit 240 calculates the n-bit checksum Σ_2 by taking the exclusive OR (XOR) of the initial value 0^n, each random number z_1, and each random number Z. That is, the second checksum calculation unit 240 calculates at least one n-bit checksum Σ_2 using the encryption result C_1 (second encryption result) obtained by decrypting at least each of the multiple encryption results C_0 (first encryption results) using the decryption function. The second checksum calculation unit 240 also calculates the checksum Σ_2 using the encryption result C_1 (second encryption result) corresponding to the associated data AD. The second checksum calculation unit 240 outputs the checksum Σ_2 to the ciphertext processing unit 220.
[0107] The tag generation unit 250 generates a verification tag. Specifically, similar to the tag generation unit 150 described above, the tag generation unit 250 generates a verification tag T * More specifically, the tag generation unit 250 generates a verification tag T_1 (first verification tag) by encrypting the checksum Σ_1 using the encryption function F associated with the Forkcipher to which the key K and Tweak are input. * Then, the tag generation unit 250 generates the verification tag T_1 from the n-bit encryption result corresponding to the ciphertext C_0. * Get it as _1.
[0108] Furthermore, the tag generation unit 250 generates a verification tag T *Specifically, the tag generator 250 generates a verification tag T_2 (second verification tag) using an n-bit random number Z[m] corresponding to the encryption result C_1 (second encryption result) obtained using the final ciphertext block C[m] and the checksum Σ_2. * More specifically, the tag generator 250 generates a verification tag T_2 by using an n-bit random number Z[m] obtained by exclusive ORing the final ciphertext block C[m] and the checksum Σ_2. * As described above, the n-bit random number Z[m] is obtained by the ciphertext processing unit 220 by calculating the exclusive OR of the final ciphertext block C[m] and the checksum Σ_2 using the decryption function F -1 is obtained by decoding using
[0109] That is, the tag generator 250 generates the verification tag T by using the checksum Σ_1 (first checksum) and the encryption function F. * The tag generator 250 also generates a first verification tag C_1 (first encryption result) obtained from at least the last ciphertext block using a decryption function F -1 Then, the tag generating unit 250 generates the verification tag T using the obtained encryption result C_1 (second encryption result). * The tag generator 250 generates a decryption function F -1 The verification tag T is obtained using the encryption result C_1 (second encryption result) obtained from the last ciphertext block using * The tag generation unit 250 generates a verification tag T * _1 and verification tag T * _2 to the verification unit 260.
[0110] The verification unit 260 uses the verification tag T generated by the tag generation unit 250. * _1, T *The verification unit 260 compares the verification tag T_1 and T_2 generated by the authentication encryption device 10 with the authentication tag T_1 and T_2, respectively, to verify whether or not the tag has been tampered with. Then, the verification unit 260 controls the output of information based on the verification result. * _1 (first verification tag) and verification tag T * The verification unit 260 verifies whether or not tampering has occurred by comparing the input authentication tag T_1 and the input authentication tag T_2 (second verification tag) with the input authentication tag T_1 and the input authentication tag T_2, respectively. Then, the verification unit 260 performs control to output the verification result. Note that the verification unit 260 may, for example, perform control to display information on an output device such as a display. The verification unit 260 may also, for example, perform control to output information to an external device connected via a network. These are similar to the other embodiments.
[0111] Specifically, the verification unit 260 verifies the authentication tag T_1 and the verification tag T * The verification unit 260 compares the authentication tag T_2 with the verification tag T_1. * Then, the verification unit 260 compares the verification tag T * _1 matches the authentication tag T_1, and the verification tag T * If the authentication tag T_2 matches the authentication tag T_2, the verification unit 260 determines that the authentication is successful. If the authentication is successful, the verification unit 260 performs control to output the plaintext M generated by the ciphertext processing unit 220.
[0112] On the other hand, the verification unit 260 * _1 matches the authentication tag T_1, and the verification tag T * If the comparison result does not show that the verification tag T_2 matches the authentication tag T_2, the verification unit 260 determines that the authentication has failed. * If the verification tag T_1 does not match the authentication tag T_1, the verification unit 260 determines that the authentication has failed. * If the verification tag T_2 does not match the verification tag T_2, the verification unit 260 determines that the authentication has failed. *_1 does not match the authentication tag T_1, and the verification tag T * If the authentication tag T_2 does not match the authentication tag T_2, the verification unit 260 determines that the authentication has failed. If the authentication has failed, the verification unit 260 performs control to output an error message ⊥ indicating that the authentication has failed.
[0113] The verification unit 260 verifies the data T_1∥T_2 in which the authentication tag T_1 and the authentication tag T_2 are linked, and the verification tag T * _1 and verification tag T * Data T * _1||T * The verification unit 260 may compare T * _1||T * If T_1||T_2 matches T_1||T_2, the verification unit 260 may determine that the authentication is successful. * _1||T * If T_1∥T_2 does not match T_1∥T_2, it may be determined that the authentication has failed. The same applies to other embodiments.
[0114] 13 is a diagram illustrating an outline of the operations of the ciphertext processing unit 220, the first checksum calculation unit 230, the second checksum calculation unit 240, and the tag generation unit 250 according to the first embodiment. Note that the outline of the operations of the AD processing unit 210, and the first checksum calculation unit 230 and the second checksum calculation unit 240 related to the AD processing unit 210 is substantially the same as that shown in FIG. 10 , and is therefore not shown.
[0115] 13, the ciphertext processing unit 220 performs decryption processing on the ciphertext blocks C[1], ..., C[m]. Specifically, the ciphertext processing unit 220 performs decryption processing on the ciphertext blocks C[1], ..., C[m] by using the decryption function F -1 This gives the decoding function F -1 Similarly, the ciphertext processing unit 220 outputs the plaintext block M[1] and the random number Z[1], which is another encryption result C_1, as the decryption function F -1 This gives the decoding function F -1The plaintext block M[2] and the random number Z[2], which is another encryption result C_1, are output from the ciphertext processing unit 220. Similarly, for 1≦i≦m−1, the ciphertext processing unit 220 sets the ciphertext block C[i] to C_0 and decrypts the decryption function F -1 This gives the decoding function F -1 The plaintext block M[i], which is the decryption result, and the random number Z[i], which is another encryption result C_1, are output from
[0116] 13, the first checksum calculation unit 230 calculates a checksum Σ_1 by taking the exclusive OR of the initial value 0^n, random numbers z_0[1], ..., z_0[a], and plaintext blocks M[1], ..., M[m]. The second checksum calculation unit 240 calculates a checksum Σ_2 by taking the exclusive OR of the initial value 0^n, random numbers z_1[1], ..., z_1[a], and random numbers Z[1], ..., Z[m-1].
[0117] 13, the ciphertext processing unit 220 calculates a decryption function F using a random number C_0 obtained by exclusive ORing the final ciphertext block C[m] and the checksum Σ_2. -1 This gives the decoding function F -1 The tag generator 250 outputs the encryption result C_0, which is the checksum Σ_1 encrypted using the encryption function F, as a verification tag T * The tag generating unit 250 also obtains the decryption function F -1 The random number Z[m] output by decrypting the ciphertext block C[m] using * In this way, the authenticating / decrypting device 20 according to the first embodiment acquires the plaintext blocks M[1], ..., M[m] and the verification tag T * _1, T * _2 (T * _1||T * _2) is generated.
[0118] <Authentication Encryption Method and Authentication Decryption Method> Next, the operation of the authentication encryption system 1 according to the first embodiment will be described with reference to Fig. 14 and Fig. 15. Fig. 14 is a flowchart showing the authentication encryption method executed by the authentication encryption device 10 according to the first embodiment.
[0119] As described above, the input unit 100 inputs plaintext M and associated data A (step S102). As described above, the division unit 102 divides each of the plaintext M and associated data A into blocks (plaintext blocks and AD blocks) of a predetermined length (n bits) (step S104). As described above, the nonce generation unit 104 generates a nonce N (step S106).
[0120] Next, the AD processing unit 110 processes the AD block as described above to obtain random numbers z_0 and z_1 (step S112). The plaintext processing unit 120 processes the plaintext block as described above to obtain a ciphertext block and random number Z (step S114). Note that in the first embodiment, the plaintext processing unit 120 may process the final plaintext block M[m] after S118. That is, after the checksum Σ_2 is calculated in the processing of S118, the plaintext processing unit 120 may generate the final ciphertext block C[m] using the final plaintext block M[m]. Alternatively, the tag generation unit 150 may process the final plaintext block M[m] to generate the final ciphertext block C[m].
[0121] As described above, the first checksum calculation unit 130 calculates a checksum Σ_1 using the random number z_0 and the plaintext block (step S116). As described above, the second checksum calculation unit 140 calculates a checksum Σ_2 using the random number z_1 and the random number Z (step S118).
[0122] Next, the tag generation unit 150 generates the authentication tag T_1 and the authentication tag T_2 as described above (step S122). In the first embodiment, the tag generation unit 150 generates the authentication tag T_1 using the checksum Σ_1, and generates the authentication tag T_2 using the random number Z[m] obtained by processing the final plaintext block M[m]. Then, the output unit 160 outputs the nonce N, the associated data A, the ciphertext C, and the tags T_1 and T_2 as described above (step S124).
[0123] 15 is a flowchart showing the authentication decryption method executed by the authentication / decryption device 20 according to the first embodiment. As described above, the input unit 200 inputs the nonce N, the associated data A, the ciphertext C, and the authentication tag T (T_1, T_2) (step S202). As described above, the division unit 202 divides each of the ciphertext C and the associated data A into blocks (ciphertext blocks and AD blocks) of a predetermined length (n bits) (step S204).
[0124] Next, the AD processing unit 210 processes the AD block as described above to obtain random numbers z_0 and z_1 (step S212). The ciphertext processing unit 220 processes the ciphertext block as described above to obtain a plaintext block and random number Z (step S214). Note that in the first embodiment, the ciphertext processing unit 220 may process the final ciphertext block C[m] after S218. That is, the ciphertext processing unit 220 may generate the final plaintext block M[m] using the final ciphertext block C[m] after calculating the checksum Σ_2 in the processing of S218. Alternatively, the tag generation unit 250 may process the final ciphertext block C[m] to generate the final plaintext block M[m].
[0125] As described above, the first checksum calculation unit 230 calculates a checksum Σ_1 using the random number z_0 and the plaintext block (step S216). As described above, the second checksum calculation unit 240 calculates a checksum Σ_2 using the random number z_1 and the random number Z (step S218). Note that in the first embodiment, the first checksum calculation unit 230 may complete the calculation of the checksum Σ_1 after the final ciphertext block C[m] is processed.
[0126] Next, the tag generation unit 250 generates the verification tag T * _1 and verification tag T * In the first embodiment, the tag generation unit 250 generates the verification tag T_2 using the checksum Σ_1 (step S222). * _1, and generates a verification tag T using the random number Z[m] obtained by processing the final ciphertext block C[m]. * Then, the verification unit 260 generates the authentication tag T_1 and the verification tag T_2 as described above. * _1 and the authentication tag T_2 and the verification tag T * It is determined whether the authentication tag T_1 and the verification tag T_2 match (step S230). * _1 matches, and the authentication tag T_2 matches the verification tag T * If the authentication tag T_1 and the verification tag T_2 match (YES in S230), the verification unit 260 outputs the plain text M (step S232). * _1, and authentication tag T_2 and verification tag T * If at least one of the following does not match (NO in S230), the verification unit 260 outputs an error message ⊥ (step S234).
[0127] <Effects> As described above, the authentication encryption device 10 according to the first embodiment is configured not only to generate a checksum Σ_2 from the random number Z obtained by processing the plaintext block, but also to generate an n-bit checksum Σ_1 using the plaintext block. This makes it possible to generate not only the tag T (corresponding to the authentication tag T_2 according to the first embodiment) generated in the comparative example, but also an n-bit authentication tag T_1 using the checksum Σ_1. That is, in the first embodiment, a 2n-bit authentication tag (T_1∥T_2) can be generated. Therefore, the authentication encryption device 10 according to the first embodiment can achieve a security level of 2n bits. Therefore, the authentication encryption device 10 according to the first embodiment can achieve a security level greater than n bits, which was not possible in the comparative example.
[0128] (Embodiment 2) Next, embodiment 2 will be described. For clarity of explanation, the following description and drawings have been omitted and simplified as appropriate. Furthermore, in each drawing, the same elements are given the same reference numerals, and duplicate explanations are omitted as necessary. Note that the system configuration according to embodiment 2 is substantially the same as the system configuration according to embodiment 1, and therefore explanations thereof will be omitted. In other words, the authentication encryption system 1 according to embodiment 2 has an authentication encryption device 10A corresponding to the authentication encryption device 10, and an authentication decryption device 20A corresponding to the authentication decryption device 20.
[0129] The authenticated encryption method according to the second embodiment corresponds to an improved configuration of the technique according to the above-mentioned second comparative example (Non-Patent Document 1). That is, in the authenticated encryption method according to the second embodiment, it is assumed that the bit length of the associated data A and the bit length of the plaintext M (first plaintext) to be encrypted are not multiples of n bits.
[0130] <Authentication Encryption Device> Fig. 16 is a diagram showing the configuration of an authentication encryption device 10A according to the second embodiment. Figs. 17 and 18 are diagrams showing an outline of the calculations in the authentication encryption process according to the second embodiment. As shown in Fig. 16, the authentication encryption device 10A has an input unit 100, a division unit 102A, and a nonce generation unit 104. The authentication encryption device 10A also has an AD processing unit 110A, a plaintext processing unit 120A, a first checksum calculation unit 130A, a second checksum calculation unit 140, a tag generation unit 150A, and an output unit 160.
[0131] The authentication encryption device 10A corresponds to the authentication encryption device 10 shown in Figures 8 and 9. The dividing unit 102A corresponds to the dividing unit 102 according to the first embodiment. The AD processing unit 110A corresponds to the AD processing unit 110 according to the first embodiment. The plaintext processing unit 120A corresponds to the plaintext processing unit 120 according to the first embodiment. The first checksum calculation unit 130A corresponds to the first checksum calculation unit 130 according to the first embodiment. The tag generation unit 150A corresponds to the tag generation unit 150 according to the first embodiment. The following describes the configuration of the authentication encryption device 10A, mainly focusing on the parts that differ from the configuration of the authentication encryption device 10.
[0132] The dividing unit 102A divides each of the plaintext M and the associated data A into blocks of a predetermined length. Specifically, the dividing unit 102A divides the plaintext M into plaintext blocks M[1], ..., M[m-1], each of which is n bits, and a final plaintext block M[m] of less than n bits. That is, if the bit length of the plaintext M (first plaintext) is not a multiple of n, the dividing unit 102A divides the plaintext M into plaintext blocks of n bits other than the final plaintext block, and the final plaintext block of less than n bits. The dividing unit 102A outputs the plaintext blocks M[1], ..., M[m] to the plaintext processing unit 120A. The dividing unit 102A also divides the associated data A into AD blocks A[1], ..., A[a-1], each of which is n bits, and a final AD block A[a] of less than n bits. That is, if the bit length of the associated data A is not a multiple of n, the dividing unit 102A divides the associated data A into AD blocks each having a length of n bits other than the last AD block, and the last AD block having a length of less than n bits. The dividing unit 102A outputs the AD blocks A[1], ..., A[a] to the AD processing unit 110A.
[0133] The AD processing unit 110A processes associated data A (AD) that is not a multiple of n bits, similar to the AD processing unit 82A. The AD processing unit 110A processes the AD blocks A[1], ..., A[a] using an encryption function F (F K ), and processes them in parallel. Specifically, the AD processing unit 110A encrypts the AD blocks A[1], ..., A[a] in parallel using encryption functions F to which different tweaks are input. Note that, similar to the AD processing unit 110 according to the first embodiment, the encryption function F used in the AD processing unit 110A outputs, as encryption results, n-bit ciphertexts (random numbers) z_0 and z_1 corresponding to the two ciphertexts C_0 and C_1, respectively.
[0134] Here, the AD processing unit 110A according to the second embodiment performs substantially the same processing as the AD processing unit 110 according to the first embodiment for the AD blocks A[1], ..., A[a-1]. On the other hand, the AD processing unit 110A performs processing different from that of the AD processing unit 110 according to the first embodiment for the final AD block A[a]. That is, because the bit length of the final AD block A[a] is less than n bits, the final AD block A[a] cannot be input as is to the encryption function F with an n-bit input. Therefore, like the AD processing unit 82A, the AD processing unit 110A performs padding processing on the final AD block A[a] so that the bit length becomes n bits. For example, the AD processing unit 110A performs one-zero padding (OZP) on the final AD block A[a]. As a result, the AD processing unit 110A obtains the n-bit bit string "A[a]∥10^*" for the final AD block A[a]. If OZP(X) is a function that performs padding on block X, then A[a]∥10^* can be expressed as OZP(A[a]). The AD processing unit 110A encrypts "A[a]∥10^*" using the encryption function F, and obtains, as the encryption result, n-bit ciphertexts (random numbers) z_0[a] and z_1[a] corresponding to the two ciphertexts C_0 and C_1, respectively.
[0135] That is, the AD processing unit 110A uses an encryption function F (first encryption function) to encrypt multiple AD blocks (associated data blocks) obtained by dividing the associated data (AD). The AD processing unit 110A thereby obtains an encryption result C_0 (first encryption result) and an encryption result C_1 (second encryption result) corresponding to the AD blocks. At this time, the AD processing unit 110A encrypts n-bit data obtained by padding the last AD block of less than n bits using the encryption function F. The AD processing unit 110A outputs a random number z_0 corresponding to the encryption result C_0 obtained using each AD block to the first checksum calculation unit 130A. The AD processing unit 110A also outputs a random number z_1 corresponding to the encryption result C_1 to the second checksum calculation unit 140.
[0136] Note that the tweaks input to the encryption functions used in the AD processing unit 110A may be different from the tweaks input to the encryption functions used in the AD processing unit 82A. Also, the tweaks input to the encryption functions used in the AD processing unit 110A may be different from the tweaks input to the encryption functions used in the AD processing unit 110. This will be described in detail later.
[0137] The plaintext processing unit 120A processes plaintext M that is not a multiple of n bits, similar to the plaintext processing unit 84A. The plaintext processing unit 120A processes plaintext blocks M[1], ..., M[m] using an encryption function F(F K ), and processes them in parallel. Specifically, the plaintext processing unit 120A encrypts plaintext blocks M[1], ..., M[m] in parallel using encryption functions F to which different tweaks are input. The encryption function F used in the plaintext processing unit 120A outputs n-bit ciphertexts (random numbers) corresponding to the two ciphertexts C_0 and C_1 as the encryption result.
[0138] Here, the plaintext processing unit 120A according to the second embodiment performs substantially the same processing as the plaintext processing unit 120 according to the first embodiment for the plaintext blocks M[1], ..., M[m-1]. That is, the plaintext processing unit 120A obtains the encryption result C_0 on the left side output from each encryption function F that processes plaintext blocks M[i] other than the final plaintext block M[m] as the ciphertext block C[i] obtained by encrypting the plaintext block M[i]. In addition, the plaintext processing unit 120A obtains the encryption result C_1 on the right side output from each encryption function F that processes the plaintext block M[i] as the random number Z[i].
[0139] On the other hand, the plaintext processing unit 120A according to the second embodiment performs processing on the final plaintext block M[m] differently from the plaintext processing unit 120 according to the first embodiment. That is, because the bit length of the final plaintext block M[m] is less than n bits, the final plaintext block M[m] cannot be input as is to the encryption function F with an n-bit input. Therefore, like the plaintext processing unit 84A, the plaintext processing unit 120A performs padding processing on the final plaintext block M[m] so that its bit length becomes n bits. For example, the plaintext processing unit 120A performs one-zero padding processing (OZP) on the final plaintext block M[m]. As a result, the plaintext processing unit 120A obtains an n-bit bit string "M[m]∥10^*" (OZP(M[m])) for the final plaintext block M[m]. Note that "10^*" indicates data added by the padding processing. That is, if the bit length of the final plaintext block M[m] is k (k<n), then "10^*" is an n-k bit string. The plaintext processing unit 120A encrypts "M[m]||10^*" using the encryption function F, and obtains n-bit ciphertexts (random numbers) corresponding to the two ciphertexts C_0 and C_1 as the encryption results.
[0140] The plaintext processing unit 120A also obtains an n-bit ciphertext block C[m] corresponding to the final plaintext block M[m] using the left-side encryption result C_0 output from the encryption function F that processes the final plaintext block M[m] and the checksum Σ_2. That is, |C[m]| = n. Here, the ciphertext block C[m] is n-bit data (random number) obtained by encrypting data (M[m]∥10^*) obtained by padding the final plaintext block M[m]. Specifically, the plaintext processing unit 120A obtains the ciphertext block C[m] corresponding to the final plaintext block M[m] by performing an exclusive OR operation on the encryption result C_0 obtained using M[m]∥10^* and the checksum Σ_2. The plaintext processing unit 120A also obtains the right-side encryption result C_1 output from the encryption function F that processes the plaintext block M[m] as an n-bit random number Z[m].
[0141] That is, the plaintext processing unit 120A encrypts each of the multiple plaintext blocks using an encryption function F (first encryption function). The plaintext processing unit 120A then obtains an n-bit encryption result C_0 (first encryption result) and an n-bit encryption result C_1 (second encryption result), which are the outputs of the encryption function F. The plaintext processing unit 120A then obtains a ciphertext block obtained by encrypting the plaintext blocks other than the last plaintext block using the encryption function F, using the encryption result C_0 obtained by encrypting the plaintext blocks other than the last plaintext block. The plaintext processing unit 120A also encrypts n-bit data obtained by padding the last plaintext block, which is less than n bits. The plaintext processing unit 120A then obtains a ciphertext block corresponding to the last plaintext block using the encryption result C_0 obtained in this manner and a checksum Σ_2 (second checksum).
[0142] The plaintext processing unit 120A outputs plaintext blocks M[1], ..., M[m] to the first checksum calculation unit 130A. The plaintext processing unit 120A also outputs a random number Z[i] corresponding to the right-side encryption result C_1 obtained using a plaintext block M[i] other than the final plaintext block M[m] to the second checksum calculation unit 140. The plaintext processing unit 120A also outputs a random number Z[m] corresponding to the right-side encryption result C_1 obtained using the final plaintext block M[m] to the tag generation unit 150A. The plaintext processing unit 120A also outputs the ciphertext blocks C[1], ..., C[m] to the output unit 160 as ciphertext C = C[1] || ... || C[m]. Here, since the bit length of C[m] is n bits, the bit length of the ciphertext C is a multiple of n bits.
[0143] Note that the tweak input to each encryption function used in the plaintext processing unit 120A may be different from the tweak input to each encryption function used in the plaintext processing unit 84A. Also, the tweak input to each encryption function used in the plaintext processing unit 120A may be different from the tweak input to each encryption function used in the plaintext processing unit 120. Details will be described later.
[0144] The first checksum calculation unit 130A calculates a checksum Σ_1 (first checksum) using the random number z_0 generated by the AD processing unit 110A and the plaintext blocks M[1], ..., M[m]. Here, the first checksum calculation unit 130A performs substantially the same processing as the first checksum calculation unit 130 according to the first embodiment for the random number z_0 generated by the AD processing unit 110A and the plaintext blocks M[1], ..., M[m-1]. However, as described above, the bit length of the final plaintext block M[m] is less than n bits. Therefore, it is not possible to calculate the n-bit checksum Σ_1 by performing an exclusive OR on the final plaintext block M[m] as is. Therefore, the first checksum calculation unit 130A calculates the n-bit checksum Σ_1 by performing an exclusive OR on the n-bit data generated by performing the processing described below on the final plaintext block M[m]. The first checksum calculation unit 130A outputs the checksum Σ_1 to the tag generation unit 150A.
[0145] The tag generation unit 150A generates an authentication tag T_1 and an authentication tag T_2. Specifically, similar to the tag generation unit 150, the tag generation unit 150A generates an n-bit authentication tag T_1 by encrypting an n-bit checksum Σ_1 using an encryption function F. As will be described later, the checksum Σ_1 is calculated by a method different from the method according to the first embodiment.
[0146] Furthermore, the tag generation unit 150A generates an authentication tag T_2 (second authentication tag) using an n-bit random number Z[m] corresponding to the encryption result C_1 (second encryption result) obtained using the final plaintext block M[m]. Here, the bit length of the authentication tag T_2 according to the second embodiment is the same as that of the final plaintext block M[m]. That is, |T_2| = |M[m]|. Therefore, the tag generation unit 150A truncates the bit string of the n-bit random number Z[m] to the length of the final plaintext block M[m]. For example, the length of the final plaintext block M[m] is assumed to be k bits (k < n). In this case, the tag generation unit 150A generates the most significant k bits (the leftmost k bits) of the bit string of the n-bit random number Z[m] as the authentication tag T_2. In this way, the tag generation unit 150A generates an authentication tag T_2 of the same bit length as the last plaintext block M[m]. That is, the tag generation unit 150A generates the authentication tag T_2 (second authentication tag) by using a bit string corresponding to the size of the last plaintext block from among the random numbers (second encryption result) obtained by the encryption function F (first encryption function) using the last plaintext block. The tag generation unit 150A outputs the authentication tag T_1 and the authentication tag T_2 to the output unit 160.
[0147] Here, the first checksum calculation unit 130A concatenates the final plaintext block M[m] with the bit string of the random number Z[m], excluding the bit string corresponding to the size of the final plaintext block M[m]. For example, as described above, the length of the final plaintext block M[m] is assumed to be k bits (k<n). The tag generation unit 150A then generates the most significant k bits (the k bits on the left) of the n-bit random number Z[m] as the authentication tag T_2. In this case, the first checksum calculation unit 130A concatenates the least significant n-k bits (the n-k bits on the right) of the n-bit random number Z[m] to the final plaintext block M[m]. As a result, the first checksum calculation unit 130A generates an n-bit data string including the bit string of the final plaintext block M[m].
[0148] The first checksum calculation unit 130A calculates an n-bit checksum Σ_1 by exclusive-ORing an n-bit data string including the initial value 0^n, each random number z_0, the plaintext blocks M[1], ..., M[m-1], and the bit string of the last plaintext block M[m]. That is, the first checksum calculation unit 130A concatenates the last plaintext block with a bit string other than the bit string corresponding to the size of the last plaintext block from the encryption result C_1 (random number Z[m]) obtained by the encryption function F using the last plaintext block. The first checksum calculation unit 130A then calculates the checksum Σ_1 using the n-bit bit string obtained by concatenation. Note that the concatenation process for the last plaintext block may be performed by the plaintext processing unit 120A instead of the first checksum calculation unit 130A.
[0149] Fig. 17 is a diagram illustrating an outline of the calculations performed by the AD processing unit 110A, the first checksum calculation unit 130A, and the second checksum calculation unit 140 according to the second embodiment. Fig. 18 is a diagram illustrating an outline of the calculations performed by the plaintext processing unit 120A, the first checksum calculation unit 130A, the second checksum calculation unit 140, and the tag generation unit 150A according to the second embodiment.
[0150] 17, the AD processing unit 110A, like the AD processing unit 110, encrypts the AD block A[1] using the encryption function F to obtain random numbers z_0[1] and z_1[1]. Similarly, the AD processing unit 110 encrypts the AD block A[2] using the encryption function F to obtain random numbers z_0[2] and z_1[2]. Similarly, the AD processing unit 110A encrypts the AD blocks A[i] other than the final AD block A[a] using the encryption function F to obtain random numbers z_0[i] and z_1[i]. The AD processing unit 110A also encrypts the data "A[a]∥10^*" obtained by padding the final AD block A[a] to obtain random numbers z_0[a] and z_1[a].
[0151] 18, the plaintext processing unit 120A performs substantially the same processing on plaintext blocks M[1], ..., M[m-1] as the plaintext processing unit 120. That is, for 1≦i≦m-1, the plaintext processing unit 120A encrypts plaintext block M[i] using encryption function F to obtain ciphertext block C[i] and random number Z[i]. The plaintext processing unit 120A also encrypts data "M[m]∥10^*", which is obtained by padding the final plaintext block M[m], using encryption function F to obtain the encryption result C_0 and random number Z[m].
[0152] 17 and 18, the second checksum calculation unit 140 calculates the checksum Σ_2 by exclusive ORing the initial value 0^n, the random numbers z_1[1], ..., z_1[a], and the random numbers Z[1], ..., Z[m-1]. Also, as shown in Fig. 18, the plaintext processing unit 120A obtains the ciphertext block C[m] by exclusive ORing the checksum Σ_2 with the encryption result C_0 output by encrypting the data "M[m]||10^*" including the final plaintext block M[m].
[0153] 18, the tag generation unit 150A generates an authentication tag T_2 by extracting a bit string of the same length as the length of the final plaintext block M[m] (|M[m]|) from the bit string of the n-bit random number Z[m]. Also, as shown in FIG. 18, the first checksum calculation unit 130A obtains an n-bit data string by concatenating the final plaintext block M[m] and a bit string of the random number Z[m] excluding a bit string equal to the size of the final plaintext block M[m]. The first checksum calculation unit 130A then calculates a checksum Σ_1 by exclusive-ORing the initial value 0^n, each random number z_0, the plaintext blocks M[1], ..., M[m-1], and an n-bit data string including the bit string of the final plaintext block M[m]. The tag generation unit 150A also encrypts the checksum Σ_1 using the encryption function F and obtains the output encryption result C_0 as the authentication tag T_1.
[0154] As described above, the tweak input to each of the encryption functions F used in the AD processing unit 110A and the plaintext processing unit 120A is different from the tweak input to each of the encryption functions F used in the AD processing unit 82A and the plaintext processing unit 84A. For the encryption function F that processes the AD block A[i] (1≦i≦a−1), as in the first embodiment, the tweak may be in a format such as "N∥0000∥" as shown in FIG. 17. Furthermore, for the encryption function F that processes the final AD block A[a], unlike in the first embodiment, the tweak may be in a format such as "N∥0010∥" as shown in FIG.
[0155] Furthermore, for the encryption function F that processes the plaintext block M[i] (1≦i≦m−1), the tweak may be in the form of, for example, "N∥0100∥" as shown in FIG. 18 , similar to the first embodiment. For the encryption function F that processes the final plaintext block M[m], the tweak may be in the form of, for example, "N∥0110∥<m>" as shown in FIG. 18 , unlike the first embodiment. For the encryption function F that processes the checksum Σ_1 to generate the authentication tag T_1, the tweak may be in the form of, for example, "N∥1110∥<m>" as shown in FIG. 18 , unlike the first embodiment. By setting the tweak in this manner, it is possible to prevent one tweak from matching another tweak.
[0156] <Authentication and Decryption Device> Fig. 19 is a diagram showing the configuration of an authentication and decryption device 20A according to the second embodiment. Fig. 20 is a diagram showing an outline of the calculations in the authentication and decryption process according to the second embodiment. As shown in Fig. 19, the authentication and decryption device 20A has an input unit 200 and a dividing unit 202A. The authentication and decryption device 20A also has an AD processing unit 210A, a ciphertext processing unit 220A, a first checksum calculation unit 230A, a second checksum calculation unit 240, a tag generation unit 250A, and a verification unit 260A.
[0157] The authentication and decryption device 20A corresponds to the authentication and decryption device 20 shown in Fig. 8 and Fig. 12. The dividing unit 202A corresponds to the dividing unit 202 according to the first embodiment. The AD processing unit 210A corresponds to the AD processing unit 210 according to the first embodiment. The ciphertext processing unit 220A corresponds to the ciphertext processing unit 220 according to the first embodiment. The first checksum calculation unit 230A corresponds to the first checksum calculation unit 230 according to the first embodiment. The tag generation unit 250A corresponds to the tag generation unit 250 according to the first embodiment. The verification unit 260A corresponds to the verification unit 260 according to the first embodiment. Note that, hereinafter, the configuration of the authentication and decryption device 20A will be described mainly with respect to the parts that differ from the configuration of the authentication and decryption device 20.
[0158] The dividing unit 202A divides each of the ciphertext C and the associated data A into blocks of a predetermined length. Specifically, the dividing unit 202A divides the ciphertext C into n-bit ciphertext blocks C[1], ..., C[m]. The dividing unit 202A outputs the ciphertext blocks C[1], ..., C[m] to the ciphertext processing unit 220A. The dividing unit 202A also divides the associated data A into AD blocks A[1], ..., A[a-1], each n-bit long, and a final AD block A[a] of less than n bits. The dividing unit 202A outputs the AD blocks A[1], ..., A[a] to the AD processing unit 210A.
[0159] The AD processing unit 210A performs substantially the same processing as the AD processing unit 110A described above. That is, the AD processing unit 210A performs the encryption function F(F K) are used to process the AD blocks A[1], ..., A[a-1] in parallel. The AD processing unit 210A according to the second embodiment performs substantially the same processing as the AD processing unit 210 according to the first embodiment for the AD blocks A[1], ..., A[a-1]. On the other hand, for the final AD block A[a], the AD processing unit 210A encrypts the bit string "A[a]||10^*" obtained by padding the final AD block A[a] so that the bit length becomes n bits. Note that the tweak input to each encryption function F used in the AD processing unit 210A may be set substantially in the same way as the tweak input to each encryption function F used in the AD processing unit 110A described above.
[0160] That is, the AD processing unit 210A uses an encryption function F (first encryption function) to encrypt multiple AD blocks (associated data blocks) obtained by dividing the associated data (AD). The AD processing unit 210A thereby obtains an encryption result C_0 (first encryption result) and an encryption result C_1 (second encryption result) corresponding to the AD blocks. At this time, the AD processing unit 210A encrypts n-bit data obtained by padding the last AD block of less than n bits using the encryption function F. The AD processing unit 210A outputs a random number z_0 corresponding to the encryption result C_0 obtained using each AD block to the first checksum calculation unit 230A. The AD processing unit 210A also outputs a random number z_1 corresponding to the encryption result C_1 to the second checksum calculation unit 240.
[0161] The ciphertext processing unit 220A processes the ciphertext C, which is a multiple of n bits, to obtain the plaintext M, which is not a multiple of n bits. The ciphertext processing unit 220A processes the ciphertext blocks C[1], ..., C[m] using the decryption function F -1 (F -1 K ) are used in parallel processing. Here, the decryption function F -1 takes an n-bit ciphertext block as input and outputs an n-bit decryption result (plaintext block; random number) and another n-bit encryption result (random number).
[0162] Here, the ciphertext processing unit 220A according to the second embodiment performs substantially the same processing as the ciphertext processing unit 220 according to the first embodiment for the ciphertext blocks C[1], ..., C[m-1]. That is, the ciphertext processing unit 220A performs the decryption functions F -1 The ciphertext processing unit 220A obtains the decryption result output from each decryption function F -1 The right-side encryption result C_1 output from is obtained as the random number Z[i].
[0163] Furthermore, the ciphertext processing unit 220A according to the second embodiment uses a decryption function F -1 , the final ciphertext block C[m], and the checksum Σ_2 to obtain the plaintext block M[m] obtained by decrypting the final ciphertext block C[m]. Specifically, the ciphertext processing unit 220A uses the n-bit random number obtained by exclusive-ORing the final ciphertext block C[m] and the checksum Σ_2 as the ciphertext C_0 and decrypts it using the decryption function F -1 Then, the ciphertext processing unit 220A inputs the decryption function F -1 Of the n-bit decryption result output from the ciphertext processor 220A, the bit string of the length (|T_2|) of the input authentication tag T_2 is acquired as the final plaintext block M[m]. As described above, |T_2| = |M[m]|. For example, assume that the length of the authentication tag T_2 is k bits (k < n). In this case, the ciphertext processor 220A acquires the most significant k bits (the k bits on the left) of the bit string of the n-bit decryption result as the final plaintext block M[m]. In this way, the ciphertext processor 220A acquires the final plaintext block M[m] of less than n bits.
[0164] Furthermore, the ciphertext processing unit 220A according to the second embodiment uses a decryption function F -1, the final ciphertext block C[m], and the second checksum Σ_2 to obtain a random number Z[m] corresponding to the final ciphertext block C[m]. That is, the ciphertext processing unit 220A converts an n-bit random number (ciphertext C_0) obtained by exclusive-ORing the final ciphertext block C[m] and the checksum Σ_2 into a decryption function F -1 The random number Z[m] (encryption result C_1) is obtained by inputting the following:
[0165] That is, the ciphertext processing unit 220A uses the value obtained using the last ciphertext block and the checksum Σ_2 as the first encryption result and the decryption function F -1 Here, the "first encryption result" corresponds to the ciphertext (encryption result) C_0. The "n-bit decryption result" includes the last plaintext block of less than n bits. Furthermore, the ciphertext processing unit 220A uses the value obtained using the last ciphertext block and the checksum Σ_2 as the first encryption result using the decryption function F -1 The second encryption result (random number Z[m]; encryption result C_1) is obtained by decrypting the second encryption result using the above formula.
[0166] The ciphertext processing unit 220A outputs the plaintext blocks M[1], ..., M[m] to the first checksum calculation unit 230A. The ciphertext processing unit 220A also outputs a random number Z[i] corresponding to the right-side encryption result C_1 obtained using a ciphertext block C[i] other than the final ciphertext block C[m] to the second checksum calculation unit 240. The ciphertext processing unit 220A also outputs a random number Z[m] corresponding to the right-side encryption result C_1 obtained using the final ciphertext block C[m] to the tag generation unit 250A. The ciphertext processing unit 220A also outputs the plaintext blocks M[1], ..., M[m] to the verification unit 260A as plaintext M = M[1] || ... || M[m]. The decryption function F used in the ciphertext processing unit 220A is -1 The tweaks input to each of the functions may be set substantially in the same way as the tweaks input to each of the encryption functions F used in the plaintext processing unit 120A described above.
[0167] The first checksum calculation unit 230A, like the above-described first checksum calculation unit 130A, calculates a checksum Σ_1 (first checksum) using the random number z_0 generated by the AD processing unit 210A and the plaintext blocks M[1], ..., M[m]. The checksum Σ_1 calculated by the first checksum calculation unit 230A is calculated using the verification tag T * The bit length of the final plaintext block M[m] is less than n bits. Therefore, similar to the first checksum calculation unit 130A, the first checksum calculation unit 230A calculates an n-bit checksum Σ_1 by performing an exclusive OR on the n-bit data generated by performing the processing described below on the final plaintext block M[m]. The first checksum calculation unit 230A outputs the checksum Σ_1 to the tag generation unit 250A.
[0168] The tag generation unit 250A generates the verification tag T * _1 and verification tag T * Specifically, the tag generation unit 250A generates an n-bit verification tag T_2 by encrypting the n-bit checksum Σ_1 using the encryption function F, similarly to the tag generation unit 150A. * As will be described later, the checksum Σ_1 is calculated using a method different from that of the first embodiment.
[0169] Furthermore, the tag generation unit 250A generates a verification tag T * Specifically, the tag generation unit 250A generates a verification tag T_2 (second verification tag) using an n-bit random number Z[m] corresponding to the encryption result C_1 (second encryption result) obtained using the final ciphertext block C[m] and the checksum Σ_2. * More specifically, the tag generator 250A generates the verification tag T using an n-bit random number Z[m] obtained by exclusive-ORing the final ciphertext block C[m] and the checksum Σ_2. *As described above, the n-bit random number Z[m] is generated by the ciphertext processing unit 220A by calculating the exclusive OR of the final ciphertext block C[m] and the checksum Σ_2 using the decryption function F -1 is obtained by decoding using
[0170] Here, the verification tag T * The bit length of the authentication tag T_2 must be the same as the bit length of the authentication tag T_2. As described above, the bit length of the authentication tag T_2 according to the second embodiment is the same as the bit length of the final plaintext block M[m], and is therefore less than n bits. Therefore, the tag generation unit 250A truncates the bit string of the n-bit random number Z[m] (encryption result C_1; second encryption result) to the length (|T_2|) of the input authentication tag T_2. For example, the length of the authentication tag T_2 is set to k bits (k<n). In this case, the tag generation unit 250A truncate the bit string of the most significant k bits (the bit string of the left k bits) of the bit string of the n-bit random number Z[m] to the verification tag T_2. * In this way, the tag generator 250A generates a verification tag T_2 having the same bit length as the authentication tag T_2 (i.e., the bit length of the final plaintext block M[m]). * That is, the tag generator 250A generates a decryption function F_2 using the last ciphertext block. -1 The verification tag T_2 is generated by using a bit string corresponding to the size of the authentication tag T_2 from the random number (second encryption result) obtained by * The tag generation unit 250A generates a verification tag T * _1 and verification tag T * _2 to the verification unit 260A.
[0171] Here, the first checksum calculation unit 230A concatenates the final plaintext block M[m] with the bit string of the random number Z[m] excluding the size of the authentication tag T_2. For example, as described above, the length of the authentication tag T_2 is set to k bits (k<n). Then, the tag generation unit 250A concatenates the most significant k bits (the leftmost k bits) of the n-bit random number Z[m] to the verification tag T_2. *_2. In this case, the first checksum calculation unit 230A concatenates the lowest n-k bits (the n-k bits on the right) of the bit string of the n-bit random number Z[m] to the final plaintext block M[m]. As a result, the first checksum calculation unit 230A generates an n-bit data string including the bit string of the final plaintext block M[m].
[0172] The first checksum calculation unit 230A calculates an n-bit checksum Σ_1 by exclusive ORing the initial value 0^n, each random number z_0, plaintext blocks M[1], ..., M[m-1], and an n-bit data string including the bit string of the last plaintext block M[m]. That is, the first checksum calculation unit 230A calculates the decryption function F -1 The first checksum calculation unit 230A then concatenates the n-bit bit string obtained by concatenation with the bit string corresponding to the size of the authentication tag T_2 from the encryption result C_1 (random number Z[m]) obtained by the above. The first checksum calculation unit 230A then calculates the checksum Σ_1 using the n-bit bit string obtained by concatenation. Note that the "n-bit bit string obtained by concatenation" includes the bit string of the last plaintext block, which is less than n bits. The tag generation unit 250A then calculates the checksum Σ_1 using the n-bit bit string obtained by concatenation. * _1 and verification tag T * The first checksum calculation unit 230A outputs the result of the concatenation process to the final plaintext block.
[0173] The verification unit 260A, like the verification unit 260, * _1, T *The verification unit 260A compares the last plaintext block M[m] with the authentication tags T_1 and T_2 generated by the authentication encryption device 10 to verify whether or not it has been tampered with. Furthermore, the verification unit 260A determines whether the bit string obtained by excluding the bit string corresponding to the final plaintext block M[m] from the n-bit decryption result corresponding to the final ciphertext block C[m] is in the format of data added by padding. Specifically, the verification unit 260A determines whether the bit string obtained by excluding the bit string of the length (|T_2|) of the input authentication tag T_2 from the n-bit decryption result corresponding to the final ciphertext block C[m] is in the format of data added by padding. For example, assume that the length of the authentication tag T_2 (i.e., the length of the final plaintext block M[m]) is k bits (k<n). In this case, the verification unit 260A determines whether the bit string of the least significant n-k bits of the n-bit decryption result corresponding to the final ciphertext block C[m] is in the format of data added by padding.
[0174] The verification unit 260A determines that authentication has failed if the bit string obtained by excluding the bit string corresponding to the final plaintext block M[m] from the n-bit decryption result corresponding to the final ciphertext block C[m] does not conform to the format of data added by padding. On the other hand, if this bit string conforms to the format of data added by padding and the verification tag T * _1, T * When the authentication tags T_1 and T_2 match, respectively, the verification unit 260A determines that the authentication has been successful. If the authentication has been successful, the verification unit 260A performs control to output the plaintext M generated by the ciphertext processing unit 220. On the other hand, if the authentication has failed, the verification unit 260A performs control to output an error message ⊥ indicating that the authentication has failed.
[0175] 20 is a diagram illustrating an outline of the operations of the ciphertext processing unit 220A, the first checksum calculation unit 230A, the second checksum calculation unit 240, and the tag generation unit 250A according to the second embodiment. Note that the outline of the operations of the AD processing unit 210A, and the first checksum calculation unit 230A and the second checksum calculation unit 240 related to the AD processing unit 210A is substantially the same as that shown in FIG. 17, and therefore is not shown in the figure.
[0176] 20, the ciphertext processing unit 220A performs substantially the same processing on the ciphertext blocks C[1], ..., C[m-1] as the ciphertext processing unit 220. That is, for 1≦i≦m-1, the ciphertext processing unit 220A performs the decryption function F -1 This gives the decoding function F -1 The plaintext block M[i], which is the decryption result, and the random number Z[i], which is another encryption result C_1, are output from
[0177] 20, the second checksum calculation unit 240 calculates the checksum Σ_2 by exclusive ORing the initial value 0^n, the random numbers z_1[1], ..., z_1[a], and the random numbers Z[1], ..., Z[m-1]. Also, as shown in FIG. 20, the ciphertext processing unit 220A calculates the checksum Σ_2 by using the n-bit random number obtained by exclusive ORing the final ciphertext block C[m] and the checksum Σ_0 as the ciphertext C_0. -1 This gives the decoding function F -1 The n-bit decryption result and the n-bit random number Z[m], which is another encryption result C_1, are output from the ciphertext processing unit 220A. Then, from the n-bit decryption result, the ciphertext processing unit 220A obtains, as the final plaintext block M[m], a bit string having the same length as the length (|T_2|) of the input authentication tag T_2.
[0178] 20, the tag generation unit 250A generates the verification tag T by extracting a bit string having the same length as the length (|T_2|) of the input authentication tag T_2 from the bit string of the n-bit random number Z[m]. *20, the first checksum calculation unit 230A concatenates the final plaintext block M[m] and a bit string of the random number Z[m] excluding a bit string corresponding to the size of the authentication tag T_2, to obtain an n-bit data string including the final plaintext block M[m]. The first checksum calculation unit 230A then calculates a checksum Σ_1 by exclusive-ORing the initial value 0^n, each random number z_0, the plaintext blocks M[1], ..., M[m-1], and an n-bit data string including the bit string of the final plaintext block M[m]. Also, as shown in FIG. 20, the tag generation unit 250A encrypts the checksum Σ_1 using the encryption function F and outputs the encryption result C_0, and generates the verification tag T * Get it as _1.
[0179] <Effects> The authentication encryption system 1 according to the second embodiment can achieve substantially the same effects as the authentication encryption system 1 according to the first embodiment. That is, as described above, the authentication encryption device 10A according to the second embodiment is configured not only to generate a checksum Σ_2 from the random number Z obtained by processing a plaintext block, but also to generate an n-bit checksum Σ_1 using the plaintext block. This allows not only the tag T (corresponding to the authentication tag T_2 according to the second embodiment) generated in the second comparative example to be generated, but also an n-bit authentication tag T_1 using the checksum Σ_1. That is, if the number of bits of the final plaintext block M[m] is k bits (k<n), then in the second embodiment, an n+k-bit authentication tag (T_1∥T_2) can be generated. Therefore, the authentication encryption device 10A according to the second embodiment can achieve a security level greater than n bits, which was not possible in the comparative example. That is, in the second embodiment, even if the plaintext length is not a multiple of n bits, a security level greater than n bits can be achieved. Furthermore, in the second embodiment, a security level of 2n bits can be achieved by verifying the n-k bit string, which is the n-bit decryption result for the final ciphertext block C[m], excluding the bit string corresponding to the k-bit final plaintext block M[m].
[0180] Furthermore, the first checksum calculation unit 130A according to the second embodiment is configured to calculate the checksum Σ_1 using data obtained by concatenating the k-bit final plaintext block M[m] with the least significant n-k bits of the n-bit random number Z[m]. Similarly, the first checksum calculation unit 230A according to the second embodiment is configured to calculate the checksum Σ_1 using data obtained by concatenating the k-bit final plaintext block M[m] with the least significant n-k bits of the n-bit random number Z[m]. With this configuration, the second embodiment can more reliably achieve security greater than n bits.
[0181] That is, suppose that a checksum Σ_1 is calculated using an n-bit bit string obtained by padding a k-bit final plaintext block M[m] with "10^*". In this case, the n-bit bit string obtained by padding has only k bits of randomness. Therefore, performing verification using a tag generated from the checksum Σ_1 calculated using this bit string may result in a decrease in security. In contrast, as in the second embodiment, a bit string obtained by concatenating an n-k-bit bit string included in the random number Z[m] to the k-bit final plaintext block M[m] may have n bits of randomness. Therefore, performing verification using a tag generated from the checksum Σ_1 calculated using this bit string can prevent a decrease in security. Therefore, security greater than n bits can be more reliably achieved.
[0182] (Third Embodiment) Next, a third embodiment will be described. For clarity of explanation, the following description and drawings have been omitted and simplified as appropriate. Furthermore, in each drawing, the same elements are assigned the same reference numerals, and duplicate explanations are omitted as necessary. Note that the system configuration according to the third embodiment is substantially the same as the system configuration according to the first embodiment, and therefore explanations thereof will be omitted. That is, the authentication encryption system 1 according to the third embodiment includes an authentication encryption device 10B corresponding to the authentication encryption device 10, and an authentication decryption device 20B corresponding to the authentication decryption device 20. For clarity of explanation, in the third embodiment, it is assumed that the bit lengths of the associated data A and the plaintext M are multiples of n bits. However, the technique according to the third embodiment can be applied even when the bit lengths of the associated data A and the plaintext M are not multiples of n bits.
[0183] <Authentication Encryption Device> Fig. 21 is a diagram showing the configuration of an authentication encryption device 10B according to the third embodiment. Figs. 22 to 24 are diagrams showing an outline of the calculations in the authentication encryption process according to the third embodiment. As shown in Fig. 21, the authentication encryption device 10B has an input unit 100, a dividing unit 102, and a nonce generation unit 104. The authentication encryption device 10B also has an AD processing unit 110, a plaintext processing unit 120B, a first checksum calculation unit 130B, a second checksum calculation unit 140B, a tag generation unit 150B, and an output unit 160B. The first checksum calculation unit 130B has a checksum expansion unit 132B. The second checksum calculation unit 140B has a checksum expansion unit 142B.
[0184] The authentication encryption device 10B corresponds to the authentication encryption device 10 shown in Figures 8 and 9. The plaintext processing unit 120B corresponds to the plaintext processing unit 120 according to the first embodiment. The first checksum calculation unit 130B corresponds to the first checksum calculation unit 130 according to the first embodiment. The second checksum calculation unit 140B corresponds to the second checksum calculation unit 140 according to the first embodiment. The tag generation unit 150B corresponds to the tag generation unit 150 according to the first embodiment. The output unit 160B corresponds to the output unit 160 according to the first embodiment. The following describes the configuration of the authentication encryption device 10B, mainly focusing on the differences from the configuration of the authentication encryption device 10.
[0185] The plaintext processing unit 120B encrypts the plaintext blocks M[1], ..., M[m] using an encryption function F (F K ), and processes them in parallel. Specifically, the plaintext processing unit 120B encrypts plaintext blocks M[1], ..., M[m] in parallel using encryption functions F to which different tweaks are input. Here, the encryption function F used in the plaintext processing unit 120B outputs, as the encryption result, n-bit ciphertexts (random numbers) corresponding to the two ciphertexts C_0 and C_1 as shown in FIG. 1. Therefore, the encryption function F used in the plaintext processing unit 120B outputs a 2n-bit encryption result.
[0186] Here, the plaintext processing unit 120B according to the third embodiment performs processing on plaintext blocks M[1], ..., M[m] that is substantially the same as the processing performed by the plaintext processing unit 120 according to the first embodiment on plaintext blocks M[1], ..., M[m-1]. That is, the plaintext processing unit 120B inputs plaintext block M[i] to encryption function F for 1 ≦ i ≦ m. The plaintext processing unit 120B obtains, as ciphertext block C[i] obtained by encrypting plaintext block M[i], the left-side encryption result C_0 (first encryption result) output from each encryption function F that processes plaintext block M[i] for 1 ≦ i ≦ m. Furthermore, the plaintext processing unit 120B obtains, as random number Z[i], the right-side encryption result C_1 (second encryption result) output from each encryption function F that processes plaintext block M[i] for 1 ≦ i ≦ m. The plaintext block M[i] (1≦i≦m) is used to calculate the checksum Σ_1. The random number Z[i] (1≦i≦m) is used to calculate the checksum Σ_2. That is, the plaintext processing unit 120B encrypts each of the multiple plaintext blocks using the encryption function F (first encryption function). The plaintext processing unit 120B then obtains the encryption result C_0 (first encryption result) obtained by this encryption as the ciphertext block obtained by encrypting the plaintext block.
[0187] The plaintext processing unit 120B outputs plaintext blocks M[1], ..., M[m] to the first checksum calculation unit 130B. Furthermore, the plaintext processing unit 120B outputs a random number Z[i] corresponding to the right-side encryption result C_1 obtained using the plaintext block M[i] to the second checksum calculation unit 140B. Furthermore, the plaintext processing unit 120B outputs ciphertext blocks C[1], ..., C[m] to the output unit 160B as ciphertext C = C[1]|| ... ||C[m]. The tweak input to each encryption function used in the plaintext processing unit 120B may be substantially the same as the tweak input to each encryption function used in the plaintext processing unit 120B.
[0188] The first checksum calculation unit 130B calculates a checksum Σ_1 (first checksum) using the random numbers z_0[1], ..., z_0[a] and the plaintext blocks M[1], ..., M[m]. As described above, the random numbers z_0[1], ..., z_0[a] (encryption result C_0) are generated by the AD processing unit 110. Here, the first checksum calculation unit 130B according to the third embodiment calculates a plurality of n-bit checksums Σ_1.
[0189] The checksum expansion unit 132B performs processing to calculate multiple checksums Σ_1 from the random number z_0[h] (1≦h≦a) and the plaintext block M[i] (1≦i≦m). That is, the checksum expansion unit 132B performs processing to expand the checksum Σ_1 (first checksum). When the first checksum calculation unit 130B calculates two checksums Σ_1, the checksum expansion unit 132B multiplies the random number z_0[h] by a predetermined value α_(1,h) and multiplies the plaintext block M[i] by a predetermined value α_(1,i).
[0190] Here, j is the block index of the AD block and plaintext block. Note that 1≦j≦a+m. The random number z_0[h] and plaintext block M[i] are collectively referred to as random number Z_(0,j). In this case, the checksum expansion unit 132B multiplies the random number Z_(0,j) by a predetermined value α_(1,j). As a result, the checksum expansion unit 132B obtains the multiplied value "α_(1,j)·Z_(0,j)" for the random number Z_(0,j). At this time, it can be said that the checksum expansion unit 132B expands the random number Z_(0,j) from one to two.
[0191] Furthermore, when the first checksum calculation unit 130B calculates three checksums Σ_1, the checksum expansion unit 132B multiplies the random number Z_(0,j) by a predetermined value α_(1,j) and then multiplies the random number Z_(0,j) by a predetermined value α_(2,j). As a result, the checksum expansion unit 132B obtains the multiplied values "α_(1,j)·Z_(0,j)" and "α_(2,j)·Z_(0,j)" for the random number Z_(0,j). At this time, it can be said that the checksum expansion unit 132B expands the random number Z_(0,j) from one to three.
[0192] Furthermore, when the first checksum calculation unit 130B calculates X checksums Σ_1, the checksum expansion unit 132B multiplies the random number Z_(0,j) by predetermined values α_(1,j), ..., α_(X-1,j). As a result, the checksum expansion unit 132B obtains the multiplied values "α_(1,j)·Z_(0,j)", ..., "α_(X-1,j)·Z_(0,j)" for the random number Z_(0,j). At this time, it can be said that the checksum expansion unit 132B expands the random number Z_(0,j) from 1 to X.
[0193] The first checksum calculation unit 130B calculates an n-bit checksum Σ_(1,1) in the same manner as the first checksum calculation unit 130 according to the first embodiment. That is, the first checksum calculation unit 130B calculates the n-bit checksum Σ_(1,1) by taking the exclusive OR (XOR) of the initial value 0^n and each random number Z_(0,j) (each random number z_0 and each plaintext block). Note that the checksum Σ_(1,1) corresponds to the checksum Σ_1 according to the first embodiment. The first checksum calculation unit 130B also calculates an n-bit checksum Σ_(1,2) by taking the exclusive OR of the initial value 0^n and each multiplication value "α_(1,j)·Z_(0,j)" (j=1, ..., a+m). Similarly, the first checksum calculation unit 130B calculates an n-bit checksum Σ_(1,x) by exclusive ORing the initial value 0^n and each multiplication value "α_(x-1,j)·Z_(0,j)" (j=1, ..., a+m). Note that x is the numerical (order) index of the checksum Σ_1, where 2≦x≦X. Also, the checksum Σ_(1,x) indicates the xth checksum Σ_1. In this way, the first checksum calculation unit 130B calculates X checksums Σ_1.
[0194] The first checksum calculation unit 130B outputs X checksums Σ_1 to the tag generation unit 150B. Note that in the example shown below, the number of checksums Σ_1 calculated by the first checksum calculation unit 130B is two, but the number of checksums Σ_1 calculated is arbitrary.
[0195] The second checksum calculation unit 140B calculates a checksum Σ_2 (second checksum) using the random numbers z_1[1], ..., z_1[a] and the random number Z[i]. As described above, the random numbers z_1[1], ..., z_1[a] (encryption result C_1) are generated by the AD processing unit 110. The random number Z[i] (encryption result C_1) is generated by the plaintext processing unit 120B using the plaintext block M[i]. Here, the second checksum calculation unit 140B according to the third embodiment calculates a plurality of n-bit checksums Σ_2.
[0196] The checksum expansion unit 142B performs processing to calculate multiple checksums Σ_2 from the random number z_1[h] (1≦h≦a) and the random number Z[i] (1≦i≦m). In other words, the checksum expansion unit 142B performs processing to expand the checksum Σ_2 (second checksum). When the second checksum calculation unit 140B calculates two checksums Σ_2, the checksum expansion unit 142B multiplies the random number z_1[h] by a predetermined value α_(1,h) and multiplies the random number Z[i] by a predetermined value α_(1,i).
[0197] Here, random number z_1[h] and random number Z[i] are collectively referred to as random number Z_(1,j). In this case, the checksum expansion unit 142B multiplies random number Z_(1,j) by a predetermined value α_(1,j). As a result, the checksum expansion unit 142B obtains the multiplied value "α_(1,j)·Z_(1,j)" for random number Z_(1,j). At this time, it can be said that the checksum expansion unit 142B expands random number Z_(1,j) from one to two.
[0198] Furthermore, when the second checksum calculation unit 140B calculates three checksums Σ_2, the checksum expansion unit 142B multiplies the random number Z_(1,j) by a predetermined value α_(1,j) and then multiplies the random number Z_(1,j) by a predetermined value α_(2,j). As a result, the checksum expansion unit 142B obtains the multiplied value "α_(1,j)·Z_(1,j)" and the multiplied value "α_(2,j)·Z_(1,j)" for the random number Z_(1,j). At this time, it can be said that the checksum expansion unit 142B expands the random number Z_(1,j) from one to three.
[0199] Furthermore, when the second checksum calculation unit 140B calculates Y checksums Σ_2, the checksum expansion unit 142B multiplies the random number Z_(1,j) by predetermined values α_(1,j), ..., α_(Y-1,j). As a result, the checksum expansion unit 142B obtains the multiplied values "α_(1,j)·Z_(1,j)," ..., "α_(Y-1,j)·Z_(1,j)" for the random number Z_(1,j). At this time, it can be said that the checksum expansion unit 142B expands the random number Z_(1,j) from 1 to Y.
[0200] The second checksum calculation unit 140B calculates the n-bit checksum Σ_(2,1) in the same manner as the second checksum calculation unit 140 according to the first embodiment. That is, the second checksum calculation unit 140B calculates the n-bit checksum Σ_(2,1) by taking the exclusive OR (XOR) of the initial value 0^n and each random number Z_(1,j) (each random number z_1 and each random number Z). Note that the checksum Σ_(2,1) corresponds to the checksum Σ_2 according to the first embodiment. The second checksum calculation unit 140B also calculates the n-bit checksum Σ_(2,2) by taking the exclusive OR of the initial value 0^n and each multiplication value "α_(1,j)·Z_(1,j)." Similarly, the second checksum calculation unit 140B calculates an n-bit checksum Σ_(2,y) by exclusive ORing the initial value 0^n and each multiplication value "α_(y-1,j)·Z_(1,j)" (j=1, ..., a+m). Note that y is the numerical (order) index of the checksum Σ_2, where 2≦y≦Y. Also, the checksum Σ_(2,y) indicates the y-th checksum Σ_2. In this way, the second checksum calculation unit 140B calculates Y checksums Σ_2.
[0201] The second checksum calculation unit 140B outputs Y checksums Σ_2 to the tag generation unit 150B. Note that in the example shown below, the number of checksums Σ_2 calculated by the second checksum calculation unit 140B is three, but the number of checksums Σ_2 calculated is arbitrary.
[0202] Note that for 1≦j≦a+m, the predetermined value α_(x-1,j) (α_(1,j), ..., α_(X-1,j)) and the predetermined value α_(y-1,j) (α_(1,j), ..., α_(Y-1,j)) are elements of the finite field GF(2^n). Furthermore, the predetermined value α_(x-1,j) and the predetermined value α_(y-1,j) are specific n-bit values. Furthermore, the "・" in "α_(x-1,j)·Z_(0,j)" and "α_(y-1,j)·Z_(1,j)" denotes multiplication on the finite field GF(2^n).
[0203] Furthermore, when the first checksum calculation unit 130B calculates two checksums Σ_1 (i.e., when X=2), the predetermined value α_(1,j) may be an element of a predetermined matrix AM_1 (AM: Alpha Matrix) as shown in the following equation 1. Here, the number of rows of the matrix AM_1 corresponds to the number X of checksums Σ_1 to be calculated. Furthermore, the number of columns of the matrix AM_1 corresponds to the number of indexes j of the random number Z_(0,j) (i.e., the number of blocks). ...(1)
[0204] At this time, the first checksum calculation unit 130B processes the random number Z_(0,j) (random numbers Z_(0,1), ..., Z_(0,a), ..., Z_(0,a+m)) using the matrix AM_1 as shown in the following equation 2. As a result, the first checksum calculation unit 130B generates two checksums Σ_(1,1) and Σ_(1,2). That is, the first checksum calculation unit 130B uses at least a plurality of plaintext blocks and a predetermined matrix AM_1 (first matrix) with two or more rows X and with predetermined values as elements to calculate a number of checksums Σ_1 corresponding to the number of rows X of the matrix AM_1. ... (2)
[0205] Furthermore, from Equation 2, the following Equation 3 holds for the checksum Σ_(1,2): Note that the symbol with a "+" inside a circle indicates an exclusive OR (XOR). ...(3)
[0206] Furthermore, when the second checksum calculation unit 140B calculates three checksums Σ_2 (i.e., when Y=3), the predetermined value α_(y-1, j) may be an element of a predetermined matrix AM_2 as shown in the following equation 4. Here, the number of rows of the matrix AM_2 corresponds to the number Y of checksums Σ_2 to be calculated. Furthermore, the number of columns of the matrix AM_2 corresponds to the number of indexes j of the random number Z_(1, j) (i.e., the number of blocks). ...(4)
[0207] At this time, the second checksum calculation unit 140B processes the random numbers Z_(1,j) (random numbers Z_(1,1), ..., Z_(1,a), ..., Z_(1,a+m)) using the matrix AM_2 as shown in the following equation 5. As a result, the second checksum calculation unit 140B generates three checksums Σ_(2,1), Σ_(2,2), and Σ_(2,3). In other words, the second checksum calculation unit 140B uses a plurality of encryption results C_1 (second encryption results) and a predetermined matrix AM_2 (second matrix) with Y rows of 2 or more and having predetermined values as elements to calculate a number of checksums Σ_2 corresponding to the number of rows Y of the matrix AM_2. ...(5)
[0208] Furthermore, from equation 5, the following equation 6 holds for the checksum Σ_(2, y) (2≦y≦3). ...(6)
[0209] Here, for security reasons, matrix AM (matrix AM_1 and matrix AM_2) must be a maximum distance separable (MDS) matrix. In other words, all square submatrices of matrix AM must be regular. Here, a "submatrix" refers to a matrix obtained by removing a specific row (which may be one or more) and a specific column (which may be one or more) from a matrix. Currently, security is not known when matrix AM does not satisfy the above conditions. Therefore, matrix AM must be an MDS matrix. For matrix AM to be an MDS matrix, the number of columns must be less than 2^n. That is, the sum of the number of AD blocks and the number of plaintext blocks must be less than 2^n. Therefore, there may be a limit to the lengths of the input associated data A and plaintext M. Note that if the sum of the number of AD blocks and the number of plaintext blocks is 2^n or more, security may be ensured by dividing the AD blocks and plaintext blocks into sections containing 2^n-1 blocks. That is, by using the same matrix AM for each of a plurality of areas to calculate the multiplication value of the random number Z and the elements of the matrix AM, the matrix AM used for multiplication can be an MDS matrix.
[0210] Note that while the elements of the second row of matrix AM_1 shown in Equation 1 and matrix AM_2 shown in Equation 4 are the same, this configuration is not limited to this. The elements of matrix AM_1 used to calculate multiple checksums Σ_1 may be different from the elements of matrix AM_2 used to calculate multiple checksums Σ_2. From the perspective of security, it does not matter if the elements of matrix AM_1 are the same as the elements of matrix AM_2, so by making the elements of matrix AM_1 the same as matrix AM_2, matrix AM can be created efficiently.
[0211] The tag generation unit 150B generates a plurality of authentication tags T_1 (first authentication tags) by an encryption function F (first encryption function) using a plurality of checksums Σ_1 (first checksums). The tag generation unit 150B also generates a plurality of authentication tags T_2 (second authentication tags) by an encryption function F (first encryption function) using a plurality of checksums Σ_2 (second checksums). The tag generation unit 150B also generates an authentication tag T_2 by an encryption function F using a checksum Σ_2 obtained by using an encryption result C_1 (second encryption result) obtained by encrypting each of a plurality of plaintext blocks. The tag generation unit 150B outputs the plurality of authentication tags T_1 and the plurality of authentication tags T_2 to the output unit 160B.
[0212] Specifically, similar to the tag generation unit 150 according to the first embodiment, the tag generation unit 150B generates an authentication tag T_(1,1) by encrypting the checksum Σ_(1,1) (checksum Σ_1) using the encryption function F. The authentication tag T_(1,1) corresponds to the authentication tag T_1 according to the first embodiment. Furthermore, the tag generation unit 150B generates an authentication tag T_(1,x) by encrypting one or more checksums Σ_(1,x) using the encryption function F. The encryption function F used to generate the authentication tag T_(1,x) may output only an n-bit encryption result (random number) corresponding to one ciphertext C_0, as shown in FIG. 2 . The tag generation unit 150B then acquires the n-bit encryption result corresponding to the ciphertext C_0 as the authentication tag T_(1,x).
[0213] The tag generation unit 150B also generates an authentication tag T_(2,1) by encrypting the checksum Σ_(2,1) using the encryption function F. The authentication tag T_(2,1) corresponds to the authentication tag T_2 according to the first embodiment. The tag generation unit 150B also generates an authentication tag T_(2,y) by encrypting one or more checksums Σ_(2,y) using the encryption function F. The encryption function F used to generate the authentication tag T_2 according to the third embodiment may output only an n-bit encryption result (random number) corresponding to one ciphertext C_0, as shown in FIG. 2. The tag generation unit 150B then acquires the n-bit encryption result corresponding to the ciphertext C_0 as the authentication tag T_2.
[0214] The output unit 160B, like the output unit 160 according to the first embodiment, performs control to output the ciphertext C and the tag T (T_1||T_2). At this time, the output unit 160B may output the ciphertext C and the tag T in a concatenated manner. Furthermore, the output unit 160B may output a plurality of authentication tags T_1 in a concatenated manner. Similarly, the output unit 160B may output a plurality of authentication tags T_2 in a concatenated manner.
[0215] Fig. 22 is a diagram showing an outline of the calculations of the AD processing unit 110, the first checksum calculation unit 130B, and the second checksum calculation unit 140B according to the third embodiment. Fig. 23 is a diagram showing an outline of the calculations of the plaintext processing unit 120B, the first checksum calculation unit 130B, and the second checksum calculation unit 140B according to the third embodiment. Fig. 24 is a diagram showing an outline of the calculations of the tag generation unit 150B according to the third embodiment.
[0216] 22 , the AD processing unit 110 encrypts the AD block A[i] using the encryption function F for 1≦i≦a to obtain random numbers z_0[i] and z_1[i]. The AD processing unit 110 then outputs the random number z_0[i] to the first checksum calculation unit 130B (checksum extension unit 132B). The AD processing unit 110 also outputs the random number z_1[i] to the second checksum calculation unit 140B (checksum extension unit 142B). The tweaks input to the encryption functions used in the AD processing unit 110 according to the third embodiment may be substantially the same as the tweaks input to the encryption functions used in the AD processing unit 110 according to the first embodiment.
[0217] 23, the plaintext processing unit 120B performs substantially the same processing on plaintext blocks M[1], ..., M[m-1] as the plaintext processing unit 120 according to the first embodiment. Furthermore, the plaintext processing unit 120B performs substantially the same processing on the final plaintext block M[m] as on the other plaintext blocks. That is, for 1≦i≦m, the plaintext processing unit 120B encrypts plaintext block M[i] using encryption function F to obtain ciphertext block C[i] and random number Z[i].
[0218] 22 and 23, the first checksum calculation unit 130B (130B-1) calculates the checksum Σ_(1,1) in the same manner as the first checksum calculation unit 130 according to the first embodiment. That is, the first checksum calculation unit 130B (130B-1) calculates the checksum Σ_(1,1) by taking the exclusive OR of the initial value 0^n, the random numbers z_0[1], ..., z_0[a], and the plaintext blocks M[1], ..., M[m].
[0219] 22, the checksum expansion unit 132B (132B-2) multiplies the random numbers z_0[1], ..., z_0[a] by predetermined values α_(1,1), ..., α_(1,a), respectively. Also, as shown in FIG. 23, the checksum expansion unit 132B (132B-2) multiplies the plaintext blocks M[1], ..., M[m] by predetermined values α_(1,a+1), ..., α_(1,a+m), respectively. The first checksum calculation unit 130B (130B-2) calculates the checksum Σ_(1,2) by the exclusive OR of the initial value 0^n and the multiplied value obtained by the multiplication described above.
[0220] Also, as shown in Figures 22 and 23, the second checksum calculation unit 140B (140B-1) calculates the checksum Σ_(2,1) by taking the exclusive OR of the initial value 0^n, the random numbers z_1[1], ..., z_1[a], and the random numbers Z[1], ..., Z[m].
[0221] 22, the checksum expansion unit 142B (142B-2) multiplies the random numbers z_1[1], ..., z_1[a] by predetermined values α_(1,1), ..., α_(1,a), respectively. Also, as shown in FIG. 23, the checksum expansion unit 142B (142B-2) multiplies the random numbers Z[1], ..., Z[m] by predetermined values α_(1,a+1), ..., α_(1,a+m), respectively. The second checksum calculation unit 140B (140B-2) calculates the checksum Σ_(2,2) by the exclusive OR of the initial value 0^n and the multiplied value obtained by the multiplication described above.
[0222] 22, the checksum expansion unit 142B (142B-3) multiplies the random numbers z_1[1], ..., z_1[a] by predetermined values α_(2,1), ..., α_(2,a), respectively. Also, as shown in FIG. 23, the checksum expansion unit 142B (142B-3) multiplies the random numbers Z[1], ..., Z[m] by predetermined values α_(2,a+1), ..., α_(2,a+m), respectively. The second checksum calculation unit 140B (140B-3) calculates the checksum Σ_(2,3) by the exclusive OR of the initial value 0^n and the multiplied value obtained by the multiplication described above.
[0223] 24, the tag generation unit 150B encrypts the checksum Σ_(1,1) using the encryption function F and acquires the output encryption result C_0 as the authentication tag T_(1,1). The tag generation unit 150B also encrypts the checksum Σ_(1,2) using the encryption function F and acquires the output encryption result C_0 as the authentication tag T_(1,2). The tag generation unit 150B also encrypts the checksum Σ_(2,1) using the encryption function F and acquires the output encryption result C_0 as the authentication tag T_(2,1). The tag generation unit 150B also encrypts the checksum Σ_(2,2) using the encryption function F and acquires the output encryption result C_0 as the authentication tag T_(2,2). Furthermore, tag generation unit 150B encrypts checksum Σ_(2,3) using encryption function F and obtains the output encryption result C_0 as authentication tag T_(2,3).
[0224] Furthermore, the Tweak input to each of the multiple encryption functions F used in tag generation unit 150B may be different from one another. For the encryption function F that processes the checksum Σ_(1,1) to generate the authentication tag T_(1,1), the Tweak may be in the form of, for example, "N∥1000∥<m>" as shown in FIG. 24 . For the encryption function F that processes the checksum Σ_(1,2) to generate the authentication tag T_(1,2), the Tweak may be in the form of, for example, "N∥1010∥<m>" as shown in FIG. 24 . For the encryption function F that processes the checksum Σ_(2,1) to generate the authentication tag T_(2,1), the Tweak may be in the form of, for example, "N∥1011∥<m>" as shown in FIG. 24 . Furthermore, for an encryption function F that processes the checksum Σ_(2,2) to generate an authentication tag T_(2,2), the tweak may have a format such as "N∥1100∥<m>" as shown in Fig. 24. Furthermore, for an encryption function F that processes the checksum Σ_(2,3) to generate an authentication tag T_(2,3), the tweak may have a format such as "N∥1101∥<m>" as shown in Fig. 24. By setting the tweak in this way, one tweak will not match another tweak.
[0225] <Authentication and Decryption Device> Fig. 25 is a diagram showing the configuration of an authentication and decryption device 20B according to the third embodiment. Fig. 26 is a diagram showing an outline of the calculations in the authentication and decryption process according to the third embodiment. As shown in Fig. 25, the authentication and decryption device 20B has an input unit 200 and a dividing unit 202. The authentication and decryption device 20B also has an AD processing unit 210, a ciphertext processing unit 220B, a first checksum calculation unit 230B, a second checksum calculation unit 240B, a tag generation unit 250B, and a verification unit 260B. The first checksum calculation unit 230B has a checksum expansion unit 232B. The second checksum calculation unit 240B has a checksum expansion unit 242B.
[0226] The authentication decryption device 20B corresponds to the authentication decryption device 20 shown in Fig. 8 and Fig. 12. The ciphertext processing unit 220B corresponds to the ciphertext processing unit 220 according to the first embodiment. The first checksum calculation unit 230B corresponds to the first checksum calculation unit 230 according to the first embodiment. The second checksum calculation unit 240B corresponds to the second checksum calculation unit 240 according to the first embodiment. The tag generation unit 250B corresponds to the tag generation unit 250 according to the first embodiment. The verification unit 260B corresponds to the verification unit 260 according to the first embodiment. The following describes the configuration of the authentication decryption device 20B, mainly focusing on the parts that differ from the configuration of the authentication decryption device 20.
[0227] The ciphertext processing unit 220B decrypts the ciphertext blocks C[1], ..., C[m] using a decryption function F -1 (F -1 K Specifically, the ciphertext processing unit 220B processes the ciphertext blocks C[1], ..., C[m] in parallel using the decryption function F -1 Here, the decryption function F used in the ciphertext processing unit 220B is used. -1 takes an n-bit ciphertext block as input and outputs an n-bit decryption result (plaintext block; random number) and another n-bit encryption result (random number).
[0228] Here, the ciphertext processing unit 220B according to the third embodiment performs processing on the ciphertext blocks C[1], ..., C[m] that is substantially the same as the processing performed on the ciphertext blocks C[1], ..., C[m-1] by the ciphertext processing unit 220 according to the first embodiment. That is, the ciphertext processing unit 220B performs processing on the ciphertext blocks C[i] for 1≦i≦m by using the decryption function F -1 The ciphertext processing unit 220B inputs the ciphertext block C[i] into each decryption function F -1 The ciphertext processing unit 220B obtains the decryption result output from each decryption function F -1The encryption result C_1 on the right side output from the ciphertext processor 220B is obtained as the random number Z[i]. The plaintext block M[i] (1≦i≦m) is used to calculate the checksum Σ_1. The random number Z[i] (1≦i≦m) is used to calculate the checksum Σ_2. That is, the ciphertext processor 220B obtains the encryption result C_1 on the right side output from the ciphertext processor 220B using the decryption function F -1 The ciphertext processing unit 220B encrypts each of the multiple ciphertext blocks using (first decryption function). The ciphertext processing unit 220B then obtains the decryption result obtained by this decryption as the plaintext block obtained by decrypting the ciphertext block.
[0229] The ciphertext processing unit 220B outputs the plaintext blocks M[1], ..., M[m] to the first checksum calculation unit 230B. The ciphertext processing unit 220B also outputs the random number Z[i] corresponding to the right-side encryption result C_1 obtained using the ciphertext block C[i] to the second checksum calculation unit 240B. The ciphertext processing unit 220B also outputs the plaintext blocks M[1], ..., M[m] to the verification unit 260B as plaintext M = M[1] || ... || M[m]. The decryption function F used in the ciphertext processing unit 220B is -1 The tweaks input to each of the functions may be set substantially in the same way as the tweaks input to each of the encryption functions F used in the plaintext processing unit 120B described above.
[0230] Similar to the first checksum calculation unit 130B described above, the first checksum calculation unit 230B calculates a checksum Σ_1 (first checksum) using random numbers z_0[1], ..., z_0[a] and plaintext blocks M[1], ..., M[m]. As described above, the random numbers z_0[1], ..., z_0[a] (encryption result C_0) are generated by the AD processing unit 210. Here, the first checksum calculation unit 230B according to the third embodiment calculates multiple n-bit checksums Σ_1 in the same manner as the first checksum calculation unit 130B described above. That is, the first checksum calculation unit 230B uses at least multiple plaintext blocks and a predetermined matrix AM_1 (first matrix) having two or more rows X and having predetermined values as elements to calculate a number of checksums Σ_1 corresponding to the number of rows X of the matrix AM_1.
[0231] Similar to the checksum expansion unit 132B described above, the checksum expansion unit 232B performs processing to calculate multiple checksums Σ_1 from the random number z_0[h] (1≦h≦a) and the plaintext block M[i] (1≦i≦m). In other words, the checksum expansion unit 232B performs processing to expand the checksum Σ_1 (first checksum).
[0232] Here, the random number z_0[h] and the plaintext block M[i] are collectively referred to as the random number Z_(0,j). In this case, the checksum expansion unit 232B multiplies the random number Z_(0,j) by a predetermined value α_(1,j). As a result, the checksum expansion unit 232B obtains the multiplied value "α_(1,j)·Z_(0,j)" for the random number Z_(0,j). Furthermore, when the first checksum calculation unit 230B calculates X checksums Σ_1, the checksum expansion unit 232B multiplies the random number Z_(0,j) by predetermined values α_(1,j), ..., α_(X-1,j), respectively. As a result, the checksum expansion unit 232B obtains the multiplied values "α_(1,j)·Z_(0,j)," ..., "α_(X-1,j)·Z_(0,j)" for the random number Z_(0,j).
[0233] The first checksum calculation unit 230B calculates an n-bit checksum Σ_(1,1) in the same manner as the first checksum calculation unit 130B described above. That is, the first checksum calculation unit 230B calculates an n-bit checksum Σ_(1,1) by taking the exclusive OR (XOR) of the initial value 0^n and each random number Z_(0,j). Similarly to the first checksum calculation unit 130B, the first checksum calculation unit 230B calculates an n-bit checksum Σ_(1,x) by taking the exclusive OR of the initial value 0^n and each multiplication value "α_(x-1,j)·Z_(0,j)." Note that 2≦x≦X.
[0234] The first checksum calculation unit 230B outputs multiple checksums Σ_1 to the tag generation unit 250B. Note that in the example shown below, the number of checksums Σ_1 calculated by the first checksum calculation unit 230B is two, but the number of calculated checksums Σ_1 can be the same as the number of checksums Σ_1 calculated by the first checksum calculation unit 130B. In other words, the number of calculated checksums Σ_1 is arbitrary.
[0235] Similar to the second checksum calculation unit 140B described above, the second checksum calculation unit 240B calculates a checksum Σ_2 (second checksum) using random numbers z_1[1], ..., z_1[a] and random number Z[i]. As described above, the random numbers z_1[1], ..., z_1[a] (encryption result C_1) are generated by the AD processing unit 210. Furthermore, the random number Z[i] (encryption result C_1) is generated by the ciphertext processing unit 220B using the ciphertext block C[i]. Here, the second checksum calculation unit 240B according to the third embodiment calculates multiple n-bit checksums Σ_2. That is, the second checksum calculation unit 240B uses multiple encryption results C_1 (second encryption results) and a predetermined matrix AM_2 (second matrix) having two or more rows Y and having predetermined values as elements to calculate a number of checksums Σ_2 corresponding to the number of rows Y of the matrix AM_2.
[0236] Similar to the checksum expansion unit 142B described above, the checksum expansion unit 242B performs processing to calculate multiple checksums Σ_2 from the random numbers z_1[h] (1≦h≦a) and Z[i] (1≦i≦m). In other words, the checksum expansion unit 242B performs processing to expand the checksum Σ_2 (second checksum).
[0237] Here, the random numbers z_1[h] and Z[i] are collectively referred to as random number Z_(1,j). In this case, the checksum expansion unit 242B multiplies the random number Z_(1,j) by a predetermined value α_(1,j). As a result, the checksum expansion unit 242B obtains the multiplied value "α_(1,j)·Z_(1,j)" for the random number Z_(1,j). Furthermore, when the second checksum calculation unit 240B calculates Y checksums Σ_2, the checksum expansion unit 242B multiplies the random number Z_(1,j) by predetermined values α_(1,j), ..., α_(Y-1,j), respectively. As a result, the checksum expansion unit 242B obtains the multiplied values "α_(1,j)·Z_(1,j)," ..., "α_(Y-1,j)·Z_(1,j)" for the random number Z_(1,j).
[0238] The second checksum calculation unit 240B calculates the n-bit checksum Σ_(2,1) in the same manner as the second checksum calculation unit 140B described above. That is, the second checksum calculation unit 240B calculates the n-bit checksum Σ_(2,1) by taking the exclusive OR (XOR) of the initial value 0^n and each random number Z_(1,j). The second checksum calculation unit 240B also calculates the n-bit checksum Σ_(2,y) by taking the exclusive OR of the initial value 0^n and each multiplication value "α_(y-1,j)·Z_(1,j)". Note that 2≦y≦Y.
[0239] The second checksum calculation unit 240B outputs multiple checksums Σ_2 to the tag generation unit 250B. Note that in the example shown below, the number of checksums Σ_2 calculated by the second checksum calculation unit 240B is three, but the number of calculated checksums Σ_2 may be the same as the number of checksums Σ_2 calculated by the second checksum calculation unit 140B. In other words, the number of calculated checksums Σ_2 is arbitrary.
[0240] The tag generation unit 250B generates a plurality of verification tags T in the same manner as the tag generation unit 150B. * _1 and a plurality of verification tags T *That is, the tag generation unit 250B generates a plurality of verification tags T_2 by using a plurality of checksums Σ_1 (first checksums) and an encryption function F (first encryption function). * The tag generation unit 250B generates a plurality of verification tags T_1 (first verification tag) by using a plurality of checksums Σ_2 (second checksums) and an encryption function F (first encryption function). * The tag generation unit 250B generates a verification tag T_2 (second verification tag) by using an encryption function F, using a checksum Σ_2 obtained using the encryption result C_1 (second encryption result) obtained by decrypting each of the multiple ciphertext blocks. * The tag generation unit 250B generates a plurality of verification tags T * _1 and a plurality of verification tags T * _2 to the verification unit 260B.
[0241] Specifically, the tag generation unit 250B, like the tag generation unit 150B described above, encrypts the checksum Σ_1 (checksum Σ_(1,1)) using the encryption function F to generate the verification tag T * _(1,1) is generated. * _(1,1) is the verification tag T according to the first embodiment. * Furthermore, similar to the tag generation unit 150B described above, the tag generation unit 250B generates a verification tag T by encrypting one or more checksums Σ_(1, x) using an encryption function F. * _(1, x) (verification tag T * _1) is generated. * The encryption function F used to generate _(1, x) may output only an n-bit encryption result (random number) corresponding to one ciphertext C_0 as shown in FIG. 2. Then, the tag generation unit 250B outputs the n-bit encryption result corresponding to the ciphertext C_0 as a verification tag T * _(1, x) (verification tag T * _1).
[0242] Similarly to the tag generation unit 150B described above, the tag generation unit 250B encrypts the checksum Σ_(2,1) using the encryption function F to generate a verification tag T * _(2,1). * _(2,1) is the verification tag T * Furthermore, similar to the tag generation unit 150B described above, the tag generation unit 250B generates a verification tag T by encrypting one or more checksums Σ_(2, y) using an encryption function F. * _(2, y) (verification tag T * _2) is generated. * The encryption function F used to generate the verification tag T_2 may output only an n-bit encryption result (random number) corresponding to one ciphertext C_0 as shown in FIG. * _2 (Verification tag T * _2). Note that the Tweak input to each of the multiple encryption functions F used in tag generation unit 250B may be the same as the Tweak input to each of the multiple encryption functions F used in tag generation unit 150B.
[0243] The verification unit 260B, like the verification unit 260 according to the first embodiment, * _1, T * The verification unit 260B compares the authentication tags T_1 and T_2 generated by the authentication encryption device 10 with the authentication tags T_1 and T_2, respectively, to verify whether or not the tags have been tampered with. Then, the verification unit 260B controls the output of information based on the verification result. Here, the verification unit 260B compares the authentication tags T_1 and T_2 generated by the authentication encryption device 10 with the authentication tags T_1 and T_2 generated by the authentication encryption device 10 to verify whether or not the tags have been tampered with. * The verification unit 260B compares the authentication tag T_1 with each of the plurality of authentication tags T_1 generated by the authentication encryption device 10 to verify whether or not the tag has been tampered with. * The authentication encryption device 10 compares the authentication tag T_2 with each of the plurality of authentication tags T_2 generated by the authentication encryption device 10 to verify whether or not it has been tampered with.
[0244] Specifically, the verification unit 260B and the verification tag T * _(1,1) with the authentication tag T_(1,1). Furthermore, the verification unit 260B compares one or more verification tags T * The verification unit 260B compares the verification tag T_(1, x) with one or more authentication tags T_(1, x). * _(2,1) with the authentication tag T_(2,1). Furthermore, the verification unit 260B compares one or more verification tags T * _(2,y) and one or more authentication tags T_(2,y), respectively.
[0245] If all of the comparison results are "match", the verification unit 260B determines that authentication has been successful. If authentication has been successful, the verification unit 260B performs control to output the plaintext M generated by the ciphertext processing unit 220B. On the other hand, if at least one of the comparison results is "mismatch", the verification unit 260B determines that authentication has failed. If authentication has failed, the verification unit 260B performs control to output an error message ⊥ indicating that authentication has failed.
[0246] For example, as shown in the example of Fig. 24, the tag generation unit 150B generates two authentication tags T_1, that is, authentication tags T_(1,1) and T_(1,2), and generates three authentication tags T_2, that is, authentication tags T_(2,1), T_(2,2), and T_(2,3). In this case, the tag generation unit 250B generates two verification tags T * The verification tag T * _(1,1),T * _(1, 2) and generate three verification tags T * The verification tag T is _2. * _(2,1),T * _(2,2),T * Generate _(2,3).
[0247] Then, the verification unit 260B reads the verification tag T * Similarly, the verification unit 260B compares the verification tag T_(1,1) with the verification tag T_(1,1). *The verification unit 260B compares the verification tag T_(1,2) with the verification tag T_(1,2). * Similarly, the verification unit 260B compares the verification tag T_(2,1) with the verification tag T_(2,1). * Similarly, the verification unit 260B compares the verification tag T_(2,2) with the verification tag T_(2,2). * The verification unit 260B compares the authentication tag T_(2,3) with the authentication tag T_(2,3). If all of the five comparison results are "match," the verification unit 260B determines that the authentication is successful. On the other hand, if at least one of the five comparison results is "mismatch," the verification unit 260B determines that the authentication is unsuccessful.
[0248] Note that a plurality of authentication tags T_1 may be linked to form a single authentication tag T_1 (=T_(1,1)∥ . . . . ∥T_(1,X)). Similarly, a plurality of authentication tags T_2 may be linked to form a single authentication tag T_2 (=T_(2,1)∥ . . . ∥T_(2,Y)). Similarly, a plurality of verification tags T * _1 are linked to form one verification tag T * _1 (=T * _(1,1)||・・・||T * Similarly, multiple verification tags T * _2 are linked to form one verification tag T * _2 (=T * _(2,1)||・・・||T * _(2, Y)). The verification unit 260B then uses the verification tag T * _1 and the authentication tag T_1 obtained by linking, and * _2 may be compared with the authentication tag T_2 obtained by concatenation.
[0249] Furthermore, the authentication tag T_1 obtained by linking and the authentication tag T_2 obtained by linking may be further linked to obtain linked data T_1∥T_2. * The verification tag T obtained by linking with _1 * _2 is further linked to form linked data T *_1||T * Then, the verification unit 260B may obtain the linked data T * _1||T * _2 may be compared with the concatenated data T_1∥T_2.
[0250] 26 is a diagram illustrating an outline of the operations of the ciphertext processing unit 220B, the first checksum calculation unit 230B, and the second checksum calculation unit 240B according to the third embodiment. Note that the outline of the operations of the AD processing unit 210, and the first checksum calculation unit 230B and the second checksum calculation unit 240B related to the AD processing unit 210 is substantially the same as that shown in FIG. 22 , and therefore is not shown. Also, the outline of the operations of the tag generation unit 250B is substantially the same as that shown in FIG. 24 , and therefore is not shown.
[0251] 26, the ciphertext processing unit 220B performs substantially the same processing on the ciphertext blocks C[1], ..., C[m-1] as the ciphertext processing unit 220 according to the first embodiment. Furthermore, the ciphertext processing unit 220B also performs substantially the same processing on the final ciphertext block C[m] as on the other ciphertext blocks. That is, the ciphertext processing unit 220B performs substantially the same processing on the final ciphertext block C[m] as on the other ciphertext blocks for 1≦i≦m using the decryption function F -1 The ciphertext block C[i] is decrypted using the above formula to obtain the plaintext block C[i] as the decryption result and the random number Z[i] as another encryption result C_1.
[0252] 26, the first checksum calculation unit 230B (230B-1) calculates the checksum Σ_(1,1) in the same manner as the first checksum calculation unit 230 according to the first embodiment. That is, the first checksum calculation unit 230B (230B-1) calculates the checksum Σ_(1,1) by exclusive ORing the initial value 0^n, the random numbers z_0[1], ..., z_0[a], and the plaintext blocks M[1], ..., M[m]. As described above, the random numbers z_0[1], ..., z_0[a] are generated by the AD processing unit 210.
[0253] Similarly to the checksum expansion unit 132B (132B-2), the checksum expansion unit 232B (232B-2) multiplies the random numbers z_0[1], ..., z_0[a] by predetermined values α_(1,1), ..., α_(1,a), respectively. Also, as shown in FIG. 26, the checksum expansion unit 232B (232B-2) multiplies the plaintext blocks M[1], ..., M[m] by predetermined values α_(1,a+1), ..., α_(1,a+m), respectively, similar to the checksum expansion unit 132B (132B-2). Similarly to the first checksum calculation unit 130B (130B-2), the first checksum calculation unit 230B (230B-2) calculates the checksum Σ_(1,2) by the exclusive OR of the initial value 0^n and the multiplied value obtained by the multiplication described above.
[0254] 26, the second checksum calculation unit 240B (240B-1) calculates the checksum Σ_(2,1) by exclusive ORing the initial value 0^n, the random numbers z_1[1], ..., z_1[a], and the random numbers Z[1], ..., Z[m]. As described above, the random numbers z_1[1], ..., z_1[a] are generated by the AD processing unit 210.
[0255] Similarly to the checksum expansion unit 142B (142B-2), the checksum expansion unit 242B (242B-2) multiplies the random numbers z_1[1], ..., z_1[a] by predetermined values α_(1,1), ..., α_(1,a), respectively. Also, as shown in FIG. 26, the checksum expansion unit 242B (242B-2) multiplies the random numbers Z[1], ..., Z[m] by predetermined values α_(1,a+1), ..., α_(1,a+m), respectively, similar to the checksum expansion unit 142B (142B-2). Similarly to the second checksum calculation unit 140B (140B-2), the second checksum calculation unit 240B (240B-2) calculates the checksum Σ_(2,2) by the exclusive OR of the initial value 0^n and the multiplied value obtained by the multiplication described above.
[0256] Similarly to the checksum expansion unit 142B (142B-3), the checksum expansion unit 242B (242B-3) multiplies the random numbers z_1[1], ..., z_1[a] by predetermined values α_(2,1), ..., α_(2,a), respectively. Also, as shown in FIG. 26, the checksum expansion unit 242B (242B-3) multiplies the random numbers Z[1], ..., Z[m] by predetermined values α_(2,a+1), ..., α_(2,a+m), respectively, similar to the checksum expansion unit 142B (142B-3). Similarly to the second checksum calculation unit 140B (140B-3), the second checksum calculation unit 240B (240B-3) calculates the checksum Σ_(2,3) by the exclusive OR of the initial value 0^n and the multiplied value obtained by the multiplication described above.
[0257] Furthermore, the tag generation unit 250B generates the verification tag T * _(1,1), verification tag T * _(1,2), verification tag T * _(2,1), verification tag T * _(2,2), and the verification tag T * That is, the tag generation unit 250B generates the verification tag T by encrypting the checksum Σ_(1,1) using the encryption function F. * The tag generation unit 250B generates a verification tag T by encrypting the checksum Σ_(1,2) using the encryption function F. * The tag generation unit 250B generates a verification tag T by encrypting the checksum Σ_(2,1) using the encryption function F. * The tag generation unit 250B generates a verification tag T by encrypting the checksum Σ_(2,2) using the encryption function F. * The tag generation unit 250B generates a verification tag T by encrypting the checksum Σ_(2,3) using the encryption function F. * Generate _(2,3).
[0258] <Effects> The authentication encryption system 1 according to the third embodiment can achieve substantially the same effects as the authentication encryption system 1 according to the first embodiment. That is, as described above, the authentication encryption device 10B according to the third embodiment is configured not only to generate a checksum Σ_2 from the random number Z obtained by processing a plaintext block, but also to generate an n-bit checksum Σ_1 using the plaintext block. This makes it possible to generate not only the tag T generated in the first comparative example (corresponding to the authentication tag T_2 according to the first embodiment) but also an n-bit authentication tag T_1 using the checksum Σ_1. Therefore, the authentication encryption device 10B according to the third embodiment can achieve a security level greater than n bits, which was not possible in the comparative example.
[0259] Furthermore, the authentication encryption device 10B according to the third embodiment is configured to expand the checksum Σ_1 to generate multiple n-bit authentication tags T_1. Furthermore, the authentication encryption device 10B according to the third embodiment is configured to expand the checksum Σ_2 to generate multiple n-bit authentication tags T_2. Therefore, it is possible to generate authentication tags T with even larger bit lengths. As in the above example, when two n-bit authentication tags T_1 are generated and three n-bit authentication tags T_1 are generated, it is possible to generate a 5n-bit authentication tag T. Therefore, a security level of 5n bits can be achieved. Therefore, the authentication encryption device 10B according to the third embodiment can achieve a security level even higher than that of the authentication encryption devices according to the above-described embodiments.
[0260] (Fourth embodiment) Next, a fourth embodiment will be described. The fourth embodiment shows an outline of the configuration according to the above-mentioned embodiments.
[0261] 27 is a diagram showing the configuration of an authentication encryption device 30 according to the fourth embodiment. The authentication encryption device 30 according to the fourth embodiment corresponds to the authentication encryption device 10 according to the first embodiment, the authentication encryption device 10A according to the second embodiment, and the authentication encryption device 10B according to the third embodiment. The authentication encryption device 30 according to the fourth embodiment includes a plaintext processing unit 320, a first checksum calculation unit 330, a second checksum calculation unit 340, and a tag generation unit 350. The plaintext processing unit 320 functions as plaintext processing means. The first checksum calculation unit 330 functions as first checksum calculation means (checksum calculation means). The second checksum calculation unit 340 functions as second checksum calculation means (checksum calculation means). The tag generation unit 350 functions as tag generation means (first tag generation means).
[0262] The plaintext processing unit 320 can be realized by substantially the same functions as those possessed by the plaintext processing unit 120, plaintext processing unit 120A, or plaintext processing unit 120B described above. The plaintext processing unit 320 uses a first encryption function to encrypt each of a plurality of plaintext blocks obtained by dividing a first plaintext to be encrypted into n-bit lengths. The plaintext processing unit 320 thereby obtains an n-bit first encryption result (encryption result C_0) and an n-bit second encryption result (encryption result C_1), which are outputs of the first encryption function. The first encryption function corresponds to the encryption function F described above. In other words, the first encryption function corresponds to one cryptographic primitive that can generate a plurality of mutually different n-bit encryption results using n-bit plaintext as input. The first decryption function corresponding to the first encryption function is the decryption function F described above. -1 That is, the first decryption function can take one encryption result out of a plurality of encryption results as input and generate n-bit plaintext and another n-bit encryption result.
[0263] The first checksum calculation unit 330 can be realized by substantially the same functions as those of the first checksum calculation unit 130, first checksum calculation unit 130A, or first checksum calculation unit 130B described above. When associated data is input, the first checksum calculation unit 330 calculates at least one n-bit first checksum using a plurality of associated data blocks obtained by dividing the data into n-bit lengths and a plurality of plaintext blocks. When associated data is not input, the first checksum calculation unit 330 calculates at least one n-bit first checksum using a plurality of plaintext blocks. In other words, the first checksum calculation unit 330 calculates at least one n-bit first checksum using at least a plurality of plaintext blocks. The first checksum corresponds to the checksum Σ_1 described above.
[0264] The second checksum calculation unit 340 can be realized by substantially the same function as the second checksum calculation unit 140 or the second checksum calculation unit 140B described above. When associated data is input, the second checksum calculation unit 340 calculates at least one n-bit second checksum using the second encryption results obtained by encrypting each of the multiple associated data blocks and the multiple plaintext blocks. When associated data is not input, the second checksum calculation unit 340 calculates at least one n-bit second checksum using the second encryption results obtained by encrypting each of the multiple plaintext blocks. In other words, the second checksum calculation unit 340 calculates at least one n-bit second checksum using the second encryption results among the multiple encryption results obtained by encrypting at least each of the multiple plaintext blocks using the first encryption function. The second checksum corresponds to the checksum Σ_2 described above.
[0265] The tag generation unit 350 can be realized by substantially the same functions as those of the tag generation unit 150, tag generation unit 150A, or tag generation unit 150B described above. The tag generation unit 350 generates authentication tags. The tag generation unit 350 generates at least one first authentication tag by a first encryption function using a first checksum. The tag generation unit 350 also generates at least one second authentication tag by using a second encryption result obtained by encrypting at least the last plaintext block of the plurality of plaintext blocks using the first encryption function.
[0266] FIG. 28 is a diagram showing the configuration of an authentication / decryption device 40 according to the fourth embodiment. The authentication / decryption device 40 according to the fourth embodiment corresponds to the authentication / decryption device 20 according to the first embodiment, the authentication / decryption device 20A according to the second embodiment, and the authentication / decryption device 20B according to the third embodiment. The authentication / decryption device 40 according to the fourth embodiment includes a ciphertext processing unit 420, a first checksum calculation unit 430, a second checksum calculation unit 440, a tag generation unit 450, and a verification unit 460. The ciphertext processing unit 420 functions as a ciphertext processing unit. The first checksum calculation unit 430 functions as a first checksum calculation unit (third checksum calculation unit; checksum calculation unit). The second checksum calculation unit 440 functions as a second checksum calculation unit (fourth checksum calculation unit; checksum calculation unit). The tag generation unit 450 functions as a tag generation unit (second tag generation unit). The verification unit 460 functions as a verification unit.
[0267] The ciphertext processing unit 420 can be realized by substantially the same functions as the ciphertext processing unit 220, ciphertext processing unit 220A, or ciphertext processing unit 220B described above. The ciphertext processing unit 420 uses a first decryption function to decrypt each of the first encryption results obtained from multiple ciphertext blocks obtained by dividing a first ciphertext, which corresponds to the encryption result obtained by encrypting a first plaintext, into n-bit blocks. The ciphertext processing unit 420 thereby obtains an n-bit plaintext block and an n-bit second encryption result, which are outputs of the first decryption function and correspond to the decryption result of the ciphertext block.
[0268] The first checksum calculation unit 430 can be realized by substantially the same functions as those of the first checksum calculation unit 230, the first checksum calculation unit 230A, or the first checksum calculation unit 230B described above. The first checksum calculation unit 430 calculates at least one n-bit first checksum using at least a plurality of plaintext blocks.
[0269] The second checksum calculation unit 440 can be realized by substantially the same functions as those of the above-described second checksum calculation unit 240 or second checksum calculation unit 240B. The second checksum calculation unit 440 calculates at least one n-bit second checksum using second encryption results obtained by decrypting at least each of the multiple first encryption results using a first decryption function.
[0270] The tag generation unit 450 can be realized by substantially the same functions as those of the tag generation unit 250, the tag generation unit 250A, or the tag generation unit 250B described above. The tag generation unit 450 generates a tag for verification. The tag generation unit 450 generates at least one first verification tag by a first encryption function using a first checksum. The tag generation unit 450 also generates at least one second verification tag by using a second encryption result obtained by decrypting, by a first decryption function, the first encryption result obtained from at least the last ciphertext block among the multiple ciphertext blocks.
[0271] The verification unit 460 can be realized by substantially the same functions as those of the above-described verification unit 260, verification unit 260A, or verification unit 260B. The verification unit 460 compares at least one first verification tag and at least one second verification tag with at least one input first authentication tag and at least one input second authentication tag, respectively. The verification unit 460 thereby verifies whether or not tampering has occurred and performs control to output the verification result.
[0272] The authentication encryption device 30 and the authentication decryption device 40 according to the fourth embodiment have the above-described configurations, which enable efficient encryption of plaintext and tamper detection, thereby achieving a high level of security. Furthermore, the authentication encryption method and the program for executing the authentication encryption method executed by the authentication encryption device 30 also enable efficient encryption of plaintext and tamper detection, thereby achieving a high level of security. Furthermore, the authentication decryption method and the program for executing the authentication decryption method executed by the authentication decryption device 40 also enable efficient encryption of plaintext and tamper detection, thereby achieving a high level of security.
[0273] (Hardware Configuration Example) An example of the configuration of hardware resources for realizing the devices and systems according to the above-described embodiments using one calculation processing device (information processing device, computer) will be described. However, the devices according to the embodiments (authentication encryption device and authentication decryption device) may be physically or functionally realized using at least two calculation processing devices. Furthermore, the devices according to the embodiments may be realized as dedicated devices or general-purpose information processing devices.
[0274] FIG. 29 is a block diagram illustrating an example of the hardware configuration of a calculation processing device capable of realizing the device and system according to each embodiment. The calculation processing device 1000 includes a CPU 1001, a volatile storage device 1002, a disk 1003, a non-volatile recording medium 1004, and a communication IF (Interface) 1007. Therefore, it can be said that the device according to each embodiment includes the CPU 1001, the volatile storage device 1002, the disk 1003, the non-volatile recording medium 1004, and the communication IF 1007. The calculation processing device 1000 may be connectable to an input device 1005 and an output device 1006. The calculation processing device 1000 may also include the input device 1005 and the output device 1006. The calculation processing device 1000 can also transmit and receive information to and from other calculation processing devices and communication devices via the communication IF 1007.
[0275] The nonvolatile recording medium 1004 is a computer-readable medium, such as a compact disc or a digital versatile disc. The nonvolatile recording medium 1004 may also be a universal serial bus (USB) memory, a solid state drive, or the like. The nonvolatile recording medium 1004 stores the program and allows portability without requiring a power supply. The nonvolatile recording medium 1004 is not limited to the above-mentioned medium. Instead of the nonvolatile recording medium 1004, the program may be supplied via the communication IF 1007 and a communication network.
[0276] The volatile storage device 1002 is computer-readable and can temporarily store data. The volatile storage device 1002 is a memory such as a dynamic random access memory (DRAM) or a static random access memory (SRAM).
[0277] That is, when executing a software program (computer program: hereinafter simply referred to as "program") stored on disk 1003, CPU 1001 copies the program to volatile storage device 1002 and executes arithmetic processing. CPU 1001 reads data necessary for executing the program from volatile storage device 1002. When display is required, CPU 1001 displays the output result on output device 1006. When a program is input from outside, CPU 1001 acquires the program from input device 1005. CPU 1001 interprets and executes programs corresponding to the functions (processing) of each component shown in Figures 9, 12, 16, 19, 21, 25, and 27-28. CPU 1001 executes the processing described in each of the above-mentioned embodiments. In other words, the functions of each component shown in Figures 9, 12, 16, 19, 21, 25, and 27 to 28 described above can be realized by CPU 1001 executing a program stored on disk 1003 or volatile memory device 1002.
[0278] That is, each of the embodiments can be realized by the above-described program. Furthermore, each of the embodiments can be realized by a computer-readable non-volatile recording medium on which the above-described program is recorded.
[0279] (Modifications) Note that the present invention is not limited to the above-described embodiment, and can be modified as appropriate without departing from the spirit of the present invention. For example, in the above-described flowchart, the order of each process (step) can be modified as appropriate. Furthermore, one or more of the multiple processes (steps) may be omitted. Furthermore, in the above-described embodiment, the encryption result C_0 is the "first encryption result" and the encryption result C_1 is the "second encryption result," but this configuration is not limited to this. The encryption result C_0 may be the "second encryption result," and the encryption result C_1 may be the "first encryption result."
[0280] In the first embodiment described above, the division of the associated data A and the plaintext M is performed by the division unit 102, but this is not limiting. The division of the associated data A may be performed by the AD processing unit 110. Similarly, the division of the plaintext M may be performed by the plaintext processing unit 120. In these cases, the division unit 102 may not be necessary. The same applies to the other division units.
[0281] Furthermore, in the above-described first embodiment, the processing related to the last plaintext block M[m] is performed by the plaintext processing unit 120, but this is not a limitation. The processing related to the last plaintext block M[m] may be performed by the tag generation unit 150. That is, the tag generation unit 150 may process the last plaintext block M[m] to generate the last ciphertext block C[m]. Similarly, in the above-described first embodiment, the processing related to the last ciphertext block C[m] is performed by the ciphertext processing unit 220, but this is not a limitation. The processing related to the last ciphertext block C[m] may be performed by the tag generation unit 250. That is, the tag generation unit 250 may process the last ciphertext block C[m] to generate the last plaintext block M[m]. The same applies to the second embodiment.
[0282] Furthermore, the above-described embodiments are mutually applicable. For example, the configuration according to the third embodiment may be applied to the first embodiment. That is, in the authentication encryption device 10B according to the third embodiment, the first checksum calculation unit 130B may calculate one checksum Σ_1, and the second checksum calculation unit 140B may calculate one checksum Σ_2. In this case, the checksum expansion unit 132B and the checksum expansion unit 142B do not function. In other words, in the method according to the third embodiment, the checksums Σ_1 and Σ_2 do not need to be expanded. Then, the tag generation unit 150B may generate one authentication tag T_1 using one checksum Σ_1. Similarly, the tag generation unit 150B may generate one authentication tag T_2 using one checksum Σ_2. The same applies to the authentication decryption device 20B. However, in this configuration, compared to the first embodiment, it is necessary to call the encryption function F one more time to generate the authentication tag T_2. Therefore, the calculation time may be increased compared to the first embodiment.
[0283] Furthermore, the third embodiment may also be applied to cases where the lengths of the associated data and plaintext M are not multiples of n bits. That is, the configuration according to the third embodiment may be applied to the second embodiment. In this case, depending on how the final plaintext block M[m] is handled, for example, the first and second modified examples shown below are possible. Note that, although the following description is given of an authenticated encryption device, the same applies to an authenticated decryption device.
[0284] In the first modification, the authentication encryption device 10B, as in the second embodiment, obtains the final ciphertext block C[m] by exclusive-ORing the encryption result C_0 obtained by the encryption function F using the final plaintext block M[m] with one checksum Σ_2. In this case, the second checksum calculation unit 140B may calculate one checksum Σ_2 without operating the checksum extension unit 142B. The plaintext processing unit 120B may then encrypt n-bit data obtained by padding the final plaintext block M[m] and obtain the final ciphertext block C[m] by exclusive-ORing the obtained encryption result C_0 with one checksum Σ_2. The tag generation unit 150B may also obtain the encryption result C_1 obtained by encrypting the final plaintext block M[m] as the authentication tag T_2.
[0285] On the other hand, the first checksum calculation unit 130B may operate the checksum expansion unit 132B to calculate multiple checksums Σ_1, substantially similar to the third embodiment. In this case, the first checksum calculation unit 130B calculates multiple checksums Σ_1 using n-bit data obtained by concatenating the final plaintext block M[m], rather than the final plaintext block M[m] itself, which is less than n bits. Therefore, the checksum expansion unit 132B does not multiply the final plaintext block M[m] by a predetermined value α_(1, a+m), but rather multiplies the n-bit data string obtained by concatenating the final plaintext block M[m] by a predetermined value α_(1, a+m). The first checksum calculation unit 130B then performs an exclusive OR using the product obtained by this multiplication to calculate the checksum Σ_(1, 2). The tag generation unit 150B then generates multiple authentication tags T_1 using the multiple checksums Σ_1, similar to the third embodiment.
[0286] In the second modified example, the authentication encryption device 10B calculates multiple checksums Σ_2 and generates multiple authentication tags T_2, as in the third embodiment. In this case, the checksum Σ_1 and authentication tag T_1 are processed in the same manner as in the first modified example described above, thereby generating multiple authentication tags T_1. Furthermore, when encrypting the final plaintext block M[m] in the third embodiment, the plaintext processing unit 120B encrypts the n-bit data string obtained by padding the final plaintext block M[m] using the encryption function F, as in the second embodiment. The plaintext processing unit 120B then obtains the n-bit encryption result C_0 obtained by this encryption as the final ciphertext block C[m]. Furthermore, the second checksum calculation unit 140B uses the n-bit encryption result C_1 obtained by this encryption as the random number Z[m] to calculate multiple checksums Σ_2, as in the third embodiment.
[0287] The second checksum calculation unit 140B performs an exclusive OR using this random number Z[m] to calculate the checksum Σ_(2,1). The checksum expansion unit 142B multiplies the random number Z[m] by a predetermined value α_(1,a+m). The second checksum calculation unit 140B then performs an exclusive OR using the product obtained by this multiplication to calculate the checksum Σ_(2,2). The checksum expansion unit 142B also multiplies the random number Z[m] by a predetermined value α_(2,a+m). The second checksum calculation unit 140B then performs an exclusive OR using the product obtained by this multiplication to calculate the checksum Σ_(2,3). The tag generation unit 150B then generates multiple authentication tags T_2 using multiple checksums Σ_2, as in the third embodiment.
[0288] In the second modification, as described above, the random number Z[m] is a value obtained by encrypting the final plaintext block M[m] of less than n bits. Therefore, each of the multiple authentication tags T_2 obtained using this random number may have security of less than n bits. That is, the security level of each of the multiple authentication tags T_2 may be substantially the same as the security level of a single authentication tag T_2 according to the second embodiment. On the other hand, each of the multiple authentication tags T_2 has a length of n bits, which is longer than the single authentication tag T_2 of less than n bits according to the second embodiment. Therefore, in the second modification, the amount of communication may increase compared to the second embodiment, even though the security level of the authentication tags T_2 is the same. Furthermore, because the length of the authentication tag T_2 is n bits, the authentication / decryption device 20B cannot recognize the length of the final plaintext block M[m]. Therefore, in order to enable the authentication-decryption device 20B to recognize the length of the final plaintext block M[m], the authentication-encryption device 10B needs to add length information of the final plaintext block M[m] as a header when transmitting the ciphertext and the authentication tag. Furthermore, in consideration of security, it may be necessary to distinguish between the case where the length of the final plaintext block M[m] is n bits and the case where it is less than n bits when using Tweak input to the encryption function F used in the tag generation unit 150B.
[0289] In the above examples, the program includes instructions (or software code) that, when loaded into a computer, cause the computer to perform one or more functions described in the embodiments. The program may be stored on a non-transitory computer-readable medium or a tangible storage medium. By way of example and not limitation, computer-readable medium or tangible storage medium includes random-access memory (RAM), read-only memory (ROM), flash memory, solid-state drive (SSD) or other memory technology, CD-ROM, digital versatile disk (DVD), Blu-ray disc or other optical disk storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage device. The program may also be transmitted on a transitory computer-readable medium or communication medium. By way of example and not limitation, transitory computer-readable medium or communication medium includes electrical, optical, acoustic, or other forms of propagated signals.
[0290] Although the present invention has been described above with reference to the embodiments, the present invention is not limited to the above. Various modifications that can be understood by those skilled in the art can be made to the configuration and details of the present invention within the scope of the invention.
[0291] Some or all of the above embodiments may be described as, but are not limited to, the following supplementary notes: (Supplementary Note 1) Plaintext processing means for encrypting each of a plurality of plaintext blocks obtained by dividing a first plaintext to be encrypted into n-bit lengths using a first encryption function corresponding to one cryptographic primitive, the first encryption function being capable of generating a plurality of mutually different n-bit encryption results using an n-bit plaintext as an input, and a first decryption function corresponding to the first encryption function being capable of generating an n-bit plaintext and another n-bit encryption result using one encryption result of the plurality of encryption results as an input, to obtain an n-bit first encryption result and an n-bit second encryption result that are outputs of the first encryption function; first checksum calculation means for calculating at least one n-bit first checksum using at least a plurality of the plaintext blocks; and second checksum calculation means for calculating at least one n-bit second checksum using the second encryption result of the plurality of encryption results obtained by encrypting at least a plurality of the plaintext blocks using the first encryption function; and tag generation means for generating authentication tags, the tag generation means generating at least one first authentication tag by the first encryption function using the first checksum, and generating at least one second authentication tag using the second encryption result obtained by encrypting at least a last plaintext block of the plurality of plaintext blocks using the first encryption function. (Supplementary Note 2) The plaintext processing means: obtains a ciphertext block obtained by encrypting a plaintext block other than the last plaintext block using the first encryption result obtained by encrypting the plaintext block using the first encryption function, obtains a last ciphertext block obtained by encrypting the last plaintext block using the first encryption function and the second checksum, and the tag generation means generates a second authentication tag using the second encryption result obtained by encrypting the last plaintext block using the first encryption function.The authenticated encryption device according to Supplementary Note 1. (Supplementary Note 3) The authenticated encryption device according to Supplementary Note 1, wherein when the bit length of the first plaintext is not a multiple of n, the first plaintext is divided into plaintext blocks each having a length of n bits other than the last plaintext block and the last plaintext block having a length of less than n bits, the plaintext processing means encrypts n-bit data obtained by padding the last plaintext block having a length of less than n bits among the plurality of plaintext blocks using the first encryption function, and the first checksum calculation means calculates the first checksum using an n-bit bit string obtained by concatenating the last plaintext block and a bit string other than the bit string corresponding to the size of the last plaintext block from the second encryption result obtained by the first encryption function using the last plaintext block. (Supplementary Note 4) The authenticated encryption device according to Supplementary Note 1, wherein the plaintext processing means obtains the first encryption result obtained by encrypting each of a plurality of plaintext blocks using the first encryption function as a ciphertext block obtained by encrypting the plaintext block, and the tag generation means generates a second authentication tag by the first encryption function using the second checksum obtained by using the second encryption result obtained by encrypting each of the plurality of plaintext blocks using the first encryption function. (Supplementary Note 5) The authenticated encryption device according to Supplementary Note 1, wherein the first checksum calculation means calculates the first checksums in number corresponding to the number of rows of the first matrix using at least a plurality of the plaintext blocks and a predetermined first matrix having two or more rows and having predetermined values as elements, and the tag generation means generates a plurality of the first authentication tags by the first encryption function using the plurality of first checksums. (Supplementary Note 6) The authentication encryption device according to Supplementary Note 1, wherein the second checksum calculation means uses a plurality of the second encryption results and a predetermined second matrix having two or more rows and having predetermined values as elements to calculate the second checksums in a number corresponding to the number of rows of the second matrix, and the tag generation means uses the plurality of second checksums to generate a plurality of the second authentication tags by the first encryption function. (Supplementary Note 7)The authenticated encryption device according to Supplementary Note 1, further comprising associated data processing means for encrypting, using the first encryption function, a plurality of associated data blocks obtained by dividing associated data related to the first plaintext into n-bit lengths, to obtain first encryption results and second encryption results corresponding to the associated data blocks, wherein the first checksum calculation means calculates the first checksum further using the first encryption results corresponding to the associated data blocks, and the second checksum calculation means calculates the second checksum further using the second encryption results corresponding to the associated data blocks. (Supplementary Note 8) The authenticated encryption device according to Supplementary Note 1, wherein a cryptographic primitive corresponding to the first encryption function is Forkcipher. (Supplementary Note 9) Ciphertext processing means for decrypting each of first encryption results obtained from a plurality of ciphertext blocks obtained by dividing a first ciphertext into n-bit lengths, the first ciphertext corresponding to an encryption result obtained by encrypting a first plaintext, using a first decryption function that corresponds to a first encryption function corresponding to one cryptographic primitive and that is capable of generating a plurality of mutually different n-bit encryption results using an n-bit plaintext as input, and that is capable of generating an n-bit plaintext and another n-bit encryption result using the n-bit encryption result as input, to obtain an n-bit plaintext block and an n-bit second encryption result that are outputs of the first decryption function and correspond to the decryption result of the ciphertext block; first checksum calculation means for calculating at least one n-bit first checksum using at least a plurality of the plaintext blocks; second checksum calculation means for calculating at least one n-bit second checksum using the second encryption results obtained by decrypting at least a plurality of first encryption results using the first decryption function; a tag generating means for generating a tag for verification, the tag generating means generating at least one first verification tag by the first encryption function using the first checksum, and generating at least one second verification tag by the second encryption result obtained by decrypting the first encryption result obtained from at least a last ciphertext block of the plurality of ciphertext blocks using the first decryption function;and a verification means for verifying whether or not the data has been tampered with by comparing at least one of the first verification tag and at least one of the second verification tags with the input at least one first authentication tag and at least one second authentication tag, respectively, and performing control to output a verification result. (Supplementary Note 10) The authentication and decryption device according to Supplementary Note 9, wherein the ciphertext processing means obtains the plaintext block by decrypting ciphertext blocks other than the last ciphertext block using the first decryption function, and obtains the last plaintext block obtained by decrypting the last ciphertext block and the second encryption result corresponding to the first encryption result by decrypting a value obtained using the last ciphertext block and the second checksum using the first decryption function as the first encryption result, and the tag generation means generates a second authentication tag using the second encryption result obtained from the last ciphertext block using the first decryption function. (Supplementary Note 11) The authentication decryption device according to Supplementary Note 9, wherein, when the bit length of the first plaintext is not a multiple of n, the ciphertext processing means obtains the last plaintext block from an n-bit decryption result including a last plaintext block of less than n bits, obtained by decrypting a value obtained by using the last ciphertext block and the second checksum using the first decryption function as the first encryption result, and the first checksum calculation means calculates the first checksum using an n-bit bit string obtained by concatenating the last plaintext block and a bit string other than the bit string corresponding to the size of the second authentication tag, from the second encryption result, obtained by decrypting a value obtained by using the last ciphertext block and the second checksum using the first decryption function as the first encryption result. (Supplementary Note 12) The ciphertext processing means obtains the decryption result obtained by decrypting each of a plurality of ciphertext blocks as the first encryption result using the first decryption function, as the plaintext block obtained by decrypting the ciphertext block,The authentication and decryption device according to Supplementary Note 9, wherein the tag generation means generates second authentication tags by the first encryption function using the second checksum obtained using the second encryption result obtained by decrypting each of the plurality of ciphertext blocks by the first decryption function. (Supplementary Note 13) The authentication and decryption device according to Supplementary Note 9, wherein the first checksum calculation means calculates the first checksums in number corresponding to the number of rows of the first matrix using at least a plurality of the plaintext blocks and a predetermined first matrix having two or more rows and having predetermined values as elements, and the tag generation means generates the plurality of first verification tags by the first encryption function using the plurality of first checksums. (Supplementary Note 14) The authentication decryption device according to Supplementary Note 9, wherein the second checksum calculation means uses a plurality of the second encryption results and a predetermined second matrix having two or more rows and having predetermined values as elements to calculate the second checksums in a number corresponding to the number of rows of the second matrix, and the tag generation means uses the plurality of second checksums to generate a plurality of the second authentication tags by the first encryption function. (Supplementary Note 15) The authentication decryption device according to Supplementary Note 9, further comprising: associated data processing means that uses the first encryption function to encrypt a plurality of associated data blocks obtained by dividing associated data related to the first plaintext, and obtains first encryption results and second encryption results corresponding to the associated data blocks, wherein the first checksum calculation means calculates the first checksum further using the first encryption results corresponding to the associated data blocks, and the second checksum calculation means calculates the second checksum further using the second encryption result corresponding to the associated data blocks. (Supplementary Note 16) The authentication / decryption device according to Supplementary Note 9, wherein the primitive corresponding to the first encryption function is Forkcipher. (Supplementary Note 17) The authentication / decryption device includes: an authentication / encryption device; and an authentication / decryption device that communicates with the authentication / encryption device,a first encryption function corresponding to one cryptographic primitive, capable of receiving an n-bit plaintext as an input and generating a plurality of mutually different n-bit encryption results, wherein a first decryption function corresponding to the first encryption function is capable of receiving one encryption result from the plurality of encryption results as an input and generating an n-bit plaintext and another n-bit encryption result; a plaintext processing means for encrypting each of a plurality of plaintext blocks obtained by dividing the first plaintext to be encrypted into n-bit lengths using the first encryption function, and obtaining an n-bit first encryption result and an n-bit second encryption result that are outputs of the first encryption function; a first checksum calculation means for calculating at least one n-bit first checksum using at least a plurality of the plaintext blocks; and a second checksum calculation means for calculating at least one n-bit second checksum using the second encryption result from a plurality of encryption results obtained by encrypting at least a plurality of the plaintext blocks using the first encryption function; the authentication and decryption device comprises: first tag generation means for generating authentication tags, the first tag generation means generating at least one first authentication tag by the first encryption function using the first checksum, and generating at least one second authentication tag using the second encryption result obtained by encrypting at least the last plaintext block of the plurality of plaintext blocks using the first encryption function; ciphertext processing means for using the first decryption function to decrypt each of the first encryption results obtained from a plurality of ciphertext blocks obtained by dividing a first ciphertext corresponding to the encryption result obtained by encrypting the first plaintext into n-bit lengths, and obtaining an n-bit plaintext block and an n-bit second encryption result which are outputs of the first decryption function and correspond to the decryption result of the ciphertext block; and third checksum calculation means for calculating at least one first checksum of n bits using at least a plurality of the plaintext blocks. a fourth checksum calculation means for calculating at least one n-bit second checksum using the second encryption results obtained by decrypting at least each of the plurality of first encryption results using the first decryption function;an authentication encryption system comprising: second tag generation means for generating verification tags, the second tag generation means generating at least one first verification tag by the first encryption function using the first checksum calculated by the third checksum calculation means, and generating at least one second verification tag by using the second encryption result obtained by decrypting, using the first decryption function, a first encryption result obtained from at least a last ciphertext block among the plurality of ciphertext blocks; and verification means for verifying whether or not tampering has occurred by comparing the at least one first verification tag and the at least one second verification tag with the at least one first authentication tag and the at least one second authentication tag that have been input, respectively, and controlling output of a verification result. (Supplementary Note 18) A first encryption function corresponding to one cryptographic primitive is capable of generating a plurality of mutually different n-bit encryption results using an n-bit plaintext as input, and a first decryption function corresponding to the first encryption function is capable of generating an n-bit plaintext and another n-bit encryption result using one encryption result of the plurality of encryption results as input, the first encryption function encrypting each of a plurality of plaintext blocks obtained by dividing the first plaintext to be encrypted into n-bit lengths to obtain an n-bit first encryption result and an n-bit second encryption result that are outputs of the first encryption function; calculating at least one n-bit first checksum using at least a plurality of the plaintext blocks; calculating at least one n-bit second checksum using the second encryption result of the plurality of encryption results obtained by encrypting at least a plurality of the plaintext blocks using the first encryption function; An authenticated encryption method, comprising: generating at least one first authentication tag by the first encryption function using the first checksum; and generating at least one second authentication tag by the second encryption result obtained by encrypting at least a last plaintext block of the plurality of plaintext blocks using the first encryption function. (Supplementary Note 19)using a first decryption function that corresponds to a first encryption function corresponding to one cryptographic primitive and that is capable of generating a plurality of mutually different n-bit encryption results using an n-bit plaintext as input, and that is capable of generating an n-bit plaintext and another n-bit encryption result using an n-bit encryption result as input, to decrypt each of the first encryption results obtained from a plurality of ciphertext blocks obtained by dividing a first ciphertext corresponding to the encryption result obtained by encrypting a first plaintext into n-bit lengths, to obtain an n-bit plaintext block and an n-bit second encryption result that are outputs of the first decryption function and correspond to the decryption result of the ciphertext block; calculating at least one n-bit first checksum using at least a plurality of the plaintext blocks; and calculating at least one n-bit second checksum using the second encryption results obtained by decrypting at least a plurality of the first encryption results using the first decryption function; an authentication decryption method, comprising: generating at least one first verification tag by the first encryption function using the first checksum; generating at least one second verification tag by the second encryption result obtained by decrypting the first encryption result obtained from at least a last ciphertext block of the plurality of ciphertext blocks using the first decryption function; and verifying whether or not tampering has occurred by comparing the at least one first verification tag and the at least one second verification tag with the at least one first authentication tag and the at least one second authentication tag that have been input, respectively, and performing control to output the verification result. (Supplementary Note 20) A method for encrypting a plurality of plaintext blocks obtained by dividing a first plaintext to be encrypted into n-bit lengths, using a first encryption function corresponding to one cryptographic primitive, which is capable of generating a plurality of mutually different n-bit encryption results using an n-bit plaintext as an input, and which has a first decryption function corresponding to the first encryption function, which is capable of generating an n-bit plaintext and another n-bit encryption result using one encryption result of the plurality of encryption results as an input, to obtain an n-bit first encryption result and an n-bit second encryption result which are outputs of the first encryption function;A non-transitory computer-readable medium having stored thereon a program that causes a computer to perform the steps of: calculating at least one first checksum of n bits using at least a plurality of the plaintext blocks; calculating at least one second checksum of n bits using the second encryption result among a plurality of encryption results obtained by encrypting at least a plurality of the plaintext blocks using the first encryption function; and generating at least one first authentication tag by the first encryption function using the first checksum, and generating at least one second authentication tag using the second encryption result obtained by encrypting at least a last plaintext block among the plurality of plaintext blocks using the first encryption function. (Supplementary Note 21) A method for obtaining an n-bit plaintext block and an n-bit second encryption result, the method comprising the steps of: decrypting each of first encryption results obtained from a plurality of ciphertext blocks obtained by dividing a first ciphertext corresponding to an encryption result obtained by encrypting a first plaintext into n-bit lengths, using a first decryption function that corresponds to a first encryption function corresponding to one cryptographic primitive and that is capable of generating a plurality of mutually different n-bit encryption results using an n-bit plaintext as input, and that is capable of generating an n-bit plaintext and another n-bit encryption result using the n-bit encryption result as input; calculating at least one n-bit first checksum using at least a plurality of the plaintext blocks; and calculating at least one n-bit second checksum using the second encryption results obtained by decrypting each of at least a plurality of first encryption results using the first decryption function. generating at least one first verification tag by the first encryption function using the first checksum, and generating at least one second verification tag using the second encryption result obtained by decrypting the first encryption result obtained from at least a last ciphertext block of the plurality of ciphertext blocks using the first decryption function;a step of verifying whether or not the data has been tampered with by comparing at least one of the first verification tag and at least one of the second verification tag with at least one of the input first authentication tag and at least one of the input second authentication tag, respectively, and performing control to output the verification result.
[0292] 1 Authenticated encryption system 10 Authenticated encryption device 20 Authenticated decryption device 30 Authenticated encryption device 40 Authenticated decryption device 100 Input unit 102 Splitting unit 104 Nonce generation unit 110 AD processing unit 120 Plaintext processing unit 130 First checksum calculation unit 132B Checksum expansion unit 140 Second checksum calculation unit 142B Checksum expansion unit 150 Tag generation unit 160 Output unit 200 Input unit 202 Splitting unit 210 AD processing unit 220 Ciphertext processing unit 230 First checksum calculation unit 232B Checksum expansion unit 240 Second checksum calculation unit 242B Checksum expansion unit 250 Tag generation unit 260 Verification unit 320 Plaintext processing unit 330 First checksum calculation unit 340 Second checksum calculation unit 350 Tag generation unit 420 Ciphertext processing unit 430 First checksum calculation unit 440 Second checksum calculation unit 450 Tag generation unit 460 Verification unit
Claims
1. A plaintext processing means for encrypting each of a plurality of plaintext blocks obtained by dividing a first plaintext to be encrypted into n-bit blocks, the plurality of plaintext blocks being obtained by dividing a first plaintext to be encrypted into n-bit blocks, the plurality of plaintext blocks being output from the first encryption function, the plurality of plaintext blocks being capable of generating a plurality of mutually different n-bit encryption results, the plurality of plaintext blocks corresponding to the first encryption function and being input with a first encryption function and being capable of generating a plurality of n-bit encryption results, the plurality of plaintext blocks being output from the first encryption function; a first checksum calculation means for calculating at least one first checksum of n bits, the plurality of plaintext blocks being output from the first encryption function; and a second checksum calculation means for calculating at least one second checksum of n bits, the plurality of plaintext blocks being output from the first encryption function, the plurality of plaintext blocks being encrypted with the first encryption function. and a tag generating means for generating an authentication tag, the tag generating means generating at least one first authentication tag by the first encryption function using the first checksum, and generating at least one second authentication tag by using the second encryption result obtained by encrypting at least a last plaintext block of the plurality of plaintext blocks using the first encryption function.
2. The authentication encryption device according to claim 1, wherein the plaintext processing means: uses the first encryption result obtained by encrypting a plaintext block other than the last plaintext block with the first encryption function to obtain a ciphertext block in which the plaintext block is encrypted; uses the first encryption result obtained by encrypting the last plaintext block with the first encryption function and the second checksum to obtain a last ciphertext block in which the last plaintext block is encrypted; and the tag generation means generates a second authentication tag using the second encryption result obtained by encrypting the last plaintext block with the first encryption function.
3. The authentication encryption device according to claim 1, wherein, when the bit length of the first plaintext is not a multiple of n, the first plaintext is divided into a plaintext block other than the last plaintext block, each having a length of n bits, and a last plaintext block having less than n bits; the plaintext processing means encrypts, using the first encryption function, n-bit data obtained by padding the last plaintext block having less than n bits among the plurality of plaintext blocks; and the first checksum calculation means calculates the first checksum using an n-bit bit string obtained by concatenating the last plaintext block and a bit string other than the bit string corresponding to the size of the last plaintext block among the second encryption result obtained by the first encryption function using the last plaintext block.
4. The authentication encryption device according to claim 1, wherein the plaintext processing means obtains the first encryption result obtained by encrypting each of a plurality of plaintext blocks using the first encryption function as a ciphertext block obtained by encrypting the plaintext block, and the tag generating means generates a second authentication tag by the first encryption function using the second checksum obtained using the second encryption result obtained by encrypting each of the plurality of plaintext blocks using the first encryption function.
5. The authentication encryption device according to claim 1, wherein the first checksum calculation means uses at least a plurality of the plaintext blocks and a predetermined first matrix having two or more rows and having predetermined values as elements to calculate a number of the first checksums corresponding to the number of rows of the first matrix, and the tag generation means uses a plurality of the first checksums to generate a plurality of the first authentication tags by the first encryption function.
6. The authentication encryption device according to claim 1, wherein the second checksum calculation means uses a plurality of the second encryption results and a predetermined second matrix having two or more rows with predetermined values as elements to calculate a number of the second checksums corresponding to the number of rows of the second matrix, and the tag generation means uses the plurality of the second checksums to generate a plurality of the second authentication tags by the first encryption function.
7. The authentication encryption device of claim 1, further comprising: associated data processing means for encrypting a plurality of associated data blocks obtained by dividing associated data related to the first plaintext into n-bit lengths using the first encryption function to obtain a first encryption result and a second encryption result corresponding to the associated data blocks; wherein the first checksum calculation means calculates the first checksum further using the first encryption result corresponding to the associated data blocks; and the second checksum calculation means calculates the second checksum further using the second encryption result corresponding to the associated data blocks.
8. The authenticated encryption device according to claim 1, wherein a cryptographic primitive corresponding to the first encryption function is Forkcipher.
9. A ciphertext processing means for decrypting each of first encryption results obtained from a plurality of ciphertext blocks obtained by dividing a first ciphertext corresponding to an encryption result obtained by encrypting a first plaintext into n-bit lengths using a first decryption function corresponding to a first encryption function corresponding to one cryptographic primitive and capable of generating a plurality of mutually different n-bit encryption results using an n-bit plaintext as an input, and capable of generating an n-bit plaintext and another n-bit encryption result using an n-bit encryption result as an input, to obtain an n-bit plaintext block and an n-bit second encryption result which are outputs of the first decryption function and correspond to the decryption result of the ciphertext block; first checksum calculation means for calculating at least one first checksum of n bits using at least a plurality of the plaintext blocks; and second checksum calculation means for calculating at least one second checksum of n bits using the second encryption results obtained by decrypting at least a plurality of the first encryption results using the first decryption function. an authentication and decryption device comprising: a tag generation means for generating tags for verification, the tag generation means generating at least one first verification tag by the first encryption function using the first checksum, and generating at least one second verification tag using the second encryption result obtained by decrypting the first encryption result obtained from at least a last ciphertext block of the plurality of ciphertext blocks using the first decryption function; and a verification means for verifying the presence or absence of tampering by comparing the at least one first verification tag and the at least one second verification tag with the at least one first authentication tag and the at least one second authentication tag input, respectively, and performing control to output a verification result.
10. The authentication and decryption device according to claim 9, wherein the ciphertext processing means obtains the plaintext block by decrypting ciphertext blocks other than the last ciphertext block using the first decryption function, and obtains the last plaintext block obtained by decrypting the last ciphertext block and the second checksum as the first encryption result using the first decryption function, and the tag generation means generates a second authentication tag using the second encryption result obtained from the last ciphertext block using the first decryption function.
11. The authentication and decryption device according to claim 9, wherein, when the bit length of the first plaintext is not a multiple of n, the ciphertext processing means obtains the last plaintext block from an n-bit decryption result including a last plaintext block of less than n bits obtained by decrypting a value obtained using the last ciphertext block and the second checksum using the first decryption function as the first encryption result, and the first checksum calculation means calculates the first checksum using an n-bit bit string obtained by concatenating the last plaintext block and a bit string other than the bit string corresponding to the size of the second authentication tag from the second encryption result obtained by decrypting a value obtained using the last ciphertext block and the second checksum using the first decryption function as the first encryption result.
12. The authentication and decryption device as described in claim 9, wherein the ciphertext processing means obtains the decryption result obtained by decrypting each of a plurality of ciphertext blocks as the first encryption result using the first decryption function as a plaintext block obtained by decrypting the ciphertext block, and the tag generation means generates a second authentication tag by the first encryption function using the second checksum obtained using the second encryption result obtained by decrypting each of the plurality of ciphertext blocks using the first decryption function.
13. The authentication and decryption device according to claim 9, wherein the first checksum calculation means uses at least a plurality of the plaintext blocks and a predetermined first matrix having two or more rows and having predetermined values as elements to calculate a number of the first checksums corresponding to the number of rows of the first matrix, and the tag generation means uses a plurality of the first checksums to generate a plurality of the first verification tags by the first encryption function.
14. The authentication and decryption device as described in claim 9, wherein the second checksum calculation means uses a plurality of the second encryption results and a predetermined second matrix having two or more rows and having predetermined values as elements to calculate a number of the second checksums corresponding to the number of rows of the second matrix, and the tag generation means uses the plurality of the second checksums to generate a plurality of the second authentication tags by the first encryption function.
15. An authentication decryption device as described in claim 9, further comprising: associated data processing means for encrypting a plurality of associated data blocks obtained by dividing associated data related to the first plaintext using the first encryption function to obtain a first encryption result and a second encryption result corresponding to the associated data blocks; wherein the first checksum calculation means calculates the first checksum further using the first encryption result corresponding to the associated data blocks; and the second checksum calculation means calculates the second checksum further using the second encryption result corresponding to the associated data blocks.
16. The authentication and decryption device according to claim 9, wherein the primitive corresponding to the first encryption function is Forkcipher.
17. An authentication encryption device comprising: an authentication decryption device that communicates with the authentication encryption device; wherein the authentication encryption device comprises: plaintext processing means for encrypting each of a plurality of plaintext blocks obtained by dividing a first plaintext to be encrypted into n-bit lengths using a first encryption function, the first encryption function corresponding to one cryptographic primitive and capable of generating a plurality of mutually different n-bit encryption results using an n-bit plaintext as an input, and a first decryption function corresponding to the first encryption function being capable of generating an n-bit plaintext and another n-bit encryption result using one encryption result of the plurality of encryption results as an input, to obtain an n-bit first encryption result and an n-bit second encryption result that are outputs of the first encryption function; first checksum calculation means for calculating at least one n-bit first checksum using at least a plurality of the plaintext blocks; and second checksum calculation means for calculating at least one n-bit second checksum using the second encryption result of a plurality of encryption results obtained by encrypting at least a plurality of the plaintext blocks using the first encryption function; the authentication decryption device includes: a first tag generation means for generating an authentication tag, the first tag generation means generating at least one first authentication tag by the first encryption function using the first checksum, and generating at least one second authentication tag using the second encryption result obtained by encrypting at least a last plaintext block of the plurality of plaintext blocks using the first encryption function; and a ciphertext processing means for decrypting, using the first decryption function, each of the first encryption results obtained from a plurality of ciphertext blocks obtained by dividing a first ciphertext corresponding to the encryption result obtained by encrypting the first plaintext into n-bit lengths, to obtain an n-bit plaintext block and an n-bit second encryption result which are outputs of the first decryption function and correspond to the decryption result of the ciphertext block; and a third checksum calculation means for calculating at least one first checksum of n bits using at least a plurality of the plaintext blocks.a fourth checksum calculation means for calculating at least one second checksum of n bits using the second encryption result obtained by decrypting at least a plurality of first encryption results using the first decryption function; a second tag generation means for generating a tag for verification, the second tag generation means generating at least one first verification tag by the first encryption function using the first checksum calculated by the third checksum calculation means, and generating at least one second verification tag using the second encryption result obtained by decrypting at least the first encryption result obtained from a last ciphertext block of the plurality of ciphertext blocks using the first decryption function; and a verification means for verifying the presence or absence of tampering by comparing the at least one first verification tag and the at least one second verification tag with the at least one first authentication tag and the at least one second authentication tag that are input, respectively, and performing control to output a verification result.
18. A first encryption function corresponding to one cryptographic primitive capable of generating multiple n-bit encryption results different from each other using an n-bit plaintext as input, wherein a first decryption function corresponding to the first encryption function is capable of generating an n-bit plaintext and another n-bit encryption result using one encryption result of the multiple encryption results as input, the first encryption function being used to encrypt multiple plaintext blocks obtained by dividing a first plaintext to be encrypted into n-bit lengths, to obtain an n-bit first encryption result and an n-bit second encryption result which are outputs of the first encryption function; calculating at least one n-bit first checksum using at least the multiple plaintext blocks; and calculating at least one n-bit second checksum using the second encryption result of the multiple encryption results obtained by encrypting at least the multiple plaintext blocks using the first encryption function; generating at least one first authentication tag by the first encryption function using the first checksum, and generating at least one second authentication tag using the second encryption result obtained by encrypting at least a last plaintext block of the plurality of plaintext blocks using the first encryption function.
19. Using a first decryption function that corresponds to a first encryption function corresponding to one cryptographic primitive and is capable of generating a plurality of mutually different n-bit encryption results using an n-bit plaintext as input, and that is capable of generating an n-bit plaintext and another n-bit encryption result using an n-bit encryption result as input, decrypting each of the first encryption results obtained from a plurality of ciphertext blocks obtained by dividing a first ciphertext corresponding to the encryption result obtained by encrypting a first plaintext into n-bit lengths, to obtain an n-bit plaintext block and an n-bit second encryption result that are outputs of the first decryption function and correspond to the decryption result of the ciphertext block; calculating at least one n-bit first checksum using at least a plurality of the plaintext blocks; and calculating at least one n-bit second checksum using the second encryption results obtained by decrypting at least a plurality of the first encryption results using the first decryption function; an authentication and decryption method comprising: generating at least one first verification tag by the first encryption function using the first checksum; generating at least one second verification tag using the second encryption result obtained by decrypting the first encryption result obtained from at least a last ciphertext block of the plurality of ciphertext blocks using the first decryption function; and verifying the presence or absence of tampering by comparing the at least one first verification tag and the at least one second verification tag with at least one first authentication tag and at least one second authentication tag that are input, respectively, and performing control to output a verification result.
20. A method for obtaining an n-bit first encryption result and an n-bit second encryption result, the method comprising the steps of: encrypting each of a plurality of plaintext blocks obtained by dividing a first plaintext to be encrypted into n-bit blocks using a first encryption function corresponding to one cryptographic primitive and capable of generating a plurality of mutually different n-bit encryption results using an n-bit plaintext as an input; and a first decryption function corresponding to the first encryption function and capable of generating an n-bit plaintext and another n-bit encryption result using one of the plurality of encryption results as an input, to obtain an n-bit first encryption result and an n-bit second encryption result, which are outputs of the first encryption function; calculating at least one n-bit first checksum using at least a plurality of the plaintext blocks; and calculating at least one n-bit second checksum using the second encryption result among the plurality of encryption results obtained by encrypting each of at least a plurality of the plaintext blocks using the first encryption function. generating at least one first authentication tag by the first encryption function using the first checksum, and generating at least one second authentication tag by using the second encryption result obtained by encrypting at least a last plaintext block of the plurality of plaintext blocks with the first encryption function.
21. A method for obtaining an n-bit plaintext block and an n-bit second encryption result, the n-bit plaintext block being output from the first decryption function, the first encryption function corresponding to a first encryption function corresponding to one cryptographic primitive capable of generating a plurality of mutually different n-bit encryption results using an n-bit plaintext as input, and the first decryption function being capable of generating an n-bit plaintext and another n-bit encryption result using the n-bit encryption result as input, and the n-bit plaintext block being output from the first decryption function, and the n-bit plaintext block being output from the first decryption function, the n-bit plaintext block being output from the first decryption function, and the n-bit second encryption result being output from the first decryption function, the n-bit plaintext block being output from the first decryption function, and the n-bit second checksum being output from the first decryption function, the n-bit first checksum being output from the first decryption function, and the n-bit second checksum being output from the first decryption function, A non-transitory computer-readable medium having stored thereon a program for causing a computer to execute the steps of: generating at least one first verification tag by the first encryption function using the first checksum, and generating at least one second verification tag using the second encryption result obtained by decrypting the first encryption result obtained from at least a last ciphertext block of the plurality of ciphertext blocks using the first decryption function; and verifying the presence or absence of tampering by comparing the at least one first verification tag and the at least one second verification tag with at least one first authentication tag and at least one second authentication tag that are input, respectively, and performing control to output a verification result.
Citation Information
Patent Citations
Authentication encryption device, authentication decryption device, authentication encryption system, method, and computer-readable medium
WO2021214923A1
