JPH0681136B2 - Data converter - Google Patents

Data converter

Info

Publication number
JPH0681136B2
JPH0681136B2 JP59277366A JP27736684A JPH0681136B2 JP H0681136 B2 JPH0681136 B2 JP H0681136B2 JP 59277366 A JP59277366 A JP 59277366A JP 27736684 A JP27736684 A JP 27736684A JP H0681136 B2 JPH0681136 B2 JP H0681136B2
Authority
JP
Japan
Prior art keywords
data
packet
storage means
digit
latest
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
JP59277366A
Other languages
Japanese (ja)
Other versions
JPS61154331A (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.)
NEC Corp
Original Assignee
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP59277366A priority Critical patent/JPH0681136B2/en
Publication of JPS61154331A publication Critical patent/JPS61154331A/en
Publication of JPH0681136B2 publication Critical patent/JPH0681136B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はデータ通信においてデータを誤りや改ざんから
保護するためのデータ変換器に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data converter for protecting data from errors and alteration in data communication.

(従来技術とその問題点) パケットデータ通信では、受信側でパケットに誤りが検
出された場合には、該パケットを捨てて再送要求を出す
方式が多い。この場合誤り検出符号が用いられる。とこ
ろで暗号化が用いられている場合には、符号化の前に誤
り検出符号化を行えば、第3者によるデータの改ざんか
らデータを守れることが従来から知られている。
(Prior art and its problems) In packet data communication, when an error is detected in a packet on the receiving side, there are many methods in which the packet is discarded and a retransmission request is issued. In this case, an error detection code is used. By the way, when encryption is used, it is conventionally known that data can be protected from alteration by a third party by performing error detection encoding before encoding.

しかし、暗号と組み合わせても誤り検出符号化は暗号が
ない場合に比較して簡単にならない。
However, even if combined with a cipher, error detection coding is not easy as compared with the case where there is no cipher.

(発明の目的) 本発明の目的は、上記欠点を取り除いたデータ変換器を
提供することにある。
(Object of the Invention) An object of the present invention is to provide a data converter in which the above-mentioned drawbacks are eliminated.

(発明の構成) 本発明によれば、入力データの最新のN個を記憶する第
1の記憶手段と、変換手段出力の最新のM個を記憶する
第2の記憶手段と、前記第1及び第2の記憶手段の記憶
内容に依存して前記入力データを変換する変換手段とか
ら構成されることを特徴とするデータ変換器が得られ
る。
(Structure of the Invention) According to the present invention, first storage means for storing the latest N pieces of input data, second storage means for storing the latest M pieces of output of the conversion means, and the first and A data converter characterized by comprising a conversion means for converting the input data depending on the contents stored in the second storage means.

また本発明によれば、パケット用データの一部に冗長な
ディジット系列を付加して出力するディジット系列付加
手段と、前記ディジット系列付加手段の出力のうち最新
のN個を記憶する第1の記憶手段と、変換手段出力の最
新のM個を記憶する第2の記憶手段と、前記第1及び第
2の記憶手段の記憶内容に存在して前記ディジット系付
加手段の出力ディジットを変換する変換手段とから構成
されることを特徴とするデーター変換器が得られる。
Further, according to the present invention, a digit series adding means for adding a redundant digit series to a part of the packet data and outputting the data, and a first storage for storing the latest N pieces of the outputs of the digit series adding means. Means, a second storage means for storing the latest M outputs of the conversion means, and a conversion means for converting the output digit of the digit system addition means existing in the storage contents of the first and second storage means. A data converter is obtained which is characterized in that

さらに本発明によれば、パケットの一部に冗長なディジ
ット系列が付加されたパケットデータに対し、該パケッ
トデータの各ディジットが該ディジットの直前のNディ
ジット及び変換器のディジットのMディジットに依存し
て変換されて発生されたデータが入力データとして供給
されるデータ変換器であって、前記入力データの最新の
M個を記憶する手段と、変換手段出力の最新のN個を記
憶する手段と、前記第1及び第2の記録手段の記憶内容
に依存して前記入力データを変換する変換手段と、前記
符号変換手段出力のなかに前記冗長なディジット系列が
存在するか否かとを検出する手段とから構成されること
を特徴とするデータ変換器が得られる。
Further, according to the present invention, for packet data in which a redundant digit sequence is added to a part of the packet, each digit of the packet data depends on the N digit immediately before the digit and the M digit of the digit of the converter. A data converter to which the generated and converted data is supplied as input data, means for storing the latest M pieces of the input data, and means for storing the latest N pieces of the output of the conversion means, Conversion means for converting the input data depending on the stored contents of the first and second recording means, and means for detecting whether or not the redundant digit sequence exists in the output of the code conversion means. A data converter is obtained which is characterized in that

(本発明の作用・原理) 第2図は本発明の作用・原理を示すための図である。図
において送信側では情報源201から発したパケットは、
パターン付加回路202により最後に特定パターンを付加
され、暗号器203により暗号化されて送出される。
(Operation / Principle of the Present Invention) FIG. 2 is a view showing the operation / principle of the present invention. In the figure, the packet sent from the information source 201 on the transmission side is
A specific pattern is finally added by the pattern adding circuit 202, encrypted by the encryptor 203, and transmitted.

受信側では送信側から送られたパケットが復合器204で
複合化され、パターン検出回路205でパケットの最後に
前記パターンが付加されているか否かを判定し、もし付
加されていれば誤りや改ざんがなく、異なるパターンに
変化していれば誤りや改ざんありと判定し、受信目的20
6にパケットを送る。ここで暗号器203及び複合器204が
伝送路上にビット誤りが生じた場合、そのパケットの最
後まで誤りが伝搬する形の暗号器、複合器であれば、伝
送中の誤りあるいは第3者により改ざんの影響がパケッ
トの最後の特定パターンにおよび、特定パターンが変化
する。従って誤りあるいは改ざんを検出できる。誤りを
伝搬する形の暗号器、複合器の例は実施例で示す。
On the receiving side, the packet sent from the transmitting side is combined by the decoder 204, and the pattern detection circuit 205 judges whether or not the pattern is added to the end of the packet, and if it is added, an error or alteration is made. If there is no error and the pattern changes to a different pattern, it is determined that there is an error or tampering, and the reception purpose is 20.
Send packet to 6. Here, if a bit error occurs in the encryption device 203 and the composite device 204 on the transmission path, if the encryption device and the composite device are such that the error propagates to the end of the packet, an error during transmission or alteration by a third party Influences the specific pattern at the end of the packet, and the specific pattern changes. Therefore, an error or tampering can be detected. An example of an error propagating encryption device and compound device will be shown in the embodiment.

(実施例) 第1図は本発明の第1の実施例を示すブロック図であ
る。説明をわかり易くするためにデータは全てバイナリ
表現されているものとする。図においてシフトレジスタ
101は入力のNビットを格納し、シフトレジスタ102は本
実施例の出力のMビットを格納する。ここでN、Mは前
もって定められた正整数である。符号変換器103はシフ
トレジスタ101と102の中味のデータを符号変換し、これ
を排他的論理和素子104は入力ビットと排他的論理和を
とって出力ビットとして出力する。
(Embodiment) FIG. 1 is a block diagram showing a first embodiment of the present invention. In order to make the explanation easy to understand, it is assumed that all data are represented in binary. In the figure shift register
101 stores N bits of input, and shift register 102 stores M bits of output of this embodiment. Here, N and M are positive integers determined in advance. The code converter 103 performs code conversion of the data in the shift registers 101 and 102, and the exclusive OR element 104 performs exclusive OR with the input bit and outputs it as the output bit.

本実施例を送信側に用い、受信側ではMとNを交換した
本実施例を用いる。このとき送信側と受信側でシフトレ
ジスタの初期状態が一致していて、パケット伝送中に誤
りや改ざんが起こらなければ、シフトレジスタの中味が
送受信側で一致しているので符号変換器の出力が一致
し、データは元に復元される。また伝送中に誤りや改ざ
んが生じると、その影響がシフトレジスタ102にフィー
ドバックされるので誤り伝搬が生じる。そこでパケット
の最後に特定パターンが付加されていると、受信側で該
特定パターンが変化するので誤りや改ざんを検出でき
る。改ざんを検出するためには符号変換の方法を秘密に
しておく。符号変換器103は市販の暗号器あるいはRAMや
ROMのメモリで構成することができる。本実施例では、
入力パケットに冗長性がないと誤りや改ざんを検出でき
ない。これを改良したのが次の実施例である。
This embodiment is used for the transmission side, and the reception side is used for this embodiment in which M and N are exchanged. At this time, if the initial state of the shift register is the same on the transmitting side and the receiving side and there is no error or tampering during packet transmission, the contents of the shift register are the same on the transmitting and receiving sides. A match is made and the data is restored to its original state. Further, when an error or tampering occurs during transmission, the influence of the error is fed back to the shift register 102, so that error propagation occurs. Therefore, if the specific pattern is added to the end of the packet, the specific pattern changes on the receiving side, so that an error or falsification can be detected. The method of code conversion is kept secret in order to detect falsification. The code converter 103 is a commercially available cipher or RAM or
It can consist of ROM memory. In this embodiment,
Errors and tampering cannot be detected unless the input packet has redundancy. This is improved in the next embodiment.

第3図は本発明の第2の実施例を示すためのブロック図
である。本実施例は送信側に設置する。まずパケット入
力開始時にパケット開始パルスがセレクタ309と310に与
えられ、該セレクタは各々シフトレジスタ301と302の初
期値をレジスタ306と307から選んで該シフトレジスタ30
1と302に送る。パケットが入力されると、パターン付加
回路305は最後に特定パターンを付加する。該パターー
ン付加回路はビット毎に出力するものとする。特定パタ
ーンはあらかじめ定めておいたパターンならば何でもよ
い。セレクタ309と310は各々パターン回路305の出力と
排他的論理和素子304の出力を選択する。符号変換器303
はシフトレジスタ301と302の内容を符号変換し、この符
号変換されたビットはパターン付加回路305の出力と排
他的論理和をとられて送信機308から送出される。パタ
ーン付加回路305はメモリで構成できる。即ち、特定パ
ターンを前もって書き込んでおき、パケットを書き込ん
だ後全体を読み出せばよい。
FIG. 3 is a block diagram showing a second embodiment of the present invention. This embodiment is installed on the transmitting side. First, a packet start pulse is given to selectors 309 and 310 at the start of packet input, and the selector selects the initial values of shift registers 301 and 302 from registers 306 and 307, respectively.
Send to 1 and 302. When the packet is input, the pattern adding circuit 305 adds the specific pattern at the end. The pattern addition circuit outputs the data bit by bit. The specific pattern may be any pattern that is predetermined. Selectors 309 and 310 select the output of the pattern circuit 305 and the output of the exclusive OR element 304, respectively. Code converter 303
Performs code conversion on the contents of the shift registers 301 and 302, and the code-converted bits are subjected to exclusive OR with the output of the pattern adding circuit 305 and transmitted from the transmitter 308. The pattern adding circuit 305 can be composed of a memory. That is, the specific pattern may be written in advance, and the entire packet may be read after writing the packet.

第4図は本発明の第3の実施例を示すためのブロック図
で、第3図に対する受信側となっている。受信機405が
パケットを受信するとパケット開始パルスをセレクタ40
9と410に出し、該セレクタは各々シフトレジスタ401と4
02の初期値としてレジスタ406と407の内容を選んで該シ
フトレジスタに送る。この後前記セレクタ409と410は各
々受信パケットと後期排他的論理和素子404の出力を選
択する。符号変換回路403は前記シフトレジスタ401、40
2の内容を符号変換し、この符号変換されたビットは受
信器405からのビットと排他的論理和をとられ、パター
ン検出回路408に送られる。該パターン検出回路408は、
パケットの最後が前記の特定パターンになっているか否
かを判定し、判定結果をパケットと共に出力する。
FIG. 4 is a block diagram for showing the third embodiment of the present invention, which is the receiving side for FIG. When the receiver 405 receives the packet, the packet start pulse is sent to the selector 40.
9 and 410, and the selectors are shift registers 401 and 4 respectively.
The contents of the registers 406 and 407 are selected as the initial value of 02 and sent to the shift register. After that, the selectors 409 and 410 select the received packet and the output of the late exclusive OR element 404, respectively. The code conversion circuit 403 is the shift registers 401, 40.
The content of 2 is code-converted, and the code-converted bit is subjected to exclusive OR with the bit from the receiver 405 and sent to the pattern detection circuit 408. The pattern detection circuit 408
It is determined whether or not the end of the packet has the above-described specific pattern, and the determination result is output together with the packet.

第2、第3の実施例を用いれば、パケットに冗長性がな
くても誤りや改ざんを検出できる。
By using the second and third embodiments, an error or falsification can be detected even if the packet has no redundancy.

(発明の効果) 以上詳細に説明したように、本発明を用いれば送信側で
特定パターンを付加し、受信側で該特定パターンを検出
するのみで誤り及び改ざんが検出でき、データ通信にお
いてその効果は極めて大きい。
(Effect of the Invention) As described in detail above, according to the present invention, an error and tampering can be detected only by adding a specific pattern on the transmitting side and detecting the specific pattern on the receiving side. Is extremely large.

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

第1図は本発明の第1の実施例を示すブロック図、第2
図は本発明の動作原理を示すためのブロック図、第3図
は本発明の第2の実施例を示すためのブロック図、第4
図は本発明の第3の実施例を示すためのブロック図であ
る。 図において、101、102、301、302、401、402はシフトレ
ジスタ、103、303、403は符号変換器、104、304、404は
排他的論理和、201は情報源、202、305はパターン付加
回路、203は暗号器、204は復号器、205、408はパターン
検出回路、206は受信目的、306、307、406、407はレジ
スタ、308は送信器、309、310、409、410、はセレク
タ、405は受信器を各々示す。
FIG. 1 is a block diagram showing the first embodiment of the present invention, and FIG.
FIG. 4 is a block diagram showing the operating principle of the present invention, FIG. 3 is a block diagram showing the second embodiment of the present invention, and FIG.
The figure is a block diagram showing a third embodiment of the present invention. In the figure, 101, 102, 301, 302, 401, 402 are shift registers, 103, 303, 403 are code converters, 104, 304, 404 are exclusive ORs, 201 is an information source, and 202, 305 are pattern additions. Reference numeral 203 is an encoder, 204 is a decryptor, 205 and 408 are pattern detection circuits, 206 is a receiving purpose, 306, 307, 406 and 407 are registers, 308 is a transmitter, 309, 310, 409 and 410 are selectors. , 405 are receivers, respectively.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】パケット用データの一部に冗長データを付
加し暗号化して出力する送信器と、前記送信器からのデ
ータを復合化して前記冗長データの有無を検出する受信
器とからなるデータ変換器において、 前記送信器は、パケット用データの一部に冗長なディジ
ット系列を付加して出力するディジタル系列付加手段
と、前記ディジット系列計付加手段の出力のうち最新の
N個を記憶する第1の記憶手段と、暗号データの最新の
M個の出力を記憶する第2の記憶手段と、前記第1及び
第2の記憶手段の記憶内容に依存して前記ディジット系
列付加手段の出力ディジットを変換し前記暗号データを
出力する第1の変換手段とを備え、 前記受信器は、復号データの最新のN個を記憶する第3
の記憶手段と、入力データの最新のM個を記憶する第4
の記憶手段と、前記第3及び第4の記憶手段の記憶内容
に依存して前記入力データを変換し前記復号データを出
力する第2の変換手段と、前記第2の変換手段の出力の
なかに前記送信器で付加された冗長なディジット系列が
存在するか否かを検出する手段とを備えることを特徴と
するデータ変換器。
1. Data comprising a transmitter for adding redundant data to a part of packet data and encrypting and outputting the data, and a receiver for decoding data from the transmitter and detecting the presence or absence of the redundant data. In the converter, the transmitter stores a digital sequence adding means for adding a redundant digit sequence to a part of the packet data and outputting it, and a latest N number of outputs of the digit sequence total adding means. 1 storage means, a second storage means for storing the latest M outputs of encrypted data, and an output digit of the digit series addition means depending on the stored contents of the first and second storage means. A third converting means for converting the encrypted data and outputting the encrypted data, wherein the receiver stores the latest N pieces of the decrypted data.
Storage means for storing the latest M pieces of input data
Storage means, second conversion means for converting the input data and outputting the decoded data depending on the stored contents of the third and fourth storage means, and an output of the second conversion means. And a means for detecting whether or not the redundant digit sequence added by the transmitter is present in the data converter.
JP59277366A 1984-12-27 1984-12-27 Data converter Expired - Lifetime JPH0681136B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59277366A JPH0681136B2 (en) 1984-12-27 1984-12-27 Data converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59277366A JPH0681136B2 (en) 1984-12-27 1984-12-27 Data converter

Publications (2)

Publication Number Publication Date
JPS61154331A JPS61154331A (en) 1986-07-14
JPH0681136B2 true JPH0681136B2 (en) 1994-10-12

Family

ID=17582522

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59277366A Expired - Lifetime JPH0681136B2 (en) 1984-12-27 1984-12-27 Data converter

Country Status (1)

Country Link
JP (1) JPH0681136B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012141554A (en) * 2011-01-06 2012-07-26 Nec Corp Prefix match storage type encryption device and decryption device, and methods thereof

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2661085B2 (en) * 1987-12-28 1997-10-08 三菱電機株式会社 Encryption device
JPH04149753A (en) * 1990-10-15 1992-05-22 Seiko Epson Corp Information processor
CN1941694B (en) 2001-07-17 2011-04-20 夏普株式会社 Apparatus and method for generating data for detecting false alteration of encrypted data during processing
JP2012039180A (en) * 2010-08-03 2012-02-23 Kddi Corp Encryptor of stream encryption, decoder of stream encryption, encrypting method of stream encryption, decoding method of stream encryption, and program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58218252A (en) * 1982-06-11 1983-12-19 Oki Electric Ind Co Ltd Scrambling system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58218252A (en) * 1982-06-11 1983-12-19 Oki Electric Ind Co Ltd Scrambling system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012141554A (en) * 2011-01-06 2012-07-26 Nec Corp Prefix match storage type encryption device and decryption device, and methods thereof

Also Published As

Publication number Publication date
JPS61154331A (en) 1986-07-14

Similar Documents

Publication Publication Date Title
US4389636A (en) Encoding/decoding syncronization technique
NL8020502A (en)
PL182896B1 (en) Method of decoding retransmitted data in an encoded transmission telecommunication system
US20020018561A1 (en) Data encryption and decryption using error correction methodologies
US4244051A (en) Data communication method and apparatus therefor
US4330860A (en) Error correcting device
EP0221558B1 (en) Data converter
JPH0681136B2 (en) Data converter
US3412380A (en) Two-character, single error-correcting system compatible with telegraph transmission
JPH05183447A (en) Improved error detection coding system
JPH07297817A (en) Data transmission system
RU2150785C1 (en) Adaptive system for transmission and reception of digital information
JPH0738626B2 (en) Word sync detection circuit
KR100209314B1 (en) Method for synchronizing synchronous stream cipher and device thereof
JP2604640B2 (en) Data transmission method and data transmission device
JPS60230737A (en) Cipher system
JPH0677952A (en) Secret talk transmitter
JP2555582B2 (en) CMI code error detection circuit
JPS62109446A (en) Data converter
SU788406A1 (en) Device for receving discrete information with supervisory feedback
KR19980063014A (en) Synchronous method of synchronous stream cipher and its apparatus
KR19990016296A (en) Synchronous method of synchronous stream cipher and its apparatus
JP2576526B2 (en) I / O signal monitoring circuit
JPH0443452B2 (en)
JPH04360438A (en) Data transmission method