JP6881112B2 - Cryptographic data generator, decryption data generator, authenticated cryptosystem with additional data, its method, and program - Google Patents

Cryptographic data generator, decryption data generator, authenticated cryptosystem with additional data, its method, and program Download PDF

Info

Publication number
JP6881112B2
JP6881112B2 JP2017134880A JP2017134880A JP6881112B2 JP 6881112 B2 JP6881112 B2 JP 6881112B2 JP 2017134880 A JP2017134880 A JP 2017134880A JP 2017134880 A JP2017134880 A JP 2017134880A JP 6881112 B2 JP6881112 B2 JP 6881112B2
Authority
JP
Japan
Prior art keywords
state
exclusive
bit
replaced
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2017134880A
Other languages
Japanese (ja)
Other versions
JP2019015919A (en
Inventor
悠 佐々木
悠 佐々木
幹 安田
幹 安田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2017134880A priority Critical patent/JP6881112B2/en
Publication of JP2019015919A publication Critical patent/JP2019015919A/en
Application granted granted Critical
Publication of JP6881112B2 publication Critical patent/JP6881112B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、メッセージの秘匿と改ざん検知を同時に行う追加データ付き認証暗号技術に関する。 The present invention relates to an authentication encryption technology with additional data that simultaneously performs message concealment and tampering detection.

追加データ付き認証暗号とは、メッセージMの秘匿、および、メッセージMと追加データAの認証(改ざん検知)を同時に行う共通鍵暗号プリミティブである。従来の追加データ付き認証暗号としては、例えば、非特許文献1および非特許文献2に記載されたAPE(Authenticated Permutation-Based Encryption)が挙げられる。追加データ付き認証暗号は、暗号化関数および復号関数の二つの関数から構成される。追加データ付き認証暗号では、受信者と送信者との間であらかじめ秘密の鍵Kを共有しておく。 Authenticated encryption with additional data is a common key cryptographic primitive that simultaneously performs confidentiality of message M and authentication (tampering detection) of message M and additional data A. Examples of the conventional authentication encryption with additional data include APE (Authenticated Permutation-Based Encryption) described in Non-Patent Document 1 and Non-Patent Document 2. Authenticated encryption with additional data consists of two functions, an encryption function and a decryption function. In the authenticated encryption with additional data, the secret key K is shared in advance between the receiver and the sender.

送信者は、メッセージMと追加データAに加えて、暗号化関数を呼び出すたびに変化するナンスと呼ばれる値Nを選択する。暗号化関数は、メッセージM、追加データA、およびナンスNに対応する暗号化データCおよびタグTを生成し、(C, T, A, N)の組を受信者に送る。 In addition to message M and additional data A, the sender selects a value N, called a nonce, that changes each time the cryptographic function is called. The encryption function generates encrypted data C and tag T corresponding to message M, additional data A, and nonce N, and sends a set of (C, T, A, N) to the recipient.

受信者は(C, T, A, N)の組を受け取るが、この時点ではこれらの値が悪意ある第三者によって改ざんされていないという保証はない。受信者は受け取った(C, T, A, N)の組と自分が保有する鍵Kとを用いて検証を同時に行う復号関数を計算する。 The recipient receives a set of (C, T, A, N), but at this point there is no guarantee that these values have not been tampered with by a malicious third party. The recipient calculates a decryption function that performs verification at the same time using the received (C, T, A, N) pair and the key K that he owns.

検証を同時に行う復号関数にはいくつかの種類がある。多くの追加データ付き認証暗号では、受信者が再計算したタグT'が送信者から受け取ったタグTと一致するかどうかで検証を行う。APEでは、受信者が再計算した中間ステートの値がある値に一致するかどうかで検証を行う。いずれにせよ値が一致しなかった場合は復号に失敗した(データが改ざんされた)という結果を出力する。 There are several types of decryption functions that perform verification at the same time. Many authenticated encryptions with additional data verify that the tag T'recalculated by the recipient matches the tag T received from the sender. APE verifies whether the value of the intermediate state recalculated by the recipient matches a certain value. In any case, if the values do not match, the result that decoding failed (data has been tampered with) is output.

APEは追加データ付き認証暗号の暗号化関数と復号関数の構成法である。保証したい安全性レベル(ビット数)に比べて比較的大きなサイズの置換(bijective map)を用いて暗号化関数と復号関数を構成するという特徴を持つ。APEの復号関数は、上記のとおり、従来の復号関数とは異なる特殊な方法で検証を行う。 APE is a method of constructing the encryption function and decryption function of authenticated encryption with additional data. It has the feature that the encryption function and the decryption function are constructed using a substitution (bijective map) whose size is relatively large compared to the security level (number of bits) to be guaranteed. As described above, the APE decoding function is verified by a special method different from the conventional decoding function.

図1を参照しながら、APEの暗号化関数の具体的な計算手順を説明する。APEの暗号化関数は、ステートと呼ばれるbビットのデータを、bビットの置換f:{0, 1}b→{0, 1}b、入力データ(N, A, M)、および鍵Kを用いて繰り返し更新しながら、暗号化データCおよびタグTを計算する。置換fの詳細は非特許文献2に記載されている。なお、ナンスNの入力は必須ではなく、ナンスNがある場合も、ナンスNは追加データAの一部となる。したがって、入力データは追加データA、メッセージM、および鍵Kを考慮すれば十分である。また、追加データAはメッセージMよりも先に処理される。そのような追加データAはヘッダと呼ばれる。追加データAとメッセージMの長さはいずれもrビットの倍長に限られる。 A specific calculation procedure of the APE encryption function will be described with reference to FIG. APE's encryption function replaces b-bit data called state with b-bit replacement f: {0, 1} b → {0, 1} b , input data (N, A, M), and key K. Calculate the encrypted data C and tag T with repeated updates using. Details of the substitution f are described in Non-Patent Document 2. It should be noted that the input of nonce N is not mandatory, and even if there is nonce N, nonce N becomes a part of the additional data A. Therefore, it is sufficient for the input data to consider additional data A, message M, and key K. Also, the additional data A is processed before the message M. Such additional data A is called the header. The length of both additional data A and message M is limited to double the r-bit length.

bビットのステートは、レートと呼ばれるrビットと、キャパシティと呼ばれるc(=b-r)ビットに分割される。暗号化関数を計算する場合、bビットのステートの値を、レート部分のrビットは0(すなわち、すべてのビットが0のビット列)に、キャパシティ部分のcビットは鍵Kの値に初期化する。 The state of b bits is divided into r bits called rate and c (= b-r) bits called capacity. When calculating the encryption function, initialize the b-bit state value to 0 for the r-bit in the rate part (that is, a bit string in which all bits are 0) and the c-bit in the capacity part to the value of key K. To do.

手順1.追加データAをrビットのブロックに分割する。bビットのステートのうちレート部分のrビットに対し、追加データAの第一ブロックとの排他的論理和を計算し、bビットのステートに対し、置換fを計算する。この置換fの出力を新たなステートの値とする。この操作を追加データAの最終ブロックが排他的論理和されるまで繰り返す。 Step 1. Divide the additional data A into blocks of r bits. The exclusive OR with the first block of additional data A is calculated for the r bit of the rate part of the b-bit state, and the substitution f is calculated for the b-bit state. Let the output of this permutation f be the value of the new state. This operation is repeated until the final block of additional data A is exclusively ORed.

手順2.bビットのステートのうちキャパシティ部分のcビットに対し、整数値1(すなわち、最下位ビットのみが1のビット列)との排他的論理和を計算する。 Step 2. Calculates the exclusive OR of the c-bit of the capacity portion of the b-bit state with the integer value 1 (that is, the bit string in which only the least significant bit is 1).

手順3.メッセージMをrビットのブロックに分割する。bビットのステートのうちレート部分のrビットに対し、メッセージMの第一ブロックとの排他的論理和を計算し、bビットのステートに対し、置換fを計算する。この置換fの出力を新たなステートの値とし、レート部分のrビットを暗号化データCの第一ブロックとして出力する。この操作をメッセージMの最終ブロックが排他的論理和されるまで繰り返す。 Step 3. Divide message M into blocks of r bits. The exclusive OR with the first block of message M is calculated for the r bit of the rate part of the b-bit state, and the substitution f is calculated for the b-bit state. The output of this substitution f is used as the value of the new state, and the r bit of the rate portion is output as the first block of the encrypted data C. This operation is repeated until the last block of message M is exclusively ORed.

手順4.bビットのステートのうちキャパシティ部分のcビットに対し、cビットの鍵Kとの排他的論理和を計算し、計算結果をcビットのタグTとして出力する。 Step 4. The exclusive OR of the c-bit key K is calculated for the c-bit of the capacity part of the b-bit state, and the calculation result is output as the c-bit tag T.

図2を参照しながら、APEの復号関数の具体的な計算手順を説明する。APEの復号関数は、APEの暗号化関数の計算をほぼ逆順に行う。復号関数は、通常(C, T, A, N)の組を入力にとるが、APEではナンスNは追加データAの一部とみなすことができるため、(C, T, A)の組を入力にとるとみなす。 A specific calculation procedure of the decoding function of APE will be described with reference to FIG. The APE decryption function calculates the APE encryption function in almost the reverse order. The decoding function normally takes the set of (C, T, A, N) as input, but since nonce N can be regarded as part of the additional data A in APE, the set of (C, T, A) is used. Considered as input.

復号関数を計算する場合、bビットのステートの値を、rビットの暗号化データCの最終ブロック(図2の例ではC2)とcビットのタグTとを連結した値に初期化する。 When calculating the decryption function, the value of the b-bit state is initialized to the value obtained by concatenating the final block of the r-bit encrypted data C (C 2 in the example of FIG. 2) and the c-bit tag T.

手順1.bビットのステートのうちキャパシティ部分のcビットに対し、cビットの鍵Kとの排他的論理和を計算し、計算結果によりキャパシティ部分のcビットを更新する。 Step 1. The exclusive OR of the c-bit key K is calculated for the c-bit of the capacity part of the b-bit state, and the c-bit of the capacity part is updated according to the calculation result.

手順2.bビットのステートに対し、置換fの逆関数f-1:{0, 1}b→{0, 1}bを計算する。この逆関数f-1の出力を新たなステートの値とする。レート部分のrビットに対し、暗号化データCの最終ブロックの一つ前のブロック(図2の例ではC1)との排他的論理和を計算し、計算結果をメッセージMの最終ブロック(図2の例ではM2)として出力する。また、レート部分のrビットを、暗号化データCの最終ブロックの一つ前のブロック(図2の例ではC1)により更新し、更新されたステートを新たなステートの値とする。この操作を暗号化データCの第一ブロック(図2の例ではC0)が処理されるまで繰り返す。これにより、メッセージMの最終ブロック(図2の例ではM2)から第二ブロック(図2の例ではM1)までが復元される。最後に更新されたステートのうち、レート部分のrビットの値をSr、キャパシティ部分のcビットの値をScとする。 Step 2. For the b-bit state, the inverse function of the permutation f f -1 : {0, 1} b → {0, 1} b is calculated. Let the output of this inverse function f -1 be the value of the new state. The exclusive OR is calculated for the r bit of the rate part with the block immediately before the final block of the encrypted data C (C 1 in the example of FIG. 2), and the calculation result is the final block of the message M (Fig. 2). In the example of 2, it is output as M 2). Further, the r bit of the rate portion is updated by the block immediately before the final block of the encrypted data C (C 1 in the example of FIG. 2), and the updated state is set as the value of the new state. This operation is repeated until the first block of encrypted data C (C 0 in the example of FIG. 2) is processed. Thus, the last block of the message M (M 2 in the example of FIG. 2) to a second block (M 1 in the example of FIG. 2) is restored. Of the last updated states, let S r be the value of the r bit in the rate part and S c be the value of the c bit in the capacity part.

手順3.メッセージMの第一ブロック(図2の例ではM0)の復元方法は、それ以外のブロックとは異なる。まず、暗号化関数の手順1から手順2までと同じ計算を行う。更新されたステートのうち、レート部分のrビットの値をS'r、キャパシティ部分のcビットの値をS'cとする。rビットの値Srとrビットの値S'rとの排他的論理和を計算し、計算結果をメッセージMの第一ブロック(図2の例ではM0)として出力する。 Step 3. The method of restoring the first block of message M (M 0 in the example of FIG. 2) is different from that of the other blocks. First, the same calculation as in steps 1 to 2 of the encryption function is performed. Of the updated state, the value of r bits of rate portion S 'r, the value of c bit capacity portion S' and c. The exclusive OR of the r-bit value S r and the r-bit value S 'r is calculated, and outputs the calculation result as the first block of the message M (M 0 in the example of FIG. 2).

手順4.cビットの値Scとcビットの値S'cとを比較し、値が一致すれば復号されたメッセージM(図2の例ではM=M0||M1||M2)を出力する。なお、復号されたメッセージMを復号データともいう。一致しなかった場合は、メッセージMは出力せず、復号に失敗した旨を表すエラーコードのみを出力する。 Step 4. comparing the c-bit value S c and c-bit values S 'c, (in the example of FIG. 2 M = M 0 || M 1 || M 2) message M decoded if they match the value of the output To do. The decrypted message M is also referred to as decrypted data. If they do not match, message M is not output, and only an error code indicating that decoding has failed is output.

また、秘密ナンスを実現する追加データ付き認証暗号としてProtected IV (PIV)方式が存在する(非特許文献3参照)。秘密ナンスとは、ナンスの一種であり、値が暗号化されてから通信路を流れる値のことを言う。これまでに通信したパケット数等をナンスとして用いる場合、ナンスにプライバシー情報を含むため、ナンスを暗号化してから送ることが望ましい。 In addition, there is a Protected IV (PIV) method as an authentication encryption with additional data that realizes secret nonce (see Non-Patent Document 3). A secret nonce is a type of nonce, and is a value that flows through a communication path after the value is encrypted. When the number of packets communicated so far is used as a nonce, it is desirable to encrypt the nonce before sending it because the nonce includes privacy information.

通常のナンスを利用する追加データ付き認証暗号では、送信者は入力データ(N,A,M)と鍵Kを用いて(C,T)を計算し、(C,T,A,N)を受信者に送る。つまり、Nは暗号化されない。PIV方式では、(N,A,M)と鍵Kを用いて(C,T)を計算する他、Nを暗号化して復元情報RIに変換し、(C,T,A,RI)を受信者に送る。受信者は復号の途中でRIからNを復元する。 In an authenticated encryption with additional data that uses normal nonce, the sender uses the input data (N, A, M) and the key K to calculate (C, T) and then (C, T, A, N). Send to recipient. That is, N is not encrypted. In the PIV method, in addition to calculating (C, T) using (N, A, M) and key K, N is encrypted and converted to restoration information RI, and (C, T, A, RI) is received. Send to The recipient restores N from RI in the middle of decryption.

Elena Andreeva, Begul Bilgin, Andrey Bogdanov, Atul Luykx, Bart Mennink, Nicky Mouha and Kan Yasuda, "APE: Authenticated Permutation-Based Encryption for Lightweight Cryptography," FSE 2014, (eds.) Carlos Cid and Christian Rechberger, LNCS, Vol. 8540, pages 168-186, Springer, 2015.Elena Andreeva, Begul Bilgin, Andrey Bogdanov, Atul Luykx, Bart Mennink, Nicky Mouha and Kan Yasuda, "APE: Authenticated Permutation-Based Encryption for Lightweight Cryptography," FSE 2014, (eds.) Carlos Cid and Christian Rechberger, LNCS, Vol . 8540, pages 168-186, Springer, 2015. Elena Andreeva, Begul Bilgin, Andrey Bogdanov, Atul Luykx, Florian Mendel, Bart Mennink, Nicky Mouha, Qingju Wang and Kan Yasuda, "PRIMATEs v1 | Submission to the CAESAR Competition," Submitted to CAESAR, 2014.Elena Andreeva, Begul Bilgin, Andrey Bogdanov, Atul Luykx, Florian Mendel, Bart Mennink, Nicky Mouha, Qingju Wang and Kan Yasuda, "PRIMATEs v1 | Submission to the CAESAR Competition," Submitted to CAESAR, 2014. Thomas Shrimpton and R. Seth Terashima, \AModular Framework for Building Variable-Input-Length Tweakable Ciphers," ASIACRYPT 2013 , (eds.) Kazue Sako and Palash Sarkar, LNCS, Vol. 8269, pages 405-423, Springer, 2013.Thomas Shrimpton and R. Seth Terashima, \ AModular Framework for Building Variable-Input-Length Tweakable Ciphers, "ASIACRYPT 2013, (eds.) Kazue Sako and Palash Sarkar, LNCS, Vol. 8269, pages 405-423, Springer, 2013.

しかしながら、従来技術のAPEでは、ナンスを利用する場合はA の一部とみなされ、暗号化されずに受信者に送られる。 However, in the prior art APE, when using nonce, it is considered part of A and is sent to the recipient unencrypted.

本発明は、秘密ナンスを利用できるAPEを実現することができる暗号化データ生成装置、復号データ生成装置、追加データ付き認証暗号システム、その方法、及びプログラムを提供することを目的とする。 It is an object of the present invention to provide an encrypted data generator, a decrypted data generator, an authenticated encryption system with additional data, a method thereof, and a program capable of realizing an APE that can utilize a secret nonce.

上記の課題を解決するために、本発明の一態様によれば、暗号化データ生成装置は、秘密鍵Kのビット長をcビットとし、rビットのレート部分とcビットのキャパシティ部分とを含むbビットの情報をステートとし、追加データAのビット長を|A|とし、追加データAをrビットの秘匿対象のデータを含む値A r と(|A|-r)ビット分の秘匿対象ではない値A'とに分割する分割部と、n=1,2,…,|A|/rとし、追加データAを|A|/r個に分割して得られる各値をA n とし、予め定めたビット列と秘密鍵Kとを連結した値を暗号化ステートの初期値S 0 とし、bビットの暗号化ステートS n-1 のレート部分S R,n-1 のrビットに対し、値A n との排他的論理和S R,n-1 xor A n を求める第一排他的論理和部と、bビットのビット列dをbビットのビット列eに置換する関数を置換fとし、暗号化ステートS n-1 のレート部分S R,n-1 を排他的論理和S R,n-1 xor A n に置換えたビット列を置換fを用いて置換し、暗号化ステートS n を求め、暗号化ステートS |A|/r のレート部分S R,|A|/r を復元情報RIとして出力する第一置換部と、暗号化ステートS |A|/r のキャパシティ部分S C,|A|/r の所定のビットを反転させる境界設定部と、メッセージMのビット長を|M|とし、m=1,2,…,|M|/rとし、メッセージMを|M|/r個に分割して得られる各値をM m とし、bビットの暗号化ステートS |A|/r+m-1 のレート部分S R,|A|/r+m-1 のrビットに対し、メッセージM m との排他的論理和S R,|A|/r+m-1 xor M m を求める第二排他的論理和部と、暗号化ステートS |A|/r+m-1 のレート部分S R,|A|/r+m-1 を排他的論理和S R,|A|/r+m-1 xor M m に置換えたビット列を置換fを用いて置換し、暗号化ステートS |A|/r+m を求め、暗号化ステートS |A|/r+m のレート部分のrビットを暗号化データC m とし、|M|/r個の暗号化データC m を含む暗号化データC=(C 1 ,C 2 ,…,C |M|/r )を出力する第二置換部と、暗号化ステートS |A|/r+|M|/r のキャパシティ部分S C,|A|/r+|M|/r と秘密鍵Kとの排他的論理和をタグTとして出力するタグ生成部と、暗号化データCとタグTと値A'と復元情報RIとを出力する出力部を含む。
上記の課題を解決するために、本発明の他の態様によれば、復号データ生成装置は、秘密鍵Kのビット長をcビットとし、rビットのレート部分とcビットのキャパシティ部分とを含むbビットの情報をステートとし、メッセージMのビット長を|M|とし、追加データAのビット長を|A|とし、暗号化データCとタグTと追加データAに含まれる(|A|-r)ビット分の秘匿対象ではない値A'と暗号化データCを生成する際に得られる復元情報RIとを受け取る入力部と、m=1,2,…,|M|/rとし、|M|/r個の暗号化データC m を含む暗号化データC=(C 1 ,C 2 ,…,C |M|/r )に含まれる暗号化データC |M|/r とcビットのタグTとを連結した値を復号ステートSの初期値S |A|/r+|M|/r とし、復号ステートS |A|/r+|M|/r のキャパシティ部分S C,|A|/r+|M|/r とcビットの秘密鍵Kとの排他的論理和S C,|A|/r+|M|/r xor Kを求める第三排他的論理和部と、暗号化する際に用いた置換fの逆関数をf -1 とし、復号ステートS |A|/r+|M|/r のキャパシティ部分S C,|A|/r+|M|/r を排他的論理和S C,|A|/r+|M|/r xor Kに置換えたビット列を逆関数f -1 を用いて置換し、復号ステートS |A|/r+|M|/r-1 を求める第三置換部と、m=1,2,…,|M|/r-1において、復号ステートS |A|/r+m のレート部分S R,|A|/r+m と、暗号化データC m との排他的論理和S R,|A|/r+m xor C m を復号データM m+1 として出力する第四排他的論理和部と、m=1,2,…,|M|/r-1において、復号ステートS |A|/r+m のレート部分S R,|A|/r+m を暗号化データC m に置換えたビット列を逆関数f -1 を用いて置換し、復号ステートS |A|/r+m-1 を求める第四置換部と、復号ステートS |A|/r のレート部分S R,|A|/r と、復元情報RIとの排他的論理和S R,|A|/r xor RIを復号データM 1,D として出力する第五排他的論理和部と、復号ステートS |A|/r のキャパシティ部分S C,|A|/r の所定のビットを反転させる境界除去部と、復号ステートS |A|/r のレート部分S R,|A|/r を復元情報RIに置換え、復号ステートS |A|/r のキャパシティ部分S C,|A|/r の所定のビットを反転させたビット列を逆関数f -1 を用いて置換し、復号ステートS |A|/r-1 を求める第五置換部と、値A'を|A'|/r個に分割して得られる各値をA' n とし、n=1,2,…,|A|/r-1において、復号ステートS n のレート部分S R,n と、値A' n との排他的論理和S R,n xor A' n を求める第六排他的論理和部と、n=1,2,…,|A|/r-1において、復号ステートS n のレート部分S R,n を排他的論理和S R,n xor A' n に置換えたビット列を逆関数f -1 を用いて置換し、復号ステートS n-1 を求める第六置換部と、復号ステートS 0 のキャパシティ部分S C,0 と秘密鍵Kとが一致するか否かによりメッセージ認証を行い、一致する場合には、予め定めたビット列と復号ステートS 0 のレート部分S R,0 との排他的論理和を値A r として出力する認証部とを含む。
上記の課題を解決するために、本発明の他の態様によれば、追加データ付き認証暗号システムは、暗号化データ生成装置と復号データ生成装置とを含む。暗号化データ生成装置は、秘密鍵Kのビット長をcビットとし、rビットのレート部分とcビットのキャパシティ部分とを含むbビットの情報をステートとし、追加データAのビット長を|A|とし、追加データAをrビットの秘匿対象のデータを含む値Arと(|A|-r)ビット分の秘匿対象ではない値A'とに分割する分割部と、n=1,2,…,|A|/rとし、追加データAを|A|/r個に分割して得られる各値をAnとし、予め定めたビット列と秘密鍵Kとを連結した値を暗号化ステートの初期値S0とし、bビットの暗号化ステートSn-1のレート部分SR,n-1のrビットに対し、値Anとの排他的論理和SR,n-1 xor Anを求める第一排他的論理和部と、bビットのビット列dをbビットのビット列eに置換する関数を置換fとし、暗号化ステートSn-1のレート部分SR,n-1を排他的論理和SR,n-1 xor Anに置換えたビット列を置換fを用いて置換し、暗号化ステートSnを求め、暗号化ステートS|A|/rのレート部分SR,|A|/rを復元情報RIとして出力する第一置換部と、暗号化ステートS|A|/rのキャパシティ部分SC,|A|/rの所定のビットを反転させる境界設定部と、メッセージMのビット長を|M|とし、m=1,2,…,|M|/rとし、メッセージMを|M|/r個に分割して得られる各値をMmとし、bビットの暗号化ステートS|A|/r+m-1のレート部分SR,|A|/r+m-1のrビットに対し、メッセージMmとの排他的論理和SR,|A|/r+m-1xor Mmを求める第二排他的論理和部と、暗号化ステートS|A|/r+m-1のレート部分SR,|A|/r+m-1を排他的論理和SR,|A|/r+m-1xor Mmに置換えたビット列を置換fを用いて置換し、暗号化ステートS|A|/r+mを求め、暗号化ステートS|A|/r+mのレート部分のrビットを暗号化データCmとし、|M|/r個の暗号化データCmを含む暗号化データC=(C1,C2,…,C|M|/r)を出力する第二置換部と、暗号化ステートS|A|/r+|M|/rのキャパシティ部分SC,|A|/r+|M|/rと秘密鍵Kとの排他的論理和をタグTとして出力するタグ生成部と、暗号化データCとタグTと値A'と復元情報RIとを出力する出力部を含む。復号データ生成装置は、暗号化データCとタグTと値A'と復元情報RIとを受け取る入力部と、暗号化データC=(C1,C2,…,C|M|/r)に含まれる暗号化データC|M|/rとcビットのタグTとを連結した値を復号ステートSの初期値S|A|/r+|M|/rとし、復号ステートS|A|/r+|M|/rのキャパシティ部分SC,|A|/r+|M|/rとcビットの秘密鍵Kとの排他的論理和SC,|A|/r+|M|/rxor Kを求める第三排他的論理和部と、暗号化する際に用いた置換fの逆関数をf-1とし、復号ステートS|A|/r+|M|/rのキャパシティ部分SC,|A|/r+|M|/rを排他的論理和SC,|A|/r+|M|/rxor Kに置換えたビット列を逆関数f-1を用いて置換し、復号ステートS|A|/r+|M|/r-1を求める第三置換部と、m=1,2,…,|M|/r-1において、復号ステートS|A|/r+mのレート部分SR,|A|/r+mと、暗号化データCmとの排他的論理和SR,|A|/r+m xor Cmを復号データMm+1として出力する第四排他的論理和部と、m=1,2,…,|M|/r-1において、復号ステートS|A|/r+mのレート部分SR,|A|/r+mを暗号化データCmに置換えたビット列を逆関数f-1を用いて置換し、復号ステートS|A|/r+m-1を求める第四置換部と、復号ステートS|A|/rのレート部分SR,|A|/rと、復元情報RIとの排他的論理和SR,|A|/r xor RIを復号データM1,Dとして出力する第五排他的論理和部と、復号ステートS|A|/rのキャパシティ部分SC,|A|/rの所定のビットを反転させる境界除去部と、復号ステートS|A|/rのレート部分SR,|A|/rを復元情報RIに置換え、復号ステートS|A|/rのキャパシティ部分SC,|A|/rの所定のビットを反転させたビット列を逆関数f-1を用いて置換し、復号ステートS|A|/r-1を求める第五置換部と、値A'を|A'|/r個に分割して得られる各値をA'nとし、n=1,2,…,|A|/r-1において、復号ステートSnのレート部分SR,nと、値A'nとの排他的論理和SR,n xor A'nを求める第六排他的論理和部と、n=1,2,…,|A|/r-1において、復号ステートSnのレート部分SR,nを排他的論理和SR,n xor A'nに置換えたビット列を逆関数f-1を用いて置換し、復号ステートSn-1を求める第六置換部と、復号ステートS0のキャパシティ部分SC,0と秘密鍵Kとが一致するか否かによりメッセージ認証を行い、一致する場合には、予め定めたビット列と復号ステートS0のレート部分SR,0との排他的論理和を値Arとして出力する認証部とを含む。
In order to solve the above problems, according to one aspect of the present invention, the encrypted data generator sets the bit length of the private key K to c bits, and sets the rate portion of r bits and the capacity portion of c bits. The b-bit information to be included is the state, the bit length of the additional data A is | A |, and the additional data A is the value A r including the data to be concealed in the r bits and the concealment target for (| A | -r) bits. a dividing unit for dividing the value a 'is not a, n = 1,2, ..., | a | / r and, additional data a | a | / r pieces each value obtained by dividing the as a n , The value obtained by concatenating the predetermined bit string and the private key K is set as the initial value S 0 of the encryption state, and for the r bits of the rate part S R, n-1 of the b-bit encryption state S n-1 Let the exclusive OR part for finding the exclusive OR S R, n-1 xor A n with the value A n and the function that replaces the b-bit bit string d with the b-bit bit string e be the substitution f. The bit string in which the rate part S R, n-1 of the conversion state S n-1 is replaced with the exclusive OR S R, n-1 xor A n is replaced by the replacement f to obtain the encryption state S n . encryption state S | a | rate portion of the / r S R, | a | / r and the first replacement unit for outputting a restoration information RI, the encryption state S | a | / capacity portion r S C, | The boundary setting part that inverts the predetermined bits of A | / r , the bit length of the message M is | M |, m = 1,2,…, | M | / r, and the message M is | M | / r. Let each value obtained by dividing into pieces M m, and for the r bits of the rate part S R, | A | / r + m-1 of the b-bit encryption state S | A | / r + m-1. exclusive OR S R of the message M m, | a | / r + and a second exclusive OR unit for determining the m-1 xor M m, encrypted state S | a | / r + m -1 of The bit string in which the rate part S R, | A | / r + m-1 is replaced with the exclusive OR S R, | A | / r + m-1 xor M m is replaced by the replacement f, and the encryption state is used. seek / r + m, encrypted state S | | S | a a | a r bit rate portion of the / r + m and the encrypted data C m, | including / r pieces of encrypted data C m | M The second substitution part that outputs the encrypted data C = (C 1 , C 2 ,…, C | M | / r ) and the capacity part S C of the encryption state S | A | / r + | M | / r. , | A | / r + | M | / tag the exclusive OR of the private key K and tag T It includes a tag generation unit that outputs as, and an output unit that outputs encrypted data C, tag T, value A', and restoration information RI.
In order to solve the above problems, according to another aspect of the present invention, the decoding data generator sets the bit length of the private key K to c bits, and sets the rate portion of r bits and the capacity portion of c bits. The b-bit information to be included is the state, the bit length of the message M is | M |, the bit length of the additional data A is | A |, and it is included in the encrypted data C, the tag T, and the additional data A (| A | -r) Set the input part that receives the non-confidential value A'for the bit and the restoration information RI obtained when generating the encrypted data C, and m = 1,2,…, | M | / r. | M | / r pieces of encrypted data C including the encrypted data C m = (C 1, C 2, ..., C | M | / r) to the encrypted data C included | M | / r and c bits The value concatenated with the tag T of is set as the initial value S | A | / r + | M | / r of the decoding state S, and the capacity portion S C, | A of the decoding state S | A | / r + | M | / r. Encrypt with the exclusive OR S C, | A | / r + | M | / r xor K for the exclusive OR S C, | A | / r + | M | / r xor K of | / r + | M | / r and the c-bit private key K exclusive OR / r | the inverse substitution f and f -1, decoding state S used when | a | / r + | M | / r capacity portion S C of, | a | / r + | M S C, | A | / r + | M | / r xor Replace the bit string replaced with K with the inverse function f -1, and find the decoding state S | A | / r + | M | / r -1 . a replacement unit, m = 1,2, ..., | M | / in r-1, the decoding state S | a | / r + m of rate portion S R, | a | / r + m and the encrypted data C Exclusive OR with m S R, | A | / r + m xor C m is output as decoded data M m + 1 , and the fourth exclusive OR part and m = 1,2,…, | M | In / r-1, the bit string in which the rate part S R, | A | / r + m of the decryption state S | A | / r + m is replaced with the encrypted data C m is replaced by using the inverse function f -1. , Exclusive logic of the fourth substitution part for obtaining the decoding state S | A | / r + m-1 , the rate part S R, | A | / r of the decoding state S | A | / r , and the restoration information RI. The fifth exclusive OR that outputs the sum S R, | A | / r xor RI as decoding data M 1, D , and the capacity portion of the decoding state S | A | / r S C, | A | / r Restoring information of the demarcation part that inverts a predetermined bit of and the rate part S R, | A | / r of the decoding state S | A | / r Replaced with RI and replaced the bit string obtained by inverting the predetermined bits of the capacity portion S C, | A | / r of the decoding state S | A | / r using the inverse function f -1 , and the decoding state S | A | / a fifth replacement unit for determining the r-1, 'a | a' | value a / r pieces each value obtained by dividing the the a 'n, n = 1,2, ..., | a | / in r-1, rate portion S R of the decoding state S n, and n, 'xOR S R and n, n xor a' values a and sixth exclusive OR unit for obtaining the n, n = 1 , 2, ..., | a | / in r-1, using an exclusive OR S R, n xor a 'inverse function f -1 bit string is replaced with n the rate portion S R, n of the decoding state S n substituted Te, a sixth replacement unit for obtaining the decoding state S n-1, it performs message authentication by determining whether the capacity portion S C, 0 of the decoding state S 0 and the secret key K coincides matches when Includes an authentication unit that outputs the exclusive OR of the predetermined bit string and the rate portion S R, 0 of the decoding state S 0 as the value A r.
In order to solve the above problems , according to another aspect of the present invention, the authenticated encryption system with additional data includes an encrypted data generator and a decrypted data generator. The encrypted data generator sets the bit length of the private key K to c-bit, sets the b-bit information including the rate part of r-bit and the capacity part of c-bit as the state, and sets the bit length of additional data A to | A. |, And the division part that divides the additional data A into the value A r including the data to be concealed by r bits and the value A'that is not concealed by (| A | -r) bits, and n = 1,2. , ..., | a | / r and, adding data a | a | / r pieces each value obtained by dividing the the a n, the encryption state a value obtained by connecting the predetermined bit sequence and a secret key K With the initial value S 0 of, the exclusive OR with the value A n for the r bits of the rate portion S R, n-1 of the b-bit encryption state S n-1 S R, n-1 xor A n a first exclusive OR unit for determining a function to be substituted with a substituted f bit string d b-bit bit string e of b bits, exclusive encryption state S n-1 of the rate portion S R, the n-1 The bit string replaced by the exclusive OR S R, n-1 xor A n is replaced with the replacement f to obtain the encryption state S n, and the rate part S R, | A | of the encryption state S | A | / r The first substitution part that outputs / r as the restore information RI, the demarcation part that inverts the predetermined bits of the capacity part S C, | A | / r of the encryption state S | A | / r, and the message M. The bit length of is | M |, m = 1,2,…, | M | / r, and each value obtained by dividing the message M into | M | / r is M m , and the b-bit encryption Exclusive OR with message M m for the r bits of the rate portion S R, | A | / r + m-1 of the conversion state S | A | / r + m-1 S R, | A | / r The second exclusive OR for finding + m-1 xor M m and the exclusive OR for the rate part S R, | A | / r + m-1 of the encryption state S | A | / r + m-1 The bit string replaced with the sum S R, | A | / r + m-1 xor M m is replaced with the replacement f to obtain the encryption state S | A | / r + m , and the encryption state S | A | Let the r bit of the rate part of / r + m be the encrypted data C m, and | M | / encrypted data C including r encrypted data C m = (C 1 , C 2 ,…, C | M | a second replacement unit for outputting the / r), encrypts state S | a | / r + | M | / capacity portion r S C, | a | / r + | M | / r and exclusive of the secret key K A tag generator that outputs the exclusive-OR as tag T, encrypted data C, and tag T Includes an output section that outputs the value A'and the restore information RI. The decryption data generator has an input unit that receives the encrypted data C, the tag T, the value A', and the restoration information RI, and the encrypted data C = (C 1 , C 2 ,…, C | M | / r ). The value obtained by concatenating the included encrypted data C | M | / r and the c-bit tag T is set as the initial value S | A | / r + | M | / r of the decryption state S, and the decryption state S | A | / r + | M | / r capacity part S C, | A | / r + | M | / r and the exclusive OR of the c-bit private key K S C, | A | / r + | M | / r xor K Let f -1 be the inverse function of the third exclusive OR part used for encryption and the substitution f used for encryption, and the capacity part S C, | of the decryption state S | A | / r + | M | / r. The bit string in which A | / r + | M | / r is replaced with the exclusive OR S C, | A | / r + | M | / r xor K is replaced by the inverse function f -1 , and the decoding state S | A In the third substitution part for finding | / r + | M | / r-1 and m = 1,2,…, | M | / r-1, the rate part S R of the decoding state S | A | / r + m , | A | / r + m and the exclusive OR of the encrypted data C m S R, | A | / r + m xor C m is output as the decryption data M m + 1 4th exclusive OR In the part and m = 1,2,…, | M | / r-1, the rate part S R, | A | / r + m of the decryption state S | A | / r + m is converted to the encrypted data C m . The fourth replacement part that replaces the replaced bit string using the inverse function f -1 to obtain the decoding state S | A | / r + m-1 , and the rate part S R, | of the decoding state S | A | / r. Exclusive OR of A | / r and restore information RI S R, | A | / r xor The fifth exclusive OR that outputs RI as decoding data M 1, D , and the decoding state S | A | The demarcation part that inverts a predetermined bit of the capacity part S C, | A | / r of / r and the rate part S R, | A | / r of the decoding state S | A | / r are used as the restore information RI. Substitution, the capacity portion of the decoding state S | A | / r S C, | A | / r is replaced with the inverted bit string of a predetermined bit using the inverse function f -1 , and the decoding state S | A | / a fifth replacement unit for determining the r-1, 'a | a' | value a / r pieces each value obtained by dividing the the a 'n, n = 1,2, ..., | a | / r- in 1, the rate portion of the decoding state S n S R, n and 'xOR S R and n, n xor a' value a sixth exclusive seeking n The sum unit, n = 1,2, ..., | A | In / r-1, rate portion S R of the decoding state S n, n exclusive OR S R, a bit string is replaced with n xor A 'n substituted with an inverse function f -1, and sixth replacement unit for obtaining the decoding state S n-1, whether the message and capacity portion S C, 0 of the decoding state S 0 and the secret key K coincides Authenticates and, if they match, includes an authentication unit that outputs the exclusive OR of the predetermined bit string and the rate part S R, 0 of the decoding state S 0 as the value Ar.

上記の課題を解決するために、本発明の他の態様によれば、追加データ付き認証暗号システムは、暗号化データ生成装置と復号データ生成装置とを含む。暗号化データ生成装置は、秘密鍵Kのビット長をcビットとし、rビットのレート部分とcビットのキャパシティ部分とを含むbビットの情報をステートとし、追加データAのビット長を|A|とし、追加データAをP×rビットの秘匿対象のデータを含む値Ar=(Ar 1,Ar 2,…,Ar P)と(|A|-P×r)ビット分の秘匿対象ではない値A'=(A'1,A'2,…,A'|A|/r-P)とに分割する分割部と、n=1,2,…,|A|/rとし、追加データAを|A|/r個に分割して得られる各値をAnとし、予め定めたビット列と秘密鍵Kとを連結した値を暗号化ステートの初期値S0とし、bビットの暗号化ステートSn-1のレート部分SR,n-1のrビットに対し、値Anとの排他的論理和SR,n-1 xor Anを求め、値Anが秘匿対象のデータAr 2,Ar 3,…,Ar Pの場合、ステートSn-1のレート部分SR,n-1を復元情報RI1,RI2,…,RIP-1として出力する第一排他的論理和部と、bビットのビット列dをbビットのビット列eに置換する関数を置換fとし、暗号化ステートSn-1のレート部分SR,n-1を排他的論理和SR,n-1 xor Anに置換えたビット列を置換fを用いて置換し、暗号化ステートSnを求め、暗号化ステートS|A|/rのレート部分SR,|A|/rを復元情報RIPとして出力する第一置換部と、暗号化ステートS|A|/rのキャパシティ部分SC,|A|/rの所定のビットを反転させる境界設定部と、メッセージMのビット長を|M|とし、m=1,2,…,|M|/rとし、メッセージMを|M|/r個に分割して得られる各値をMmとし、bビットの暗号化ステートS|A|/r+m-1のレート部分SR,|A|/r+m-1のrビットに対し、メッセージMmとの排他的論理和SR,|A|/r+m-1 xor Mmを求める第二排他的論理和部と、暗号化ステートS|A|/r+m-1のレート部分SR,|A|/r+m-1を排他的論理和SR,|A|/r+m-1 xor Mmに置換えたビット列を置換fを用いて置換し、暗号化ステートS|A|/r+mを求め、暗号化ステートS|A|/r+mのレート部分のrビットを暗号化データCmとし、|M|/r個の暗号化データCmを含む暗号化データC=(C1,C2,…,C|M|/r)を出力する第二置換部と、暗号化ステートS|A|/r+|M|/rのキャパシティ部分SC,|A|/r+|M|/rと秘密鍵Kとの排他的論理和をタグTとして出力するタグ生成部と、暗号化データCとタグTと値A'と復元情報RI=(RI1,RI2,…,RIP)とを出力する出力部を含む。復号データ生成装置は、暗号化データCとタグTと値A'と復元情報RIとを受け取る入力部と、暗号化データC=(C1,C2,…,C|M|/r)に含まれる暗号化データC|M|/rとcビットのタグTとを連結した値を復号ステートSの初期値S|A|/r+|M|/rとし、復号ステートS|A|/r+|M|/rのキャパシティ部分SC,|A|/r+|M|/rとcビットの秘密鍵Kとの排他的論理和SC,|A|/r+|M|/rxor Kを求める第三排他的論理和部と、暗号化する際に用いた置換fの逆関数をf-1とし、復号ステートS|A|/r+|M|/rのキャパシティ部分SC,|A|/r+|M|/rを排他的論理和SC,|A|/r+|M|/rxor Kに置換えたビット列を逆関数f-1を用いて置換し、復号ステートS|A|/r+|M|/r-1を求める第三置換部と、m=1,2,…,|M|/r-1において、復号ステートS|A|/r+mのレート部分SR,|A|/r+mと、暗号化データCmとの排他的論理和SR,|A|/r+m xor Cmを復号データMm+1として出力する第四排他的論理和部と、m=1,2,…,|M|/r-1において、復号ステートS|A|/r+mのレート部分SR,|A|/r+mを暗号化データCmに置換えたビット列を逆関数f-1を用いて置換し、復号ステートS|A|/r+m-1を求める第四置換部と、復号ステートS|A|/rのレート部分SR,|A|/rと、復元情報RIPとの排他的論理和SR,|A|/r xor RIPを復号データM1,Dとして出力する第五排他的論理和部と、復号ステートS|A|/rのキャパシティ部分SC,|A|/rの所定のビットを反転させる境界除去部と、復号ステートS|A|/rのレート部分SR,|A|/rを復元情報RIPに置換え、復号ステートS|A|/rのキャパシティ部分SC,|A|/rの所定のビットを反転させたビット列を逆関数f-1を用いて置換し、復号ステートS|A|/r-1を求める第五置換部と、値A'を|A'|/r個に分割して得られる各値をA'qとし、q=1,2,…,|A|/r-P及びp=1,2,…,P-1において、(i)値A'qを入力としたとき、復号ステートSnのレート部分SR,nと、値A'qとの排他的論理和SR,n xor A'qを求め、(ii)復元情報RIpを入力としたとき、復号ステートSnのレート部分SR,nのrビットに対し、復元情報RIpとの排他的論理和SR,n xor RIpを求め、排他的論理和SR,nxor RIpを秘匿対象のデータAp+1として出力する第六排他的論理和部と、n=1,2,…,|A|/r-1において、復号ステートSnのレート部分SR,nを(i)排他的論理和SR,n xor A'q、または、(ii)復元情報RIpに置換えたビット列を逆関数f-1を用いて置換し、復号ステートSn-1を求める第六置換部と、復号ステートS0のキャパシティ部分SC,0と秘密鍵Kとが一致するか否かによりメッセージ認証を行い、一致する場合には、予め定めたビット列と復号ステートS0のレート部分SR,0との排他的論理和を値Ar 1として出力する認証部とを含む。 In order to solve the above problems, according to another aspect of the present invention, the authenticated encryption system with additional data includes an encrypted data generator and a decrypted data generator. The encrypted data generator sets the bit length of the private key K to c-bit, sets the b-bit information including the rate part of r-bit and the capacity part of c-bit as the state, and sets the bit length of additional data A to | A. Let | be the additional data A for the values A r = (A r 1 , Ar 2 ,…, Ar P ) and (| A | -P × r) bits including the data to be concealed in the P × r bits. confidential value a is not a subject '= (a' 1, a '2, ..., a' | a | / rP) and dividing unit for dividing the a, n = 1,2, ..., | a / r, | a Each value obtained by dividing the additional data A into | A | / r is A n, and the value obtained by concatenating the predetermined bit string and the private key K is the initial value S 0 of the encryption state, and the b bit encryption state S n-1 of the rate portion S R, with respect to r-bit n-1, obtains the exclusive OR S R, n-1 xor a n of the values a n, the value a n is concealed In the case of data A r 2 , A r 3 ,…, A r P , the rate part S R, n-1 of the state S n -1 is output as the restoration information RI 1 , RI 2 ,…, RI P-1. Let the exclusive OR part and the function that replaces the b-bit bit string d with the b-bit bit string e be the replacement f, and the rate part S R, n-1 of the encryption state S n-1 be the exclusive OR S R, and substituted with n-1 xor a n bit string is replaced with substitution f, determined encryption state S n, the encryption state S | a | / r of rate portion S R, | a / r | a a first replacement unit for outputting a restoration information RI P, encrypted state S | a | / r capacity portion S C of, | a | / a boundary setting portion for inverting predetermined bits of r, bit message M The length is | M |, m = 1,2,…, | M | / r, and each value obtained by dividing the message M into | M | / r is M m , and the b-bit encryption state. S | A | / r + m-1 rate part S R, | A | / r + m-1 exclusive OR with message M m for r bits S R, | A | / r + m -1 The exclusive OR part for finding xor M m and the exclusive OR S for the rate part S R, | A | / r + m-1 of the encryption state S | A | / r + m-1 Replace the bit string replaced with R, | A | / r + m-1 xor M m with the replacement f to obtain the encryption state S | A | / r + m, and obtain the encryption state S | A | / r. Encrypt the r bit of the rate part of + m Data C m Then, the second replacement part that outputs the encrypted data C = (C 1 , C 2 ,…, C | M | / r ) containing | M | / r encrypted data C m, and the encryption state S. Capacity part of | A | / r + | M | / r S C, | A | / r + | M | / A tag generator that outputs the exclusive OR of the r and the private key K as tag T, and encryption Includes an output section that outputs data C, tag T, value A', and restore information RI = (RI 1 , RI 2 , ..., RI P). The decryption data generator has an input unit that receives the encrypted data C, the tag T, the value A', and the restoration information RI, and the encrypted data C = (C 1 , C 2 ,…, C | M | / r ). The value obtained by concatenating the included encrypted data C | M | / r and the c-bit tag T is set as the initial value S | A | / r + | M | / r of the decryption state S, and the decryption state S | A | / r + | M | / r capacity part S C, | A | / r + | M | / r and the exclusive OR of the c-bit private key K S C, | A | / r + | M | / r xor K Let f -1 be the inverse function of the third exclusive OR part used for encryption and the substitution f used for encryption, and the capacity part S C, | of the decryption state S | A | / r + | M | / r. The bit string in which A | / r + | M | / r is replaced with the exclusive OR S C, | A | / r + | M | / r xor K is replaced by the inverse function f -1 , and the decoding state S | A In the third substitution part for finding | / r + | M | / r-1 and m = 1,2,…, | M | / r-1, the rate part S R of the decoding state S | A | / r + m , | A | / r + m and the exclusive OR of the encrypted data C m S R, | A | / r + m xor C m is output as the decryption data M m + 1 4th exclusive OR In the part and m = 1,2,…, | M | / r-1, the rate part S R, | A | / r + m of the decryption state S | A | / r + m is converted to the encrypted data C m . The fourth replacement part that replaces the replaced bit string using the inverse function f -1 to obtain the decoding state S | A | / r + m-1 , and the rate part S R, | of the decoding state S | A | / r. a | / r and, exclusive OR S R of the restoration information RI P, | a | / r xor RI and fifth exclusive OR unit for outputting as the decoded data M 1, D and P, decoding state S | a | / r capacity portion S C of, | a | / boundary removing unit for inverting predetermined bits of r, the decoding state S | a | / r of rate portion S R, | a | / r restoration information replaced with RI P, decoding state S | a | / capacity portion r S C, | a | / bit string obtained by inverting predetermined bits of r replaced with an inverse function f -1, and decoding state S | Let the fifth substitution part for A | / r-1 and each value obtained by dividing the value A'by | A'| / r into A'q, and let q = 1,2,…, | A | / rP and p = 1,2, ..., in P-1, (i) value a 'when the enter q, rate portion S R of the decoding state S n, and n, the value a' When the exclusive OR S R, n xor A'q with q is obtained and (ii) the restore information RI p is input, the restore information is given to the r bits of the rate part S R, n of the decoding state S n. exclusive OR S R and RI p, determine the n xor RI p, a sixth exclusive OR unit that outputs the exclusive OR S R, the n xor RI p as the data a p + 1 of the confidential, n = 1,2, ..., | a | / in r-1, the decoding state S n of the rate portion S R, the n (i) xOR S R, n xor a 'q , or, (ii) The sixth replacement part that replaces the bit string replaced with the restoration information RI p using the inverse function f -1 to obtain the decoding state S n-1 , the capacity part S C, 0 of the decoding state S 0 , and the private key K. Message authentication is performed depending on whether or not matches, and if they match, the exclusive OR of the predetermined bit string and the rate part S R, 0 of the decoding state S 0 is output as the value A r 1. Including the part.

本発明によれば、秘密ナンスを利用できるAPEを実現することができるという効果を奏する。 According to the present invention, it is possible to realize an APE that can utilize a secret nonce.

従来の暗号化関数を説明するための図。The figure for demonstrating the conventional encryption function. 従来の復号関数を説明するための図。The figure for demonstrating the conventional decoding function. 追加データ付き認証暗号システムの機能構成を例示する図。The figure which illustrates the functional structure of the authentication encryption system with additional data. 暗号化装置の機能構成を例示する図。The figure which illustrates the functional structure of the encryption device. 追加データ計算部の機能構成を例示する図。The figure which illustrates the functional structure of the additional data calculation part. メッセージ計算部の機能構成を例示する図。The figure which illustrates the functional structure of the message calculation part. 復号装置の機能構成を例示する図。The figure which illustrates the functional structure of the decoding apparatus. 暗号化データ逆計算部の機能構成を例示する図。The figure which illustrates the functional structure of the encrypted data back calculation part. 追加データ計算部の機能構成を例示する図。The figure which illustrates the functional structure of the additional data calculation part. 暗号化方法の処理手続きを例示する図。The figure which illustrates the processing procedure of the encryption method. 第一実施形態の暗号化関数の一例を説明するための図。The figure for demonstrating an example of the encryption function of 1st Embodiment. 復号方法の処理手続きを例示する図。The figure which illustrates the processing procedure of the decoding method. 第一実施形態の復号関数の一例を説明するための図。The figure for demonstrating an example of the decoding function of 1st Embodiment. 第二実施形態の暗号化関数の一例を説明するための図。The figure for demonstrating an example of the encryption function of the 2nd Embodiment. 第二実施形態の暗号化関数の一例を説明するための図。The figure for demonstrating an example of the encryption function of the 2nd Embodiment. 第二実施形態の復号関数の一例を説明するための図。The figure for demonstrating an example of the decoding function of the 2nd Embodiment. 第二実施形態の復号関数の一例を説明するための図。The figure for demonstrating an example of the decoding function of the 2nd Embodiment.

以下、本発明の実施形態について、説明する。なお、以下の説明に用いる図面では、同じ機能を持つ構成部や同じ処理を行うステップには同一の符号を記し、重複説明を省略する。 Hereinafter, embodiments of the present invention will be described. In the drawings used in the following description, the same reference numerals are given to the components having the same function and the steps for performing the same processing, and duplicate description is omitted.

<第一実施形態>
この発明の実施形態は、ナンスNの代わりに内部ステートのrビットの値を復元情報RIとして送る。即ち、APEの暗号化処理において、送信者は暗号化データC、タグT、ナンスNを含む追加データA を送るのではなく、暗号化データC、タグT、ナンスNを含まない部分の追加データA、復元情報RIを受信者に送る。受信者は復号の途中で復元情報RIからナンスNを復元する。
<First Embodiment>
In the embodiment of the present invention, the value of the r bit of the internal state is sent as the restoration information RI instead of the nonce N. That is, in the APE encryption process, the sender does not send the additional data A including the encrypted data C, the tag T, and the nonce N, but the additional data of the portion not including the encrypted data C, the tag T, and the nonce N. A, Send the restore information RI to the recipient. The recipient restores the nonce N from the restore information RI in the middle of decryption.

実施形態の追加データ付き認証暗号システムは、図3に示すように、追加データ付き認証暗号の暗号化関数を実行する暗号化装置1と、追加データ付き認証暗号の復号関数を実行する復号装置2とを含む。この実施形態では、暗号化装置1および復号装置2はそれぞれ通信網3へ接続される。通信網3は、接続される各装置が相互に通信可能なように構成された回線交換方式もしくはパケット交換方式の通信網であり、例えばインターネットやLAN(Local Area Network)、WAN(Wide Area Network)などを用いることができる。なお、各装置は必ずしも通信網3を介してオンラインで通信可能である必要はない。例えば、暗号化装置1が出力する情報を磁気テープやUSBメモリなどの可搬型記録媒体に記憶し、その可搬型記録媒体から復号装置2へオフラインで入力するように構成してもよい。 As shown in FIG. 3, the authentication encryption system with additional data of the embodiment includes an encryption device 1 that executes an encryption function of the authentication encryption with additional data and a decryption device 2 that executes a decryption function of the authentication encryption with additional data. And include. In this embodiment, the encryption device 1 and the decryption device 2 are connected to the communication network 3, respectively. The communication network 3 is a circuit-switched or packet-switched communication network configured so that each connected device can communicate with each other. For example, the Internet, LAN (Local Area Network), WAN (Wide Area Network). Etc. can be used. It should be noted that each device does not necessarily have to be able to communicate online via the communication network 3. For example, the information output by the encryption device 1 may be stored in a portable recording medium such as a magnetic tape or a USB memory, and the information may be input offline from the portable recording medium to the decryption device 2.

追加データ付き認証暗号システムに含まれる暗号化装置1は、図4に示すように、記憶部10、入力部11、初期化部12、追加データ計算部14、境界設定部15、メッセージ計算部16、タグ生成部17、および出力部18を含む。暗号化装置1に含まれる追加データ計算部14は、図5に示すように、分割部141、排他的論理和部142、および置換部143を含む。暗号化装置1に含まれるメッセージ計算部16は、図6に示すように、分割部161、排他的論理和部162、置換部163を含む。 As shown in FIG. 4, the encryption device 1 included in the authentication encryption system with additional data includes a storage unit 10, an input unit 11, an initialization unit 12, an additional data calculation unit 14, a boundary setting unit 15, and a message calculation unit 16. , A tag generation unit 17, and an output unit 18. As shown in FIG. 5, the additional data calculation unit 14 included in the encryption device 1 includes a division unit 141, an exclusive OR unit 142, and a replacement unit 143. As shown in FIG. 6, the message calculation unit 16 included in the encryption device 1 includes a division unit 161, an exclusive OR unit 162, and a replacement unit 163.

追加データ付き認証暗号システムに含まれる復号装置2は、図7に示すように、例えば、記憶部20、入力部21、第一初期化部22、タグ復号部23、暗号化データ逆計算部24、境界除去部25、追加データ逆計算部26、認証部29、および出力部30を含む。復号装置2に含まれる暗号化データ逆計算部24は、図8に示すように、逆置換部241、および排他的論理和部242を含む。復号装置2に含まれる追加データ逆計算部26は、図9に示すように、分割部261、排他的論理和部263、および逆置換部264を含む。 As shown in FIG. 7, the decryption device 2 included in the authentication encryption system with additional data includes, for example, a storage unit 20, an input unit 21, a first initialization unit 22, a tag decryption unit 23, and an encrypted data inverse calculation unit 24. , Boundary removal unit 25, additional data inverse calculation unit 26, authentication unit 29, and output unit 30. As shown in FIG. 8, the encrypted data inverse calculation unit 24 included in the decryption device 2 includes an inverse replacement unit 241 and an exclusive OR unit 242. As shown in FIG. 9, the additional data inverse calculation unit 26 included in the decoding device 2 includes a division unit 261, an exclusive OR unit 263, and an inverse replacement unit 264.

暗号化装置1が図10に示す各ステップの処理を行い、復号装置2が図12に示す各ステップの処理を行うことにより実施形態の追加データ付き認証暗号方法が実現される。なお、追加データ付き認証暗号方法のうち暗号化装置1が実行する部分を暗号化方法とも呼び、復号装置2が実行する部分を復号方法とも呼ぶ。 The encryption device 1 performs the processing of each step shown in FIG. 10, and the decryption device 2 performs the processing of each step shown in FIG. 12, so that the authentication encryption method with additional data of the embodiment is realized. Of the authentication encryption methods with additional data, the portion executed by the encryption device 1 is also referred to as an encryption method, and the portion executed by the decryption device 2 is also referred to as a decryption method.

暗号化装置1および復号装置2は、例えば、中央演算処理装置(CPU: Central Processing Unit)、主記憶装置(RAM: Random Access Memory)などを有する公知又は専用のコンピュータに特別なプログラムが読み込まれて構成された特別な装置である。暗号化装置1および復号装置2は、例えば、中央演算処理装置の制御のもとで各処理を実行する。暗号化装置1および復号装置2に入力されたデータや各処理で得られたデータは、例えば、主記憶装置に格納され、主記憶装置に格納されたデータは必要に応じて中央演算処理装置へ読み出されて他の処理に利用される。暗号化装置1および復号装置2の各処理部は、少なくとも一部が集積回路等のハードウェアによって構成されていてもよい。暗号化装置1および復号装置2が備える各記憶部は、例えば、RAM(Random Access Memory)などの主記憶装置、ハードディスクや光ディスクもしくはフラッシュメモリ(Flash Memory)のような半導体メモリ素子により構成される補助記憶装置、またはリレーショナルデータベースやキーバリューストアなどのミドルウェアにより構成することができる。 In the encryption device 1 and the decryption device 2, a special program is read into a known or dedicated computer having, for example, a central processing unit (CPU), a main storage device (RAM: Random Access Memory), and the like. It is a special device configured. The encryption device 1 and the decryption device 2 execute each process under the control of the central processing unit, for example. The data input to the encryption device 1 and the decryption device 2 and the data obtained by each process are stored in the main storage device, for example, and the data stored in the main storage device is stored in the central processing unit as needed. It is read out and used for other processing. At least a part of each processing unit of the encryption device 1 and the decryption device 2 may be configured by hardware such as an integrated circuit. Each storage unit included in the encryption device 1 and the decryption device 2 is composed of, for example, a main storage device such as RAM (Random Access Memory) and a semiconductor memory element such as a hard disk, an optical disk, or a flash memory (Flash Memory). It can be configured with storage or middleware such as relational databases and key-value stores.

<暗号化装置1>
図10、図11を参照して、実施形態の追加データ付き認証暗号システムが実行する追加データ付き認証暗号方法のうち、暗号化装置1が実行する暗号化方法について説明する。
<Encryption device 1>
Among the authentication encryption methods with additional data executed by the authentication encryption system with additional data of the embodiment, the encryption method executed by the encryption device 1 will be described with reference to FIGS. 10 and 11.

<記憶部10>
暗号化装置1の記憶部10には、rビットのレート部分とcビットのキャパシティ部分とからなるbビットのステート(以下、復号装置2の記憶部20に記憶されるステートと区別するために、暗号化ステートとも呼ぶ)と、復号装置2との間であらかじめ共有した共通鍵K(以下、秘密鍵Kともいう)とが記憶されている。例えば、ステートは512ビットとし、レート部分は256ビット、キャパシティ部分は256ビットに構成する(すなわち、b=512, r=256, c=256)。レート部分とキャパシティ部分の長さの比は、処理速度と安全性のトレードオフの関係となっている。レート部分の長さが大きくなると、処理速度は向上するが安全性は低下する。逆に、キャパシティ部分の長さが大きくなると、安全性が向上するが処理速度が低下する。したがって、b, r, cの各値は、所望の処理速度と安全性のバランスを鑑みて適宜設計すればよい。
<Memory unit 10>
In the storage unit 10 of the encryption device 1, a b-bit state composed of an r-bit rate portion and a c-bit capacity portion (hereinafter, in order to distinguish from the state stored in the storage unit 20 of the decryption device 2). , Also referred to as an encryption state) and a common key K (hereinafter, also referred to as a secret key K) shared in advance with the decryption device 2. For example, the state is 512 bits, the rate part is 256 bits, and the capacity part is 256 bits (that is, b = 512, r = 256, c = 256). The ratio of the length of the rate part to the length part of the capacity part is a trade-off between processing speed and safety. As the length of the rate portion increases, the processing speed increases but the safety decreases. On the contrary, when the length of the capacity portion is increased, the safety is improved but the processing speed is lowered. Therefore, each value of b, r, and c may be appropriately designed in consideration of a desired balance between processing speed and safety.

<入力部11>
ステップS11において、暗号化装置1の入力部11へ、追加データAとメッセージMとの組(A, M)が入力される。追加データAとメッセージMとはいずれもr ビットの倍長のデータとする。なお、追加データAとメッセージMとをr ビットの倍長のデータに限定するものではなく、r ビットの倍長ではない場合には、例えば、10*パディングを施して、r ビットの倍長のデータに変更して本実施形態を適用してもよい。入力部11は、メッセージMをメッセージ計算部16へ、追加データAを追加データ計算部14へ入力する。
<Input unit 11>
In step S11, the set (A, M) of the additional data A and the message M is input to the input unit 11 of the encryption device 1. Both the additional data A and the message M are r-bit doubled data. Note that the additional data A and message M are not limited to r-bit double-length data, and if the r-bit double length is not used, for example, 10 * padding is applied to make the r-bit double length. The present embodiment may be applied by changing to data. The input unit 11 inputs the message M to the message calculation unit 16 and the additional data A to the additional data calculation unit 14.

<初期化部12>
ステップS12において、暗号化装置1の初期化部12は、予め定めたビット列と秘密鍵Kとを連結した値を暗号化ステートの初期値S0として設定する。例えば、初期化部12は、記憶部10に記憶されている暗号化ステートのうち、レート部分の値を0(すなわち、すべてのビットが0のビット列)に、キャパシティ部分の値を秘密鍵Kの値に設定して初期化する。
<Initialization unit 12>
In step S12, the initialization unit 12 of the encryption device 1 sets a value obtained by concatenating a predetermined bit string and the private key K as the initial value S 0 of the encryption state. For example, the initialization unit 12 sets the value of the rate portion to 0 (that is, a bit string in which all bits are 0) and the value of the capacity portion to the secret key K in the encryption state stored in the storage unit 10. Set to the value of and initialize.

<追加データ計算部14>
ステップS14において、暗号化装置1の追加データ計算部14は、入力部11から追加データAを受け取り、その追加データAを用いて記憶部10に記憶された暗号化ステートの値を更新する。
<Additional data calculation unit 14>
In step S14, the additional data calculation unit 14 of the encryption device 1 receives the additional data A from the input unit 11, and uses the additional data A to update the value of the encryption state stored in the storage unit 10.

この場合、追加データ計算部14は以下のように構成する。 In this case, the additional data calculation unit 14 is configured as follows.

(分割部141)
追加データ計算部14の分割部141は、追加データAをrビットのブロックに分割する。なお、追加データAのビット長を|A|とし、n=1,2,…,|A|/rとし、追加データAを|A|/r個に分割して得られる各値をAnとする。第一ブロックA1のrビットをArと表し、残りの部分をA'と表す。即ちA→Ar||A'である。本実施形態では、Arに秘匿対象のデータ(例えば秘密ナンス)を格納するものとする。
(Division 141)
The division unit 141 of the additional data calculation unit 14 divides the additional data A into blocks of r bits. The bit length of the additional data A is | A |, n = 1,2, ..., | A | / r, and each value obtained by dividing the additional data A into | A | / r is A n. And. The r bit of the first block A 1 is represented by A r, and the rest is represented by A'. That is, A → Ar || A'. In the present embodiment, it is assumed to store confidential data (eg secret nonce) to A r.

(排他的論理和部142)
追加データ計算部14の排他的論理和部142は、bビットのステートSn-1のレート部分SR,n-1のrビットに対し、値Anとの排他的論理和SR,n-1 xor Anを求める。
(Exclusive OR 142)
Exclusive OR unit 142 of the additional data generator 14, the state S n-1 of the rate portion of the b bits S R, with respect to r-bit n-1, the exclusive OR S R between the values A n, n Request -1 xor a n.

(置換部143)
追加データ計算部14の置換部143は、暗号化ステートSn-1のレート部分SR,n-1を排他的論理和SR,n-1 xor Anに置換えたビット列を置換fを用いて置換し、暗号化ステートSnを求める。なお、置換f:{0, 1}b→{0, 1}bは、bビットのビット列dをbビットのビット列eに置換する関数であり、入力された値を復元する逆関数f-1:{0, 1}b→{0, 1}b(bビットのビット列eをbビットのビット列dに置換する関数)を定義できる関数である。置換fとしては、例えば、非特許文献2に記載されている技術を用いることができる。n=1から順にn=|A|/rまで排他的論理和部142及び置換部143の処理を繰り返す。
(Replacement part 143)
The replacement unit 143 of the additional data calculation unit 14 uses the replacement f for the bit string in which the rate portion S R, n-1 of the encryption state S n-1 is replaced with the exclusive OR S R, n-1 xor A n. To find the encryption state S n. The replacement f: {0, 1} b → {0, 1} b is a function that replaces the b-bit bit string d with the b-bit bit string e, and is an inverse function f -1 that restores the input value. : {0, 1} b → {0, 1} b (a function that replaces the b-bit bit string e with the b-bit bit string d) is a function that can be defined. As the substitution f, for example, the technique described in Non-Patent Document 2 can be used. The processing of the exclusive OR part 142 and the replacement part 143 is repeated from n = 1 to n = | A | / r in order.

そして、置換部143は、n=|A|/rのときに得られる暗号化ステートS|A|/rのレート部分SR,|A|/rを復元情報RIとして出力する。 Then, the replacement unit 143 outputs the rate portion S R, | A | / r of the encryption state S | A | / r obtained when n = | A | / r as the restoration information RI.

<境界設定部15>
ステップS15において、暗号化装置1の境界設定部15は、追加データ計算部14から暗号化ステートS|A|/rを受け取り、暗号化ステートS|A|/rのキャパシティ部分SC,|A|/rの所定のビットを反転させ、暗号化ステートS|A'|/rを更新する。例えば、境界設定部15は、暗号化ステートのキャパシティ部分と整数値1(すなわち、最下位ビットのみが1のビット列)との排他的論理和を計算し、その計算結果により暗号化ステートのキャパシティ部分を更新する。言い換えると、境界設定部15は、暗号化ステートの最下位ビットのみを反転させる。この操作は、受信者が暗号化データCと追加データAとの境界を判別できるようにするために行われるものである。
<Boundary setting unit 15>
In step S15, the boundary setting unit 15 of the encryption apparatus 1 the encrypted state S from the additional data generator 14 | receive / r, encrypted state S | | A A | / capacity portion r S C, | a | / inverts a predetermined bit of r, the encrypted state S | update / r | a '. For example, the boundary setting unit 15 calculates the exclusive OR of the capacity portion of the encryption state and the integer value 1 (that is, a bit string in which only the least significant bit is 1), and the calculation result is used to calculate the capacity of the encryption state. Update the city part. In other words, the boundary setting unit 15 inverts only the least significant bit of the encryption state. This operation is performed so that the recipient can determine the boundary between the encrypted data C and the additional data A.

<メッセージ計算部16>
ステップS16において、暗号化装置1のメッセージ計算部16は、入力部11からメッセージMを受け取り、そのメッセージMを用いて記憶部10に記憶された暗号化ステートの値を更新する。
<Message calculation unit 16>
In step S16, the message calculation unit 16 of the encryption device 1 receives the message M from the input unit 11, and uses the message M to update the value of the encryption state stored in the storage unit 10.

(分割部161)
メッセージ計算部16の分割部161は、メッセージMをrビットのブロックに分割する。メッセージMのビット長を|M|とし、m=1,2,…,|M|/rとし、メッセージMを|M|/r個に分割して得られる各値をMmとする。
(Division 161)
The division unit 161 of the message calculation unit 16 divides the message M into blocks of r bits. Let the bit length of the message M be | M |, let m = 1,2,…, | M | / r, and let each value obtained by dividing the message M into | M | / r pieces be M m .

(排他的論理和部162)
メッセージ計算部16の排他的論理和部162は、bビットの暗号化ステートS|A|/r+m-1のレート部分SR,|A|/r+m-1のrビットに対し、メッセージMmとの排他的論理和SR,|A|/r+m-1 xor Mmを求める。
(Exclusive OR 162)
The exclusive OR unit 162 of the message calculation unit 16 is for the r bit of the rate portion S R, | A | / r + m-1 of the b-bit encryption state S | A | / r + m-1. Find the exclusive OR S R, | A | / r + m-1 xor M m with the message M m.

(置換部163)
メッセージ計算部16の置換部163は、暗号化ステートS|A|/r+m-1のレート部分SR,|A|/r+m-1を排他的論理和SR,|A|/r+m-1xor Mmに置換えたビット列を置換fを用いて置換し、暗号化ステートS|A|/r+mを求め、暗号化ステートS|A|/r+mのレート部分のrビットを暗号化データCmとし、|M|/r個の暗号化データCmを含む暗号化データC=(C1,C2,…,C|M|/r)を出力する。
(Replacement part 163)
The replacement unit 163 of the message calculation unit 16 sets the exclusive OR of the rate portion S R, | A | / r + m-1 of the encryption state S | A | / r + m-1 S R, | A | /. Replace the bit string replaced with r + m-1 xor M m with the replacement f to obtain the encryption state S | A | / r + m, and find the rate part of the encryption state S | A | / r + m. Let r bits be the encrypted data C m, and output the encrypted data C = (C 1 , C 2 ,…, C | M | / r ) containing | M | / r encrypted data C m.

<タグ生成部17>
ステップS17において、暗号化装置1のタグ生成部17は、暗号化ステートS|A|/r+|M|/rをメッセージ計算部16から受け取り、秘密鍵Kを記憶部10から取り出し、暗号化ステートS|A|/r+|M|/rのキャパシティ部分SC,|A|/r+|M|/rと秘密鍵Kとの排他的論理和を計算し、その計算結果をタグTとして出力する。
<Tag generator 17>
In step S17, the tag generation unit 17 of the encryption device 1 receives the encryption state S | A | / r + | M | / r from the message calculation unit 16, retrieves the private key K from the storage unit 10, and takes out the encryption state. S | a | / r + | M | / r capacity portion S C of, | a | / r + | M | / r and calculates the exclusive OR of the secret key K, and outputs the calculation result as a tag T To do.

<出力部18>
ステップS18において、暗号化装置1の出力部18は、暗号化データCをメッセージ計算部16から、タグTをタグ生成部17から、値A'を分割部161から、復元情報RIを置換部143から受け取り、暗号化データCとタグTと値A'と復元情報RIとの組(C, T, A', RI)を復号装置2へ送信する。
<Output unit 18>
In step S18, the output unit 18 of the encryption device 1 replaces the encrypted data C from the message calculation unit 16, the tag T from the tag generation unit 17, the value A'from the division unit 161 and the restoration information RI from the replacement unit 143. Receives from, and transmits the set (C, T, A', RI) of the encrypted data C, the tag T, the value A', and the restoration information RI to the decryption device 2.

<復号装置2>
図12から図13を参照して、実施形態の追加データ付き認証暗号システムが実行する追加データ付き認証暗号方法のうち、復号装置2が実行する復号方法について説明する。
<Decoding device 2>
Of the authentication encryption methods with additional data executed by the authentication encryption system with additional data of the embodiment, the decryption method executed by the decryption device 2 will be described with reference to FIGS. 12 to 13.

<記憶部20>
復号装置2の記憶部20には、rビットのレート部分とcビットのキャパシティ部分とからなるbビットのステート(以下、暗号化装置1の記憶部10に記憶される暗号化ステートと区別するために、復号ステートと呼ぶ)と、暗号化装置1との間であらかじめ共有した秘密鍵Kとが記憶されている。b, r, cの各値は、暗号化装置1の記憶部10に記憶されたステートと同じものとする。
<Memory unit 20>
The storage unit 20 of the decryption device 2 is distinguished from a b-bit state (hereinafter, an encryption state stored in the storage unit 10 of the encryption device 1) including an r-bit rate portion and a c-bit capacity portion. Therefore, it is called a decryption state) and the private key K shared in advance with the encryption device 1 is stored. Each value of b, r, and c is assumed to be the same as the state stored in the storage unit 10 of the encryption device 1.

<入力部21>
ステップS21において、復号装置2の入力部21へ、暗号化装置1から受信した暗号化データCとタグTと値A'と復元情報RIとの組(C, T, A', RI)が入力される。本実施形態では、値A'は追加データAに含まれる下位(|A|-r)ビット分のデータである。入力部21は、暗号化データCの最終ブロックとタグTとを第一初期化部22へ、値A'を追加データ逆計算部26へ、復元情報RIと暗号化データCの最終ブロック以外の各ブロックを暗号化データ逆計算部24へそれぞれ入力する。
<Input unit 21>
In step S21, the set (C, T, A', RI) of the encrypted data C, the tag T, the value A', and the restoration information RI received from the encryption device 1 is input to the input unit 21 of the decryption device 2. Will be done. In the present embodiment, the value A'is the data for the lower (| A | -r) bits included in the additional data A. The input unit 21 transfers the final block of the encrypted data C and the tag T to the first initialization unit 22, the value A'to the additional data inverse calculation unit 26, and other than the restoration information RI and the final block of the encrypted data C. Each block is input to the encrypted data inverse calculation unit 24, respectively.

<第一初期化部22>
ステップS22において、復号装置2の第一初期化部22は、入力部21から暗号化データCの最終ブロックとタグTとを受け取り、記憶部20に記憶されている復号ステートのうち、レート部分の値を暗号化データCの最終ブロックの値に、キャパシティ部分の値をタグTの値に設定して初期化する。言い換えると、第一初期化部22は、暗号化データC=(C1,C2,…,C|M|/r)に含まれる暗号化データC|M|/rとcビットのタグTとを連結した値を復号ステートSの初期値S|A|/r+|M|/rとして設定する。なお、以降の処理において、S|A|/r+|M|/r,S|A|/r+|M|/r-1,…,S|A|/rの順で復号ステートSを更新していく。
<First initialization unit 22>
In step S22, the first initialization unit 22 of the decryption device 2 receives the final block of the encrypted data C and the tag T from the input unit 21, and of the decryption states stored in the storage unit 20, the rate portion of the decryption state. Initialize by setting the value to the value of the last block of encrypted data C and the value of the capacity part to the value of tag T. In other words, the first initialization unit 22 uses the encrypted data C | M | / r and the c-bit tag T contained in the encrypted data C = (C 1 , C 2 ,…, C | M | / r). Set the value concatenated with and as the initial value S | A | / r + | M | / r of the decryption state S. In the subsequent processing, the decoding state S is updated in the order of S | A | / r + | M | / r , S | A | / r + | M | / r-1 ,…, S | A | / r. To go.

<タグ復号部23>
ステップS23において、復号装置2のタグ復号部23は、第一初期化部22から復号ステートS|A|/r+|M|/rを受け取り、そのキャパシティ部分SC,|A|/r+|M|/rとcビットの秘密鍵Kとの排他的論理和SC,|A|/r+|M|/rxor Kを求める。
<Tag decoding unit 23>
In step S23, the tag decoding unit 23 of the decoding device 2 receives the decoding state S | A | / r + | M | / r from the first initialization unit 22, and its capacity portion S C, | A | / r + | Find the exclusive OR of M | / r and the c-bit private key K S C, | A | / r + | M | / r xor K.

<暗号化データ逆計算部24>
ステップS24において、復号装置2の暗号化データ逆計算部24は、入力部21から暗号化データCの最終ブロック以外の各ブロックを受け取り、その暗号化データCの各ブロックCmを用いて記憶部20に記憶された復号ステートS|A|/r+mの値を更新する。m=|M|/r,|M|/r-1,…,1である。
<Encrypted data inverse calculation unit 24>
In step S24, the encrypted data inverse calculation unit 24 of the decryption device 2 receives each block other than the final block of the encrypted data C from the input unit 21, and stores each block C m of the encrypted data C. The value of the decryption state S | A | / r + m stored in 20 is updated. m = | M | / r, | M | / r-1,…, 1.

(逆置換部241)
暗号化データ逆計算部24の逆置換部241は、bビットの復号ステート全体に対し、置換fの逆関数f-1を計算し、その計算結果を新たな復号ステートの値とする。例えば、m=|M|/r(暗号化データCの最終ブロック)において、逆置換部241は、復号ステートS|A|/r+|M|/rのキャパシティ部分SC,|A|/r+|M|/rを排他的論理和SC,|A|/r+|M|/rxor Kに置換えたビット列を逆関数f-1を用いて置換し、復号ステートS|A|/r+|M|/r-1を求める。また、m=(|M|/r)-1,(|M|/r)-2,…,1において、逆置換部241は、復号ステートS|A|/r+mのレート部分SR,|A|/r+mを暗号化データCmに置換えたビット列を逆関数f-1を用いて置換し、復号ステートS|A|/r+m-1を求める。なお、逆関数f-1:{0, 1}b→{0, 1}bは、上述の通り、置換fの逆関数f-1であり、bビットのビット列eをbビットのビット列dに置換する関数である。
(Reverse replacement part 241)
The inverse substitution unit 241 of the encrypted data inverse calculation unit 24 calculates the inverse function f -1 of the substitution f for the entire decryption state of the b bit, and sets the calculation result as the value of the new decryption state. For example, in m = | M | / r (the final block of encrypted data C), the inverse substitution unit 241 has the capacity portion S C, | A | / of the decryption state S | A | / r + | M | / r. The bit string in which r + | M | / r is replaced with the exclusive OR S C, | A | / r + | M | / r xor K is replaced by using the inverse function f -1 , and the decoding state S | A | / r + | M | / Find r-1 . Further, in m = (| M | / r) -1, (| M | / r) -2, ..., 1, the inverse substitution unit 241 is the rate portion S R of the decoding state S | A | / r + m. The bit string in which , | A | / r + m is replaced with the encrypted data C m is replaced by using the inverse function f -1 , and the decryption state S | A | / r + m -1 is obtained. The inverse function f -1 : {0, 1} b → {0, 1} b is the inverse function f -1 of the substitution f as described above, and the bit string e of the b bit is changed to the bit string d of the b bit. The function to replace.

(排他的論理和部242)
m=|M|/r-1,(|M|/r)-2,…,2,1において、暗号化データ逆計算部24の排他的論理和部242は、復号ステートS|A|/r+mのレート部分SR,|A|/r+mと、暗号化データCmとの排他的論理和SR,|A|/r+m xor Cmを計算し、計算結果を復号データMm+1,Dとして出力部30から出力する。なお、|M|/r個の復号データMm,Dを結合したものを最終的に出力する復号データMD=(M1,D||M2,D||…||M|M|/r,D)とする。ただし、復号データM1,D(第一ブロックの暗号化データを復号したもの)は、復号ステートS|A|/rのレート部分SR,|A|/rと、復元情報RIとの排他的論理和SR,|A|/r xor RIを計算し、計算結果を復号データM1,Dとして出力部30から出力する。改ざん等なされていなければM=MDとなる。
(Exclusive OR 242)
In m = | M | / r-1, (| M | / r) -2,…, 2,1, the exclusive OR part 242 of the encrypted data inverse calculation unit 24 is in the decryption state S | A | / r + m of rate portion S R, | a | / r + m and an exclusive OR S R and the encrypted data C m, | a | / r + a m xor C m is calculated and decodes the calculation result It is output from the output unit 30 as data M m + 1, D. Incidentally, | M | / r pieces of decoded data M m, the decoded data is finally output the union of D M D = (M 1, D || M 2, D || ... || M | M | / r, D ). However, the decoded data M 1, D (obtained by decrypting the encrypted data of the first block) is decoded state S | A | / r of rate portion S R, | A | / r and, exclusive of the restoration information RI The exclusive OR S R, | A | / r xor RI is calculated, and the calculation result is output from the output unit 30 as decoded data M 1 and D. If it has not been tampered with, M = M D.

<境界除去部25>
ステップS25において、復号装置2の境界除去部25は、暗号化データ逆計算部24から復号ステートS|A|/rを受け取り、復号ステートS|A|/rのキャパシティ部分SC,|A|/rの所定のビットを反転させる。例えば、復号ステートのキャパシティ部分と整数値1との排他的論理和を計算し、その計算結果により復号ステートのキャパシティ部分を更新する。すなわち、境界除去部25は、復号ステートの最下位ビットのみを反転させる。
<Boundary removal unit 25>
In step S25, the boundary removal unit 25 of the decoding device 2 is decoded state S from the encrypted data inverse calculation unit 24 | receive / r, decoding state S | | A A | / capacity portion r S C, | A | Inverts a given bit of / r. For example, the exclusive OR of the capacity part of the decoding state and the integer value 1 is calculated, and the capacity part of the decoding state is updated according to the calculation result. That is, the boundary removing unit 25 inverts only the least significant bit of the decoding state.

<追加データ逆計算部26>
ステップS26において、復号装置2の追加データ逆計算部26は、入力部21から値A'を受け取り、その値A'を用いて記憶部20に記憶された復号ステートの値を更新する。この場合、追加データ逆計算部26は以下のように構成する。
<Additional data inverse calculation unit 26>
In step S26, the additional data inverse calculation unit 26 of the decoding device 2 receives the value A'from the input unit 21 and updates the value of the decoding state stored in the storage unit 20 using the value A'. In this case, the additional data inverse calculation unit 26 is configured as follows.

(分割部261)
追加データ逆計算部26の分割部261は、値A'をrビットのブロックに分割する。なお、値A'のビット長を|A'|とし、n=1,2,…,|A'|/rとし、値A'を|A'|/r個に分割して得られる各値をA'nとする。なお、|A'|=|A|-rであり、n=1,2,…,|A|/r-1である。
(Division 261)
The division unit 261 of the additional data inverse calculation unit 26 divides the value A'into r-bit blocks. The bit length of the value A'is | A'|, n = 1,2, ..., | A'| / r, and the value A'is divided into | A'| / r, and each value is obtained. Let A'n . It should be noted that | A'| = | A | -r and n = 1,2, ..., | A | / r-1.

(逆置換部264)
n=|A|/rの場合、追加データ逆計算部26の逆置換部264は、復号ステートS|A|/rのレート部分SR,|A|/rを復元情報RIに置換え、復号ステートS|A|/rのキャパシティ部分SC,|A|/rの所定のビットを反転させたビット列を逆関数f-1を用いて置換し、復号ステートS|A|/r-1を求める。
(Reverse replacement part 264)
n = | case / r, reverse replacement section 264 of the additional data inverse calculation unit 26, the decoding state S | | A A | / r of rate portion S R, | A | / r to replace the restoration information RI, decoding state S | a | / capacity portion S C of r, | a | / a bit string obtained by inverting predetermined bits of r replaced with an inverse function f -1, decoding state S | a | / r-1 Ask for.

n=|A|/r-1,|A|/r-2,…,1の場合(|A'|=|A|-rなので、n=|A'|/r,|A'|/r-1,…,1の場合)、追加データ逆計算部26の逆置換部264は、復号ステートSnのレート部分SR,nを排他的論理和SR,n xor A'nに置換えたビット列を逆関数f-1を用いて置換し、復号ステートSn-1を求める。 In the case of n = | A | / r-1, | A | / r-2,…, 1 (| A'| = | A | -r, so n = | A'| / r, | A'| / r-1, ..., 1), the inverse permutation unit 264 of the additional data inverse calculation unit 26, replacement rate portion S R of the decoding state S n, a n exclusive OR S R, the n xor a 'n The obtained bit string is replaced by using the inverse function f -1 , and the decoding state S n -1 is obtained.

(排他的論理和部263)
追加データ逆計算部26の排他的論理和部263は、bビットの復号ステートSnのレート部分SR,nのrビットに対し、値A'nとの排他的論理和SR,n xor A'nを求める。
(Exclusive OR 263)
Exclusive OR unit 263 of the additional data inverse calculation unit 26, rate portion of the decoding state S n b bits S R, with respect to r-bit n, the exclusive OR S R between the values A 'n, n xor determine the a 'n.

追加データ逆計算部26は、n=|A|/r-1から順にn=1まで逆置換部264及び排他的論理和部263の処理を繰り返す。 The additional data inverse calculation unit 26 repeats the processing of the inverse replacement unit 264 and the exclusive OR unit 263 from n = | A | / r-1 to n = 1.

<認証部29>
ステップS29において、復号装置2の認証部29は、追加データ逆計算部26から復号ステートS0を受け取り、記憶部20から秘密鍵Kを取り出し、復号ステートS0のキャパシティ部分SC,0と秘密鍵Kとが一致するか否かによりメッセージ認証を行う。2つの値が等しい場合は、ステップS301へ処理を進め、予め定めたビット列(初期化部12の初期値に対応する値であり、この例ではすべてのビットが0のビット列)と復号ステートS0のレート部分SR,0との排他的論理和を値Arとして出力部30から出力する。二つの値が等しくない場合は、ステップS302へ処理を進め、復号に失敗した旨を表すエラーコードを出力部30から出力する。
<Authentication unit 29>
In step S29, the authentication unit 29 of the decryption device 2 receives the decryption state S 0 from the additional data inverse calculation unit 26, takes out the private key K from the storage unit 20, and sets the capacity portions S C, 0 of the decryption state S 0. Message authentication is performed based on whether or not the private key K matches. If the two values are equal, the process proceeds to step S301, and the predetermined bit string (the value corresponding to the initial value of the initialization unit 12, in this example, all bits are 0 bit strings) and the decoding state S 0. The exclusive OR with the rate part S R, 0 of is output from the output unit 30 as the value A r. If the two values are not equal, the process proceeds to step S302, and an error code indicating that decoding has failed is output from the output unit 30.

<効果>
以上の構成により、秘密ナンスを利用できるAPEを実現することができる。また、従来のAPEでは、暗号化処理は一種類の置換fしか使わない反面、復号処理の際に置換fと逆関数f-1の2種類の置換を実装する必要がある。従って復号装置での実装コストが大きいという問題がある。本実施形態の復号装置は逆関数f-1の一種類の実装だけで良く、実装効率が改善される。また、暗号化装置側は置換fだけを実装すればよく、暗号化装置の実装コストの増大を避けることができる。
<Effect>
With the above configuration, APE that can use secret nonce can be realized. Also, in the conventional APE, while the encryption process uses only one type of substitution f, it is necessary to implement two types of substitutions , the substitution f and the inverse function f -1, during the decryption processing. Therefore, there is a problem that the mounting cost in the decoding device is high. The decoding device of this embodiment requires only one type of implementation of the inverse function f -1 , and the implementation efficiency is improved. Further, the encryption device side only needs to implement the substitution f, and it is possible to avoid an increase in the implementation cost of the encryption device.

なお、本実施形態に係る暗号化装置のことを暗号化データを生成するという意味で暗号化データ生成装置ともいい、本実施形態に係る復号装置のことを復号データを生成するという意味で復号データ生成装置ともいう。なお、暗号化データ及び復号データは電子計算機による処理の用に供する情報であり、(i)暗号化データ生成装置を用いた暗号化データ生成方法に係る発明及び(ii)復号データ生成装置を用いた復号データ生成方法に係る発明が、特許法第二条第三項第三号の「物を生産する方法の発明」に該当することは言うまでもない。 The encryption device according to the present embodiment is also called an encryption data generation device in the sense of generating encrypted data, and the decryption device according to the present embodiment is the decryption data in the sense of generating decryption data. Also called a generator. The encrypted data and the decrypted data are information used for processing by a computer, and use (i) an invention relating to an encrypted data generation method using an encrypted data generator and (ii) a decrypted data generator. Needless to say, the invention relating to the decrypted data generation method falls under the "invention of the method for producing a product" in Article 2, Paragraph 3, Item 3 of the Patent Act.

<第二実施形態>
第一実施形態と異なる部分を中心に説明する。
<Second embodiment>
The part different from the first embodiment will be mainly described.

第一実施形態では、秘匿対象のデータ(例えば秘密ナンス)のデータ量をrビット(ステートのレート部分のデータ量と同じ)としたが、本実施形態では、秘匿対象のデータのデータ量をP×rとする。Pは1以上の整数の何れかとする。ただし、秘匿対象のデータをrビットの倍長のデータに限定するものではなく、r ビットの倍長ではない場合には、例えば、10*パディングを施して、r ビットの倍長のデータに変更して本実施形態を適用してもよい。 In the first embodiment, the data amount of the data to be concealed (for example, secret nonce) is r bits (the same as the data amount of the rate portion of the state), but in the present embodiment, the data amount of the data to be concealed is P. Let × r. P is one of an integer greater than or equal to 1. However, the data to be concealed is not limited to r-bit double-length data, and if it is not r-bit double-length data, for example, 10 * padding is applied to change to r-bit double-length data. Then, this embodiment may be applied.

<暗号化装置1>
図10、図14、図15を参照して、実施形態の追加データ付き認証暗号システムが実行する追加データ付き認証暗号方法のうち、暗号化装置1が実行する暗号化方法について説明する。
<Encryption device 1>
Of the authentication encryption methods with additional data executed by the authentication encryption system with additional data of the embodiment, the encryption method executed by the encryption device 1 will be described with reference to FIGS. 10, 14, and 15.

<追加データ計算部14>
ステップS14において、暗号化装置1の追加データ計算部14は、入力部11から追加データAを受け取り、その追加データAを用いて記憶部10に記憶された暗号化ステートの値を更新する。
<Additional data calculation unit 14>
In step S14, the additional data calculation unit 14 of the encryption device 1 receives the additional data A from the input unit 11, and uses the additional data A to update the value of the encryption state stored in the storage unit 10.

この場合、追加データ計算部14は以下のように構成する。 In this case, the additional data calculation unit 14 is configured as follows.

(分割部141)
追加データ計算部14の分割部141は、追加データAをrビットのブロックに分割する。なお、追加データAのビット長を|A|とし、n=1,2,…,|A|/rとし、追加データAを|A|/r個に分割して得られる各値をAnとする。追加データAに含まれる(P×rビット分の)秘匿対象のデータをAr=(Ar 1,Ar 2,…,Ar P)と表し、((|A|-(P×r))ビット分の)残りの部分をA'=(A'1,A'2,…,A'|A|/r-P)と表す。なお、p=1,2,…,Pとし、秘匿対象のデータをAr pとし、q=1,2,…,|A|/r-Pとし、残りの部分をA'qとする。秘匿対象のデータに含まれるデータAr 1は、追加データAの先頭に配置する必要がある。秘匿対象のデータAr 2,…,Ar P及び部分A'1,A'2,…,A'|A|/r-Pは、追加データAの中にどのように配置してもよい。例えば、追加データAの先頭に秘匿対象のデータAr 1,Ar 2,…,Ar Pを配置する場合にはA→Ar||A'であり、追加データAの先頭に秘匿対象のデータの先頭のデータAr 1を配置し、残りの秘匿対象のデータAr 2,…,Ar Pを追加データAの最後に配置する場合にはA→Ar 1||A'||Ar 2||…||Ar Pである。分割した部分A'qと部分A'q+1との間に秘匿対象のデータAr pを配置してもよいが、実用的な例としては上述の二つの配置例が考えられる。なお、追加データAにおける秘匿対象のデータAr 2,…,Ar P及び部分A'1,A'2,…,A'|A|/r-Pの配置は、受信者と送信者との間であらかじめ共有しておく。
(Division 141)
The division unit 141 of the additional data calculation unit 14 divides the additional data A into blocks of r bits. The bit length of the additional data A is | A |, n = 1,2, ..., | A | / r, and each value obtained by dividing the additional data A into | A | / r is A n. And. The data to be concealed (for P × r bits) included in the additional data A is expressed as A r = (A r 1 , Ar 2 ,…, A r P ), and ((| A |-(P × r) )) of bits) the remaining portion a '= (a' 1, a '2, ..., a' | a | / rP) represent. Incidentally, p = 1,2, ..., is P, the data of confidential and A r p, q = 1,2, ..., | A | and / rP, and the remainder of A 'q. The data A r 1 included in the data to be concealed must be placed at the beginning of the additional data A. The data to be concealed A r 2 ,…, A r P and the part A ′ 1 , A ′ 2 ,…, A ′ | A | / r P may be arranged in the additional data A in any manner. For example, when the data A r 1 , Ar 2 , ..., A r P to be concealed is placed at the beginning of the additional data A, A → A r || A', and the concealment target is at the beginning of the additional data A. If the first data A r 1 of the data is placed and the remaining confidential data A r 2 ,…, A r P is placed at the end of the additional data A, A → A r 1 || A'| | A r 2 ||… || A r P. The data A r p to be concealed may be arranged between the divided part A'q and the part A'q + 1 , but the above two arrangement examples can be considered as practical examples. In addition, the arrangement of the data A r 2 ,…, A r P and the part A ′ 1 , A ′ 2 ,…, A ′ | A | / r P to be concealed in the additional data A is between the receiver and the sender. Share in advance with.

(排他的論理和部142)
追加データ計算部14の排他的論理和部142は、bビットのステートSn-1のレート部分SR,n-1のrビットに対し、値Anとの排他的論理和SR,n-1 xor Anを求める。
(Exclusive OR 142)
Exclusive OR unit 142 of the additional data generator 14, the state S n-1 of the rate portion of the b bits S R, with respect to r-bit n-1, the exclusive OR S R between the values A n, n Request -1 xor a n.

さらに、本実施形態では、排他的論理和部142は、値Anが秘匿対象のデータAr 2,…,Ar Pの場合、ステートSn-1のレート部分SR,n-1を復元情報RI1,RI2,…,RIP-1として出力する。 Further, in the present embodiment, the exclusive OR unit 142 sets the rate portion S R, n-1 of the state S n-1 when the value A n is the data A r 2 , ..., A r P to be concealed. Restore information Output as RI 1 , RI 2 ,…, RI P-1.

図14は追加データAの先頭に秘匿対象のデータAr 1,Ar 2,…,Ar Pを配置した場合の処理例を示し、図15は追加データAの先頭に秘匿対象のデータの先頭のデータAr 1を配置し、残りの秘匿対象のデータAr 2,…,Ar Pを追加データAの最後に配置した場合の例を示す。 FIG. 14 shows a processing example when the data to be concealed A r 1 , Ar 2 , ..., A r P is placed at the beginning of the additional data A, and FIG. An example is shown in which the first data A r 1 is placed and the remaining confidential data A r 2 , ..., A r P are placed at the end of the additional data A.

(置換部143)
追加データ計算部14の置換部143は、暗号化ステートSn-1のレート部分SR,n-1を排他的論理和SR,n-1 xor Anに置換えたビット列を置換fを用いて置換し、暗号化ステートSnを求める。
(Replacement part 143)
The replacement unit 143 of the additional data calculation unit 14 uses the replacement f for the bit string in which the rate portion S R, n-1 of the encryption state S n-1 is replaced with the exclusive OR S R, n-1 xor A n. To find the encryption state S n.

そして、置換部143は、n=|A|/rのときに得られる暗号化ステートS|A|/rのレート部分SR,|A|/rを復元情報RIPとして出力する。 Then, the replacement unit 143, n = | A | rate portion S R of / r, | | / encrypted state obtained S when r | A A | / r outputs as restoration information RI P.

境界設定部15、メッセージ計算部16、タグ生成部17における処理は第一実施形態と同様である。 The processing in the boundary setting unit 15, the message calculation unit 16, and the tag generation unit 17 is the same as that in the first embodiment.

<出力部18>
ステップS18において、暗号化装置1の出力部18は、暗号化データCをメッセージ計算部16から、タグTをタグ生成部17から、値A'を分割部161から、復元情報RI1,RI2,…,RIP-1を排他的論理和部162から、復元情報RIPを置換部143から受け取り、暗号化データCとタグTと値A'と復元情報RI=(RI1,RI2,…,RIP)との組(C, T, A', RI)を復号装置2へ送信する。
<Output unit 18>
In step S18, the output unit 18 of the encryption device 1, the encrypted data C from the message calculation unit 16, the tag T from the tag generator 17, the value A 'from the division unit 161, the restoration information RI 1, RI 2 , ..., from the exclusive OR unit 162 the RI P-1, restoring information RI P receives from substitution unit 143, = encrypted data C and tag T and the value a 'and restoration information RI (RI 1, RI 2, ..., set of the RI P) (C, T, a ', RI) and transmits the to the decoder 2.

<復号装置2>
図12、図16、図17を参照して、実施形態の追加データ付き認証暗号システムが実行する追加データ付き認証暗号方法のうち、復号装置2が実行する復号方法について説明する。
<Decoding device 2>
Of the authentication encryption methods with additional data executed by the authentication encryption system with additional data of the embodiment, the decryption method executed by the decryption device 2 will be described with reference to FIGS. 12, 16 and 17.

<入力部21>
ステップS21において、復号装置2の入力部21へ、暗号化装置1から受信した暗号化データCとタグTと値A'と復元情報RIとの組(C, T, A', RI)が入力される。本実施形態では、値A'は追加データAに含まれる(|A|-(P×r))ビット分のデータである。入力部21は、暗号化データCの最終ブロックとタグTとを第一初期化部22へ、値A'と復元情報RI1,RI2,…,RIP-1を追加データ逆計算部26へ、復元情報RIPと暗号化データCの最終ブロック以外の各ブロックを暗号化データ逆計算部24へそれぞれ入力する。
<Input unit 21>
In step S21, the set (C, T, A', RI) of the encrypted data C, the tag T, the value A', and the restoration information RI received from the encryption device 1 is input to the input unit 21 of the decryption device 2. Will be done. In the present embodiment, the value A'is the data for (| A |-(P × r)) bits included in the additional data A. The input unit 21 adds the final block of the encrypted data C and the tag T to the first initialization unit 22, the value A'and the restoration information RI 1 , RI 2 , ..., RI P-1. to be inputted each block except the last block of the reconstruction information RI P and the encrypted data C to the encrypted data inverse calculation unit 24.

第一初期化部22、タグ復号部23、暗号化データ逆計算部24、境界除去部25における処理は第一実施形態と同様である。但し、復元情報RIに代えて、復元情報RIPを用いる。 The processing in the first initialization unit 22, the tag decryption unit 23, the encrypted data inverse calculation unit 24, and the boundary removal unit 25 is the same as in the first embodiment. However, instead of the reconstruction information RI, using a restoration information RI P.

<追加データ逆計算部26>
ステップS26において、復号装置2の追加データ逆計算部26は、入力部21から値A'と復元情報RI1,RI2,…,RIP-1を受け取り、これらの値を用いて記憶部20に記憶された復号ステートの値を更新する。この場合、追加データ逆計算部26は以下のように構成する。
<Additional data inverse calculation unit 26>
In step S26, the additional data inverse calculation unit 26 of the decoding device 2 receives the value A'and the restoration information RI 1 , RI 2 , ..., RI P-1 from the input unit 21, and uses these values in the storage unit 20. Update the decryption state value stored in. In this case, the additional data inverse calculation unit 26 is configured as follows.

(分割部261)
追加データ逆計算部26の分割部261は、値A'をrビットのブロックに分割する。なお、値A'のビット長を|A'|とし、q=1,2,…,|A'|/rとし、値A'を|A'|/r個に分割して得られる各値をA'qとする。なお、ここでは、|A'|=|A|-(r×P)であり、q=1,2,…,|A|/r-Pである。
(Division 261)
The division unit 261 of the additional data inverse calculation unit 26 divides the value A'into r-bit blocks. The bit length of the value A'is | A'|, q = 1,2, ..., | A'| / r, and the value A'is divided into | A'| / r, and each value is obtained. Let A'q . Here, | A'| = | A |-(r × P) and q = 1,2, ..., | A | / rP.

(逆置換部264)
n=|A|/rの場合、追加データ逆計算部26の逆置換部264は、復号ステートS|A|/rのレート部分SR,|A|/rを復元情報RIPに置換え、復号ステートS|A|/rのキャパシティ部分SC,|A|/rの所定のビットを反転させたビット列を逆関数f-1を用いて置換し、復号ステートS|A|/r-1を求める。
(Reverse replacement part 264)
n = | A | / For r, the inverse substitution unit 264 of the additional data inverse calculation unit 26, the decoding state S | A | / r of rate portion S R, | A | / r to replace the restoration information RI P, The capacity portion of the decoding state S | A | / r S C, | A | / r is replaced with the inverted bit string of a predetermined bit using the inverse function f -1 , and the decoding state S | A | / r- Find 1.

n=|A|/r-1,|A|/r-2,…,1の場合、追加データ逆計算部26の逆置換部264は、復号ステートSnのレート部分SR,nを、後述する排他的論理和部263の出力値である(i)排他的論理和SR,n xor A'q、または、(ii)復元情報RIpに置換えたビット列を逆関数f-1を用いて置換し、復号ステートSn-1を求める。 In the case of n = | A | / r-1, | A | / r-2,…, 1, the inverse substitution unit 264 of the additional data inverse calculation unit 26 sets the rate portion S R, n of the decoding state S n. the output value of the exclusive oR unit 263 to be described later (i) xOR S R, n xor a 'q , or, using the inverse function f -1 bit string is replaced with (ii) restoration information RI p To find the decryption state S n-1.

(排他的論理和部263)
追加データ逆計算部26の排他的論理和部263は、(i)値A'qまたは(ii)復元情報RIpを入力とする。
(Exclusive OR 263)
The exclusive OR unit 263 of the additional data inverse calculation unit 26 inputs (i) the value A'q or (ii) the restoration information RI p .

(i)排他的論理和部263は、値A'qを入力としたとき、bビットの復号ステートSnのレート部分SR,nのrビットに対し、値A'qとの排他的論理和SR,n xor A'qを求め、逆置換部264に出力する。 (i) XOR unit 263 'when the enter q, rate portion of the decoding state S n b bits S R, with respect to r-bit n, the value A' the value A exclusive of q sum S R, seek n xor a 'q, and outputs the inverse permutation unit 264.

(ii)排他的論理和部263は、復元情報RIpを入力としたとき、bビットの復号ステートSnのレート部分SR,nのrビットに対し、復元情報RIpとの排他的論理和SR,n xor RIpを求め、排他的論理和SR,nxor RIpを秘匿対象のデータAp+1として出力する。さらに、排他的論理和部263は、復号ステートSnのレート部分SR,nを復元情報RIpに置換えたビット列を逆置換部264に出力する。 (ii) exclusive unit 263, when receives the restoration information RI p, rate portion of the decoding state S n b bits S R, with respect to r-bit n, exclusive of the restoration information RI p The sum S R, n xor RI p is obtained, and the exclusive OR S R, n xor RI p is output as the data A p + 1 to be concealed. Further, the exclusive OR unit 263 outputs a bit string in which the rate portions S R, n of the decoding state S n are replaced with the restoration information RI p to the inverse replacement unit 264.

追加データ逆計算部26は、p=1,2,…,P-1、q=|A|/r-P,|A|/r-P-1,…,1において、逆置換部264及び排他的論理和部263の処理を繰り返す。 The additional data inverse calculation unit 26 includes the inverse substitution unit 264 and the exclusive OR in p = 1,2, ..., P-1, q = | A | / rP, | A | / rP-1, ..., 1. The process of unit 263 is repeated.

図16は追加データAの先頭に秘匿対象のデータAr 1,Ar 2,…,Ar Pを配置した場合の処理例を示し、図17は追加データAの先頭に秘匿対象のデータの先頭のデータAr 1を配置し、残りの秘匿対象のデータAr 2,…,Ar Pを追加データAの最後に配置した場合の例を示す。追加データAにおける秘匿対象のデータAr 2,…,Ar P及び部分A'1,A'2,…,A'|A|/r-Pの配置は、受信者と送信者との間であらかじめ共有しているため、排他的論理和部263及び逆置換部264は、入力される順番に従って、(i)値A'qまたは(ii)復元情報RIpが入力されるのか、復号ステートSnのレート部分SR,nを、(i)排他的論理和SR,n xor A'q、または、(ii)復元情報RIpに置換えたビット列が入力されるのかを判断することができる。 FIG. 16 shows a processing example when the data to be concealed A r 1 , Ar 2 , ..., A r P is placed at the beginning of the additional data A, and FIG. 17 shows the processing example of the data to be concealed at the beginning of the additional data A. An example is shown in which the first data A r 1 is placed and the remaining confidential data A r 2 , ..., A r P are placed at the end of the additional data A. The arrangement of the data A r 2 ,…, A r P and the part A ′ 1 , A ′ 2 ,…, A ′ | A | / r P to be concealed in the additional data A is performed in advance between the receiver and the sender. Since they are shared, the exclusive OR part 263 and the inverse replacement part 264 are input in the order in which they are input, whether (i) the value A'q or (ii) the restoration information RI p is input, or the decoding state S n. the rate portion S R, the n, it is possible to determine (i) xOR S R, n xor a 'q , or, what is the input bit string is replaced with (ii) restoration information RI p.

<認証部29>
ステップS29において、復号装置2の認証部29は、追加データ逆計算部26から復号ステートS0を受け取り、記憶部20から秘密鍵Kを取り出し、復号ステートS0のキャパシティ部分SC,0と秘密鍵Kとが一致するか否かによりメッセージ認証を行う。2つの値が等しい場合は、ステップS301へ処理を進め、予め定めたビット列(初期化部12の初期値に対応する値であり、この例ではすべてのビットが0のビット列)と復号ステートS0のレート部分SR,0との排他的論理和を値Ar 1として出力部30から出力する。二つの値が等しくない場合は、ステップS302へ処理を進め、復号に失敗した旨を表すエラーコードを出力部30から出力する。
<Authentication unit 29>
In step S29, the authentication unit 29 of the decryption device 2 receives the decryption state S 0 from the additional data inverse calculation unit 26, takes out the private key K from the storage unit 20, and sets the capacity portions S C, 0 of the decryption state S 0. Message authentication is performed based on whether or not the private key K matches. If the two values are equal, the process proceeds to step S301, and the predetermined bit string (the value corresponding to the initial value of the initialization unit 12, in this example, all bits are 0 bit strings) and the decoding state S 0. The exclusive OR with the rate part S R, 0 of is output from the output unit 30 as the value A r 1. If the two values are not equal, the process proceeds to step S302, and an error code indicating that decoding has failed is output from the output unit 30.

<効果>
このような構成により、第一実施形態と同様の効果を得ることができる。さらに、秘匿対象のデータの大きさを柔軟に設定することができる。なお、P=1のとき、第一実施形態と同様の構成となるため、第一実施形態は第二実施形態の一例とも言える。
<Effect>
With such a configuration, the same effect as that of the first embodiment can be obtained. Furthermore, the size of the data to be concealed can be flexibly set. When P = 1, the configuration is the same as that of the first embodiment, so that the first embodiment can be said to be an example of the second embodiment.

<その他の変形例>
本発明は上記の実施形態及び変形例に限定されるものではない。例えば、上述の各種の処理は、記載に従って時系列に実行されるのみならず、処理を実行する装置の処理能力あるいは必要に応じて並列的にあるいは個別に実行されてもよい。その他、本発明の趣旨を逸脱しない範囲で適宜変更が可能である。
<Other variants>
The present invention is not limited to the above embodiments and modifications. For example, the various processes described above may not only be executed in chronological order according to the description, but may also be executed in parallel or individually as required by the processing capacity of the device that executes the processes. In addition, changes can be made as appropriate without departing from the spirit of the present invention.

<プログラム及び記録媒体>
また、上記の実施形態及び変形例で説明した各装置における各種の処理機能をコンピュータによって実現してもよい。その場合、各装置が有すべき機能の処理内容はプログラムによって記述される。そして、このプログラムをコンピュータで実行することにより、上記各装置における各種の処理機能がコンピュータ上で実現される。
<Programs and recording media>
Further, various processing functions in each device described in the above-described embodiment and modification may be realized by a computer. In that case, the processing content of the function that each device should have is described by the program. Then, by executing this program on the computer, various processing functions in each of the above devices are realized on the computer.

この処理内容を記述したプログラムは、コンピュータで読み取り可能な記録媒体に記録しておくことができる。コンピュータで読み取り可能な記録媒体としては、例えば、磁気記録装置、光ディスク、光磁気記録媒体、半導体メモリ等どのようなものでもよい。 The program describing the processing content can be recorded on a computer-readable recording medium. The computer-readable recording medium may be, for example, a magnetic recording device, an optical disk, a photomagnetic recording medium, a semiconductor memory, or the like.

また、このプログラムの流通は、例えば、そのプログラムを記録したDVD、CD−ROM等の可搬型記録媒体を販売、譲渡、貸与等することによって行う。さらに、このプログラムをサーバコンピュータの記憶装置に格納しておき、ネットワークを介して、サーバコンピュータから他のコンピュータにそのプログラムを転送することにより、このプログラムを流通させてもよい。 Further, the distribution of this program is performed, for example, by selling, transferring, renting, or the like a portable recording medium such as a DVD or a CD-ROM in which the program is recorded. Further, the program may be distributed by storing the program in the storage device of the server computer and transferring the program from the server computer to another computer via a network.

このようなプログラムを実行するコンピュータは、例えば、まず、可搬型記録媒体に記録されたプログラムもしくはサーバコンピュータから転送されたプログラムを、一旦、自己の記憶部に格納する。そして、処理の実行時、このコンピュータは、自己の記憶部に格納されたプログラムを読み取り、読み取ったプログラムに従った処理を実行する。また、このプログラムの別の実施形態として、コンピュータが可搬型記録媒体から直接プログラムを読み取り、そのプログラムに従った処理を実行することとしてもよい。さらに、このコンピュータにサーバコンピュータからプログラムが転送されるたびに、逐次、受け取ったプログラムに従った処理を実行することとしてもよい。また、サーバコンピュータから、このコンピュータへのプログラムの転送は行わず、その実行指示と結果取得のみによって処理機能を実現する、いわゆるASP(Application Service Provider)型のサービスによって、上述の処理を実行する構成としてもよい。なお、プログラムには、電子計算機による処理の用に供する情報であってプログラムに準ずるもの(コンピュータに対する直接の指令ではないがコンピュータの処理を規定する性質を有するデータ等)を含むものとする。 A computer that executes such a program first temporarily stores, for example, a program recorded on a portable recording medium or a program transferred from a server computer in its own storage unit. Then, when the process is executed, the computer reads the program stored in its own storage unit and executes the process according to the read program. Further, as another embodiment of this program, a computer may read the program directly from a portable recording medium and execute processing according to the program. Further, each time the program is transferred from the server computer to this computer, the processing according to the received program may be executed sequentially. In addition, the above processing is executed by a so-called ASP (Application Service Provider) type service that realizes the processing function only by the execution instruction and result acquisition without transferring the program from the server computer to this computer. May be. The program shall include information used for processing by a computer and equivalent to the program (data that is not a direct command to the computer but has a property of defining the processing of the computer, etc.).

また、コンピュータ上で所定のプログラムを実行させることにより、各装置を構成することとしたが、これらの処理内容の少なくとも一部をハードウェア的に実現することとしてもよい。 Further, although each device is configured by executing a predetermined program on a computer, at least a part of these processing contents may be realized by hardware.

Claims (9)

暗号化データ生成装置と復号データ生成装置とを含む追加データ付き認証暗号システムであって、
前記暗号化データ生成装置は、
秘密鍵Kのビット長をcビットとし、rビットのレート部分とcビットのキャパシティ部分とを含むbビットの情報をステートとし、追加データAのビット長を|A|とし、
追加データAをrビットの秘匿対象のデータを含む値Arと(|A|-r)ビット分の秘匿対象ではない値A'とに分割する分割部と、
n=1,2,…,|A|/rとし、前記追加データAを|A|/r個に分割して得られる各値をAnとし、予め定めたビット列と秘密鍵Kとを連結した値を暗号化ステートの初期値S0とし、bビットの暗号化ステートSn-1のレート部分SR,n-1のrビットに対し、値Anとの排他的論理和SR,n-1 xor Anを求める第一排他的論理和部と、
bビットのビット列dをbビットのビット列eに置換する関数を置換fとし、前記暗号化ステートSn-1のレート部分SR,n-1を前記排他的論理和SR,n-1 xor Anに置換え、置換えたビット列を置換fを用いて置換し、置換したビット列を暗号化ステートSnとして求め、暗号化ステートS|A|/rのレート部分SR,|A|/rを復元情報RIとして出力する第一置換部と、
暗号化ステートS|A|/rのキャパシティ部分SC,|A|/rの所定のビットを反転させる境界設定部と、
メッセージMのビット長を|M|とし、m=1,2,…,|M|/rとし、前記メッセージMを|M|/r個に分割して得られる各値をMmとし、bビットの暗号化ステートS|A|/r+m-1のレート部分SR,|A|/r+m-1のrビットに対し、メッセージMmとの排他的論理和SR,|A|/r+m-1xor Mmを求める第二排他的論理和部と、
前記暗号化ステートS|A|/r+m-1のレート部分SR,|A|/r+m-1を前記排他的論理和SR,|A|/r+m-1xor Mmに置換え、置換えたビット列を置換fを用いて置換し、置換したビット列を暗号化ステートS|A|/r+mとして求め、前記暗号化ステートS|A|/r+mのレート部分のrビットを暗号化データCmとし、|M|/r個の暗号化データCmを含む暗号化データC=(C1,C2,…,C|M|/r)を出力する第二置換部と、
暗号化ステートS|A|/r+|M|/rのキャパシティ部分SC,|A|/r+|M|/rと秘密鍵Kとの排他的論理和をタグTとして出力するタグ生成部と、
前記暗号化データCと前記タグTと前記値A'と前記復元情報RIとを出力する出力部を含み、
前記復号データ生成装置は、
前記暗号化データCと前記タグTと前記値A'と前記復元情報RIとを受け取る入力部と、
前記暗号化データC=(C1,C2,…,C|M|/r)に含まれる前記暗号化データC|M|/rとcビットの前記タグTとを連結した値を復号ステートSの初期値S|A|/r+|M|/rとし、復号ステートS|A|/r+|M|/rのキャパシティ部分SC,|A|/r+|M|/rとcビットの前記秘密鍵Kとの排他的論理和SC,|A|/r+|M|/rxor Kを求める第三排他的論理和部と、
暗号化する際に用いた前記置換fの逆関数をf-1とし、前記復号ステートS|A|/r+|M|/rのキャパシティ部分SC,|A|/r+|M|/rを前記排他的論理和SC,|A|/r+|M|/rxor Kに置換え、置換えたビット列を逆関数f-1を用いて置換し、置換したビット列を復号ステートS|A|/r+|M|/r-1として求める第三置換部と、
m=1,2,…,|M|/r-1において、復号ステートS|A|/r+mのレート部分SR,|A|/r+mと、暗号化データCmとの排他的論理和SR,|A|/r+m xor Cmを復号データMm+1として出力する第四排他的論理和部と、
m=1,2,…,|M|/r-1において、前記復号ステートS|A|/r+mのレート部分SR,|A|/r+mを暗号化データCmに置換え、置換えたビット列を前記逆関数f-1を用いて置換し、置換したビット列を復号ステートS|A|/r+m-1として求める第四置換部と、
復号ステートS|A|/rのレート部分SR,|A|/rと、復元情報RIとの排他的論理和SR,|A|/r xor RIを復号データM1,Dとして出力する第五排他的論理和部と、
復号ステートS|A|/rのキャパシティ部分SC,|A|/rの所定のビットを反転させる境界除去部と、
前記復号ステートS|A|/rのレート部分SR,|A|/rを前記復元情報RIに置換え、前記復号ステートS|A|/rのキャパシティ部分SC,|A|/rの所定のビットを反転させたビット列を逆関数f-1を用いて置換し、置換したビット列を復号ステートS|A|/r-1として求める第五置換部と、
前記値A'を|A'|/r個に分割して得られる各値をA'nとし、n=1,2,…,|A|/r-1において、復号ステートSnのレート部分SR,nと、前記値A'nとの排他的論理和SR,n xor A'nを求める第六排他的論理和部と、
n=1,2,…,|A|/r-1において、前記復号ステートSnのレート部分SR,nを排他的論理和SR,n xor A'nに置換え、置換えたビット列を逆関数f-1を用いて置換し、置換したビット列を復号ステートSn-1として求める第六置換部と、
復号ステートS0のキャパシティ部分SC,0と秘密鍵Kとが一致するか否かによりメッセージ認証を行い、一致する場合には、予め定めたビット列と復号ステートS0のレート部分SR,0との排他的論理和を値Arとして出力する認証部とを含み、
上記置換fは、ランダム置換と区別不能な置換である
追加データ付き認証暗号システム。
An authenticated encryption system with additional data that includes an encrypted data generator and a decrypted data generator.
The encrypted data generator is
The bit length of the private key K is c-bit, the b-bit information including the rate part of r-bit and the capacity part of c-bit is the state, and the bit length of additional data A is | A |.
A dividing part that divides the additional data A into a value A r that includes r-bit data to be concealed and a value A'that is not concealed for (| A | -r) bits.
Let n = 1,2, ..., | A | / r, and let each value obtained by dividing the additional data A into | A | / r pieces be A n, and concatenate the predetermined bit string and the private key K. Let the value obtained be the initial value S 0 of the encryption state, and the b-bit encryption state S n-1 rate portion S R, the exclusive OR with the value A n for the r bits of n-1 S R, a first exclusive OR unit for obtaining the n-1 xor a n,
Let the function that replaces the bit string d of the b bits with the bit string e of the b bits be the permutation f, and the rate part S R, n-1 of the encryption state S n-1 is the exclusive OR S R, n-1 xor. Replace with A n , replace the replaced bit string with the replacement f, find the replaced bit string as the encryption state S n , and set the rate part S R, | A | / r of the encryption state S | A | / r. The first replacement part that is output as the restoration information RI,
Capacity part of encryption state S | A | / r A boundary setting part that inverts a predetermined bit of S C, | A | / r,
The bit length of the message M is | M |, m = 1,2,…, | M | / r, and each value obtained by dividing the message M into | M | / r is M m , b. Bit encryption state S | A | / r + m-1 rate portion S R, | A | / r + m-1 exclusive OR with message M m for r bits S R, | A | / r + m-1 xor M m The second exclusive OR part,
The rate portion S R, | A | / r + m-1 of the encryption state S | A | / r + m-1 is the exclusive OR S R, | A | / r + m-1 xor M m. the replacement, the bit string replacing substituted with a substituent f, and the bit string obtained by replacing the encrypted state S | determined as / r + m, the encrypted state S | | a a | / r + r of rate portion of the m bits and the encrypted data C m, | M | / r pieces of encrypted data C including the encrypted data C m = (C 1, C 2, ..., C | M | / r) second replacement for outputting Department and
A tag generator that outputs the exclusive OR of the private key K and the capacity part S C, | A | / r + | M | / r of the encryption state S | A | / r + | M | / r as the tag T. When,
Includes an output unit that outputs the encrypted data C, the tag T, the value A', and the restoration information RI.
The decoded data generator is
An input unit that receives the encrypted data C, the tag T, the value A', and the restoration information RI.
The decryption state is the value obtained by concatenating the encrypted data C | M | / r contained in the encrypted data C = (C 1 , C 2 , ..., C | M | / r) and the tag T of the c bit. The initial value of S is S | A | / r + | M | / r, and the capacity portion of the decoding state S | A | / r + | M | / r S C, | A | / r + | M | / r and c bits Exclusive OR with the private key K S C, | A | / r + | M | / r xor K
The inverse of the substitution f used when encrypting and f -1, the decoded state S | A | / r + | M | / r capacity portion S C of, | A | / r + | M | / r Is replaced with the exclusive OR S C, | A | / r + | M | / r xor K, the replaced bit string is replaced with the inverse function f -1 , and the replaced bit string is in the decoding state S | A | / The third permutation part obtained as r + | M | / r-1 and
m = 1,2, ..., | M | / In r-1, the decoding state S | A | / r + m of rate portion S R, | A | / r + and m, exclusive of the encrypted data C m OR , | A | / r + m xor C m is output as decoded data M m + 1 , and the fourth exclusive OR part,
In m = 1,2, ..., | M | / r-1, the rate portion S R, | A | / r + m of the decryption state S | A | / r + m is replaced with the encrypted data C m. The fourth substitution part, in which the replaced bit string is replaced by using the inverse function f -1 , and the replaced bit string is obtained as the decoding state S | A | / r + m-1,
The exclusive OR of the rate part S R, | A | / r of the decoding state S | A | / r and the restoration information RI S R, | A | / r xor RI is output as the decoding data M 1, D. With the 5th exclusive OR part,
Demarcation state S | A | / r capacity portion S C, | A | / r demarcation section that inverts a given bit,
Said decoding state S | A | / r of rate portion S R, | A | / r to replace the restoration information RI, the decoded state S | A | / r capacity portion S C of, | A | / r of The fifth substitution part, in which the bit string obtained by inverting a predetermined bit is replaced by using the inverse function f -1 , and the replaced bit string is obtained as the decoding state S | A | / r-1,
'The | A' | the value A / r pieces each value obtained by dividing the the A 'n, n = 1,2, ..., | A | In / r-1, rate portion of the decoding state S n S R, and n, 'xOR S R and n, n xor a' the value a and the sixth exclusive OR unit for obtaining the n,
n = 1,2, ..., | A | / In r-1, the decoding state S n of the rate portion S R, n exclusive OR S R, n xor A 'replaced by n, the bit string replacing reverse The sixth substitution part, which is replaced by using the function f -1 and the replaced bit string is obtained as the decoding state S n-1,
Message authentication is performed based on whether or not the capacity portion S C, 0 of the decryption state S 0 and the private key K match, and if they match, the predetermined bit string and the rate portion S R of the decryption state S 0, 0 and an authentication unit for outputting an exclusive OR as the value a r of viewing including,
The above substitution f is a substitution indistinguishable from a random substitution ,
Authenticated encryption system with additional data.
暗号化データ生成装置と復号データ生成装置とを含む追加データ付き認証暗号システムであって、
前記暗号化データ生成装置は、
秘密鍵Kのビット長をcビットとし、rビットのレート部分とcビットのキャパシティ部分とを含むbビットの情報をステートとし、追加データAのビット長を|A|とし、
追加データAをP×rビットの秘匿対象のデータを含む値Ar=(Ar 1,Ar 2,…,Ar P)と(|A|-P×r)ビット分の秘匿対象ではない値A'=(A'1,A'2,…,A'|A|/r-P)とに分割する分割部と、
n=1,2,…,|A|/rとし、前記追加データAを|A|/r個に分割して得られる各値をAnとし、予め定めたビット列と秘密鍵Kとを連結した値を暗号化ステートの初期値S0とし、bビットの暗号化ステートSn-1のレート部分SR,n-1のrビットに対し、値Anとの排他的論理和SR,n-1 xor Anを求め、前記値Anが秘匿対象のデータAr 2,Ar 3,…,Ar Pの場合、ステートSn-1のレート部分SR,n-1を復元情報RI1,RI2,…,RIP-1として出力する第一排他的論理和部と、
bビットのビット列dをbビットのビット列eに置換する関数を置換fとし、前記暗号化ステートSn-1のレート部分SR,n-1を前記排他的論理和SR,n-1 xor Anに置換え、置換えたビット列を置換fを用いて置換し、置換したビット列を暗号化ステートSnとして求め、暗号化ステートS|A|/rのレート部分SR,|A|/rを復元情報RIPとして出力する第一置換部と、
暗号化ステートS|A|/rのキャパシティ部分SC,|A|/rの所定のビットを反転させる境界設定部と、
メッセージMのビット長を|M|とし、m=1,2,…,|M|/rとし、前記メッセージMを|M|/r個に分割して得られる各値をMmとし、bビットの暗号化ステートS|A|/r+m-1のレート部分SR,|A|/r+m-1のrビットに対し、メッセージMmとの排他的論理和SR,|A|/r+m-1xor Mmを求める第二排他的論理和部と、
前記暗号化ステートS|A|/r+m-1のレート部分SR,|A|/r+m-1を前記排他的論理和SR,|A|/r+m-1xor Mmに置換え、置換えたビット列を置換fを用いて置換し、置換したビット列を暗号化ステートS|A|/r+mとして求め、前記暗号化ステートS|A|/r+mのレート部分のrビットを暗号化データCmとし、|M|/r個の暗号化データCmを含む暗号化データC=(C1,C2,…,C|M|/r)を出力する第二置換部と、
暗号化ステートS|A|/r+|M|/rのキャパシティ部分SC,|A|/r+|M|/rと秘密鍵Kとの排他的論理和をタグTとして出力するタグ生成部と、
前記暗号化データCと前記タグTと前記値A'と復元情報RI=(RI1,RI2,…,RIP)とを出力する出力部を含み、
前記復号データ生成装置は、
前記暗号化データCと前記タグTと前記値A'と前記復元情報RIとを受け取る入力部と、
前記暗号化データC=(C1,C2,…,C|M|/r)に含まれる前記暗号化データC|M|/rとcビットの前記タグTとを連結した値を復号ステートSの初期値S|A|/r+|M|/rとし、復号ステートS|A|/r+|M|/rのキャパシティ部分SC,|A|/r+|M|/rとcビットの前記秘密鍵Kとの排他的論理和SC,|A|/r+|M|/rxor Kを求める第三排他的論理和部と、
暗号化する際に用いた前記置換fの逆関数をf-1とし、前記復号ステートS|A|/r+|M|/rのキャパシティ部分SC,|A|/r+|M|/rを前記排他的論理和SC,|A|/r+|M|/rxor Kに置換え、置換えたビット列を逆関数f-1を用いて置換し、置換したビット列を復号ステートS|A|/r+|M|/r-1として求める第三置換部と、
m=1,2,…,|M|/r-1において、復号ステートS|A|/r+mのレート部分SR,|A|/r+mと、暗号化データCmとの排他的論理和SR,|A|/r+m xor Cmを復号データMm+1として出力する第四排他的論理和部と、
m=1,2,…,|M|/r-1において、前記復号ステートS|A|/r+mのレート部分SR,|A|/r+mを暗号化データCmに置換え、置換えたビット列を前記逆関数f-1を用いて置換し、置換したビット列を復号ステートS|A|/r+m-1として求める第四置換部と、
復号ステートS|A|/rのレート部分SR,|A|/rと、復元情報RIPとの排他的論理和SR,|A|/r xor RIPを復号データM1,Dとして出力する第五排他的論理和部と、
復号ステートS|A|/rのキャパシティ部分SC,|A|/rの所定のビットを反転させる境界除去部と、
前記復号ステートS|A|/rのレート部分SR,|A|/rを前記復元情報RIPに置換え、前記復号ステートS|A|/rのキャパシティ部分SC,|A|/rの所定のビットを反転させたビット列を逆関数f-1を用いて置換し、置換したビット列を復号ステートS|A|/r-1として求める第五置換部と、
前記値A'を|A'|/r個に分割して得られる各値をA'qとし、q=1,2,…,|A|/r-P及びp=1,2,…,P-1において、(i)値A'qを入力としたとき、復号ステートSnのレート部分SR,nと、前記値A'qとの排他的論理和SR,n xor A'qを求め、(ii)復元情報RIpを入力としたとき、復号ステートSnのレート部分SR,nのrビットに対し、復元情報RIpとの排他的論理和SR,n xor RIpを求め、排他的論理和SR,nxor RIpを秘匿対象のデータAp+1として出力する第六排他的論理和部と、
n=1,2,…,|A|/r-1において、前記復号ステートSnのレート部分SR,nを(i)排他的論理和SR,n xor A'q、または、(ii)復元情報RIpに置換え、置換えたビット列を逆関数f-1を用いて置換し、置換したビット列を復号ステートSn-1として求める第六置換部と、
復号ステートS0のキャパシティ部分SC,0と秘密鍵Kとが一致するか否かによりメッセージ認証を行い、一致する場合には、予め定めたビット列と復号ステートS0のレート部分SR,0との排他的論理和を値Ar 1として出力する認証部とを含み、
上記置換fは、ランダム置換と区別不能な置換である
追加データ付き認証暗号システム。
An authenticated encryption system with additional data that includes an encrypted data generator and a decrypted data generator.
The encrypted data generator is
The bit length of the private key K is c-bit, the b-bit information including the rate part of r-bit and the capacity part of c-bit is the state, and the bit length of additional data A is | A |.
The additional data A is the value A r = (A r 1 , Ar 2 ,…, Ar P ) and (| A | -P × r) bits that include the data to be concealed in the P × r bits. no value a '= (a' 1, a '2, ..., a' | / rP | a) and a dividing portion for dividing into,
Let n = 1,2, ..., | A | / r, and let each value obtained by dividing the additional data A into | A | / r pieces be A n, and concatenate the predetermined bit string and the private key K. Let the value obtained be the initial value S 0 of the encryption state, and the b-bit encryption state S n-1 rate portion S R, the exclusive OR with the value A n for the r bits of n-1 S R, Find n-1 xor A n, and if the value A n is the data A r 2 , A r 3 , ..., A r P to be concealed, restore the rate part S R, n-1 of the state S n-1. Information RI 1 , RI 2 ,…, RI P-1 output as the first exclusive OR part,
Let the function that replaces the bit string d of the b bits with the bit string e of the b bits be the permutation f, and the rate part S R, n-1 of the encryption state S n-1 is the exclusive OR S R, n-1 xor. Replace with A n , replace the replaced bit string with the replacement f, find the replaced bit string as the encryption state S n , and set the rate part S R, | A | / r of the encryption state S | A | / r. a first replacement unit for outputting a restoration information RI P,
Capacity part of encryption state S | A | / r A boundary setting part that inverts a predetermined bit of S C, | A | / r,
The bit length of the message M is | M |, m = 1,2,…, | M | / r, and each value obtained by dividing the message M into | M | / r is M m , b. Bit encryption state S | A | / r + m-1 rate portion S R, | A | / r + m-1 exclusive OR with message M m for r bits S R, | A | / r + m-1 xor M m The second exclusive OR part,
The rate portion S R, | A | / r + m-1 of the encryption state S | A | / r + m-1 is the exclusive OR S R, | A | / r + m-1 xor M m. the replacement, the bit string replacing substituted with a substituent f, and the bit string obtained by replacing the encrypted state S | determined as / r + m, the encrypted state S | | a a | / r + r of rate portion of the m bits and the encrypted data C m, | M | / r pieces of encrypted data C including the encrypted data C m = (C 1, C 2, ..., C | M | / r) second replacement for outputting Department and
A tag generator that outputs the exclusive OR of the private key K and the capacity part S C, | A | / r + | M | / r of the encryption state S | A | / r + | M | / r as the tag T. When,
It includes an output unit that outputs the encrypted data C, the tag T, the value A', and the restoration information RI = (RI 1 , RI 2 , ..., RI P).
The decoded data generator is
An input unit that receives the encrypted data C, the tag T, the value A', and the restoration information RI.
The decryption state is the value obtained by concatenating the encrypted data C | M | / r contained in the encrypted data C = (C 1 , C 2 , ..., C | M | / r) and the tag T of the c bit. The initial value of S is S | A | / r + | M | / r, and the capacity portion of the decoding state S | A | / r + | M | / r S C, | A | / r + | M | / r and c bits Exclusive OR with the private key K S C, | A | / r + | M | / r xor K
The inverse of the substitution f used when encrypting and f -1, the decoded state S | A | / r + | M | / r capacity portion S C of, | A | / r + | M | / r Is replaced with the exclusive OR S C, | A | / r + | M | / r xor K, the replaced bit string is replaced with the inverse function f -1 , and the replaced bit string is in the decoding state S | A | / The third permutation part obtained as r + | M | / r-1 and
m = 1,2, ..., | M | / In r-1, the decoding state S | A | / r + m of rate portion S R, | A | / r + and m, exclusive of the encrypted data C m OR , | A | / r + m xor C m is output as decoded data M m + 1 , and the fourth exclusive OR part,
In m = 1,2, ..., | M | / r-1, the rate portion S R, | A | / r + m of the decryption state S | A | / r + m is replaced with the encrypted data C m. The fourth substitution part, in which the replaced bit string is replaced by using the inverse function f -1 , and the replaced bit string is obtained as the decoding state S | A | / r + m-1,
Decoding state S | A | / r of rate portion S R, | A | and / r, exclusive S R of the restoration information RI P, | a / r xor RI P decoded data M 1, D | A The fifth exclusive OR part to be output and
Demarcation state S | A | / r capacity portion S C, | A | / r demarcation section that inverts a given bit,
Said decoding state S | A | / r of rate portion S R, | A | / r to replace the restoration information RI P, the decoded state S | A | / capacity portion r S C, | A | / r The fifth substitution part, in which the bit string obtained by inverting the predetermined bits of is replaced by using the inverse function f -1 , and the replaced bit string is obtained as the decoding state S | A | / r-1,
'The | A' | the value A / r pieces each value obtained by dividing the the A 'q, q = 1,2, ..., | A | / rP and p = 1,2, ..., P- in 1, (i) value a 'when the enter q, rate portion S R of the decoding state S n, and n, the value a' calculated exclusive OR S R and q, the n xor a 'q , (Ii) When the restoration information RI p is input, the exclusive OR S R, n xor RI p with the restoration information RI p is obtained for the r bits of the rate part S R, n of the decoding state S n. , Exclusive OR S R, n xor RI p is output as data A p + 1 to be concealed.
n = 1,2, ..., | A | / In r-1, the decoding state S n of the rate portion S R, the n (i) XOR S R, n xor A 'q , or, (ii ) The sixth substitution part, which is replaced with the restoration information RI p , the replaced bit string is replaced by using the inverse function f -1 , and the replaced bit string is obtained as the decoding state S n-1.
Message authentication is performed based on whether or not the capacity portion S C, 0 of the decryption state S 0 and the private key K match, and if they match, the predetermined bit string and the rate portion S R of the decryption state S 0, 0 and outputs the exclusive OR as the value a r 1 viewed including the authentication unit and,
The above substitution f is a substitution indistinguishable from a random substitution ,
Authenticated encryption system with additional data.
請求項1又は2に記載された暗号化データ生成装置。 The encrypted data generator according to claim 1 or 2. 請求項1又は2に記載された復号データ生成装置。 The decrypted data generator according to claim 1 or 2. 暗号化データ生成装置と復号データ生成装置とを用いた追加データ付き認証暗号方法であって、
前記暗号化データ生成装置が、
秘密鍵Kのビット長をcビットとし、rビットのレート部分とcビットのキャパシティ部分とを含むbビットの情報をステートとし、追加データAのビット長を|A|とし、
追加データAをrビットの秘匿対象のデータを含む値Arと(|A|-r)ビット分の秘匿対象ではない値A'とに分割する分割ステップと、
n=1,2,…,|A|/rとし、前記追加データAを|A|/r個に分割して得られる各値をAnとし、予め定めたビット列と秘密鍵Kとを連結した値を暗号化ステートの初期値S0とし、bビットの暗号化ステートSn-1のレート部分SR,n-1のrビットに対し、値Anとの排他的論理和SR,n-1 xor Anを求める第一排他的論理和ステップと、
bビットのビット列dをbビットのビット列eに置換する関数を置換fとし、前記暗号化ステートSn-1のレート部分SR,n-1を前記排他的論理和SR,n-1 xor Anに置換え、置換えたビット列を置換fを用いて置換し、置換したビット列を暗号化ステートSnとして求め、暗号化ステートS|A|/rのレート部分SR,|A|/rを復元情報RIとして出力する第一置換ステップと、
暗号化ステートS|A|/rのキャパシティ部分SC,|A|/rの所定のビットを反転させる境界設定ステップと、
メッセージMのビット長を|M|とし、m=1,2,…,|M|/rとし、前記メッセージMを|M|/r個に分割して得られる各値をMmとし、bビットの暗号化ステートS|A|/r+m-1のレート部分SR,|A|/r+m-1のrビットに対し、メッセージMmとの排他的論理和SR,|A|/r+m-1xor Mmを求める第二排他的論理和ステップと、
前記暗号化ステートS|A|/r+m-1のレート部分SR,|A|/r+m-1を前記排他的論理和SR,|A|/r+m-1xor Mmに置換え、置換えたビット列を置換fを用いて置換し、置換したビット列を暗号化ステートS|A|/r+mとして求め、前記暗号化ステートS|A|/r+mのレート部分のrビットを暗号化データCmとし、|M|/r個の暗号化データCmを含む暗号化データC=(C1,C2,…,C|M|/r)を出力する第二置換ステップと、
暗号化ステートS|A|/r+|M|/rのキャパシティ部分SC,|A|/r+|M|/rと秘密鍵Kとの排他的論理和をタグTとして出力するタグ生成ステップと、
前記暗号化データCと前記タグTと前記値A'と前記復元情報RIとを出力する出力ステップを実行し、
前記復号データ生成装置が、
前記暗号化データCと前記タグTと前記値A'と前記復元情報RIとを受け取る入力ステップと、
前記暗号化データC=(C1,C2,…,C|M|/r)に含まれる前記暗号化データC|M|/rとcビットの前記タグTとを連結した値を復号ステートSの初期値S|A|/r+|M|/rとし、復号ステートS|A|/r+|M|/rのキャパシティ部分SC,|A|/r+|M|/rとcビットの前記秘密鍵Kとの排他的論理和SC,|A|/r+|M|/rxor Kを求める第三排他的論理和ステップと、
暗号化する際に用いた前記置換fの逆関数をf-1とし、前記復号ステートS|A|/r+|M|/rのキャパシティ部分SC,|A|/r+|M|/rを前記排他的論理和SC,|A|/r+|M|/rxor Kに置換え、置換えたビット列を逆関数f-1を用いて置換し、置換したビット列を復号ステートS|A|/r+|M|/r-1として求める第三置換ステップと、
m=1,2,…,|M|/r-1において、復号ステートS|A|/r+mのレート部分SR,|A|/r+mと、暗号化データCmとの排他的論理和SR,|A|/r+m xor Cmを復号データMm+1として出力する第四排他的論理和ステップと、
m=1,2,…,|M|/r-1において、前記復号ステートS|A|/r+mのレート部分SR,|A|/r+mを暗号化データCmに置換え、置換えたビット列を前記逆関数f-1を用いて置換し、置換したビット列を復号ステートS|A|/r+m-1として求める第四置換ステップと、
復号ステートS|A|/rのレート部分SR,|A|/rと、復元情報RIとの排他的論理和SR,|A|/r xor RIを復号データM1,Dとして出力する第五排他的論理和ステップと、
復号ステートS|A|/rのキャパシティ部分SC,|A|/rの所定のビットを反転させる境界除去ステップと、
前記復号ステートS|A|/rのレート部分SR,|A|/rを前記復元情報RIに置換え、前記復号ステートS|A|/rのキャパシティ部分SC,|A|/rの所定のビットを反転させたビット列を逆関数f-1を用いて置換し、置換したビット列を復号ステートS|A|/r-1として求める第五置換ステップと、
前記値A'を|A'|/r個に分割して得られる各値をA'nとし、n=1,2,…,|A|/r-1において、復号ステートSnのレート部分SR,nと、前記値A'nとの排他的論理和SR,n xor A'nを求める第六排他的論理和ステップと、
n=1,2,…,|A|/r-1において、前記復号ステートSnのレート部分SR,nを排他的論理和SR,n xor A'nに置換え、置換えたビット列を逆関数f-1を用いて置換し、置換したビット列を復号ステートSn-1として求める第六置換ステップと、
復号ステートS0のキャパシティ部分SC,0と秘密鍵Kとが一致するか否かによりメッセージ認証を行い、一致する場合には、予め定めたビット列と復号ステートS0のレート部分SR,0との排他的論理和を値Arとして出力する認証ステップとを実行し、
上記置換fは、ランダム置換と区別不能な置換である
追加データ付き認証暗号方法。
An authentication encryption method with additional data using an encrypted data generator and a decrypted data generator.
The encrypted data generator
The bit length of the private key K is c-bit, the b-bit information including the rate part of r-bit and the capacity part of c-bit is the state, and the bit length of additional data A is | A |.
A split step that divides the additional data A into a value A r that contains r bits of data to be hidden and a value A'that is not hidden by (| A | -r) bits.
Let n = 1,2, ..., | A | / r, and let each value obtained by dividing the additional data A into | A | / r pieces be A n, and concatenate the predetermined bit string and the private key K. Let the value obtained be the initial value S 0 of the encryption state, and the b-bit encryption state S n-1 rate portion S R, the exclusive OR with the value A n for the r bits of n-1 S R, a first exclusive OR step of obtaining n-1 xor a n,
Let the function that replaces the bit string d of the b bits with the bit string e of the b bits be the permutation f, and the rate part S R, n-1 of the encryption state S n-1 is the exclusive OR S R, n-1 xor. Replace with A n , replace the replaced bit string with the replacement f, find the replaced bit string as the encryption state S n , and set the rate part S R, | A | / r of the encryption state S | A | / r. The first replacement step to be output as the restore information RI, and
A demarcation step that inverts a given bit of the encryption state S | A | / r capacity portion S C, | A | / r, and
The bit length of the message M is | M |, m = 1,2,…, | M | / r, and each value obtained by dividing the message M into | M | / r is M m , b. Bit encryption state S | A | / r + m-1 rate portion S R, | A | / r + m-1 exclusive OR with message M m for r bits S R, | A | / r + m-1 xor M m The second exclusive OR step and
The rate portion S R, | A | / r + m-1 of the encryption state S | A | / r + m-1 is the exclusive OR S R, | A | / r + m-1 xor M m. the replacement, the bit string replacing substituted with a substituent f, and the bit string obtained by replacing the encrypted state S | determined as / r + m, the encrypted state S | | a a | / r + r of rate portion of the m bits and the encrypted data C m, | M | / r pieces of encrypted data C including the encrypted data C m = (C 1, C 2, ..., C | M | / r) second replacement for outputting Steps and
Tag generation step that outputs the exclusive OR of the private key K and the capacity part S C, | A | / r + | M | / r of the encryption state S | A | / r + | M | / r as the tag T. When,
The output step of outputting the encrypted data C, the tag T, the value A', and the restoration information RI is executed.
The decoded data generator
An input step for receiving the encrypted data C, the tag T, the value A', and the restoration information RI.
The decryption state is the value obtained by concatenating the encrypted data C | M | / r contained in the encrypted data C = (C 1 , C 2 , ..., C | M | / r) and the tag T of the c bit. The initial value of S is S | A | / r + | M | / r, and the capacity portion of the decoding state S | A | / r + | M | / r S C, | A | / r + | M | / r and c bits Exclusive OR with the private key K S C, | A | / r + | M | / r xor K
The inverse of the substitution f used when encrypting and f -1, the decoded state S | A | / r + | M | / r capacity portion S C of, | A | / r + | M | / r Is replaced with the exclusive OR S C, | A | / r + | M | / r xor K, the replaced bit string is replaced with the inverse function f -1 , and the replaced bit string is in the decoding state S | A | / The third substitution step obtained as r + | M | / r-1 and
m = 1,2, ..., | M | / In r-1, the decoding state S | A | / r + m of rate portion S R, | A | / r + and m, exclusive of the encrypted data C m OR The fourth exclusive OR step that outputs S R, | A | / r + m xor C m as decrypted data M m + 1 and
In m = 1,2, ..., | M | / r-1, the rate portion S R, | A | / r + m of the decryption state S | A | / r + m is replaced with the encrypted data C m. The fourth replacement step, in which the replaced bit string is replaced by using the inverse function f -1 , and the replaced bit string is obtained as the decoding state S | A | / r + m-1,
The exclusive OR of the rate part S R, | A | / r of the decoding state S | A | / r and the restoration information RI S R, | A | / r xor RI is output as the decoding data M 1, D. The fifth exclusive OR step and
A demarcation step that inverts a given bit of the capacity portion S C, | A | / r of the decryption state S | A | / r,
Said decoding state S | A | / r of rate portion S R, | A | / r to replace the restoration information RI, the decoded state S | A | / r capacity portion S C of, | A | / r of The fifth substitution step, in which the bit string obtained by inverting a predetermined bit is replaced by using the inverse function f -1 , and the replaced bit string is obtained as the decoding state S | A | / r-1,
'The | A' | the value A / r pieces each value obtained by dividing the the A 'n, n = 1,2, ..., | A | In / r-1, rate portion of the decoding state S n S R, and n, 'xOR S R and n, n xor a' the value a and the sixth exclusive OR step of determining n,
n = 1,2, ..., | A | / In r-1, the decoding state S n of the rate portion S R, n exclusive OR S R, n xor A 'replaced by n, the bit string replacing reverse The sixth replacement step of substituting using the function f -1 and finding the replaced bit string as the decoding state S n-1.
Message authentication is performed based on whether or not the capacity portion S C, 0 of the decryption state S 0 and the private key K match, and if they match, the predetermined bit string and the rate portion S R of the decryption state S 0, Execute the authentication step that outputs the exclusive OR with 0 as the value Ar ,
The above substitution f is a substitution indistinguishable from a random substitution ,
Authenticated encryption method with additional data.
請求項5に記載された前記暗号化データ生成装置が、前記分割ステップと、前記第一排他的論理和ステップと、前記第一置換ステップと、前記境界設定ステップと、前記第二排他的論理和ステップと、前記第二置換ステップと、前記タグ生成ステップと、前記出力ステップを実行する、 The encrypted data generator according to claim 5 has the division step, the first exclusive OR step, the first replacement step, the boundary setting step, and the second exclusive OR step. Execute the step, the second replacement step, the tag generation step, and the output step.
暗号化データ生成方法。 Encrypted data generation method.
請求項5に記載された前記復号データ生成装置が、前記入力ステップと、前記第三排他的論理和ステップと、前記第三置換ステップと、前記第四排他的論理和ステップと、前記第四置換ステップと、前記第五排他的論理和ステップと、前記境界除去ステップと、前記第五置換ステップと、前記第六排他的論理和ステップと、前記第六置換ステップと、前記認証ステップとを実行する、 The decoding data generator according to claim 5 has the input step, the third exclusive OR step, the third replacement step, the fourth exclusive OR step, and the fourth replacement. The step, the fifth exclusive OR step, the boundary removal step, the fifth replacement step, the sixth exclusive OR step, the sixth replacement step, and the authentication step are executed. ,
復号データ生成方法。 Decrypted data generation method.
請求項の暗号化データ生成装置として、コンピュータを機能させるためのプログラム。 A program for operating a computer as the encrypted data generation device of claim 3. 請求項の復号データ生成装置として、コンピュータを機能させるためのプログラム。 A program for operating a computer as the decryption data generation device of claim 4.
JP2017134880A 2017-07-10 2017-07-10 Cryptographic data generator, decryption data generator, authenticated cryptosystem with additional data, its method, and program Active JP6881112B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017134880A JP6881112B2 (en) 2017-07-10 2017-07-10 Cryptographic data generator, decryption data generator, authenticated cryptosystem with additional data, its method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017134880A JP6881112B2 (en) 2017-07-10 2017-07-10 Cryptographic data generator, decryption data generator, authenticated cryptosystem with additional data, its method, and program

Publications (2)

Publication Number Publication Date
JP2019015919A JP2019015919A (en) 2019-01-31
JP6881112B2 true JP6881112B2 (en) 2021-06-02

Family

ID=65356516

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017134880A Active JP6881112B2 (en) 2017-07-10 2017-07-10 Cryptographic data generator, decryption data generator, authenticated cryptosystem with additional data, its method, and program

Country Status (1)

Country Link
JP (1) JP6881112B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2014297854B2 (en) * 2013-08-02 2016-12-22 Nec Corporation Authenticated encryption device, authenticated encryption method, and program for authenticated encryption
JP6273226B2 (en) * 2015-02-26 2018-01-31 日本電信電話株式会社 Encryption system, authentication system, encryption device, decryption device, authenticator generation device, verification device, encryption method, authentication method

Also Published As

Publication number Publication date
JP2019015919A (en) 2019-01-31

Similar Documents

Publication Publication Date Title
US10536272B2 (en) Encryption system with double key wrapping
CN106888080B (en) Protecting white-box feistel network implementations from false attacks
WO2001078298A1 (en) Information processing system and method
JP5198539B2 (en) Storage device, access device and program
JP6735926B2 (en) Encryption device, decryption device, encryption method, decryption method, encryption program, and decryption program
JP6881111B2 (en) Cryptographic data generator, decryption data generator, authenticated cryptosystem with additional data, its method, and program
JP2006311383A (en) Data managing method, data management system and data managing device
JP4843563B2 (en) Information recording medium security method, information processing apparatus, and program
JP6273226B2 (en) Encryption system, authentication system, encryption device, decryption device, authenticator generation device, verification device, encryption method, authentication method
JP2016075765A (en) Authentication encryption device, authentication decryption device, and program therefor
JP5512559B2 (en) ENCRYPTION DEVICE, DECRYPTION DEVICE, ENCRYPTION SYSTEM, ENCRYPTION METHOD, PROGRAM
JP4843587B2 (en) Information recording medium security method, information processing apparatus, program, and recording medium
JP6881112B2 (en) Cryptographic data generator, decryption data generator, authenticated cryptosystem with additional data, its method, and program
JP6830867B2 (en) Authenticated encryption system with additional data, decryption device, authenticated encryption method with additional data, and program
JP7428239B2 (en) Memory processing device, memory verification device, memory update device, memory protection system, method and program
JP7012920B2 (en) Cryptographic device, decryption device, encryption method, decryption method, encryption program and decryption program
JP6723958B2 (en) Encrypted data generation device, decrypted data generation device, authentication encryption system with additional data, method thereof, and program
JP6732698B2 (en) Authentication encryption system with additional data, encryption device, decryption device, authentication encryption method with additional data, and program
JP6830868B2 (en) Authenticated encryption system with additional data, decryption device, authenticated encryption method with additional data, and program
JP4587452B2 (en) Multiple key encryption apparatus, multiple key decryption apparatus, multiple key encryption system and program.
JP4829864B2 (en) Information recording medium security method, program, and recording medium
Rawat et al. Hyper-Space: Blockchain-based Decentralized Cloud Storage System
JP5268413B2 (en) Disclosure restriction processing apparatus, data processing system, and program
Ramya Proficient Public Attestation of Data Veracity for Storage of Cloud Across Dual Protection
JP2003345243A (en) Convolution encryption method, convolution encryption system, and convolution encryption program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190819

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200608

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200707

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200831

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210126

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210319

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20210406

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210419

R150 Certificate of patent or registration of utility model

Ref document number: 6881112

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150