JP2864813B2 - Encryption device and decryption device - Google Patents
Encryption device and decryption deviceInfo
- Publication number
- JP2864813B2 JP2864813B2 JP3274855A JP27485591A JP2864813B2 JP 2864813 B2 JP2864813 B2 JP 2864813B2 JP 3274855 A JP3274855 A JP 3274855A JP 27485591 A JP27485591 A JP 27485591A JP 2864813 B2 JP2864813 B2 JP 2864813B2
- Authority
- JP
- Japan
- Prior art keywords
- predetermined
- output
- information
- numerical value
- input
- 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.)
- Expired - Lifetime
Links
- 238000000034 method Methods 0.000 claims description 44
- 238000006243 chemical reaction Methods 0.000 claims description 16
- 238000010586 diagram Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 101100288387 Caenorhabditis elegans lab-1 gene Proteins 0.000 description 1
- 229910002056 binary alloy Inorganic materials 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 244000144985 peep Species 0.000 description 1
Description
【0001】[0001]
【産業上の利用分野】本発明は、通信システムや計算機
システムにおいて採用される暗号化装置及び復号化装置
に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an encryption device and a decryption device used in a communication system or a computer system.
【0002】[0002]
【従来の技術】通信システムや計算機システムでは、許
可されていない者が不正に情報を取得する等を防止する
ため、情報を暗号に変換(暗号化)し、それを元の情報
に復元(復号化)することが行われているが、この暗号
化・復号化法は、端的に言えば入力された「暗号化する
情報(元情報)」または「暗号化されている情報(暗
号)」に予め決められた演算を施し、その演算結果を予
め与えられた数値で割り算したときの余りを「暗号」ま
たは「元情報」とする方式である。2. Description of the Related Art In a communication system or a computer system, in order to prevent an unauthorized person from illegally acquiring information, the information is converted into encryption (encryption) and the information is restored (decrypted) to the original information. In short, this encryption / decryption method is based on the input “information to be encrypted (original information)” or “encrypted information (encryption)”. In this method, a predetermined operation is performed, and the remainder obtained by dividing the operation result by a predetermined numerical value is used as “encryption” or “original information”.
【0003】この種の暗号化・復号化法として従来広く
知られ利用されている代表的なものにRSA法がある。
これは、1978年にリベスト、シャミア、エイデルマ
ンの3人が提案したもので(R.L.Rivest,A.Shamirand
L.Addleman,“A Method forObtaining Digital Signat
ures and Public-key Cryptosystems ,”Comm.ACM,Vo
l.21,No.2,pp.120-126,1978)、提案者の頭文字を取って
RSA法と命名されたものである。なお、このRSA法
に関しては、例えば書籍「情報と符号の理論」(宮川、
原島、今井共著、岩波書店発刊、昭和58年)の第10
章に平易な解説がある。[0003] As a typical encryption / decryption method of this kind, there is an RSA method that is widely known and used.
This was proposed by Rivest, Shamir and Edelman in 1978 (RLRivest, A. Shamirand
L. Addleman, “A Method for Obtaining Digital Signat
ures and Public-key Cryptosystems, ”Comm.ACM, Vo
l.21, No.2, pp.120-126, 1978), and the RSA method is named after the initials of the proposer. As for the RSA method, for example, a book “Theory of Information and Code” (Miyagawa,
Harashima and Imai co-authored, published by Iwanami Shoten, 1983)
There is a simple commentary in the chapter.
【0004】前記文献によれば、RSA法を含む一般の
暗号化・複号化法による暗号化装置及び複号化装置は、
許可されていない者が情報をのぞき見できないような暗
号に暗号化する目的だけでなく、情報を発信した者が後
でその情報を発信したことを否定して詐欺を働くことを
防止したり、許可されていない者が許可されている者の
ふりをして偽りの情報を発信することを防止する目的に
も使用できるが、以下の説明では便宜上、許可されてい
ない者が情報をのぞき見するのを防止する目的で情報を
暗号化する場合をRSA法を例に挙げて解説する。According to the above-mentioned document, an encryption device and a decryption device based on a general encryption / decryption method including the RSA method include:
In addition to encrypting the information in a way that prevents unauthorized persons from prying out the information, it also prevents the sender of the information from defrauding that information was later transmitted, and preventing fraud, It can also be used to prevent unauthorized persons from pretending to be authorized persons and sending out false information, but for the sake of convenience in the following description, unauthorized persons will snoop on information. A case in which information is encrypted for the purpose of preventing the situation will be described using the RSA method as an example.
【0005】RSA法における暗号化・復号化法では、
暗号化鍵として数値eを、復号化鍵として数値dを、暗
号化と復号化の共通鍵として数値Nを予め用意する。こ
れらの数値(e、d、N)は整数であり、前記書籍に詳
記されている方法で決定してあるとする。また、暗号化
する情報の数値表現Pを、“1”、“0”のビット系列
で表現される情報を有限の長さのビット列に区分したそ
れぞれとして得る。従って、以下の説明では混乱のない
限り「情報」と「情報の数値表現」を区別しないものと
する。[0005] In the encryption / decryption method in the RSA method,
A numerical value e is prepared as an encryption key, a numerical value d is prepared as a decryption key, and a numerical value N is prepared in advance as a common key for encryption and decryption. These numerical values (e, d, N) are integers and are determined by the method described in detail in the book. Further, the numerical expression P of the information to be encrypted is obtained by dividing the information represented by the bit sequence of “1” and “0” into bit strings of a finite length. Therefore, in the following description, "information" and "numerical representation of information" are not distinguished unless there is confusion.
【0006】さて、暗号化は、次の数式1に示すよう
に、情報Pをe乗したものをNで割り算しその余りCを
暗号Cとして求める操作によって行われる。The encryption is performed by an operation of dividing the information P raised to the power e by N and obtaining the remainder C as the encryption C, as shown in the following Expression 1.
【0007】[0007]
【数1】 C=Pemod N## EQU1 ## C = P e mod N
【0008】また、復号化は、次の数式2に示すよう
に、上記のように暗号化した暗号Cをd乗したものをN
で割り算しその余りPを元の情報Pとして復元する操作
によって行われる。[0008] Further, as shown in the following equation (2), the value obtained by raising the cipher C encrypted as described above to the power d is N
, And restoring the remainder P as the original information P.
【0009】[0009]
【数2】 P=Cdmod NP = C d mod N
【0010】[0010]
【発明が解決しようとする課題】上述したように暗号化
・復号化法、即ち、入力された情報Pに予め決められた
演算を施し、その演算結果を予め与えられた数値Nで割
り算したときの余りを暗号または元の情報とする方式で
は、暗号化の過程で共通鍵Nで割ったときの余りを算出
するが、その際数値表現がPの情報と数値表現がP+N
の情報との区別ができるようにする必要がある。しか
し、共通鍵Nは任意の整数であるが、都合の良い2の冪
乗値とすることができない。また、通信や計算機では2
進法が用いられる。As described above, the encryption / decryption method, that is, when a predetermined operation is performed on inputted information P and the operation result is divided by a predetermined numerical value N In the scheme in which the remainder is used as encryption or original information, the remainder is calculated when the remainder is divided by the common key N in the encryption process.
It is necessary to be able to distinguish it from other information. However, although the common key N is an arbitrary integer, it cannot be a convenient power of two. In communications and computers,
The binary system is used.
【0011】そのため、従来の暗号化・復号化法では、
情報Pを共通鍵Nよりも小さい値に設定し、上記区別を
可能としている。また、共通鍵Nが都合の良い2の冪乗
値とならないので、情報Pと共通鍵Nとのビット長が同
一だと情報Pが共通鍵Nよりも大きな値となることがあ
る。従って、通常、情報Pのビット長は、共通鍵Nのビ
ット長よりも1ビットだけ短くなるように、入力された
暗号化する情報を区切って形成するようにしている。Therefore, in the conventional encryption / decryption method,
The information P is set to a value smaller than the common key N so that the above distinction can be made. Further, since the common key N does not have a convenient power of 2, the information P may have a larger value than the common key N if the information P and the common key N have the same bit length. Therefore, normally, the information to be encrypted is divided and formed so that the bit length of the information P is shorter by one bit than the bit length of the common key N.
【0012】そうすると、暗号のビット長は共通鍵Nの
ビット長と同一であるので、暗号が情報よりも1ビット
だけ長くなり、情報の伝送効率や記憶効率が劣化すると
いう問題がある。[0012] Then, since the bit length of the encryption is the same as the bit length of the common key N, the encryption becomes one bit longer than the information, and there is a problem that the information transmission efficiency and the storage efficiency deteriorate.
【0013】本発明の目的は、情報の伝送効率や記憶効
率の向上が図れ、且つ暗号の秘匿度を向上し得る暗号化
装置及び復号化装置を提供することにある。An object of the present invention, model improves transmission efficiency and the storage efficiency of information, and to provide an encryption apparatus that give improved confidentiality degree of encryption and decryption apparatus.
【0014】[0014]
【課題を解決するための手段】前記目的を達成するた
め、本発明の暗号化装置及び復号化装置は次の如き構成
を有する。即ち、第1発明の暗号化装置は、入力情報に
対して予め決められた演算を施し、その演算結果を予め
与えられた数値Nで除算した剰余を出力して暗号として
出力する暗号化装置において、入力された情報に予め決
められたコード変換を施して出力するコード変換器と;
前記コード変換器の出力Xに、予め与えられた数値N
を法とする予め決められた演算を施して暗号化処理をす
る暗号化回路と;前記コード変換器の出力の値Xと予め
与えられた数値Nとの大小関係を比較する比較器と;
前記比較器の比較結果に応じて、XがNに等しいかNよ
りも大である場合は前記コード変換器の出力Xを選択
し、XがNよりも小さい場合には前記暗号化回路の出力
を選択し、それぞれ前記入力された情報に対する暗号化
情報として選択出力する切換器と; を備えたことを特
徴とするものである。In order to achieve the above object, an encryption device and a decryption device according to the present invention have the following configurations. That is, the encryption device of the first invention uses the input information
A predetermined operation is performed on the
Output the remainder divided by the given numerical value N and use it as encryption
A code converter for performing a predetermined code conversion on input information in an output encryption device ;
A predetermined value N is applied to the output X of the code converter.
An encryption circuit for performing a predetermined arithmetic operation and performing an encryption process; a comparator for comparing a magnitude relationship between a value X of the output of the code converter and a predetermined numerical value N ;
X is equal to N or N depending on the comparison result of the comparator .
If it is larger, select the output X of the code converter
If X is smaller than N , the output of the encryption circuit
And a selector for selecting and outputting as encryption information for the input information.
【0015】第2発明の復号化装置は、入力暗号に対し
て予め決められた演算を施し、その演算結果を予め与え
られた数値Nで除算した剰余を出力して入力暗号に対応
する平文情報を復元して出力する復号化装置において、
入力された情報について、予め与えられた数値Nを法と
する予め決められた演算を施して復号化処理をする復号
化回路と; 前記入力された情報の値Yと予め与えられ
た数値Nとの大小関係を比較する比較器と; 前記比較
器の比較結果に応じてYがNに等しいかNよりも大であ
る場合には前記入力された情報の値Yを選択し、YがN
よりも小さい場合は前記復号化回路の出力を選択出力す
る切換器と; 前記切換器の出力に予め決められた逆コ
ード変換を施しそれを前記入力された情報に対する復号
化情報として出力する逆コード変換器と; を備えたこ
とを特徴とするものである。The decoding apparatus of the second invention, the input encryption
To perform a predetermined operation and give the operation result in advance.
Output the remainder divided by the given number N and support the input encryption
In a decryption device that restores and outputs plaintext information
For the input information , the numerical value N given in advance is modulo
A decoding circuit that performs a predetermined operation to perform a decoding process; a comparator that compares a magnitude relationship between the value Y of the input information and a predetermined value N ; a comparison between the comparators Y is equal to or greater than N depending on the result
Is selected, the value Y of the input information is selected, and Y is N
A switch for selecting and outputting the output of the decoding circuit if smaller than ; a reverse code for performing a predetermined reverse code conversion on the output of the switch and outputting it as decoded information for the input information And a converter.
【0016】第3発明の暗号化装置は、入力情報に対し
て予め決められた演算を施し、その演算結果を予め与え
られた数値Nで除算した剰余を出力して暗号として出力
する暗号化装置において、外部から与えられる制御信号
に従って、まず入力された元情報を選択出力し、その後
一定の暗号化処理がなされた情報を選択出力する第1切
換器と; 前記第1切換器の出力に予め決められたコー
ド変換を施して出力するコード変換器と; 前記コード
変換器の出力Xについて、予め与えられた数値Nを法と
する予め決められた演算を施して暗号化処理をする暗号
化回路と; 前記コード変換器の出力の値Xと予め与え
られた数値Nとの大小関係を比較する比較器と; 前記
比較器の比較結果に応じて、XがNに等しいかNよりも
大である場合には前記コード変換器の出力Xを選択し、
XがNよりも小さい場合には前記暗号化回路の出力を選
択し、それぞれ前記一定の暗号化処理がなされた情報と
して選択出力した暗号化情報を前記第1切替器に再び入
力情報として供給して暗号化する操作を所定の複数回繰
り返すことを可能とする第2切換器と; を備えたこと
を特徴とするものである。According to a third aspect of the present invention, there is provided an encryption device for inputting information.
To perform a predetermined operation and give the operation result in advance.
Output the remainder divided by the given number N and output it as a cipher
A first switch that first selects and outputs input original information and then selectively outputs information that has undergone a predetermined encryption process in accordance with a control signal given from the outside; and code converter which outputs subjected to predetermined code conversion to the output; the output X of the code converter, a modulo value N previously given
An encryption circuit that performs a predetermined operation to perform an encryption process; a comparator that compares a magnitude relationship between an output value X of the code converter and a predetermined numerical value N ; Depending on the result of the comparison , X is equal to or greater than N
If it is large, select the output X of the code converter ,
If X is smaller than N, select the output of the encryption circuit.
-Option and again enter the selected output encrypted information as each information said predetermined encryption process has been performed on the first switch
The operation of supplying the data as force information and encrypting it
And a second switch that enables the return .
【0017】第4発明の復号化装置は、入力暗号に対し
て予め決められた演算を施し、その演算結果を予め与え
られた数値Nで除算した剰余を出力して入力暗号に対応
する平文情報を復元して出力する復号化装置において、
外部から与えられる制御信号に従って、まず入力された
元情報を選択出力し、その後一定の復号化処理のなされ
た情報を選択出力して再び入力暗号として復号化する操
作を所定の複数回繰り返すことを可能とする第1切換器
と; 前記第1切換器の出力について、予め与えられた
数値Nを法とする予め決められた演算を施して復号化処
理をする復号化回路と; 前記第1切換器の出力の値Y
と予め与えられた数値Nとの大小関係を比較する比較器
と; 前記比較器の比較結果に応じて、YがNに等しい
かNよりも大である場合には前記第1切換器の出力Yを
選択し、YがNよりも小さい場合には前記復号化回路の
出力を選択出力する第2切換器と; 前記第2切換器の
出力に予め決められた逆コード変換を施しそれを前記一
定の復号化処理のなされた情報として出力して前記第1
切替器に供給しつつ、前記所定の複数回の復号化の操作
を可能ならしめる逆コード変換器と; を備えたことを
特徴とするものである。The decoding apparatus of the fourth invention, the input encryption
To perform a predetermined operation and give the operation result in advance.
Output the remainder divided by the given number N and support the input encryption
In a decryption device that restores and outputs plaintext information
According to a control signal given from the outside, first, the input original information is selected and output, and then the information which has been subjected to a predetermined decryption process is selectively output and decrypted again as the input encryption.
A first switch that enables the operation to be repeated a predetermined plurality of times ; and a predetermined output provided from the first switch .
A decoding circuit for performing a predetermined arithmetic operation modulo a numerical value N to perform a decoding process; and a value Y of an output of the first switcher
And a comparator for comparing the magnitude relationship between the value and a predetermined numerical value N ; and Y is equal to N according to the comparison result of the comparator.
Is greater than N, the output Y of the first switch is
And if Y is smaller than N, the decoding circuit
The second switching unit and for selectively outputting an output; the second said subjecting it to predetermined inverse code conversion on the output of the switching device and outputs as information made a of the fixed decoding process first
A predetermined number of decoding operations while supplying the data to the switch;
It is characterized in further comprising a; a possibly tighten that inverse code converter.
【0018】第5発明の暗号化装置は、第1発明または
第3発明の暗号化装置において;コード変換器は、入力
された数値をその最上位ビットを反転した形で出力す
る;ことを特徴とするものである。According to a fifth aspect of the present invention, there is provided the encryption device according to the first or third aspect of the invention, wherein the code converter outputs the input numerical value in a form in which the most significant bit is inverted. It is assumed that.
【0019】第6発明の復号化装置は、第2発明または
第4発明の復号化装置において;逆コード変換器は、入
力された数値をその最上位ビットを反転した形で出力す
る; ことを特徴とするものである。A decoding device according to a sixth aspect of the present invention is the decoding device according to the second or fourth aspect of the invention; wherein the inverse code converter outputs the input numerical value with its most significant bit inverted. It is a feature.
【0020】第7発明の暗号化装置は、第1発明または
第3発明の暗号化装置において;コード変換器は、入力
された数値の中の最上位ビットを反転する否定回路と;
入力された数値の中の複数下位ビットからなる数値を所
定ビット長からなる数値へ変換する回路と; 入力され
た数値の中の最上位ビットを除く複数上位ビットであっ
て前記所定ビット長と同ビット長の複数上位ビットから
なる数値と前記所定ビット長からなる数値との排他的論
理和をとる排他的論理和回路と; を備え、前記否定回
路の出力と前記排他的論理和回路の出力と前記複数下位
ビットと前記入力された数値の中の残余のビットとを当
該コード変換器の出力とする;ことを特徴とするもので
ある。The encryption device of the seventh invention is the encryption device of the first invention or the third invention; the code converter is a negation circuit for inverting the most significant bit in the input numerical value;
A circuit for converting a numerical value consisting of a plurality of low-order bits in the input numerical value into a numerical value consisting of a predetermined bit length; and a plurality of high-order bits excluding the most significant bit in the input numerical value, the same as the predetermined bit length. An exclusive-OR circuit for performing an exclusive-OR operation on a numerical value consisting of a plurality of upper bits of a bit length and the numerical value consisting of the predetermined bit length; and an output of the NOT circuit and an output of the exclusive OR circuit. The plurality of lower-order bits and the remaining bits in the input numerical value are output from the code converter.
【0021】第8発明の復号化装置は、第2発明または
第4発明の復号化装置において;逆コード変換器は、入
力された数値の中の最上位ビットを反転する否定回路
と;入力された数値の中の複数下位ビットからなる数値
を所定ビット長からなる数値へ変換する回路と; 入力
された数値の中の最上位ビットを除く複数上位ビットで
あって前記所定ビット長と同ビット長の複数上位ビット
からなる数値と前記所定ビット長からなる数値との排他
的論理和をとる排他的論理和回路と;を備え、前記否定
回路の出力と前記排他的論理和回路の出力と前記複数下
位ビットと前記入力された数値の中の残余のビットとを
当該逆コード変換器の出力とする;ことを特徴とするも
のである。The decoding device according to an eighth aspect of the present invention is the decoding device according to the second or fourth aspect of the present invention; the inverse code converter includes a NOT circuit for inverting the most significant bit in the input numerical value; A circuit for converting a numerical value consisting of a plurality of lower bits in a numerical value into a numerical value consisting of a predetermined bit length; and a plurality of upper bits excluding the most significant bit in the input numerical value and having the same bit length as the predetermined bit length An exclusive-OR circuit for performing an exclusive-OR operation on a numerical value consisting of a plurality of upper bits and a numerical value consisting of the predetermined bit length, wherein the output of the NOT circuit, the output of the exclusive OR circuit, The lower bits and the remaining bits in the input numerical value are output from the inverse code converter.
【0022】[0022]
【作用】次に、前記の如く構成される本発明の暗号化装
置及び復号化装置の作用を説明する。なお、本発明の暗
号化装置及び復号化装置は、許可されていない者が情
報をのぞき見るのを防止する目的、情報を発信した者
が後でその情報を発信したことを否定して詐欺を働くの
を防止する目的、許可されていない者が許可されてい
る者のふりをして偽りの情報を発信するのを防止する目
的、の何れにも適用できるが、以下、の「許可されて
いない者が情報をのぞき見るのを防止する目的」で使用
する場合を例に説明する。Next, the operation of the encryption device and the decryption device of the present invention configured as described above will be described. Note that the encryption device and the decryption device of the present invention are intended to prevent unauthorized persons from prying information, and to defraud that the person who transmitted the information denied that the information was transmitted later. It can be applied for both the purpose of preventing work and the purpose of preventing unauthorized persons from pretending to be authorized persons and transmitting false information. For the purpose of preventing anyone who does not peep into the information, the following is an example.
【0023】第1発明の暗号化装置では、入力された暗
号化する情報(便宜上Pとする)に所定のコード変換を
施す。そして、コード変換によって得られた数値Aが予
め与えられた数値(共通鍵Nに相当する)よりも小さけ
れば、従来の暗号化法(前記数式1とは限らない公知の
暗号化法)で暗号化しその結果を暗号として出力する一
方、数値Aが共通鍵Nよりも小さくなければ、その数値
Aをそのまま暗号として出力する。In the encryption device of the first invention, a predetermined code conversion is performed on the input information to be encrypted (P for convenience). If the numerical value A obtained by the code conversion is smaller than a predetermined numerical value (corresponding to the common key N), the encryption is performed by the conventional encryption method (a known encryption method that is not limited to the above-described formula 1). If the numerical value A is not smaller than the common key N, the numerical value A is directly output as the encryption.
【0024】ここで、比較器において数値Aと共通鍵N
との大小関係を比較するので、暗号化する情報Pは共通
鍵Nと同一のビット長である。そして、本発明における
暗号化法はRSA法に限定されないが、RSA法の1つ
の性質、即ち、鍵(e、d、N)を巧く選べば、共通鍵
Nよりも小さい値をとる情報と暗号とを1対1に対応さ
せ得るという性質に着目し、以上のように処理すれば、
共通鍵Nよりも有効ビット長の長くない全ての情報と暗
号とを1対1に対応させ得るので、暗号Cのビット長が
情報Pのビット長よりも長くならないように暗号化でき
る。つまり、情報の伝送効率及び記憶効率を向上させ得
る。Here, in the comparator, the numerical value A and the common key N
The information P to be encrypted has the same bit length as the common key N. The encryption method according to the present invention is not limited to the RSA method. However, if one property of the RSA method, that is, the key (e, d, N) is skillfully selected, information having a value smaller than the common key N can be obtained. Focusing on the property of being able to correspond one-to-one with encryption, and processing as described above,
Since all information and the encryption that are not longer than the effective key length than the common key N can correspond to each other on a one-to-one basis, encryption can be performed so that the bit length of the encryption C is not longer than the bit length of the information P. That is, information transmission efficiency and storage efficiency can be improved.
【0025】また、第2発明の復号化装置では、上記の
ようにして得られた暗号(便宜上Cとする)について従
来の復号化法(前記数式2とは限らない公知の復号化
法)で復元するのと並行して暗号Cと共通鍵Nとの大小
関係を比較する。そして、暗号Cが共通鍵Nよりも小さ
ければ復元した数値Bについて、逆に暗号Cが共通鍵N
よりも小さくなければその暗号Cについて、それぞれ前
記コード変換の逆コード変換を施し、それを復元情報と
する。Further, in the decryption device of the second invention, the cipher obtained as described above (referred to as C for convenience) is obtained by a conventional decryption method (a known decryption method which is not limited to Expression 2). In parallel with the restoration, the magnitude relationship between the cipher C and the common key N is compared. If the cipher C is smaller than the common key N, the restored numerical B
If not smaller, the code C is subjected to the reverse code conversion of the code conversion, and is used as restoration information.
【0026】そして、第3発明の暗号化装置では、まず
情報Pについて第1発明の暗号化を施し、次いでこのよ
うにして得られた暗号を新たに情報P′としてこれに第
1発明の暗号化を施し、以下これを所定回数繰り返し実
行し、所望の暗号を得る。第4発明の復号化装置では、
同様の手法で復号化する。第1及び第2発明の暗号化・
復号化法では機密保持が充分でない用途に有効である。Then, the encryption device of the third invention firstly performs the encryption of the first invention on the information P, and then uses the encryption obtained in this way as new information P 'and adds it to the encryption of the first invention. This is repeated a predetermined number of times to obtain a desired cipher. In the decoding device of the fourth invention,
Decoding is performed in a similar manner. Encryption of the first and second inventions
The decryption method is effective for applications where confidentiality is not sufficient.
【0027】なお、コード変換器及び逆コード変換器
は、入力と出力とを1対1に対応させるため、「入力さ
れた数値をその最上位ビットを反転した形で出力する」
ように(第5及び第6の発明)、或は、「入力された数
値の中の最上位ビットを反転したものと、入力された数
値の中の複数下位ビットと、その複数下位ビットからな
る数値を所定ビット長からなる数値へ変換したものと入
力された数値の中の最上位ビットを除く複数上位ビット
であって前記所定ビット長と同ビット長の複数上位ビッ
トからなる数値との排他的論理和をとって変換したもの
と、入力された数値の中の残余のビットと、を出力とす
る」ように(第7及び第8の発明)構成する。The code converter and the inverse code converter "output the input numerical value in a form in which the most significant bit is inverted" in order to make the input and the output correspond one-to-one.
As described above (fifth and sixth inventions), or "the most significant bit in the input numerical value is inverted, the plural lower bits in the input numerical value, and the plural lower bits are included. Exclusive of a value obtained by converting a numerical value into a numerical value having a predetermined bit length and a numerical value including plural high-order bits having the same bit length as the predetermined bit length except for the most significant bit in the input numerical value. (7th and 8th inventions) are configured to output the result obtained by performing a logical sum and the remaining bits in the input numerical value.
【0028】[0028]
【実施例】以下、本発明の実施例を図面を参照して説明
する。図1は、本発明の第1実施例に係る暗号化装置を
示す。この暗号化装置は、コード変換器11と比較器1
2と暗号化回路13と切換器14とで基本的に構成され
る。Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows an encryption device according to a first embodiment of the present invention. This encryption device comprises a code converter 11 and a comparator 1
2, an encryption circuit 13 and a switch 14.
【0029】図1において、コード変換器11は、入力
端子10から入力された暗号化する情報(前述した情報
P)に対して予め決められたコード変換を施し、その結
果を比較器12と暗号化回路13と切換器14とに出力
する。In FIG. 1, a code converter 11 performs a predetermined code conversion on the information to be encrypted (the above-described information P) input from the input terminal 10 and compares the result with the comparator 12. Output to the conversion circuit 13 and the switch 14.
【0030】比較器12は、コード変換器11の出力情
報の値(これをAとする)と予め与えられた数値(前述
した共通鍵N)との大小関係を比較し、数値Aが共通鍵
Nよりも小さければ“1”を、数値Aが共通鍵Nよりも
小さくなければ“0”を、それぞれ制御信号として切換
器14に与える。The comparator 12 compares the value of the output information of the code converter 11 (hereinafter, A) with a predetermined numerical value (the above-mentioned common key N), and finds that the numerical value A is the common key. If it is smaller than N, "1" is given to the switch 14 as a control signal, and if the numerical value A is not smaller than the common key N, "0" is given to the switch 14.
【0031】一方、暗号化回路13は、コード変換器1
1の出力に対して従来公知方法による予め決められた暗
号化を施し、その結果を切換器14に与える。On the other hand, the encryption circuit 13 includes the code converter 1
1 is subjected to a predetermined encryption by a conventionally known method, and the result is supplied to the switch 14.
【0032】その結果、切換器14は、比較器12の出
力が“1”であれば暗号化回路13の出力を選択し、逆
に比較器12の出力が“0”であればコード変換器11
の出力を選択し、それを暗号として出力端子15から出
力する。コード変換器11の出力を暗号として出力する
場合は極めて少ないので問題とはならない。As a result, the switch 14 selects the output of the encryption circuit 13 if the output of the comparator 12 is "1", and conversely, if the output of the comparator 12 is "0", the code converter 11
And outputs it from the output terminal 15 as encryption. When the output of the code converter 11 is output as a cipher, there is no problem because the output is extremely small.
【0033】次に、図2は、本発明の第2実施例に係る
復号化装置を示す。この復号化装置は、比較器22と復
号化回路23と切換器24と逆コード変換器21とを基
本的に備える。FIG. 2 shows a decoding apparatus according to a second embodiment of the present invention. This decoding device basically includes a comparator 22, a decoding circuit 23, a switch 24, and an inverse code converter 21.
【0034】図2において、入力端子25から入力され
た暗号化されている情報、つまり、暗号は、比較器22
と復号化回路23と切換器24とに供給される。比較器
22は、入力された暗号の値と予め与えられた数値(共
通鍵N)との大小関係を比較し、入力された暗号の値が
共通鍵Nよりも小さければ“1”を、入力された暗号の
値が共通鍵Nよりも小さくなければ“0”を、それぞれ
制御信号として切換器24に与える。In FIG. 2, the encrypted information input from the input terminal 25, that is, the encryption is transmitted to the comparator 22.
And a decoding circuit 23 and a switch 24. The comparator 22 compares the magnitude of the inputted cipher value with a predetermined numerical value (common key N), and inputs “1” if the inputted cipher value is smaller than the common key N. If the encrypted value is not smaller than the common key N, "0" is given to the switch 24 as a control signal.
【0035】一方、復号化回路23は、入力された暗号
に対して従来公知方法による予め決められた復号化を施
し、その結果を切換器24に与える。On the other hand, the decryption circuit 23 performs a predetermined decryption on the inputted cipher by a conventionally known method, and supplies the result to the switch 24.
【0036】その結果、切換器24は、比較器22の出
力が“1”であれば復号化回路23の出力を選択し、逆
に比較器22の出力が“0”であれば入力端子25から
供給された暗号を選択し、それを逆コード変換器21に
出力する。As a result, the switch 24 selects the output of the decoding circuit 23 if the output of the comparator 22 is "1", and conversely, the input terminal 25 if the output of the comparator 22 is "0". And outputs it to the inverse transcoder 21.
【0037】そして、逆コード変換器21は、切換器2
4の出力に対して前記コード変換器11とは逆のコード
変換を施し、それを入力端子25から供給された暗号に
対する復元情報として出力端子20から出力する。つま
り、逆コード変換器21は、前記コード変換器11と同
一の構成である。The reverse code converter 21 is provided with a switch 2
4 is subjected to code conversion reverse to that of the code converter 11, and is output from the output terminal 20 as restoration information for the encryption supplied from the input terminal 25. That is, the inverse code converter 21 has the same configuration as the code converter 11.
【0038】また、図3は、本発明の第3実施例に係る
暗号化装置を示す。この暗号化装置は、前記第1実施例
装置において、(第1)切換器31をコード変換器11
に前置したものである。以下、本第3実施例に係る部分
を中心に説明する。FIG. 3 shows an encryption device according to a third embodiment of the present invention. This encryption device is the same as the device of the first embodiment, except that the (first) switch 31 is connected to the code converter 11.
It is preceded by Hereinafter, description will be made focusing on the portion according to the third embodiment.
【0039】図3において、切換器31は、入力端子1
0から入力された暗号化する情報と(第2)切換器14
の出力とが与えられ、外部からの制御信号30に従って
両入力の何れか一方を選択し、それをコード変換器11
に与える。In FIG. 3, the switch 31 has an input terminal 1
0 to be encrypted and (second) switch 14
And selects one of the two inputs in accordance with a control signal 30 from the outside, and outputs it to the code converter 11.
Give to.
【0040】具体的に言えば、制御信号30は、入力端
子10から暗号化する情報が入力するタイミングで例え
ば“1”となり、切換器31に入力端子10からの暗号
化する情報を選択出力させ、次いで、切換器14が出力
するタイミングで“0”となり、切換器31に切換器1
4の出力を選択させ、その後切換器14が所定回数出力
するまでの間“0”の状態を維持し、その後新たな暗号
化する情報が入力するタイミングで“1”となり、これ
を繰り返す信号である。More specifically, the control signal 30 becomes, for example, "1" at the timing when the information to be encrypted is input from the input terminal 10, and causes the switch 31 to selectively output the information to be encrypted from the input terminal 10. Then, it becomes "0" at the timing when the switch 14 outputs, and the switch 31 is connected to the switch 31.
4 is selected, and thereafter, the state of "0" is maintained until the switch 14 outputs a predetermined number of times, and then becomes "1" when new information to be encrypted is input. is there.
【0041】要するに、この第3実施例装置は、各暗号
化する情報について複数回の暗号化処理を施しその各複
数回の最終値を暗号として出力する装置でり、充分な機
密保持を可能とするものである。この第3実施例に係る
暗号化装置に対する復号化装置は、図4に示すように構
成される。In short, the device of the third embodiment is a device that performs a plurality of encryption processes on each piece of information to be encrypted and outputs the final value of each of the plurality of times as a code, thereby enabling sufficient confidentiality to be maintained. Is what you do. The decryption device for the encryption device according to the third embodiment is configured as shown in FIG.
【0042】即ち、図4において、この第4実施例装置
は、前記第2実施例装置の入力段に(第1)切換器41
を前置したものである。切換器41は、前記切換器31
と同様に、外部から与えられる制御信号40に従って、
入力端子25から入力された復号化する情報と逆コード
変換器21の出力との何れか一方を選択し、それを比較
器22と復号化回路23と(第2)切換器24とに与え
る。制御信号40は、前記制御信号30と同様の信号で
あるから、複数回の復号化処理の最終回の値を復元情報
として出力することになる。That is, in FIG. 4, the device of the fourth embodiment has a (first) switch 41 connected to the input stage of the device of the second embodiment.
Is preceded by The switch 41 is a switch.
Similarly, according to the control signal 40 given from the outside,
One of the information to be decoded input from the input terminal 25 and the output of the inverse code converter 21 is selected, and the selected information is supplied to the comparator 22, the decoding circuit 23, and the (second) switch 24. Since the control signal 40 is the same signal as the control signal 30, the value of the last of a plurality of decoding processes is output as restoration information.
【0043】次に、コード変換器及び逆コード変換器に
ついて説明する。これらは同一構成であるので、以下単
に「変換器」と称する。この変換器は、入力と出力とが
1対1に対応させる構成とし、本実施例では、次の2つ
の構成を採用した。Next, the code converter and the inverse code converter will be described. Since these have the same configuration, they will be simply referred to as “converters” below. This converter has a configuration in which an input and an output correspond to each other on a one-to-one basis. In this embodiment, the following two configurations are employed.
【0044】第1の構成は、「入力された数値をその最
上位ビットを反転した形で出力する」ようにしたもので
ある。最上位ビットを反転すると、共通鍵Nよりも大き
な数値は必ず共通鍵Nよりも小さい数値に変換される。
従って、第3実施例装置において、コード変換器11に
このような構成のものを用いて暗号化を繰り返し行う場
合、切換器14は、j回目の繰り返しでは暗号化回路1
3の出力を選択しなくとも、j+1回目の繰り返しでは
必ず暗号化回路13の出力を選択するので、入力端子1
0から入力された暗号化する情報は少なくとも1回以上
暗号化回路13によって暗号化される。従って、第3者
による解読の危険性が少なくなる。The first configuration is such that "the input numerical value is output with its most significant bit inverted". When the most significant bit is inverted, a numerical value larger than the common key N is always converted to a numerical value smaller than the common key N.
Therefore, in the device of the third embodiment, when encryption is repeatedly performed using the code converter 11 having such a configuration, the switching unit 14 sets the encryption circuit 1 in the j-th iteration.
Even if the output of the input terminal 3 is not selected, the output of the encryption circuit 13 is always selected in the (j + 1) th repetition.
The information to be encrypted input from 0 is encrypted at least once by the encryption circuit 13. Therefore, the risk of decryption by a third party is reduced.
【0045】また、第2の構成は、図5に示してある。
図5において、入力端子50から入力される数値をLビ
ットとすると、この変換器は、入力された数値の中の最
上位ビットの1ビツトを反転する否定回路51と、入力
された数値の中の下位aビットからなる数値をbビット
長からなる数値へ変換するハッシュ関数器53と、この
ハッシュ関数器53の出力bビットからなる数値と入力
された数値の中の最上位ビットを除く上位bビットから
なる数値との排他的論理和をとる排他的論理和回路52
とを備え、否定回路51の出力(1ビット)と排他的論
理和回路52の出力(bビット)と下位aビットと残余
のビット(L−a−b−1)とを当該変換器の出力とし
て出力端子54から送出するように構成される。FIG. 5 shows the second configuration.
In FIG. 5, assuming that the numerical value input from input terminal 50 is L bits, this converter includes a NOT circuit 51 for inverting one bit of the most significant bit in the input numerical value, A hash function unit 53 for converting a numerical value consisting of lower a bits into a numerical value consisting of b bits, and a numerical value consisting of b bits output from the hash function unit 53 and a higher order b excluding the most significant bit in the inputted numerical value Exclusive OR circuit 52 for exclusive ORing with a numerical value consisting of bits
And outputs the output (1 bit) of the NOT circuit 51, the output (b bit) of the exclusive OR circuit 52, the lower a bits and the remaining bits (Lab-1) of the converter. Is transmitted from the output terminal 54.
【0046】なお、本実施例では、ハッシュ関数を用い
るので、出力される数値のビット長bは入力される数値
のビット長aよりも短いが、本発明はこれに限定される
ものではなく、回路53におけるビット長の変換は任意
であることは勿論である。In this embodiment, since the hash function is used, the bit length b of the output numerical value is shorter than the bit length a of the input numerical value. However, the present invention is not limited to this. The conversion of the bit length in the circuit 53 is of course arbitrary.
【0047】また、以上の説明では、許可されていない
者が情報を得るのを防止する目的での使用を念頭に説明
したが、本発明装置はその他、情報を発信した者が後で
その情報を発信したことを否定して詐欺を働くことを防
止する目的にも、また許可されていない者が許可されて
いる者のふりをして偽りの情報を発信するのを防止する
目的にも適用できることは前記文献からも明らかであ
る。Although the above description has been made with a view to preventing unauthorized persons from obtaining information, the apparatus of the present invention may also be used by other persons who send information later. To prevent fraud by denying that the information was transmitted, and to prevent unauthorized persons from transmitting false information by pretending to be authorized persons. What can be done is clear from the literature.
【0048】[0048]
【発明の効果】以上説明したように、本発明の暗号化装
置及び復号化装置によれば、入力される情報を共通鍵と
同一のビット長とするとともに、共通鍵よりも有効ビッ
ト長の長くない全ての入力情報と暗号化情報とを1対1
に対応させるようにしたので、暗号化情報のビット長が
入力情報のビット長よりも長くならないように暗号化で
き、情報の伝送効率及び記憶効率を向上させ、且つ暗号
の秘匿度を向上し得る効果がある。As described above, according to the encryption device and the decryption device of the present invention, the input information has the same bit length as the common key and the effective bit length is longer than the common key. One-to-one correspondence between all input information and encrypted information
Since so as to correspond to the bit length of the encryption information can be encrypted so as not to be longer than the bit length of the input information, to improve the transmission efficiency and storage efficiency of information, and encryption
There is an effect that the degree of confidentiality can be improved .
【図1】本発明の第1実施例に係る暗号化装置の構成ブ
ロック図である。FIG. 1 is a configuration block diagram of an encryption device according to a first embodiment of the present invention.
【図2】本発明の第2実施例に係る復号化装置の構成ブ
ロック図である。FIG. 2 is a configuration block diagram of a decoding device according to a second embodiment of the present invention.
【図3】本発明の第3実施例に係る暗号化装置の構成ブ
ロック図である。FIG. 3 is a configuration block diagram of an encryption device according to a third embodiment of the present invention.
【図4】本発明の第4実施例に係る復号化装置の構成ブ
ロック図である。FIG. 4 is a configuration block diagram of a decoding device according to a fourth embodiment of the present invention.
【図5】コード変換器及び逆コード変換器の構成ブロッ
ク図である。FIG. 5 is a configuration block diagram of a code converter and an inverse code converter.
11 コード変換器 12 比較器 13 暗号化回路 14 切換器 21 逆コード変換器 22 比較器 23 復号化回路 24 切換器 31 切換器 51 否定回路 52 排他的論理和回路 53 ハッシュ関数器 DESCRIPTION OF SYMBOLS 11 Code converter 12 Comparator 13 Encryption circuit 14 Switch 21 Inverse code converter 22 Comparator 23 Decoding circuit 24 Switch 31 Switch 51 Negation circuit 52 Exclusive OR circuit 53 Hash function unit
───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G09C 1/00 - 5/00 H04K 1/00 - 3/00 H04L 9/00 - 9/38 JICSTファイル(JOIS)──────────────────────────────────────────────────続 き Continued on the front page (58) Fields surveyed (Int. Cl. 6 , DB name) G09C 1/00-5/00 H04K 1/00-3/00 H04L 9/00-9/38 JICST file ( JOIS)
Claims (8)
施し、その演算結果を予め与えられた数値Nで除算した
剰余を出力して暗号として出力する暗号化装置におい
て、入力された情報に予め決められたコード変換を施し
て出力するコード変換器と; 前記コード変換器の出力
Xに、予め与えられた数値Nを法とする予め決められた
演算を施して暗号化処理をする暗号化回路と; 前記コ
ード変換器の出力の値Xと予め与えられた数値Nとの大
小関係を比較する比較器と;前記比較器の比較結果に応
じて、XがNに等しいかNよりも大である場合は前記コ
ード変換器の出力Xを選択し、XがNよりも小さい場合
には前記暗号化回路の出力を選択し、それぞれ前記入力
された情報に対する暗号化情報として選択出力する切換
器と; を備えたことを特徴とする暗号化装置。1. A predetermined operation is performed on input information.
And the result of the operation is divided by a predetermined value N.
In an encryption device that outputs the remainder and outputs it as a cipher
A code converter that performs predetermined code conversion on the input information and outputs the result; and an output of the code converter.
X is a predetermined number modulo a given number N
An encryption circuit for performing an encryption process by performing an operation ; a comparator for comparing a magnitude relationship between an output value X of the code converter and a predetermined numerical value N ; according to a comparison result of the comparator , If X is equal to or greater than N , select the output X of the code converter; if X is less than N
Encryption apparatus characterized by comprising a; the selects the output of the encryption circuit, and a switching unit which selectively outputs as the encryption information for the information which is respectively the input to.
施し、その演算結果を予め与えられた数値Nで除算した
剰余を出力して入力暗号に対応する平文情報を復元して
出力する復号化装置において、入力された情報につい
て、予め与えられた数値Nを法とする予め決められた演
算を施して復号化処理をする復号化回路と; 前記入力
された情報の値Yと予め与えられた数値Nとの大小関係
を比較する比較器と; 前記比較器の比較結果に応じて
YがNに等しいかNよりも大である場合には前記入力さ
れた情報の値Yを選択し、YがNよりも小さい場合は前
記復号化回路の出力を選択出力する切換器と; 前記切
換器の出力に予め決められた逆コード変換を施しそれを
前記入力された情報に対する復号化情報として出力する
逆コード変換器と; を備えたことを特徴とする復号化
装置。2. A predetermined operation is performed on an input cipher.
And the result of the operation is divided by a predetermined value N.
Output the remainder to recover the plaintext information corresponding to the input cipher.
In a decoding device for outputting, a predetermined operation is performed on the input information by using a predetermined numerical value N as a modulus.
A decoding circuit for performing a decoding process by performing an arithmetic operation; a comparator for comparing a magnitude relationship between the value Y of the input information and a predetermined numerical value N ; according to a comparison result of the comparator
If Y is equal to or greater than N, the value Y of the input information is selected, and if Y is smaller than N , the output of the decoding circuit is selectively output. A switching device; and a reverse code converter for performing a predetermined reverse code conversion on an output of the switch and outputting the result as decoding information for the input information. .
施し、その演算結果を予め与えられた数値Nで除算した
剰余を出力して暗号として出力する暗号化装置におい
て、外部から与えられる制御信号に従って、まず入力さ
れた元情報を選択出力し、その後一定の暗号化処理がな
された情報を選択出力する第1切換器と; 前記第1切
換器の出力に予め決められたコード変換を施して出力す
るコード変換器と; 前記コード変換器の出力Xについ
て、予め与えられた数値Nを法とする予め決められた演
算を施して暗号化処理をする暗号化回路と; 前記コー
ド変換器の出力の値Xと予め与えられた数値Nとの大小
関係を比較する比較器と; 前記比較器の比較結果に応
じて、XがNに等しいかNよりも大である場合には前記
コード変換器の出力Xを選択し、XがNよりも小さい場
合には前記暗号化回路の出力を選択し、それぞれ前記一
定の暗号化処理がなされた情報として選択出力した暗号
化情報を前記第1切替器に再び入力情報として供給して
暗号化する操作を所定の複数回繰り返すことを可能とす
る第2切換器と; を備えたことを特徴とする暗号化装
置。3. A predetermined operation is performed on input information.
And the result of the operation is divided by a predetermined value N.
In an encryption device that outputs the remainder and outputs it as a cipher
A first switch for selecting and outputting input original information in accordance with a control signal given from the outside, and then selectively outputting information which has undergone a predetermined encryption process; A code converter for performing a predetermined code conversion and outputting the result; and a predetermined operation modulo a predetermined numerical value N for an output X of the code converter.
An encryption circuit that performs an arithmetic operation to perform an encryption process; a comparator that compares a magnitude relationship between an output value X of the code converter and a predetermined numerical value N ; according to a comparison result of the comparator , X is equal to N or greater than N , the output X of the code converter is selected, and if X is less than N,
The case selects the output of the encryption circuit, the encryption selecting outputs respectively as information the fixed encryption process has been performed
Supply information to the first switch again as input information.
A second switch that enables the operation of encrypting to be repeated a predetermined plurality of times .
施し、その演算結果を予め与えられた数値Nで除算した
剰余を出力して入力暗号に対応する平文情報を復元して
出力する復号化装置において、外部から与えられる制御
信号に従って、まず入力された元情報を選択出力し、そ
の後一定の復号化処理のなされた情報を選択出力して再
び入力暗号として復号化する操作を所定の複数回繰り返
すことを可能とする第1切換器と; 前記第1切換器の
出力について、予め与えられた数値Nを法とする予め決
められた演算を施して復号化処理をする復号化回路と;
前記第1切換器の出力の値Yと予め与えられた数値N
との大小関係を比較する比較器と; 前記比較器の比較
結果に応じて、YがNに等しいかNよりも大である場合
には前記第1切換器の出力Yを選択し、YがNよりも小
さい場合には前記復号化回路の出力を選択出力する第2
切換器と; 前記第2切換器の出力に予め決められた逆
コード変換を施しそれを前記一定の復号化処理のなされ
た情報として出力して前記第1切替器に供給しつつ、前
記所定の複数回の復号化の操作を可能ならしめる逆コー
ド変換器と; を備えたことを特徴とする復号化装置。4. A predetermined operation is performed on an input cipher.
And the result of the operation is divided by a predetermined value N.
Output the remainder to recover the plaintext information corresponding to the input cipher.
The decoding device that outputs the data first selects and outputs the input original information in accordance with a control signal given from the outside, and then selectively outputs the information that has undergone a predetermined decoding process and re- executes the decoding.
And repeat the operation of decrypting as input multiple times
A first switch capable of performing an operation; and a predetermined value modulo a predetermined value N for an output of the first switch.
A decoding circuit for performing the calculated operation and performing a decoding process;
The output value Y of the first switch and a predetermined value N
And a comparator for comparing the magnitude relation between: Y is equal to N or greater than N according to the comparison result of the comparator
Selects the output Y of the first switching unit for, Y is smaller than N
In this case, the second output for selecting and outputting the output of the decoding circuit
A switching unit; performing a predetermined inverse code conversion on the output of the second switching unit, outputting the same as information subjected to the predetermined decoding process , and supplying the information to the first switching unit;
Serial predetermined multiple of that tighten if possible the operation of decoding the inverse code converter and; decoding apparatus characterized by comprising a.
装置において; コード変換器は、入力された数値をそ
の最上位ビットを反転した形で出力する;ことを特徴と
する暗号化装置。5. The encryption device according to claim 1, wherein the code converter outputs the input numerical value in a form in which the most significant bit is inverted. .
装置において; 逆コード変換器は、入力された数値を
その最上位ビットを反転した形で出力する;ことを特徴
とする復号化装置。6. The decoding device according to claim 2, wherein the inverse code converter outputs the input numerical value in a form in which the most significant bit is inverted. apparatus.
装置において; コード変換器は、入力された数値の中
の最上位ビットを反転する否定回路と; 入力された数
値の中の複数下位ビットからなる数値を所定ビット長か
らなる数値へ変換する回路と; 入力された数値の中の
最上位ビットを除く複数上位ビットであって前記所定ビ
ット長と同ビット長の複数上位ビットからなる数値と前
記所定ビット長からなる数値との排他的論理和をとる排
他的論理和回路と; を備え、前記否定回路の出力と前
記排他的論理和回路の出力と前記複数下位ビットと前記
入力された数値の中の残余のビットとを当該コード変換
器の出力とする; ことを特徴とする暗号化装置。7. The encryption device according to claim 1, wherein the code converter is configured to invert a most significant bit in the input numerical value; A circuit for converting a numerical value consisting of lower bits into a numerical value consisting of a predetermined bit length; and a plurality of upper bits excluding the most significant bit in the inputted numerical value, comprising a plurality of higher order bits having the same bit length as the predetermined bit length. An exclusive-OR circuit for performing an exclusive-OR operation on a numerical value and the numerical value having the predetermined bit length; and an output of the NOT circuit, an output of the exclusive OR circuit, the plurality of lower-order bits, and the input. The remaining bits in the calculated numerical value as the output of the code converter;
装置において; 逆コード変換器は、入力された数値の
中の最上位ビットを反転する否定回路と;入力された数
値の中の複数下位ビットからなる数値を所定ビット長か
らなる数値へ変換する回路と; 入力された数値の中の
最上位ビットを除く複数上位ビットであって前記所定ビ
ット長と同ビット長の複数上位ビットからなる数値と前
記所定ビット長からなる数値との排他的論理和をとる排
他的論理和回路と; を備え、前記否定回路の出力と前
記排他的論理和回路の出力と前記複数下位ビットと前記
入力された数値の中の残余のビットとを当該逆コード変
換器の出力とする;ことを特徴とする復号化装置。8. The decoding device according to claim 2, wherein the inverse code converter is configured to invert a most significant bit of the input numerical value; A circuit for converting a numerical value consisting of a plurality of lower bits into a numerical value consisting of a predetermined bit length; and a plurality of upper bits excluding the most significant bit in the input numerical value, the plurality of upper bits having the same bit length as the predetermined bit length. An exclusive-OR circuit for performing an exclusive-OR operation on a numerical value having a predetermined bit length and an output having the predetermined bit length. The output of the NOT circuit, the output of the exclusive OR circuit, the plurality of lower-order bits, and the input The remaining bits in the calculated numerical value as the output of the inverse code converter;
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3274855A JP2864813B2 (en) | 1991-09-26 | 1991-09-26 | Encryption device and decryption device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3274855A JP2864813B2 (en) | 1991-09-26 | 1991-09-26 | Encryption device and decryption device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0591101A JPH0591101A (en) | 1993-04-09 |
| JP2864813B2 true JP2864813B2 (en) | 1999-03-08 |
Family
ID=17547517
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3274855A Expired - Lifetime JP2864813B2 (en) | 1991-09-26 | 1991-09-26 | Encryption device and decryption device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2864813B2 (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2727955B2 (en) * | 1994-02-14 | 1998-03-18 | 日本電気株式会社 | Public key encryption device |
| US7725715B2 (en) * | 2005-02-24 | 2010-05-25 | Access Business Group International Llc | System and method for three-phase data encryption |
| JP6631989B2 (en) * | 2013-10-24 | 2020-01-15 | 鈴木 秀一 | Encryption device, control method, and program |
| JP6729412B2 (en) * | 2017-01-18 | 2020-07-22 | 富士通株式会社 | Data output control device, information processing device, and data output control method |
-
1991
- 1991-09-26 JP JP3274855A patent/JP2864813B2/en not_active Expired - Lifetime
Non-Patent Citations (1)
| Title |
|---|
| 島田道雄,田中和恵,岡本栄司「データ長の拡大を防ぐRSA暗号のブロック化方式」昭和63年電子情報通信学会秋季全国大会講演論文集A−1,p.A−1−92 |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0591101A (en) | 1993-04-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100657062B1 (en) | Information encryption method and apparatus for realizing this method | |
| CA2218148C (en) | Generating unique and unpredictable values | |
| JP3339688B2 (en) | Non-deterministic mixture generator stream encryption system | |
| EP0725511B1 (en) | Method for data encryption/decryption using cipher block chaining (CBC) and message authentication codes (MAC) | |
| JP4608319B2 (en) | Stream cipher generation method using multiple keys | |
| US20070195952A1 (en) | Method And System For Computational Transformation | |
| JP3180836B2 (en) | Cryptographic communication device | |
| JP2009116348A (en) | Data decorrelation method | |
| Joshy et al. | Text to image encryption technique using RGB substitution and AES | |
| CN100393026C (en) | Binary data block encryption conversion method | |
| US20020136400A1 (en) | R-conversion encryption method and system | |
| JP2864813B2 (en) | Encryption device and decryption device | |
| JP3517663B2 (en) | Encryption communication method and encryption communication system | |
| US5068895A (en) | Encryption and decryption methods using bit-length preservation decryptor | |
| JP2000209195A (en) | Cryptographic communication system | |
| JP2727955B2 (en) | Public key encryption device | |
| JP2002252610A (en) | Encryption device and decryption device, and public key encryption system and public key decryption system | |
| JPH07121107A (en) | Key forming method and device | |
| Dhamodharan et al. | Multifarious mapping schemes on Elliptic curve cryptography for IoT security | |
| JPH0736673A (en) | Random number generator, communication system using the same, and method thereof | |
| RU2141728C1 (en) | Method for encrypting binary information | |
| JP2001509608A (en) | Method for cryptographically converting an L-bit input block of digital data into an L-bit output block | |
| KR100639764B1 (en) | Block Encryption Method | |
| CN118353627A (en) | Group chat encryption method, system, device and medium based on quantum key | |
| KR100965874B1 (en) | Apparatus and method for encrypting/decrypting cipher key chaining |