JPH03265240A - Data cryptographic processing circuit - Google Patents

Data cryptographic processing circuit

Info

Publication number
JPH03265240A
JPH03265240A JP2065367A JP6536790A JPH03265240A JP H03265240 A JPH03265240 A JP H03265240A JP 2065367 A JP2065367 A JP 2065367A JP 6536790 A JP6536790 A JP 6536790A JP H03265240 A JPH03265240 A JP H03265240A
Authority
JP
Japan
Prior art keywords
data
circuit
output
input
control
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.)
Pending
Application number
JP2065367A
Other languages
Japanese (ja)
Inventor
Noriyoshi Sonedaka
則義 曽根高
Takaaki Kawashima
隆明 川島
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.)
NEC Corp
NEC Engineering Ltd
Original Assignee
NEC Corp
NEC Engineering Ltd
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 NEC Corp, NEC Engineering Ltd filed Critical NEC Corp
Priority to JP2065367A priority Critical patent/JPH03265240A/en
Publication of JPH03265240A publication Critical patent/JPH03265240A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To process a data with one cryptographic processing circuit and to miniaturize the equipment by replacing an input section and an output section when the data input/output direction is subject to switching control for the direction of data cryptographic processing direction at transmission/reception and controlling the data in two-way. CONSTITUTION:When one of input/output direction control circuits 1, 2 acts like an input circuit by using a control signal 101, the other acts like an output circuit. A latch circuit 4 latches a key for encrypting a transmission data and decoding an input data and a latch circuit 5 latches an input data. A control signal selection circuit 3 gives a data to the latch circuits 4, 5 in response to the input/output control direction. The processing circuit is provided with a cryptographic (decoding) processing circuit 6, an output data latch circuit 7, a selection circuit 8 and an output data selection control counter 9 setting a timing of selection arrangement and applies data cryptographic transmission and decoding reception under the control of a write signal control circuit 10 and a write signal enable circuit 11. Since no CPU is interposed, the constitution is simplified and the increase in the processing time is prevented.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータ暗号化処理回路に関し、特番こディジタ
ル通信装置に使用するデータ暗号化処理回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data encryption processing circuit, and more particularly to a data encryption processing circuit used in a special number digital communication device.

〔従来の技術〕[Conventional technology]

従来、データ暗号化処理回路はデータの入力部と出力部
が固定さていたため、データ入出力(ヨー方向しか実行
できず、従ってデータの暗号化送信と復号化受信には、
はぼ同規模の2つのデータ暗号化処理回路を備えていた
Conventionally, data encryption processing circuits had fixed data input and output sections, and could only perform data input/output (yaw direction).
It was equipped with two data encryption processing circuits of approximately the same scale.

また、データ出力方法は、暗号(復号〉化処理回路の処
理状態をCPUにより監視し、処理終了を確認した後C
PUが出力制御を行うことGこよりデータを出力させ、
さらにCPUの制御により送信器等の外部回路へデータ
書き込みを行ってす)た。
In addition, the data output method is such that the processing status of the encryption (decryption) processing circuit is monitored by the CPU, and after confirming the completion of the processing, the
The PU performs output control and outputs data from G.
Furthermore, data is written to external circuits such as a transmitter under the control of the CPU.

第2図は従来のデータ暗号化処理回路偉構成図である。FIG. 2 is a block diagram of a conventional data encryption processing circuit.

実際の運用状態では2つの回路力く送信用と受信用に用
意されている。
In actual operation, two circuits are provided, one for transmitting and one for receiving.

いま、第2図のデータ暗号化処理回路が復号化処理用で
ある場合を例として説明する。
The case where the data encryption processing circuit shown in FIG. 2 is used for decryption processing will now be described as an example.

交信先から受信した外部回路経由データ/鍵入力201
.入力イネーブル信号202.書き込み信号203およ
びラッチ回路選択信号204を受ける復号化鍵ラッチ回
路21と入力データラッチ回路22からはそれぞれ、鍵
206と入力データ207が抽出され、復号化処理回路
23に供給される。
Data/key input via external circuit received from communication destination 201
.. Input enable signal 202. A key 206 and input data 207 are extracted from the decryption key latch circuit 21 and the input data latch circuit 22, which receive the write signal 203 and the latch circuit selection signal 204, respectively, and are supplied to the decryption processing circuit 23.

復号化処理回路23は、クロック205の供給を受けつ
つ復号化処理を行ない、出力データラッチ信号208と
、処理終了データ209が出力され、次に出力データラ
ッチ回路24で復号化データをラッチしてとり込みその
ラッチデータはう・1チ出力データ210として出力デ
ータ選択回路25に供給される。復号化処理回路23か
らはまた、復号化処理終了信号213が出力される。
The decoding processing circuit 23 performs decoding processing while being supplied with a clock 205, outputs an output data latch signal 208 and processing end data 209, and then latches the decoded data in the output data latch circuit 24. The captured latch data is supplied to the output data selection circuit 25 as output data 210. The decoding processing circuit 23 also outputs a decoding processing end signal 213.

一般に、ブロック暗号化にあっては、暗号化データは不
要ビット等直接データに関係ないビ・ソトや素抜はビッ
ト等を含み、また並列データ処理される。従って、所望
の出力データを時系列的に求めるためには出力データラ
ッチ回路24から出力されるこのようなラッチ出力デー
タ210に対して求める時系列信号として再生するため
のデータの配列選択を行なうタイミング情報と配列選択
処理が必要となる。
In general, in block encryption, encrypted data includes unnecessary bits and other bits that are not directly related to the data, and is processed in parallel. Therefore, in order to obtain desired output data in a time-series manner, the timing for selecting the data arrangement for reproducing the desired time-series signal from such latch output data 210 output from the output data latch circuit 24 is determined. Information and sequence selection processing are required.

出力データ選択回路25は、ラッチ出力データ210に
対して上述した配列選択処理を施し、また出力データ選
択制御回路26は、上位の外部回路から提供される出力
イネーブル信号214と読み出し信号215にもとづい
て上述したタイミング情報としての制御信号212を発
生し、出力データ選択回路25からは復号化された所望
の出力データ211が出力され、これと復号化処理終了
信号213がCPU等の上位の外部回路に送出される。
The output data selection circuit 25 performs the above-described array selection processing on the latch output data 210, and the output data selection control circuit 26 performs the above-described array selection processing on the latch output data 210, and the output data selection control circuit 26 performs the above-described array selection processing on the latch output data 210. The control signal 212 as the above-mentioned timing information is generated, the output data selection circuit 25 outputs the decoded desired output data 211, and this and the decoding process end signal 213 are sent to a higher-order external circuit such as a CPU. Sent out.

上述した内容は、複合化の場合、すなわち受信した時の
場合であるが、データを暗号化して送信する場合は、復
号化鍵ラッチ回路21を暗号化鍵ラッチ回路とし、復号
化処理回路23を暗号化処理回路を変更して構成するこ
とにより、はぼ同様な処理手順で処理することができる
The above description applies to the case of decryption, that is, when data is received. However, when data is encrypted and transmitted, the decryption key latch circuit 21 is used as an encryption key latch circuit, and the decryption processing circuit 23 is used as an encryption key latch circuit. By changing and configuring the encryption processing circuit, processing can be performed using almost the same processing procedure.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のデータ暗号化処理回路は、データの入力
部と出力部が固定されていたため、データの入出力は一
方向しか実行することができず、このため、データの受
信を行うためには、送信と受信用にそれぞれ1つずつデ
ータ暗号化処理回路を持たなければならないため、回路
構成が大きくなるという欠点がある。
In the conventional data encryption processing circuit described above, the data input section and output section are fixed, so data input/output can only be performed in one direction. Therefore, in order to receive data, , it is necessary to have one data encryption processing circuit for transmission and one for reception, which has the disadvantage that the circuit configuration becomes large.

また、暗号化処理終了データを出力するために、常時暗
号(復号〉化処理回路の処理状態をCPUにより監視を
行い、処理終了を確認した後、CPUが出力制御を行う
構成となっていたため、CPUの処理項目内容を増やし
てしまう効果となり、システムとしての処理時間が長く
なり、かつ回路構成が複雑になるという欠点がある。
In addition, in order to output the encrypted data, the CPU constantly monitors the processing status of the encryption (decryption) processing circuit, and after confirming the completion of the processing, the CPU controls the output. This has the effect of increasing the number of processing items for the CPU, which lengthens the processing time of the system and makes the circuit configuration complex.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のデータ暗号化処理回路は、一方がデータを入力
するときは他方がデータを出力するように入出力方向を
制御してデータの送受信を可能とする第1および第2の
2つの入出力方向制御回路と、送出すべきデータに対す
る暗号化および暗号化された入力データに対する復号化
を行なうための鍵をラッチする暗号(復号)化鍵ラッチ
回路と、入力データのラッチを行なう入力データラッチ
回路と、データ入出力の制御方向に対応して前記第1も
しくは第2の入出力方向制御回路で方向を制御されたデ
ータのいずれかを前記暗号(復号)化鍵ラッチ回路およ
び入力データラッチ回路に供給せしめる制御信号選択回
路と、送出すべきデータに対する暗号化および受信した
暗号化データの復号化処理を行なう暗号(復号)化処理
回路と、前記暗号(復号)化処理回路を出力データをラ
ッチして出力する出力データラッチ回路と、前記出力デ
ータラッチ回路の出力するデータを暗号化もしくは復号
化における所定の時系列データに選択配列する出力デー
タ選択回路と、前記出力データ選択回路における選択配
列のタイミング設定を符なう出力データ選択制御カウン
タ回路と、前記第1もしくは第2の入出力方向制御回路
がち外部回路に送出されるデータの書き込みのイネーブ
ル制御を行なう書き込み信号イネーブル回路と、前記出
力データ選択制御カウンタ回路の制御のもとに前記書き
込み信号イネーブル回路に外部回路に対する書き込み信
号を出力する書き込み信号制御回路とを備え、データ暗
号化送信とデータ復号化受信を行なう構成を有する。
The data encryption processing circuit of the present invention has two input/output circuits, a first and a second input/output circuit, which enable data transmission and reception by controlling the input/output direction so that when one inputs data, the other outputs data. A direction control circuit, an encryption (decryption) key latch circuit that latches a key for encrypting data to be sent and decrypting encrypted input data, and an input data latch circuit that latches input data. and, corresponding to the data input/output control direction, either the data whose direction is controlled by the first or second input/output direction control circuit is sent to the encryption (decryption) key latch circuit and the input data latch circuit. an encryption (decryption) processing circuit that encrypts data to be sent and decrypts received encrypted data; and a control signal selection circuit that causes the encryption (decryption) processing circuit to latch output data. an output data latch circuit that outputs data from the output data latch circuit, an output data selection circuit that selectively arranges data output from the output data latch circuit into predetermined time series data in encryption or decryption, and timing of selection arrangement in the output data selection circuit. an output data selection control counter circuit that performs settings; a write signal enable circuit that performs enable control for writing data sent to an external circuit; and the output data selection circuit. The write signal control circuit outputs a write signal to an external circuit to the write signal enable circuit under the control of a control counter circuit, and is configured to perform data encryption transmission and data decryption reception.

また本発明のデータ暗号化処理回路は、前記暗号化をブ
ロック暗号化とした構成を有する。
Further, the data encryption processing circuit of the present invention has a configuration in which the encryption is block encryption.

〔実施例〕〔Example〕

次に、本発明のついて図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例の構成図である。第1図に示
す実施例は、一方がデータを入力するときは他方がデー
タを出力するように入出力方向を制御してデータの送受
信を可能とする第1および第2の2つの入出力方向制御
回路としての入出力方向制御回路AI、B2と、送出す
べきデータに対する暗号化および暗号化された入力デー
タに対する復号化を行なうための鍵をラッチする暗号(
復号〉化鍵ラッチ回路4と、入力データのラッチを行な
う入力データラッチ回路5と、データ入出力の制御方向
に対応して入出力方向制御回路A1もしくはB2で方向
を制御されたデータのいずれかを暗号(復号)化鍵ラッ
チ回路4および入力データラッチ回路5に供給させる制
御信号選択回路3と、送出すべきデータに対する暗号化
および受信した暗号化データの復号化処理を行なう暗号
(復号)化処理回路6と、暗号(復号)化処理回路6を
出力データをラッチして出力する出力データラッチ回路
7と、出力データラッチ回路7の出力するデータを暗号
化もしくは復号化における所定の時系列データに選択配
列する出力データ選択回路8と、出力データ選択回路8
における選択配列のタイミング設定を行なう出力データ
選択制御カウンタ回路つと、入出力方向制御回路AIも
しくはB2から外部回路に送出されるデータの書き込み
のイネーブル制御を行なう書き込み信号イネーブル回路
11と、出力データ選択制御カウンタ回路9の制御のも
とに書き込み信号イネーブル回路11に外部回路に対す
る書き込み信号を出力する書き込み信号制御回路1oと
を備えて構成される。
FIG. 1 is a block diagram of an embodiment of the present invention. The embodiment shown in FIG. 1 has two input/output directions, a first and a second input/output direction, which enable data transmission and reception by controlling the input/output direction so that when one inputs data, the other outputs data. Input/output direction control circuits AI and B2 as control circuits, and a cipher (which latches a key for encrypting data to be sent and decrypting encrypted input data).
Decryption key latch circuit 4, input data latch circuit 5 that latches input data, and data whose direction is controlled by input/output direction control circuit A1 or B2 corresponding to the control direction of data input/output. a control signal selection circuit 3 for supplying a signal to an encryption (decryption) key latch circuit 4 and an input data latch circuit 5; A processing circuit 6, an output data latch circuit 7 that latches and outputs output data from the encryption (decryption) processing circuit 6, and predetermined time series data for encrypting or decoding data output from the output data latch circuit 7. an output data selection circuit 8 that selectively arranges the output data selection circuit 8;
an output data selection control counter circuit that sets the timing of the selection array in the input/output direction control circuit AI or B2; It is configured to include a write signal control circuit 1o that outputs a write signal to an external circuit to a write signal enable circuit 11 under the control of a counter circuit 9.

次に、第1図の実施例の動作の説明に先立ち、まず本発
明の基本的特徴について説明する。
Next, before explaining the operation of the embodiment shown in FIG. 1, the basic features of the present invention will be explained first.

本データ暗号化処理回路は、次の4つの基本的機能を有
する。
This data encryption processing circuit has the following four basic functions.

(1)データ入出力の方向切り換え制御を行い、データ
の入力部と出力部の入れ換えを行うことにより、データ
送受信時のデータ暗号化処理を双方向に対して行うこと
を可能とする。
(1) By performing data input/output direction switching control and switching the data input section and output section, it is possible to perform data encryption processing in both directions when transmitting and receiving data.

(2〉データ入力部と出力部の入れ換えを行った場合に
、データの入力と出力に伴う制御も同様に入れ換えて双
方向がら制御を行う。
(2> When the data input section and output section are swapped, the control associated with data input and output is also swapped in the same way to perform bidirectional control.

(3)暗号(復号)化処理の処理終了信号にもとでいて
、暗号(復号)化にもとづくデータ構成の変化を復元し
て整列するための出力データの選択配列の制御をクロッ
クによるカウントアツプ出力によって行い、カウンタ出
力信号によりデータの自動出力を行う。
(3) Based on the processing end signal of the encryption (decryption) process, a clock-based count-up control is used to control the selection sequence of output data for restoring and arranging changes in the data structure based on the encryption (decryption). This is done by output, and the data is automatically output by the counter output signal.

(4)外部出力への出力データ書き込みを行うために、
(3)のカウンタ回路は、カウントア・ツブ中にクロッ
クにもとづいて出力データを外部回路にき込むための書
き込み信号を出力する。
(4) To write output data to external output,
The counter circuit (3) outputs a write signal for writing output data into an external circuit based on the clock during counting.

本データ暗号化処理回路では、回路内部において(1)
 、 (2)の処理を行うことにより、従来、データ送
受信時における送信、受信で独立に存在していたデータ
暗号化処理回路を1つの回路で構成することができるよ
うにし、また(3) 、 (4)の処理を同時に行うこ
とにより、CPUが出力制御を行うために起こる処理時
間の超過を排除し、また、CPUを介在させないことに
より回路構成の簡略化を行っている。
In this data encryption processing circuit, (1)
, By performing the processing in (2), the data encryption processing circuit, which conventionally existed independently for transmission and reception during data transmission and reception, can be configured into one circuit, and (3), By performing the processing in (4) at the same time, excess processing time caused by the CPU performing output control is eliminated, and the circuit configuration is simplified by not involving the CPU.

次に、第1図の実施例の動作について説明する。Next, the operation of the embodiment shown in FIG. 1 will be explained.

まず、出力方向制御信号101により入出力方向の設定
を行い、データの入力側と終力側を決定する。本実施例
においては、入出力方向制御回路A1が入力側、入出力
方向制御回路B2が出力側に設定されているとして説明
を行う。
First, the input/output direction is set using the output direction control signal 101, and the data input side and final output side are determined. In this embodiment, the explanation will be given assuming that the input/output direction control circuit A1 is set on the input side and the input/output direction control circuit B2 is set on the output side.

入出力方向制御信号101により、入出力方向制御回路
A1が入力側に設定されるのと同時に、入出力方向制御
信号101により、制御信号選択回路3は、ラッチ回路
選択信号A11lと、入力イネーブル信号A112と、
書き込み信号Al13を制御信号として選択する。
The input/output direction control signal 101 sets the input/output direction control circuit A1 to the input side, and at the same time, the input/output direction control signal 101 causes the control signal selection circuit 3 to output the latch circuit selection signal A11l and the input enable signal. A112 and
Write signal Al13 is selected as the control signal.

暗号(復号)化処理を行うためには先に鍵を入力してお
く必要がある。
In order to perform encryption (decryption) processing, it is necessary to input a key first.

まず暗号(復号〉化鍵ラッチ回路4に鍵の入力を行う。First, a key is input to the encryption (decryption) key latch circuit 4.

鍵の入力は、ラッチ回路選択信号Al11により暗号(
復号〉化鍵ラッチ回路4を選択し、入力イネーブル信号
A112により回路をイネーブルにして、データ入出力
A114から鍵を上位から順に入力し、書き込み信号A
113により書き込みを行う。
The key input is encrypted (
Select the decryption key latch circuit 4, enable the circuit with the input enable signal A112, input the keys from the data input/output A114 in order from the top, and write the write signal A.
Writing is performed by 113.

データ入出力A114は、入出力方向制御回路A1を通
りデータ入力134となり暗号(復号)化鍵ラッチ回路
4に書き込まれる。鍵入力後、入力データラッチ回路5
に暗号(復号〉化処理を行うデータ人力する。データの
入力は、う・ンチ回路選択信号A11lにより入力デー
タラッチ回路5を選択し、以下鍵入力の場合と同様の操
作を行つ。
The data input/output A114 passes through the input/output direction control circuit A1, becomes a data input 134, and is written into the encryption (decryption) key latch circuit 4. After key input, input data latch circuit 5
Data is manually input to undergo encryption (decryption) processing.To input data, the input data latch circuit 5 is selected by the input circuit selection signal A11l, and the same operation as in the case of key input is performed.

データ入力後、暗号(復号〉化処理回路6においてブロ
ック暗号(復号)化処理を行う。処理終了後、暗号(復
号)化処理回路6は、出力データラッチ回路6は、出力
データラッチ回路7に処理データ139を出力し、処理
データラ・y子信号138によりラッチさせラッチ出力
データ140が出力される。
After inputting the data, block encryption (decryption) processing is performed in the encryption (decryption) processing circuit 6. After the processing is completed, the encryption (decryption) processing circuit 6, the output data latch circuit 6, and the output data latch circuit 7. The processed data 139 is outputted and latched by the processed data L/Y signal 138, and latched output data 140 is outputted.

暗号(復号〉化処理回路6は、処理データラ・ソチ信号
138を出力した後、暗号(複合)処理終了信号142
を出力し、これにより出力データ選択制御カウンタ回路
9をイネーブル状態にする。
After outputting the processed data la sochi signal 138, the encryption (decryption) processing circuit 6 outputs the encryption (decoding) processing end signal 142.
is output, thereby enabling the output data selection control counter circuit 9.

出力データ選択制御カウンタ回路9は、イネーブル後、
クロック102によりラッチ所定のカウントアツプを実
行し、出力データ選択回路8を制御するための制御信号
141を出力する。上述した所定のカウントアツプは、
パラレルデータ構成のラッチ出力データ140を所定の
シリアル暗号(復号)化データとして構成するのに必要
なブロックのタイミング、あるいは不要ビット、素抜は
ビットの排除等に必要な処理タイミング情報としての制
御信号141生戒に必要にクロックカウントにもとづく
タイミング設定のために行われるものである。
After the output data selection control counter circuit 9 is enabled,
The latch performs a predetermined count-up using the clock 102, and outputs a control signal 141 for controlling the output data selection circuit 8. The predetermined count-up mentioned above is
A control signal as processing timing information necessary for block timing necessary to configure the latch output data 140 having a parallel data configuration as predetermined serial encrypted (decrypted) data, or for eliminating unnecessary bits or bits. This is done to set the timing based on the clock count, which is necessary for the 141st precept.

こうして、出力データ選択回路8は、上位から順に求め
る処理データをシリアル形式で自動出力する。
In this way, the output data selection circuit 8 automatically outputs the desired processing data in serial format starting from the highest order.

自動出力される出力データ135は、入出力方向制御回
路B2を通り、外部回路に出力される。
The output data 135 that is automatically output passes through the input/output direction control circuit B2 and is output to an external circuit.

出力データ選択制御カウンタ回路9は、カウントアツプ
中に書き込み信号制御回路10にイネーブル信号14B
を出力して書き込み信号制御回路10をイネーブルにす
る。
The output data selection control counter circuit 9 sends an enable signal 14B to the write signal control circuit 10 during count-up.
is output to enable the write signal control circuit 10.

書き込み信号制御回路10は、イネーブルになるとクロ
ック102にもとづいて出力データを外部回路に書き込
むための外部回路書き込み信号144を出力する。
When enabled, the write signal control circuit 10 outputs an external circuit write signal 144 for writing output data to an external circuit based on the clock 102.

出力された外部回路書き込み信号144は、書き込み信
号イネーブル回路11により、入出力方向制御信号10
1に基づいてイネーブル処理が行われて出力される。こ
のとき、入出力方向制御回路B2が出力側になっている
ので外部書き込み信号B125がイネーブルとなり出力
される。
The output external circuit write signal 144 is converted into an input/output direction control signal 10 by the write signal enable circuit 11.
Enable processing is performed based on 1 and output. At this time, since the input/output direction control circuit B2 is on the output side, the external write signal B125 is enabled and output.

このようにして本実施例では、出力データ選択制御カウ
ンタ回路9が、出力データ選択回路8を制御して行うデ
ータ出力と、書き込み信号制御回路10と書き込み信号
イネーブル回路11によるの外部回路書き込み信号の出
力を同時に行い、これにより随時外部回路への書き込み
を行う。
In this manner, in this embodiment, the output data selection control counter circuit 9 controls the output data selection circuit 8 to output data, and the write signal control circuit 10 and the write signal enable circuit 11 to output the external circuit write signal. Output is performed at the same time, and writing to the external circuit is performed at any time.

なお、本実施例においては、入出力方向制御回路A1が
入力側、入出力方向制御回路B2が出力側に設定されて
いるとして説明を行ったが、逆方向にした場合でも処理
内容は同じである。ただし、入出力の制御方向も逆方向
になり、う・ンチ回路選択信号A111はラッチ回路選
択信号B121に、入力イネーブル信号A112は入力
B122に、書き込み信号A113は書き込み信号B1
23に、外部回路書き込み信号B125は外部回路書き
込み信号A115になる。
In this embodiment, the explanation has been made assuming that the input/output direction control circuit A1 is set to the input side and the input/output direction control circuit B2 is set to the output side, but the processing content is the same even if the input/output direction control circuit A1 is set to the input side and the input/output direction control circuit B2 is set to the output side. be. However, the input/output control direction is also reversed, and the latch circuit selection signal A111 becomes the latch circuit selection signal B121, the input enable signal A112 becomes the input B122, and the write signal A113 becomes the write signal B1.
23, the external circuit write signal B125 becomes the external circuit write signal A115.

本データ暗号化処理回路は、データ入出力方向切り換え
制御を行った場合に、データの入力部と出力部の入れ換
えを行うことにより、データ送受信時のデータ暗号化処
理を双方向に対して行い、データの入力部と出力部の入
れ換えを行った場合に、データの入力と出力の伴う制御
も同様に入れ換えて双方向から制御を行うことにより、
従来では、データの送受信を行うために送信側と受信側
に1つずつデータ暗号化処理回路を持たなければならな
かったという欠点を排除し、また従来の回路においてC
PUが行っていた暗号(復号)化処理回路の処理状態を
監視を本回路内部で行い、暗号化処理回路からの読み出
し制御と、外部回路への書き込み制御を本回路内部にお
いて同時に行うことにより、CPUの処理項目内容の増
加によるシステムとしての処理時間の増加によるシステ
ムとしての処理時間の増加と、回路構成の複雑化を大幅
に排除したものとなっている。
When performing data input/output direction switching control, this data encryption processing circuit performs data encryption processing in both directions during data transmission and reception by swapping the data input and output sections. When the data input and output sections are swapped, the control associated with the data input and output can also be swapped and controlled from both directions.
This eliminates the disadvantage that conventionally, in order to send and receive data, it was necessary to have one data encryption processing circuit on the sending side and one on the receiving side.
By monitoring the processing status of the encryption (decryption) processing circuit that was performed by the PU within this circuit, and simultaneously controlling reading from the encryption processing circuit and writing to the external circuit within this circuit, This greatly eliminates the increase in system processing time due to an increase in the number of processing items of the CPU, and the complication of the circuit configuration.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、データ入出力の方向切り
換え制御を行った場合に、データの入力部と出力部の入
れ換えを行うことにより、データ送受信時のデータ暗号
化処理方向に対して行い、また、データ入力部と出力部
の入れ換えを行った場合に、データの入力と出力の伴う
制御も同様に入れ換えて双方向から制御を行うことによ
り、1つのデータ暗号化処理回路で双方向の暗号(復号
〉化処理が行えるという効果がある。
As explained above, the present invention performs data encryption processing in the direction of data transmission/reception by switching the data input section and output section when performing data input/output direction switching control. In addition, when the data input section and output section are swapped, the controls associated with data input and output are also swapped and control is performed from both directions, making it possible to perform bidirectional encryption using a single data encryption processing circuit. (Decoding) processing can be performed.

また、従来のデータ暗号化処理回路と比べて出力制御お
よび外部回路への書き込み制御にCPUを必要としない
ため、CPUがデータの出力制御および書き込み制御を
行うために起こる処理時間の超過を排除し、さらに、C
PUを介在させないことにより回路構成の簡略化を行い
、装置等に実装した場合の占有面積を縮小できるので装
置等を小型化できという効果がある。
Additionally, compared to conventional data encryption processing circuits, a CPU is not required for output control and write control to external circuits, which eliminates excessive processing time caused by the CPU controlling data output and writing. , furthermore, C
By not interposing the PU, the circuit configuration can be simplified and the area occupied when mounted on a device or the like can be reduced, which has the effect of downsizing the device or the like.

第1図本発明の一実施例を示す構成図、第2図は従来の
暗号化処理回路の構成図である。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a block diagram of a conventional encryption processing circuit.

1・・・入出力方向制御回路A、2・・・入出力方向制
御回路B、3・・・制御信号選択回路、4・・・暗号(
復号〉化鍵ラッチ回路、5・・・入力データラッチ回路
、6・・・暗号(復号〉化処理回路、7・・・出力デー
タラッチ回路、8・・・出力データ選択回路、9・・・
出力データ選択制御カウンタ回路、10・・・書き込み
信号制御回路、11・・・書き込み信号イネーブル回路
、21・・・暗号(復号)化鍵ラッチ回路、22・・・
入力データラッチ回路、23・・・暗号(復号)化処理
回路、24・・・出力データラッチ回路、25・・出力
データ選択回路、26・・・出力データ選択制御カウン
タ回路。
1... Input/output direction control circuit A, 2... Input/output direction control circuit B, 3... Control signal selection circuit, 4... Code (
Decryption key latch circuit, 5... Input data latch circuit, 6... Encryption (decryption) processing circuit, 7... Output data latch circuit, 8... Output data selection circuit, 9...
Output data selection control counter circuit, 10... Write signal control circuit, 11... Write signal enable circuit, 21... Encryption (decryption) key latch circuit, 22...
Input data latch circuit, 23... Encryption (decryption) processing circuit, 24... Output data latch circuit, 25... Output data selection circuit, 26... Output data selection control counter circuit.

Claims (1)

【特許請求の範囲】 1、一方がデータを入力するときは他方がデータを出力
するように入出力方向を制御してデータの送受信を可能
とする第1および第2の2つの入出力方向制御回路と、
送出すべきデータに対する暗号化および暗号化された入
力データに対する復号化を行なうための鍵をラッチする
暗号(復号)化鍵ラッチ回路と、入力データのラッチを
行なう入力データラッチ回路と、データ入出力の制御方
向に対応して前記第1もしくは第2の入出力方向制御回
路で方向を制御されたデータのいずれかを前記暗号(復
号)化鍵ラッチ回路および入力データラッチ回路に供給
せしめる制御信号選択回路と、送出すべきデータに対す
る暗号化および受信した暗号化データの復号化処理を行
なう暗号(復号)化処理回路と、前記暗号(復号)化処
理回路の出力データをラッチして出力する出力データラ
ッチ回路と、前記出力データラッチ回路の出力するデー
タを暗号化もしくは復号化における所定の時系列データ
に選択配列する出力データ選択回路と、前記出力データ
選択回路における選択配列のタイミング設定を行なう出
力データ選択制御カウンタ回路と、前記第1もしくは第
2の入出力方向制御回路から外部回路に送出されるデー
タの書き込みのイネーブル制御を行なう書き込み信号イ
ネーブル回路と、前記出力データ選択制御カウンタ回路
の制御のもとに前記書き込み信号イネーブル回路に外部
回路に対する書き込み信号を出力する書き込み信号制御
回路とを備え、データ暗号化送信とデータ復号化受信を
行なうことを特徴とするデータ暗号化処理回路。 2、前記暗号化をブロック暗号化としたことを特徴とす
る請求項1記載のデータ暗号化処理回路。
[Claims] 1. Two input/output direction controls, first and second, which enable data transmission and reception by controlling the input/output direction so that when one inputs data, the other outputs data. circuit and
An encryption (decryption) key latch circuit that latches a key for encrypting data to be sent and decrypting encrypted input data, an input data latch circuit that latches input data, and a data input/output circuit. control signal selection for supplying either data whose direction is controlled by the first or second input/output direction control circuit to the encryption (decryption) key latch circuit and the input data latch circuit in accordance with the control direction of the input/output direction control circuit; a circuit, an encryption (decryption) processing circuit that encrypts data to be sent and decrypts received encrypted data, and output data that latches and outputs the output data of the encryption (decryption) processing circuit. a latch circuit; an output data selection circuit for selectively arranging the data output from the output data latch circuit into predetermined time series data for encryption or decoding; and output data for setting the timing of the selection arrangement in the output data selection circuit. A selection control counter circuit, a write signal enable circuit for enabling control of writing of data sent from the first or second input/output direction control circuit to an external circuit, and a control function for the output data selection control counter circuit. and a write signal control circuit that outputs a write signal to an external circuit to the write signal enable circuit, and performs data encryption transmission and data decryption reception. 2. The data encryption processing circuit according to claim 1, wherein the encryption is block encryption.
JP2065367A 1990-03-14 1990-03-14 Data cryptographic processing circuit Pending JPH03265240A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2065367A JPH03265240A (en) 1990-03-14 1990-03-14 Data cryptographic processing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2065367A JPH03265240A (en) 1990-03-14 1990-03-14 Data cryptographic processing circuit

Publications (1)

Publication Number Publication Date
JPH03265240A true JPH03265240A (en) 1991-11-26

Family

ID=13284923

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2065367A Pending JPH03265240A (en) 1990-03-14 1990-03-14 Data cryptographic processing circuit

Country Status (1)

Country Link
JP (1) JPH03265240A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59186442A (en) * 1983-04-08 1984-10-23 Fujitsu Ltd Time-division ciphering system of ciphering device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59186442A (en) * 1983-04-08 1984-10-23 Fujitsu Ltd Time-division ciphering system of ciphering device

Similar Documents

Publication Publication Date Title
US5513262A (en) Device for enciphering and deciphering, by means of the DES algorithm, data to be written to be read from a hard disk
JPS6122316B2 (en)
JPH03500117A (en) Encryption method and device with electronically redefinable algorithms
JPH01122227A (en) Transmission equipment
AU7859991A (en) Encryption apparatus
GB2398213A (en) Encryption using the KASUMI algorithm
JPS61501001A (en) Encrypted transmission system
US6466669B1 (en) Cipher processor, IC card and cipher processing method
EP0105553B1 (en) Device for enciphering digital signals comprising one or more des circuits
JPH03265240A (en) Data cryptographic processing circuit
JPH11161162A (en) Ciphering method or deciphering method, and device using the method
CN112242970B (en) Data segmentation encryption security reinforcing method and device
JP4117095B2 (en) Encryption method
JPH0719124B2 (en) Cryptographic device
JPH0983508A (en) Cipher device
JP3043347B2 (en) Automatic data output encryption processing circuit
JPH09200195A (en) Ciphering communication system
JPS61224531A (en) Enciphering device by output feedback mode system
JPH07191603A (en) Encrypting device and confidentially verified communication system using the same
KR100459160B1 (en) Japanese satellite broadcasting decoder
JPH09139849A (en) Enciphering method for facsimile equipment
JPH0983814A (en) Terminal equipment for ciphering communication
JPH056839B2 (en)
JPS61177046A (en) Cipher communication system
JPH01151846A (en) Cryptographic device