JPH0443452B2 - - Google Patents

Info

Publication number
JPH0443452B2
JPH0443452B2 JP60250230A JP25023085A JPH0443452B2 JP H0443452 B2 JPH0443452 B2 JP H0443452B2 JP 60250230 A JP60250230 A JP 60250230A JP 25023085 A JP25023085 A JP 25023085A JP H0443452 B2 JPH0443452 B2 JP H0443452B2
Authority
JP
Japan
Prior art keywords
pattern
data
digit
digits
digital
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
JP60250230A
Other languages
Japanese (ja)
Other versions
JPS62109445A (en
Inventor
Eiji Okamoto
Katsuhiro Nakamura
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 JP60250230A priority Critical patent/JPS62109445A/en
Priority to US06/925,891 priority patent/US4760599A/en
Priority to CA000522301A priority patent/CA1274627A/en
Priority to DE8686115402T priority patent/DE3688235T2/en
Priority to EP86115402A priority patent/EP0221558B1/en
Publication of JPS62109445A publication Critical patent/JPS62109445A/en
Publication of JPH0443452B2 publication Critical patent/JPH0443452B2/ja
Granted legal-status Critical Current

Links

Description

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

(従来技術とその問題点) パケツトデータ通信では、受信側でパケツトに
誤りが検出された場合には、該パケツトを捨てて
再送要求を出す方式が多い。この場合誤り検出符
号が用いられる。ところで暗号化が用いられてい
る場合には、暗号化の前に誤り検出符号化を行な
えば、第三者によるデータの改ざんからデータを
守れることが従来から知られている。しかし、暗
号と組合せても誤り検出符号化は暗号がない場合
に比較して簡単にならない。
(Prior art and its problems) In packet data communication, when an error is detected in a packet on the receiving side, there are many systems in which the packet is discarded and a retransmission request is issued. In this case error detection codes are used. By the way, it has been known that when encryption is used, data can be protected from tampering by a third party by performing error detection encoding before encryption. However, even in combination with cryptography, error detection encoding is not as simple as without cryptography.

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

(発明の構成) 本発明のデータ変換器は、第1のデータ変換回
路と第2のデータ変換回路とから構成される。第
1のデータ変換回路は、デイジタルパターンを記
憶する記憶手段と、前記デイジタルパターンに依
存したデイジツトを出力するパターン変換手段
と、前記データデイジツトと前記パターン変換手
段の出力するデイジツトのM(Mは正整数)を法
とする和を求める加算手段と、前記記憶手段が記
憶するデイジタルパターンの少なくとも1つのデ
イジツトを前記データデイジツトと該デイジタル
パターンの1つあるいは複数個のデイジツトとの
Mを法とする和に書き換え、該デイジタルパター
ンの少なくとも1つのデイジツトを該デイジタル
パターンの少なくとも2つのデイジツトのMを法
とする和に書き換える書き換え手段と、から成
り、前記加算手段の出力する和を出力データとす
ることを特徴とする。
(Structure of the Invention) The data converter of the present invention includes a first data conversion circuit and a second data conversion circuit. The first data conversion circuit includes a storage means for storing a digital pattern, a pattern conversion means for outputting a digit depending on the digital pattern, and an M (M is adding means for calculating a sum modulo a positive integer); and adding at least one digit of the digital pattern stored in the storage means as the sum modulo M of the data digit and one or more digits of the digital pattern. and rewriting means for rewriting at least one digit of the digital pattern into a sum modulo M of at least two digits of the digital pattern, and the sum outputted by the adding means is used as output data. It is characterized by

また第2のデータ変換回路は、データデイジツ
トを変換するデータ変換器において、デイジタル
パターンを記憶する記憶手段と、前記デイジタル
パターンに依存したデイジツトを出力するパター
ン変換手段と、前記データデイジツトと前記パタ
ーン変換手段の出力するデイジツトのM(Mは正
整数)を法とする和を求める加算手段と、前記記
憶手段が記憶するデイジタルパターンの少なくと
も1つのデイジツトを前記データデイジツトと該
デイジタルパターンの1つあるいは複数個のデイ
ジツトとのMを法とする和に書き換え、該デイジ
タルパターンの少なくとも1つのデイジツトを該
デイジタルパターンの少なくとも2つのデイジツ
トのMを法とする和に書き換える書き換え手段
と、から成り、前記加算手段の出力する和を出力
データとすることを特徴とする。
Further, the second data conversion circuit is a data converter for converting data digits, and includes a storage means for storing a digital pattern, a pattern conversion means for outputting a digit depending on the digital pattern, and a data converter for converting the data digits and the data digits. addition means for calculating the sum modulo M (M is a positive integer) of the digits output by the pattern conversion means; rewriting means for rewriting at least one digit of the digital pattern into a sum modulo M of at least two digits of the digital pattern; It is characterized in that the sum outputted by the adding means is used as output data.

(本発明の作用・原理) 第4図は本発明の作用・原理を示すための図で
ある。図において送信側では情報源401から発
したパケツトは、パターン付加回路402により
パケツトの最後に特定パターンを付加され、暗号
器403により暗号化されて送出される。
(Operation and principle of the present invention) FIG. 4 is a diagram showing the operation and principle of the present invention. In the figure, on the transmitting side, a packet sent from an information source 401 is appended with a specific pattern at the end by a pattern adding circuit 402, encrypted by an encoder 403, and sent out.

受信側では送信側から送られたパケツトが復号
器404で復号化され、パターン検出回路405
でパケツトの最後に前記パターンが付加されてい
るか否かを判定し、もし付加されていれば誤りや
改ざんがなく、異なるパターンに変化していれば
誤りや改ざんありと判定し、受信目的406にパ
ケツトを送る。ここで暗号器403及び復号器4
04が伝送路上にビツト誤りが生じた場合、その
パケツトの最後まで誤りが伝搬する形の暗号器、
復号器であれば、伝送中の誤りあるいは第3者に
よる改ざんの影響がパケツトの最後の特定パター
ンにおよび、特定パターンが変化する。従つて誤
りあるいは改ざんを検出できる。誤りを伝搬する
形の暗号器、復号器の例は実施例で示す。
On the receiving side, the packet sent from the transmitting side is decoded by a decoder 404, and then sent to a pattern detection circuit 405.
It is determined whether the pattern is added to the end of the packet or not. If it is added, it is determined that there is no error or tampering, and if the pattern has changed to a different pattern, it is determined that there is an error or tampering, and the receiving purpose 406 is determined. Send a packet. Here, the encoder 403 and the decoder 4
04 is an encoder in which when a bit error occurs on the transmission path, the error propagates to the end of the packet,
In the case of a decoder, errors during transmission or tampering by a third party affect the specific pattern at the end of the packet, causing the specific pattern to change. Therefore, errors or tampering can be detected. Examples of encoders and decoders that propagate errors will be shown in the embodiments.

〔実施例〕〔Example〕

第1図は本発明における第1のデータ変換回路
の実施例を示すブロツク図である。説明をわかり
易くするためにデータは全てバイナリ表現されて
いるものとする。図においてシフトレジスタ10
1は内部状態を表わすビツトパターンを格納して
おり、初期状態では初期パターンを格納する。該
シフトレジスタは最上位レジスタからの帰還部が
ある。帰還部の結線構造の1例は、M系列発生器
で用いる結線である。符号変換回路102は前記
レジスタ系列101の格納する内部状態を表わす
ビツトパターンを変換して1ビツトを出力する。
該出力を排他的論理和素子103は入力ビツトと
排他的論理和をとり、出力ビツトとする。該出力
ビツトは前記シフトレジスタ101の最上位レジ
スタからのビツトと排他的論理和(EOR)をと
られて前記シフトレジスタの最下位レジスタに入
力される。かくして内部状態が変化する。
FIG. 1 is a block diagram showing an embodiment of a first data conversion circuit according to the present invention. To make the explanation easier to understand, it is assumed that all data are expressed in binary. In the figure, shift register 10
1 stores a bit pattern representing the internal state, and stores the initial pattern in the initial state. The shift register has a feedback section from the topmost register. An example of the wiring structure of the feedback section is the wiring used in an M-sequence generator. The code conversion circuit 102 converts the bit pattern representing the internal state stored in the register series 101 and outputs one bit.
The exclusive OR element 103 performs an exclusive OR operation on the output and the input bit, and uses the result as an output bit. The output bit is exclusive-ORed (EOR)ed with the bit from the most significant register of the shift register 101 and input to the least significant register of the shift register. Thus, the internal state changes.

第2図は本発明における第2のデータ変換回路
の実施例を示すブロツク図である。第1のデータ
変換回路の実施例と同様データはバイナリデータ
として話を進める。シフトレジスタ201は帰還
部がついており、101と同一であるが、最下位
レジスタに入力されるビツトは最上位レジスタか
らのビツトと本発明装置への入力ビツトとの排他
的論理和である。他の部分は第1図と同じであ
る。
FIG. 2 is a block diagram showing an embodiment of a second data conversion circuit according to the present invention. As in the first embodiment of the data conversion circuit, the discussion will proceed assuming that the data is binary data. Shift register 201 has a feedback section and is the same as 101, but the bit input to the lowest register is the exclusive OR of the bit from the highest register and the input bit to the device of the present invention. Other parts are the same as in FIG.

第1のデータ変換回路の実施例と第2のデータ
変換回路の実施例のいずれか一方を暗号用、他方
を復号用に用いる。このとき、伝送上での誤りが
復号によつて広がるのは、この誤りがシフトレジ
スタの中にはいつて抜けなくなるからである。最
初同一の初期パターンをシフトレジスタ101と
201にセツトすれば、誤りがなければ復号後、
もとのバイナリデータになるのは、内部状態が、
一致していれば、符号変換回路の出力ビツトが同
一となり、復号後には、暗号前のデータビツトに
同一のビツトが2度、2を法として加算されるの
で元に戻るからである。シフトレジスタ101,
201の最下位レジスタには同一のビツトがはい
るので、シフトレジスタの中味は一致している。
途中で伝送上に誤りが生じると、復号後あわなく
なる。このときはパケツトの再送が行なわれるよ
うにしておき、パケツトの最初の段階で前記初期
パターンを一致するようにすれば、再送により誤
りが除去される。初期パターンはキーとすること
ができる。符号変換回路としては暗号器やロム
(ROM)やラム(RAM)のメモリで構成できる
が、第3図に示す回路でも構成できる。第3図に
はシフトレジスタ101あるいは201を331
という番号を付与して示してある。351は排他
的論理和素子103あるいは203につながり、
352は104あるいは204に相当する。
One of the first data conversion circuit embodiment and the second data conversion circuit embodiment is used for encryption, and the other is used for decryption. At this time, the reason that errors in transmission are spread by decoding is that these errors are trapped in the shift register and cannot be removed. If the same initial pattern is set in shift registers 101 and 201, if there are no errors, after decoding,
The original binary data is created when the internal state is
If they match, the output bits of the code conversion circuit will be the same, and after decoding, the same bits will be added twice modulo 2 to the data bits before encryption, so the original state will be restored. shift register 101,
Since the same bit is stored in the lowest register of 201, the contents of the shift registers match.
If an error occurs during transmission, the data will not match after decoding. In this case, if the packet is retransmitted and the initial pattern is matched at the beginning of the packet, the error will be removed by retransmission. The initial pattern can be a key. The code conversion circuit can be constructed from an encoder and memory such as ROM or RAM, but it can also be constructed from the circuit shown in FIG. In FIG. 3, the shift register 101 or 201 is shown as 331.
It is shown with a number. 351 is connected to exclusive OR element 103 or 203,
352 corresponds to 104 or 204.

図において、331は67段のシフトレジスタ
で、初期設定時には初期パターンがはいる。30
1から321はROMとセレクタから成る第3図
bに示す回路である。ROM341は16×8ビツ
トROMでアドレス入力4ビツトに対して、該ア
ドレスに記憶されている8ビツトを出力する。セ
レクタ342は該8ビツトのうちどのビツトを選
択するかを入力端子343から入力されたキーパ
ターンの1部(3ビツト)によつて定め、かくし
て定められた1ビツトを出力する。
In the figure, 331 is a 67-stage shift register, into which an initial pattern is entered at the time of initial setting. 30
1 to 321 are circuits shown in FIG. 3b consisting of a ROM and a selector. The ROM 341 is a 16×8 bit ROM, and in response to 4 bits of address input, outputs 8 bits stored at the address. The selector 342 determines which bit to select among the 8 bits based on a portion (3 bits) of the key pattern input from the input terminal 343, and outputs the 1 bit thus determined.

なお、第3図aでは入力端子343は繁雑さを
避けるため省略してある。321は16×1ビツト
ROMである。キーパターンは60ビツトから成
り、3ビツトずつ301〜320に入力される。
301から321におけるROMに記憶するパタ
ーンはランダムなパターン、例えば物理的なラン
ダムパターンである。このパターンをキーとする
こともできる。
Note that the input terminal 343 is omitted in FIG. 3a to avoid complexity. 321 is 16 x 1 bit
It is ROM. The key pattern consists of 60 bits, and each 3 bits are input into 301-320.
The patterns 301 to 321 stored in the ROM are random patterns, for example physical random patterns. This pattern can also be used as a key.

以上の実施例において、シフトレジスタは
RAMで構成することができ、ROMも不揮発性
RAMとすることがてきる。また、第3図aの3
01〜321を全て16×1ビツトのROMとし、
初期パターンをキーとすることもできる。これら
の変更は全て本発明の範囲に含まれる。
In the above embodiment, the shift register is
Can be configured with RAM, and ROM is also non-volatile
It can be used as RAM. Also, 3 in Figure 3a
All 01 to 321 are 16×1 bit ROM,
An initial pattern can also be used as a key. All these modifications are included within the scope of this invention.

(発明の効果) 以上詳細に説明したように、本発明を用いれ
ば、送信側は、例えば“ECCの作成”といつた
誤り検出符号化のための計算をせず、単にメツセ
ージの直後に特定パターン(パターンとしては任
意)を付加し、また受信側は、この特定パターン
を検査するだけでデータの誤り又は改ざんの有無
を検出できるようになり、データ通信に用いると
その性能上の効果は大きい。
(Effects of the Invention) As explained in detail above, by using the present invention, the sending side does not have to perform calculations for error detection encoding such as "creation of ECC", but can simply identify the message immediately after sending the message. By adding a pattern (any pattern can be used) and by inspecting this specific pattern, the receiving side can detect errors or falsification of data, and its use in data communication has a great effect on performance. .

【図面の簡単な説明】[Brief explanation of the drawing]

第1図、第2図は本発明の第1のデータ変換回
路の実施例、第2のデータ変換回路の実施例を示
すブロツク図、第3図a,bは符号変換回路を示
す構成図、第4図は本発明の動作原理を示すため
のブロツク図である。 図において、101,201,331はシフト
レジスタ、102,202は符号変換回路、10
3,203,332は排他的論理和素子、32
1,341はROM、342はセレクタ、401
は情報源、402はパターン付加回路、403は
暗号器、404は復号器、405はパターン検出
回路、406は受信目的を各々に示す。
1 and 2 are block diagrams showing an embodiment of a first data conversion circuit and a second embodiment of the data conversion circuit of the present invention, and FIGS. 3a and 3 are block diagrams showing a code conversion circuit, FIG. 4 is a block diagram showing the operating principle of the present invention. In the figure, 101, 201, 331 are shift registers, 102, 202 are code conversion circuits, 10
3,203,332 is an exclusive OR element, 32
1,341 is ROM, 342 is selector, 401
402 is an information source, 402 is a pattern addition circuit, 403 is an encoder, 404 is a decoder, 405 is a pattern detection circuit, and 406 is a reception purpose.

Claims (1)

【特許請求の範囲】 1 データデイジツトを変換して暗号データを発
生する暗号装置と前記暗号データを変換して前記
データデイジツトを復号する復号装置とからなる
データ変換器において、 (1) デイジタルパターンを記憶する記憶手段と、
前記デイジタルパターンに依存したデイジツト
を出力するパターン変換手段と、前記データデ
イジツトと前記パターン変換手段の出力するデ
イジツトのM(Mは正整数)を法とする和を求
め該和を出力データとする加算手段と、前記記
憶手段が記憶するデイジタルパターンの少なく
とも1つのデイジツトを前記加算手段の出力す
るデイジツトと該デイジタルパターンの1つあ
るいは複数個のデイジツトとのMを法とする和
に書き換え、該デイジタルパターンの少なくと
も1つのデイジツトを該デイジタルパターンの
少なくとも2つのデイジツトのMを法とする和
に書き換える書き換え手段とから成る第1のデ
ータ変換回路と、 (2) デイジタルパターンを記憶する記憶手段と、
前記デイジタルパターンに依存したデイジツト
を出力するパターン変換手段と、前記データデ
イジツトと前記パターン変換手段の出力するデ
イジツトのM(Mは正整数)を法とする和を求
め該和を出力データとする加算手段と、前記記
憶手段が記憶するデイジタルパターンの少なく
とも1つのデイジツトを前記データデイジツト
と該デイジタルパターンの1つあるいは複数個
のデイジツトとのMを法とする和に書き換え、
該デイジタルパターンの少なくとも1つのデイ
ジツトを該デイジタルパターンの少なくとも2
つのデイジツトのMを法とする和に書き換える
書き換え手段とから成る第2のデータ変換回路 とから構成され、前記第1のデータ変換回路と前
記第2の変換回路のいずれか一方を前記暗号装置
とし、他方を前記復号装置として用いるデータ変
換器。
[Scope of Claims] 1. A data converter comprising an encryption device that converts data digits to generate encrypted data, and a decryption device that converts the encrypted data and decrypts the data digits, comprising: (1) a digital a memory means for memorizing the pattern;
a pattern conversion means for outputting a digit depending on the digital pattern; a sum modulo M (M is a positive integer) of the data digit and the digit output from the pattern conversion means; the sum is determined as output data; an adding means, and rewriting at least one digit of the digital pattern stored in the storage means into a sum modulo M of the digit outputted by the adding means and one or more digits of the digital pattern; (2) a first data conversion circuit comprising: rewriting means for rewriting at least one digit of the pattern into a sum modulo M of at least two digits of the digital pattern; (2) storage means for storing the digital pattern;
a pattern conversion means for outputting a digit depending on the digital pattern; a sum modulo M (M is a positive integer) of the data digit and the digit output from the pattern conversion means; the sum is determined as output data; rewriting at least one digit of the digital pattern stored by the adding means and the storage means into a sum modulo M of the data digit and one or more digits of the digital pattern;
At least one digit of the digital pattern is combined with at least two digits of the digital pattern.
and a second data conversion circuit comprising rewriting means for rewriting two digits into a sum modulo M, and one of the first data conversion circuit and the second conversion circuit is used as the encryption device. , the other as the decoding device.
JP60250230A 1985-11-07 1985-11-07 Data converter Granted JPS62109445A (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP60250230A JPS62109445A (en) 1985-11-07 1985-11-07 Data converter
US06/925,891 US4760599A (en) 1985-11-07 1986-10-30 Data encryptor
CA000522301A CA1274627A (en) 1985-11-07 1986-11-06 Data converter
DE8686115402T DE3688235T2 (en) 1985-11-07 1986-11-06 DATA CONVERTER.
EP86115402A EP0221558B1 (en) 1985-11-07 1986-11-06 Data converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60250230A JPS62109445A (en) 1985-11-07 1985-11-07 Data converter

Publications (2)

Publication Number Publication Date
JPS62109445A JPS62109445A (en) 1987-05-20
JPH0443452B2 true JPH0443452B2 (en) 1992-07-16

Family

ID=17204771

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60250230A Granted JPS62109445A (en) 1985-11-07 1985-11-07 Data converter

Country Status (1)

Country Link
JP (1) JPS62109445A (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5763950A (en) * 1980-10-06 1982-04-17 Nec Corp System and device for ciphering

Also Published As

Publication number Publication date
JPS62109445A (en) 1987-05-20

Similar Documents

Publication Publication Date Title
TW390085B (en) A method of and apparatus for selecting cyclic redundancy check genetators in a concatenated code
US7137057B2 (en) Method and apparatus for performing error correction code (ECC) conversion
WO1979000418A1 (en) Method and device for encryption and decryption
US8577026B2 (en) Methods and apparatus in alternate finite field based coders and decoders
US20140055290A1 (en) Methods and Apparatus in Alternate Finite Field Based Coders and Decoders
JP2001524274A (en) Method and apparatus for shortened fire code error trapping decoding
US20120192040A1 (en) Encoding device for error correction, encoding method for error correction and encoding program for error correction
US20160112069A1 (en) Methods and Apparatus in Alternate Finite Field Based Coders and Decoders
EP0221558B1 (en) Data converter
US5359610A (en) Error detection encoding system
JPH0443452B2 (en)
JPH0443453B2 (en)
JPS61154331A (en) Data converter
JPH07297817A (en) Data transmission method
JPS5815352A (en) Decoding system with three-error correction code
Houghton Cyclic redundancy checking
JPH01298829A (en) Data converter
JPS626380B2 (en)
JP4488466B2 (en) Apparatus and method for encoding and decoding data
JPS61184930A (en) Error correction coder
JP5062643B2 (en) Error correction coding apparatus, error correction coding method, and program
KR19990081114A (en) Receiving Data Error Checking Method by Parallel Cyclic Redundancy Check
JPS61117940A (en) Data protection method
JPS60182480A (en) Scrambler
Coates Coding for Error Protection and Security