Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0691528B2 - Data key setting method of line encryption device - Google Patents
[go: Go Back, main page]

JPH0691528B2 - Data key setting method of line encryption device - Google Patents

Data key setting method of line encryption device

Info

Publication number
JPH0691528B2
JPH0691528B2 JP60241666A JP24166685A JPH0691528B2 JP H0691528 B2 JPH0691528 B2 JP H0691528B2 JP 60241666 A JP60241666 A JP 60241666A JP 24166685 A JP24166685 A JP 24166685A JP H0691528 B2 JPH0691528 B2 JP H0691528B2
Authority
JP
Japan
Prior art keywords
encryption device
terminal
master
key
mode
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
Application number
JP60241666A
Other languages
Japanese (ja)
Other versions
JPS62104238A (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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP60241666A priority Critical patent/JPH0691528B2/en
Publication of JPS62104238A publication Critical patent/JPS62104238A/en
Publication of JPH0691528B2 publication Critical patent/JPH0691528B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データキーにより主局暗号装置と各端末暗号
装置とを介してデータの暗号通信を行う回線暗号装置の
データキー設定方法に関する。
Description: TECHNICAL FIELD The present invention relates to a data key setting method for a line encryption device that performs data encrypted communication using a data key via a master encryption device and each terminal encryption device.

〔従来の技術〕[Conventional technology]

主局暗号装置と複数の端末暗号装置とを介して主局と端
末とを回線接続した従来の回線暗号装置においては、通
信データを暗号化するデータキーKDが、主局暗号装置の
電源ONにより相手側の端末暗号装置と共通に設定された
マスタキーKMで暗号化され、主局暗号装置から端末暗号
装置に配送されるものとなっている。
In the conventional line encryption device in which the main station and the terminal are connected to each other via the main station encryption device and multiple terminal encryption devices, the data key KD that encrypts communication data is set by turning on the power of the main station encryption device. It is encrypted with a master key KM that is commonly set with the terminal encryption device on the other side and delivered from the master encryption device to the terminal encryption device.

これを図を用いて以下に説明すると、第2図は分岐回線
接続による接続ブロック図で、1はホスト計算機、2は
この主局であるホスト計算機に接続された主局暗号装
置、3と4と5はそれぞれ端末AとBとC、6と7と8
は各端末A,B,Cの端末暗号装置で、この端末暗号装置6
〜8は主局暗号装置2に接続されている。
This will be described below with reference to the drawings. FIG. 2 is a connection block diagram by branch line connection, 1 is a host computer, 2 is a master station encryption device connected to the host computer which is this master station, 3 and 4 And 5 are terminals A and B and C, 6 and 7 and 8 respectively.
Is the terminal encryption device of each terminal A, B, C.
8 are connected to the master station encryption device 2.

この端末暗号装置6,7,8に対してデータキーKDは、主局
暗号装置2の電源ON時に第3図に示す手順でデータキー
KDを配送する。
The data key KD for the terminal encryption devices 6, 7, and 8 is the data key KD according to the procedure shown in FIG.
Deliver KD.

第3図は従来のキー配送方法の説明図である。FIG. 3 is an explanatory diagram of a conventional key distribution method.

図において9はキー設定コマンドで、そのうちのAは端
末暗号装置6の番号を表し、、またEKM(KD)はデータ
キーKDをマスタキーKMで暗号化したデータを表してい
る。
In the figure, 9 is a key setting command, of which A represents the number of the terminal encryption device 6, and E KM (KD) represents data obtained by encrypting the data key KD with the master key KM.

また、10は前記端末暗号装置6からのキー受領確認レス
ポンス(以下、ACK略記する)である。
Also, 10 is the terminal key acknowledgment response from the cryptographic unit 6 (hereinafter, A CK abbreviated) is.

まず、第3図のa点で電源がONになった主局暗号装置2
は、端末暗号装置6に対してA,EKM(KD)のキー設定コ
マンド9を配送する。
First, the master encryption device 2 whose power was turned on at point a in FIG.
Delivers the key setting command 9 of A, E KM (KD) to the terminal encryption device 6.

端末暗号装置6では受信したEKM(KD)を自分のマスタ
キーKMにより復号化し、データキーKDを得て、主局暗号
装置2に対してACK10を返送する。
The terminal encryption device 6 decrypts the received E KM (KD) with its own master key KM, obtains the data key KD, and returns A CK 10 to the master station encryption device 2.

これと同様に、主局暗号装置2は全ての端末暗号装置7
及び8に対してB,EKM(KD)及びC,EKM(KD)のキー設定
コマンドを配送し、これを復号化してデータキーKDを得
た端末暗号装置7,8は主局暗号装置2に対してACKを返
送する。
Similarly to this, the master station encryption device 2 is connected to all the terminal encryption devices 7
B, E KM (KD) and C, E KM (KD) key setting commands are delivered to and 8 and 8, and the terminal encryption devices 7 and 8 which have decrypted this and have obtained the data key KD are the master station encryption devices. Return ACK to 2.

そして、これらの処理が完了すると各端末暗号装置6,7,
8は暗号通信モードとなり、ホスト計算機1と端末A3,B
4,C5間におけるデータの暗号通信が可能となる。
Then, when these processes are completed, each terminal encryption device 6, 7,
8 becomes the encrypted communication mode, and the host computer 1 and terminals A3 and B
Enables encrypted communication of data between C4 and C5.

しかしながら、この方法では主局暗号装置2のデータキ
ー配送時にはすべての端末暗号装置6,7,8が電源ONにな
っている必要があり、そのため端末3〜5側で必要に応
じて電源のON,OFFを行う回線暗号装置では前述した方法
が適用できないという問題がある。
However, in this method, all the terminal encryption devices 6, 7, and 8 need to be turned on when the data key of the master station encryption device 2 is delivered, so that the terminals 3 to 5 side turn on the power supply as necessary. However, there is a problem that the above method cannot be applied to the line encryption device that performs OFF.

そこで、この問題を解決するため、主局暗号装置からの
キー設定コマンドの配送に対してACKを返送しない端末
暗号装置をとばし、キー設設コマンドの配送によりデー
タキーKDを設定した端末間のみ暗号通信モードにしてデ
ータ通信に入り、その後前記ACKを返送しなかった端末
暗号装置の電源がONになると、その端末暗号装置からキ
ーの配送要求を主局暗号装置に対して送り、再度主局暗
号装置からキー設定コマンドを受けてキー設定を行う方
法が提案されている。。
To solve this problem, skip terminal cryptographic unit that does not return the A CK against delivery key setting command from the main station encryptor, by the delivery key設設commands between terminals set data key KD only When the terminal encryption device that did not return the ACK is turned on, the key encryption device sends a key delivery request to the master station encryption device, and then the main encryption device again. A method has been proposed in which a key setting command is received from a station encryption device to perform key setting. .

この場合の手順を第4図に基づいて詳細に説明する。The procedure in this case will be described in detail with reference to FIG.

第4図において、a点で電源がONになった主局暗号装置
2は、端末A3の端末暗号装置6に対してA,EKM(KD)の
キー設定コマンド9を配送する。
In FIG. 4, the master encryption device 2 which is turned on at point a delivers the key setting command 9 of A, E KM (KD) to the terminal encryption device 6 of the terminal A3.

端末暗号装置6では受信したEKM(KD)を自分のマスタ
キーKMにより復号化し、データキーKDを得て、主局暗号
装置7に対してACK10を返送する。
The terminal encryption device 6 decrypts the received E KM (KD) with its own master key KM, obtains the data key KD, and returns A CK 10 to the master station encryption device 7.

次に主局暗号装置2は、端末暗号装置7に対してB,EKM
(KD)のキー設定コマンド11を配送するが、このとき端
末B4の電源がOFF状態で、キー配送コマンド11に対する
CK15が端末暗号装置7から主局暗号装置2に返送され
ないと、主局暗号装置2はb点で返送時間のタイムアウ
トを検出し、次に、C,EKM(KD)のキー設定コマンド12
を端末Cの端末暗号装置8に配送する。
Next, the master encryption device 2 sends B, E KM to the terminal encryption device 7.
The key setting command 11 of (KD) is delivered, but if the power of the terminal B4 is off at this time and the ACK 15 for the key delivery command 11 is not returned from the terminal encryption device 7 to the main station encryption device 2, the main station The cryptographic device 2 detects the return time timeout at the point b, and then the C, E KM (KD) key setting command 12
Is delivered to the terminal encryption device 8 of the terminal C.

これに対して端末暗号装置8からACK13が主局暗号装置
2に返送されると、端末暗号装置6,8は暗号通信モード
となる。
On the other hand, when A CK 13 is returned from the terminal encryption device 8 to the master encryption device 2, the terminal encryption devices 6 and 8 enter the encrypted communication mode.

以後、主局暗号装置2と端末A3,C5間での電文は全てデ
ータキーKDで暗号化されて伝送されるので、ホスト計算
機1と端末A3,C5間におけるデータの暗号通信が行われ
る。
After that, all the telegrams between the master station encryption device 2 and the terminals A3 and C5 are encrypted and transmitted with the data key KD, so that encrypted communication of data between the host computer 1 and the terminals A3 and C5 is performed.

その後、例えばc点で端末B4側の電源がONになると、端
末暗号装置7は主局暗号装置2に対してキー配送要求RE
Q14を送信する。
After that, for example, when the power supply of the terminal B4 side is turned on at the point c, the terminal encryption device 7 sends the key distribution request RE to the master encryption device 2.
Send Q14.

このキー配送要求REQ14により主局暗号装置2は端末暗
号装置7に対して再度B,EKM(KD)のキー設定コマンド1
1を配送し、端末暗号装置7からACK15が主局暗号装置
2に返送されると、端末暗号装置7は暗号通信モードと
なるので、ホスト計算機1と端末B4間におけるデータの
暗号通信も可能となる。
In response to this key distribution request REQ14, the master station encryption device 2 sends the B, E KM (KD) key setting command 1 to the terminal encryption device 7 again.
When 1 is delivered and A CK 15 is returned from the terminal encryption device 7 to the master encryption device 2, the terminal encryption device 7 is in the encrypted communication mode, so that the encrypted communication of data between the host computer 1 and the terminal B4 is also performed. It will be possible.

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

しかしながら、このような従来の方法では、端末暗号装
置7がキー配送要求REQ14の送出タイミングを取るとき
に端末Bのポーリングを検出しようとしても、すでに主
局暗号装置2と他端末A,C間はデータキーKDで暗号化さ
れて通信中であるので、遅れて立ち上がった端末暗号装
置7はデータキーKDを持っておらず、そのため端末暗号
装置7は、ポーリング電文を解続することができなくな
り、ポーリング電文により送出タイミングを取ることが
不可能となる問題を有している。
However, in such a conventional method, even if the terminal encryption device 7 tries to detect the polling of the terminal B at the time of transmitting the key distribution request REQ14, the communication between the master encryption device 2 and the other terminals A and C has already been completed. Since the terminal encryption device 7 started up with a delay does not have the data key KD because it is encrypted with the data key KD and is in communication, the terminal encryption device 7 cannot disconnect the polling message. There is a problem that the transmission timing cannot be set due to the polling message.

また、この送出タイミングは主局暗号装置2の送信電文
の終了により取られるが、この送信電文の終了が端末暗
号装置7における主局暗号装置2のキャリアのOFF、つ
まりキャリア検出信号(CD)のOFF時である場合、端末
暗号装置7がポーリングされているか判別できず、これ
により不都合が生じるという問題もある。
Further, this transmission timing is taken by the end of the transmission message of the master station encryption device 2, but the end of this transmission message is turned off of the carrier of the master station encryption device 2 in the terminal encryption device 7, that is, the carrier detection signal (CD). When it is OFF, it is not possible to determine whether the terminal encryption device 7 is polled, which causes a problem.

例えば、主局暗号装置2が端末A3に対してポーリングを
行った電文のキャリア検出信号(CD)を遅れて立ち上が
った端末暗号装置7が検出した場合、端末暗号装置6と
端末暗号装置7の送信がぶつかって正常な通信ができな
いという問題が生じる。
For example, when the terminal encryption device 7 that rises with a delay detects a carrier detection signal (CD) of a telegram in which the master station encryption device 2 polls the terminal A3, the transmission of the terminal encryption device 6 and the terminal encryption device 7 is performed. This causes a problem that normal communication cannot be performed due to collision with each other.

本発明は、これらの問題を解決するためになされたもの
で、各端末暗号装置の電源のON/OFFを個々に行う場合に
おいても、遅れて立ち上がった端末暗号装置が他の端末
暗号装置と同様にデータ通信を行うことを可能にする回
線暗号装置のデータキー設定方法を実現することを目的
とするものである。
The present invention has been made to solve these problems. Even when individually turning on / off the power of each terminal cryptographic device, the terminal cryptographic device that started up with a delay is the same as other terminal cryptographic devices. It is an object of the present invention to realize a data key setting method for a line encryption device that enables data communication to be performed.

〔問題点を解決するための手段〕[Means for solving problems]

この目的を達成するため、本発明は、データキーにより
主局暗号装置と各端末暗号装置との間でデータの暗号通
信を行う回線暗号装置のデータキー設定方法において、
前記主局暗号装置と各端末暗号装置のそれぞれに、暗号
化及び復号化用の互いに共通のマスタキーを保有すると
共に、主局暗号装置と各端末暗号装置の電源のON,OFFが
同時に行われる場合に対応する第1のモードと各端末暗
号装置が他の装置と独立して個々に電源のON,OFFが行わ
れる場合に対応する第2のモードの設定を行うモード設
定手段を具備し、このモード設定手段が第1のモードに
設定している場合、前記主局暗号装置及び各端末暗号装
置の電源ONにより主局暗号装置でデータキーをマスタキ
ーにより暗号化し、各端末暗号装置に配送して、前記主
局暗号装置と各端末暗号装置に前記データキーを設定
し、前記モード設定手段が第2のモードに設定されれて
いる場合、前記主局暗号装置の電源ON時に、主局暗号装
置と電源ON状態にある端末暗号装置に前記マスタキーを
データキーとして設定すると共に、遅れて電源がNにな
った端末暗号装置はその電源ON時のにマスタキーをデー
タキーとして設定することを特徴とする。
In order to achieve this object, the present invention provides a data key setting method of a line encryption device, which performs data encrypted communication between a master encryption device and each terminal encryption device using a data key,
When the master station encryption device and each terminal encryption device each have a common master key for encryption and decryption, and the power of the master station encryption device and each terminal encryption device is turned on and off at the same time And a mode setting means for setting the second mode corresponding to the case where each terminal encryption device is individually turned on and off independently of other devices. When the mode setting means is set to the first mode, the master station encryption device encrypts the data key with the master key by turning on the power of the master station encryption device and each terminal encryption device, and delivers the data key to each terminal encryption device. When the data key is set in the master encryption device and each terminal encryption device and the mode setting means is set to the second mode, the master encryption device is turned on when the power of the master encryption device is turned on. And the terminal in the power-on state And sets as the data key the master key No. apparatus, the terminal cryptographic device power is turned N delayed and sets the master key to the time of the power ON as the data key.

〔作用〕[Action]

このようにした本発明の回線暗号装置のデータキー設定
方法では、主局暗号装置と各端末暗号装置の電源のON,O
FFが同時に行われる回線暗号装置の場合はモード設定手
段を第1のモードに設定し、各端末暗号装置が他の装置
と独立して個々に電源のON,OFFが行われる回線暗号装置
の場合はモード設定手段を第2のモードの設定すること
で、いずれの回線暗号装置にも適用可能であり、そして
モード設定手段が第2のモードに設定されている場合、
主局暗号装置の電源のON時に、主局暗号装置と電源がON
状態にある端末暗号装置に前記マスタキーをデータキー
として設定し、遅れて電源がONになった端末暗号装置
は、そのON時点でマスタキーをデータキーとして設定す
るため、遅れて電源がONになった端末暗号装置も確実に
データキーを持つことができ、そのため他の端末暗号装
置と送信がぶつかりあうことなく主局暗号装置との通信
が可能になる。
In the data key setting method of the line encryption device of the present invention as described above, the power of the main station encryption device and each terminal encryption device is turned on and off.
In the case of a line encryption device in which FF is performed at the same time, the mode setting means is set to the first mode, and each terminal encryption device is turned on and off independently of other devices. Is applicable to any line encryption device by setting the mode setting means to the second mode, and when the mode setting means is set to the second mode,
When the power of the master cryptographic device is turned on, the power of the master cryptographic device is turned on.
The master key is set as a data key in the terminal encryption device in the state, and the power is turned on after a delay.The terminal encryption device is set to the master key as a data key at the time of turning on, so the power is turned on after a delay. The terminal encryption device can also surely have the data key, so that it is possible to communicate with the master encryption device without causing a collision with another terminal encryption device in transmission.

〔実 施 例〕〔Example〕

以下、本発明の一実施例を第1図及び第5図に基づいて
説明する。
An embodiment of the present invention will be described below with reference to FIGS. 1 and 5.

まず、第5図について説明すると、この第5図は本発明
の一実施例に用いる端末暗号装置の一例を示すブロック
図である。
First, referring to FIG. 5, FIG. 5 is a block diagram showing an example of a terminal encryption device used in an embodiment of the present invention.

図において16は端末暗号装置で、この端末暗号装置16は
以下に述べる18〜22の要素を具備している。
In the figure, 16 is a terminal encryption device, and this terminal encryption device 16 comprises the following 18 to 22 elements.

すなわち、17はモード設定スイッチ、18はマイクロプロ
セッサ部(以下、CPUと略記する)、19は制御プログラ
ムを記憶した記憶部としてのリードオンリメモリ(以
下、ROMと略記する)、20は暗号処理部、21は回線イン
タフェース部(以下、回線I/Fと略記する)、22はマス
タキー設定部で、前記モード設定スイッチ17,ROM19,暗
号処理部20,回線I/F21,及びマスタキー設定部22はCPU18
に接続されており、また、一方の回線I/F21は図示しな
い主局暗号装置と他の端末暗号装置とに接続され、他方
の回線I/F21は図示しない端末に接続されている。
That is, 17 is a mode setting switch, 18 is a microprocessor unit (hereinafter abbreviated as CPU), 19 is a read-only memory (hereinafter abbreviated as ROM) as a storage unit that stores a control program, and 20 is an encryption processing unit. , 21 is a line interface unit (hereinafter abbreviated as line I / F), 22 is a master key setting unit, and the mode setting switch 17, ROM 19, encryption processing unit 20, line I / F 21, and master key setting unit 22 are CPU 18
Further, one line I / F21 is connected to a master station encryption device (not shown) and another terminal encryption device, and the other line I / F21 is connected to a terminal (not shown).

この構成において前記モード設定スイッチ17は、端末暗
号装置16と、この端末暗号装置16に接続された主局暗号
装置と、この主局暗号装置に接続されたホスト計算機
と、端末暗号装置16に接続された端末から成る回線暗号
装置において、各端末が他の装置と独立することなく主
局暗号装置の電源のON,OFFと同時に電源のON,OFFが行わ
れるものであればキー配送モード(第1のモード)に設
定され、各端末が他の装置と独立して電源のON,OFFを行
うものであればKMモード(第2のモード)に設定される
もので、そのスイッチ切り換えは適用モードに従って予
め行うものとなっている。
In this configuration, the mode setting switch 17 is connected to the terminal encryption device 16, the master encryption device connected to this terminal encryption device 16, the host computer connected to this master encryption device, and the terminal encryption device 16. In the line encryption device consisting of the connected terminals, if each terminal turns on and off at the same time as turning on and off the power of the main station encryption device without being independent of other devices, the key delivery mode (first 1 mode), and if each terminal turns on and off the power independently of other devices, it is set to KM mode (second mode), and its switch is applicable mode. It is supposed to be done in advance according to.

第1図は第5図の端末暗号装置16及び主局暗号装置によ
り実行されるデータキー設定方法の一実施例を示すフロ
ーチャートである。
FIG. 1 is a flow chart showing an embodiment of a data key setting method executed by the terminal encryption device 16 and the master station encryption device of FIG.

尚、第1図中のEKM(KD)は主局暗号装置によりデータ
キーKDをマスタキーKMで暗号化したデータを表してい
る。
Note that E KM (KD) in FIG. 1 represents data obtained by encrypting the data key KD with the master key KM by the master station encryption device.

まず、回線暗号装置の電源が投入(電源ON)されると
(S1)、端末暗号装置16のCPU12はモード設定スイッチ1
7の設定モードを読み込み(S2)、それに基づいて配送
モードがKMモードかの判定を行う(S3)。
First, when the power of the line encryption device is turned on (power ON) (S1), the CPU 12 of the terminal encryption device 16 causes the mode setting switch 1
The setting mode of 7 is read (S2), and it is determined whether the delivery mode is KM mode based on it (S3).

この場合、各端末が他の装置と独立することなく主局暗
号装置の電源ON,OFFと同時に電源ON,OFFが行われるもの
であれば、回線暗号装置の電源ONにより主局暗号装置と
すべての端末暗号装置16は同時に電源ONとなるので、す
べての端末暗号装置16においてモード設定スイッチ17の
設定モードの読み込みが行われ、各々キー配送モードと
判定されるが、各端末が他の装置と独立して電源のON,O
FFが行われるものであれば、電源がONになっている端末
暗号装置16においてのみモード設定スイッチ17の設定モ
ードの読み込みが行われ、KMモードと判定される。
In this case, if the power is turned on and off at the same time as the power of the master encryption device is turned on and off independently of other devices, the power of the line encryption device and all of the main encryption device Since the terminal cryptographic devices 16 of are turned on at the same time, the setting mode of the mode setting switch 17 is read in all the terminal cryptographic devices 16 and each is determined to be the key delivery mode. Independent power ON, O
If FF is performed, the setting mode of the mode setting switch 17 is read only in the terminal encryption device 16 whose power is ON, and it is determined to be the KM mode.

尚、主局暗号装置でも同様にモード設定スイッチの設定
モードを読み込み、判定が行われる。
Incidentally, the main station encryption device also reads the setting mode of the mode setting switch and makes a determination.

モード設定スイッチ17の設定モードがキー配送モードと
判定された場合、主局暗号装置と端末暗号装置16のそれ
ぞれで、自身が主局暗号装置として使用されているか、
端末暗号装置16として使用されているかの判定を行う
(S4)。
When the setting mode of the mode setting switch 17 is determined to be the key distribution mode, whether each of the master station encryption device and the terminal encryption device 16 is using itself as the master station encryption device,
It is determined whether the terminal encryption device 16 is used (S4).

前記の判定後、主局暗号装置は任意の乱数をデータキー
KDとし、これをマスタキーKMで暗号化して、EKM(KD)
のキー設定コマンドを端末暗号装置16に対して回線I/F2
1から配送し(S5)、端末暗号装置16からのACKの返送
を待つ(S6)。
After the above judgment, the master station encryption device sends an arbitrary random number to the data key.
KD and encrypt this with the master key KM, then E KM (KD)
Key setting command for the line I / F2 to the terminal encryption device 16
Delivered from 1 (S5), waits for the return of the A CK from the terminal cryptographic device 16 (S6).

前記端末暗号装置16からACKが返送されてくると、主局
暗号装置はすべての端末暗号装置16に対してEKM(KD)
のキー設定コマンドの配送が完了したか判定を行い(S
7)、完了していなければ次の端末暗号装置16対してキ
ー設定コマンドの配送を行ってACKの返送を待ち、更に
CKの返送があるとすべての端末暗号装置16に対してE
KM(KD)のキー設定コマンドの配送が完了したか判定を
行うというう処理を繰り返す。
When A CK is returned from the terminal encryption device 16, the master encryption device sends E KM (KD) to all the terminal encryption devices 16.
It is judged whether the delivery of the key setting command of
7), completed wait for return of A CK by performing the delivery of key setting command for the next terminal encryptors 16 unless further E for all terminals encryptors 16 when there is a return of A CK
The process of determining whether the delivery of the KM (KD) key setting command is completed is repeated.

すべての端末暗号装置16に対してキー設定コマンドの配
送、ACKの返送が完了すると、主局暗号装置は暗号処理
部にデータキーKDを設定する(S8)。
Delivery of the key setting command to all terminal encryptors 16, the return of A CK is completed, the main station cryptographic unit sets the data key KD to the encryption processing unit (S8).

その後、暗号通信処理に入り(S9)、主局暗号装置と端
末間のデータはデータキーKDにより暗号化して通信され
る。
After that, the encrypted communication process is started (S9), and the data between the master station encryption device and the terminal is encrypted by the data key KD for communication.

一方、前記したS4での判定後、端末暗号装置16は、主局
暗号装置からキー設定コマンドの配送を待ち(S10)、
このコマンドを受信すると主局暗号装置へACKの返送を
行うと共に(S11)、マスタキー設定部22に設定されて
いるマスタキーKMで復号化を行いデータキーKDを得て
(S12)、このデータキーKDを暗号処理部20に設定(S
8)した後、前述した暗号通信処理に移行する(S9)。
On the other hand, after the determination in S4, the terminal encryption device 16 waits for delivery of the key setting command from the master station encryption device (S10),
(S11), obtains the data key KD performs decoding with master key KM are set on the master key setting unit 22 (S12), the data key performs the return of the A CK receives this command to the master station encryptor Set KD to encryption processing unit 20 (S
After 8), the process shifts to the above-mentioned encrypted communication process (S9).

また、前記S3でKMモードと判定した場合、主局暗号装置
と端末暗号装置16は、それぞれマスタキーKMをデータキ
ーKDとして設定し(S13)、暗号通信処理に移行する(S
9)。
If the KM mode is determined in S3, the master encryption device and the terminal encryption device 16 respectively set the master key KM as the data key KD (S13), and shift to encrypted communication processing (S13).
9).

この場合、主局暗号装置16がONになったときに、ONにな
っていない端末暗号装置16が存在し、この端末暗号装置
16が遅れて電源ONが行われると、その時点で前記と同様
にマスタキーKMがデータキーKDとして暗号処理部に設定
され、暗号通信処理に移行することができる。
In this case, when the master station encryption device 16 is turned on, there is a terminal encryption device 16 that is not turned on.
When the power is turned on with a delay of 16, the master key KM is set in the encryption processing unit as the data key KD in the same manner as described above at that time, and the encryption communication processing can be started.

従って、このKMモードにおいては主局暗号装置と端末暗
号装置16との間でキー設定コマンド配送、ACKの返送を
行わないので、主局暗号装置と他の端末暗号装置16間の
通信を妨害することがない。
Thus, the key setting command delivery between the main station encryption apparatus and a terminal cryptographic device 16 in this KM mode does not perform the return of the A CK, interfere with the communication between the main station cryptographic device and another terminal encryptors 16 There is nothing to do.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明は、主局暗号装置と各端末暗
号装置のそれぞれに、暗号化及び復号化用の互いに共通
のマスタキーを保有すると共に、前記主局暗号装置と各
端末暗号装置の電源のON,OFFが同時に行われる場合に対
応する第1のモードと各端末暗号装置が他の装置と独立
して個々に電源のON,OFFが行われる場合に対応する第2
のモードの設定を行うモード設定手段を具備し、このモ
ード設定手段が第1のモードに設定されている場合、主
局暗号装置及び各端末暗号装置の電源ONにより主局暗号
装置でデータキーをマスタキーにより暗号化し、各端末
暗号装置に配送して、前記主局暗号装置と各端末暗号装
置に前記データキーを設定し、前記モード設定手段が第
2のモードに設定されている場合、前記主局暗号装置の
電源のON時に、主局暗号装置と電源がON状態にある端末
暗号装置に前記マスタキーをデータキーとして設定する
と共に、遅れて電源がONになった端末暗号装置はその電
源がON時にマスタキーをデータキーとして設定するよう
にしている。
As described above, according to the present invention, the master encryption device and each terminal encryption device each have a common master key for encryption and decryption, and the master encryption device and each terminal encryption device have a power supply. The first mode corresponding to simultaneous ON / OFF of the device and the second mode corresponding to each terminal encryption device being independently powered on / off independently of other devices.
If the mode setting means is set to the first mode, the main station encryption device and each terminal encryption device are powered on, and the data key is set in the main station encryption device. When the data is encrypted with the master key and delivered to each terminal encryption device, the data key is set in the master station encryption device and each terminal encryption device, and the mode setting means is set to the second mode, When the power of the station encryption device is turned on, the master key and the terminal encryption device whose power is on are set to the master key as a data key, and the power of the terminal encryption device that was turned on after a delay is turned on. Sometimes the master key is set as the data key.

従って、本発明の回線暗号装置のデータキー設定方法で
は、主局暗号装置と各端末暗号装置の電源のON,OFFが同
時に行われる回線暗号装置の場合はモード設定手段を第
1モードに設定し、各端末暗号装置が他の装置と独立し
て個々に電源のON,OFFが行われる回線暗号装置の場合は
モード設定手段を第2のモードの設定することで、いず
れの回線暗号装置にも適用可能であり、そしてモード設
定手段が第2のモードに設定されている場合、主局暗号
装置の電源のON時に、主局暗号装置と電源がON状態にあ
る端末暗号装置にマスタキーをデータキーとして設定
し、遅れて電源がONになった端末暗号装置は、そのON時
点でマスタキーをデータキーとして設定するため、遅れ
て電源がONになった端末暗号装置も確実にデータキーを
持つことができ、そのため他の端末暗号装置と送信がぶ
つかりあうことなく主局暗号装置との通信が可能になる
という効果が得られる。
Therefore, according to the data key setting method of the line encryption device of the present invention, in the case of the line encryption device in which the power of the main station encryption device and the power of the terminal encryption device are simultaneously turned on and off, the mode setting means is set to the first mode. In the case of a line encryption device in which each terminal encryption device is individually turned on and off independently of other devices, by setting the mode setting means to the second mode, any line encryption device can be used. When applicable, and when the mode setting means is set to the second mode, when the power of the master encryption device is turned on, the master key is used as the data key for the master encryption device and the terminal encryption device whose power is on. The terminal encryption device that is turned on after a delay and the power is turned on later sets the master key as a data key at that time, so the terminal encryption device that is turned on after a delay can surely have the data key. Yes, and so on It is possible to obtain an effect that communication with the master encryption device becomes possible without the transmission of the terminal encryption device of the other device colliding with the transmission.

【図面の簡単な説明】[Brief description of drawings]

第1図は本発明の一実施例を示すフローチャート、第2
図は分岐回線の配線ブロック図、第3図は従来例のデー
タキー設定方法の説明図、第4図は他の従来例を示すキ
ー配送方法の説明図、第5図は本発明の一実施例に用い
る暗号装置のブロック図である。 16……端末暗号装置 17……モード設定スイッチ 18……CPU 19……ROM 20……暗号処理部 21……回線I/F 22……マスタキー設定部 KD……データキー KM……マスタキー
FIG. 1 is a flow chart showing an embodiment of the present invention,
FIG. 4 is a wiring block diagram of a branch line, FIG. 3 is an explanatory diagram of a conventional data key setting method, FIG. 4 is an explanatory diagram of another conventional key distribution method, and FIG. 5 is an embodiment of the present invention. It is a block diagram of the encryption device used for an example. 16 …… Terminal encryption device 17 …… Mode setting switch 18 …… CPU 19 …… ROM 20 …… Cryptographic processing unit 21 …… Line I / F 22 …… Master key setting unit KD …… Data key KM …… Master key

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】データキーにより主局暗号装置と各端末暗
号装置との間でデータの暗号通信を行う回線暗号装置の
データキー設定方法において、 主局暗号装置と各端末暗号装置のそれぞれに、暗号化及
び復号化用の互いに共通のマスタキーを保有すると共
に、主局暗号装置と各端末暗号装置の電源のON,OFFが同
時に行われる場合に対応する第1のモードと各端末暗号
装置が他の装置と独立して個々に電源のON,OFFが行われ
る場合に対応する第2のモードの設定を行うモード設定
手段を具備し、 このモード設定手段が第1のモードに設定されている場
合、主局暗号装置及び各端末暗号装置の電源ONにより主
局暗号装置でデータキーをマスタキーにより暗号化し、
各端末暗号装置に配送して、前記主局暗号装置と各端末
暗号装置に前記データキーを設定し、 前記モード設定手段が第2のモードに設定されている場
合、前記主局暗号装置の電源ON時に、主局暗号装置と電
源ON状態にある端末暗号装置に前記マスタキーをデータ
キーとして設定すると共に、遅れて電源ONになった端末
暗号装置はその電源ON時にマスタキーをデータキーとし
て設定することを特徴とする回線暗号装置のデータキー
設定方法。
1. A data key setting method for a line encryption device that performs data encryption communication between a master encryption device and each terminal encryption device using a data key, wherein: It has a common master key for encryption and decryption, and the first mode and each terminal encryption device are compatible when the power of the main station encryption device and each terminal encryption device are turned on and off at the same time. When the power supply is turned on and off independently of the device described above, a mode setting means for setting the second mode is provided, and the mode setting means is set to the first mode. By turning on the power of the master station encryption device and each terminal encryption device, the master station encryption device encrypts the data key with the master key,
When the data key is delivered to each terminal encryption device and the data key is set in the master encryption device and each terminal encryption device, and the mode setting means is set to the second mode, the power supply of the master encryption device is set. When ON, set the master key as a data key in the main station encryption device and the terminal encryption device that is in the power ON state, and set the master key as the data key when the power is turned ON for the terminal encryption device that is turned ON later. A method for setting a data key of a line encryption device, characterized by:
JP60241666A 1985-10-30 1985-10-30 Data key setting method of line encryption device Expired - Lifetime JPH0691528B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60241666A JPH0691528B2 (en) 1985-10-30 1985-10-30 Data key setting method of line encryption device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60241666A JPH0691528B2 (en) 1985-10-30 1985-10-30 Data key setting method of line encryption device

Publications (2)

Publication Number Publication Date
JPS62104238A JPS62104238A (en) 1987-05-14
JPH0691528B2 true JPH0691528B2 (en) 1994-11-14

Family

ID=17077711

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60241666A Expired - Lifetime JPH0691528B2 (en) 1985-10-30 1985-10-30 Data key setting method of line encryption device

Country Status (1)

Country Link
JP (1) JPH0691528B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4788204B2 (en) * 2005-06-21 2011-10-05 パナソニック電工株式会社 Cryptographic communication system and breaker device

Also Published As

Publication number Publication date
JPS62104238A (en) 1987-05-14

Similar Documents

Publication Publication Date Title
EP1508235B1 (en) Data transmitting apparatus, data receiving apparatus, data transmission system and data transmission method
CN114553933B (en) A method, device and system for taking over control authority of an unmanned vehicle
EP4080818A1 (en) Communication method and device, ecu, vehicle and storage medium
JP2005203882A (en) Communication system and key transmission method
JPH0691528B2 (en) Data key setting method of line encryption device
JPH09282264A (en) Interruption line sharing circuit and interruption line sharing method
CN112105003B (en) Data synchronization system, method and device of intelligent door lock and readable storage medium
US20060179301A1 (en) Information communication apparatus and method, information communication system, and memory medium
JP3916217B2 (en) Bridge device and transmission method
JP4741750B2 (en) Control device having main microprocessor and processor interface for bus transmission / reception unit
JPS6222295B2 (en)
JPS63146630A (en) Open key exchange system between cryptographic equipment
JPS59114939A (en) Setting system of initialized vector in cipher device
JPH0691529B2 (en) Communication method between line encryption devices
JPS5953573B2 (en) data transmission system
JP2000269951A (en) Verification and delivery method of group encryption key
JPH0226903B2 (en)
JPH0511691B2 (en)
US20100262723A1 (en) Data exchange between an electronic payment terminal and a maintenance tool through a usb link
JPS59225642A (en) Open key distributing system in ciphering device
JPS6074848A (en) Serial data transfer system
JP2615815B2 (en) Priority control method
CN118158197A (en) IP configuration method, device, access control system, equipment and storage medium
JP3224565B2 (en) Cryptographic integrated circuit device and cryptographic data communication system
JP3232116B2 (en) Remote monitoring and control system