JPS60133492A - Encoder - Google Patents

Encoder

Info

Publication number
JPS60133492A
JPS60133492A JP58241269A JP24126983A JPS60133492A JP S60133492 A JPS60133492 A JP S60133492A JP 58241269 A JP58241269 A JP 58241269A JP 24126983 A JP24126983 A JP 24126983A JP S60133492 A JPS60133492 A JP S60133492A
Authority
JP
Japan
Prior art keywords
random number
bit
bits
random numbers
transposing
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
JP58241269A
Other languages
Japanese (ja)
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 JP58241269A priority Critical patent/JPS60133492A/en
Publication of JPS60133492A publication Critical patent/JPS60133492A/en
Pending legal-status Critical Current

Links

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 本発明はデータ秘匿のための符号変換器に関する。[Detailed description of the invention] The present invention relates to a code converter for data secrecy.

データを第3者に解読されないようにする方法として符
号変換器は従来から使われてきた。スクランブルの方法
としてはデータ転字と換字を組合わせると解読に強くな
り、例えばサイエンティフィック・アメリカン(Sci
ent i f ic Amer 1can)誌228
巻5号の15頁〜23頁にはデータをブロック化して転
字と換字を繰り返す方法が述べられている。しかし、該
方法は伝送路に伝送誤りが発生した場合には誤りが太き
く伝搬するという欠点がある。またキーの長さは固定で
あり、用途に応じて自由にキーの長さを変更することが
できない。
Code converters have traditionally been used as a way to prevent data from being decoded by third parties. As a method of scrambling, combining data transliteration and substitution makes it more resistant to decoding; for example, Scientific American (Sci
Entific Amer 1can) Magazine 228
Volume 5, pages 15 to 23 describe a method of dividing data into blocks and repeating transliteration and substitution. However, this method has the drawback that when a transmission error occurs on the transmission path, the error propagates thickly. Furthermore, the length of the key is fixed and cannot be freely changed depending on the purpose.

一方、自由にキーの長さを変更させる方法として乱数発
生器から発生ランキングキーを用い、該ランキングキー
とメソセージとをビット毎に、排他的論理利金とる方法
がある。この方法は誤り伝搬を生じない。しかしこの方
法は、平文と暗号文の対がわかると、そこの部分のキー
が判明しそれを手がかりとしてすべてのキーが判明し他
の部分も解読されてしまうという欠点がある。
On the other hand, as a method of freely changing the length of the key, there is a method of using a ranking key generated from a random number generator and taking exclusive logical interest on the ranking key and message for each bit. This method does not cause error propagation. However, this method has the drawback that once the pair of plaintext and ciphertext is known, the key for that part is known, and using that as a clue, all the keys are known and other parts can also be deciphered.

本発明の目的はこれらの欠点のない変換方法を用いた符
号変換器を提供すると逅にある。
The object of the invention is to provide a code converter using a conversion method that does not have these drawbacks.

本発明によれば符号変換器人力データ系列の順序を入換
える転置手段と、乱数を発生する乱数発生手段と、あら
かじめ定められたディジタルパターンを記憶し、前記転
置手段の出力する信号と前記乱数をアドレスとして該ア
ドレスに記憶されているディジタルパターンを出力する
記憶手段とから成ることを特徴とする符号変換器が得ら
れる。
According to the present invention, a transposition means for changing the order of a human data series of a code converter, a random number generation means for generating random numbers, a predetermined digital pattern is stored, and a signal output from the transposition means and the random number are stored. A code converter is obtained, comprising a storage means for outputting, as an address, a digital pattern stored at the address.

また本発明によれば乱数を発生する乱数発生手段と、あ
らかじめ定められたディジタルパターンを記憶し2、入
力データと乱数をアドレスとして該アドレスに記憶され
ているディジタルパターンを出力する記憶手段と、前記
記憶手段の出力するディジタル・パターン複数個のビッ
ト順序を入換える転置手段と、から成ることを特徴とす
る符号変換器が得られる。
Further, according to the present invention, a random number generating means for generating random numbers, a storage means for storing a predetermined digital pattern 2, and outputting the digital pattern stored at the address using input data and the random number as an address; A code converter is obtained, comprising transposing means for permuting the bit order of a plurality of digital patterns output from the storage means.

以下、実施例を示すブロック図を用いて本発明の動作原
理を詳細に説明する。
The operating principle of the present invention will be explained in detail below using block diagrams showing embodiments.

第1図は本発明の第1の実施例を示すブロック図である
。図において、インターリーバ−101はビット系列の
IIM序を入換え、シリアル/パラレル変換器102は
前記の順序を入換えられたビット系列をm(mfJ正整
数)ビットずつブロック化し、メモリ103は前もって
定められたmビットパターンを記憶し、乱数発生器10
4が発生し、たn(nは正整数)ビット乱数と前記シリ
アル/パラレル変換器102の出力mピッ)を合わせた
m十nビットをアドレスとして該アドレスに記憶されて
いるmビットパターンを出力する。以下、説明を簡単に
するためにmニn = 2として説明する。
FIG. 1 is a block diagram showing a first embodiment of the present invention. In the figure, an interleaver 101 swaps the IIM order of the bit sequence, a serial/parallel converter 102 blocks the bit sequence with the swapped order m (mfJ positive integer) bits at a time, and a memory 103 stores the IIM order in advance. A random number generator 10 stores a predetermined m-bit pattern.
4 is generated, and the n (n is a positive integer) bit random number and the output m bits of the serial/parallel converter 102 are combined, m ten n bits, as an address, and the m bit pattern stored at the address is output. do. Hereinafter, in order to simplify the explanation, it will be explained assuming that m = 2.

メモリ103が記憶するパターンの例を第2図に示す。FIG. 2 shows an example of patterns stored in the memory 103.

図において乱数2ビツトと人力データ2ビツトの交叉点
の2ビツトが出力2ビツトとなる8本実施例で乱数発生
器104 は乱数を発生する装置で、例えば擬似乱数発
生器あるいは真の乱数をメモリに記憶しておいてそれを
出力してもよい。
In the figure, the 2 bits at the intersection of the 2 bits of random number and the 2 bits of human input data are the 2 bits of output. In this embodiment, the random number generator 104 is a device that generates random numbers, such as a pseudorandom number generator or a device that stores true random numbers in memory. You can also store it in and output it.

この乱数系列がキーとなるがキーの長さは自由に定めら
れる。またメモリ103の内容と乱数左秘密にしておけ
は平文と暗号文の対が判明してもキーはわからない。ま
して、インターリーバ−101で人力データのビット順
序を入換え、該入換え方を秘密にしておけば、キーを知
ることはさらに困難となる。また、本発明では伝送中で
誤りが生じても誤り伝搬は非常に小さい。第2図に示し
た例ならば誤りは、平均1.25倍に拡大されるにすぎ
ない。このことは以下の考いから明らかとなる。
This random number sequence serves as a key, but the length of the key can be determined freely. Furthermore, if the contents of the memory 103 and the random numbers are kept secret, even if the pair of plaintext and ciphertext is known, the key will not be known. Moreover, if the interleaver 101 transposes the bit order of the data manually and the method of transposition is kept secret, it will be even more difficult to know the key. Furthermore, in the present invention, even if an error occurs during transmission, error propagation is extremely small. In the example shown in FIG. 2, errors are only magnified by a factor of 1.25 on average. This becomes clear from the following considerations.

・Tt 壕す受信2ビツトのうち、2ビツトとも誤る確率は1ビ
ツトだけ誤る確率よりもがなり小さいので誤りの拡大に
ついて評価する場合には無視することかできる。したが
って2ビツト受信して1ビット誤った場合のみを考える
-Tt The probability that both of the two received bits will be erroneous is much smaller than the probability that only one bit will be erroneous, so it can be ignored when evaluating error expansion. Therefore, only the case where 2 bits are received and 1 bit is erroneous will be considered.

第2図において乱数が(0,0)の場合を考える。Consider the case where the random number is (0,0) in FIG.

たとえは送信した2ビツトが(1,1)であり1ビツト
の誤りが発生した場合には(0,1)又は(1,0)が
受信される。すると第2図により送信信号が(1,1)
の場合には復号値は(1,0)であるのに(0,1)、
(1,0)が受信された場合にlI−を得号値は各々(
1,1)、(0,0)となってし7寸う。このことは乱
数が(00)−送(,1M号が(1,1) の場合には
、回線誤りが発生しても誤り伝搬は1ケであることを示
している。同様の考察を乱数(0,0) の場合の他の
値の送信信号について、また乱数(0,1)の場合のす
べての送信信号について行なえば乱数(0,0)、(0
,1)の場合には誤り伝搬が1ケにとどまることがわか
る。次に同様のことを乱数(X、0)(1,1) につ
いて考えてみる。たとえは、乱数が(1,01、送信し
たが2ビツトが(1,,1)の場合を考えると、1ビツ
トの誤りが発生した場合には、(0,1)又は(1,0
)が受信される。すると第2図により送信信号−,1)
に対する復号値は(0,0)であるのに、(0,1)、
(1,0)が受信憾れた場合には、復号値は各々(1,
0)、(1,1)となってしまう。すなわち(0,1)
が受信された場合には誤り伝搬は1ケにとどまるが(1
,0)が受信された場合に1−i2ヶに拡大する。この
時送信信号(1,1)が、(0,1)K誤る確率は、(
1,0)Ic誤る確率と等しいと考えることができるの
で、結局、乱数が(1,0) で送信信号が(1,1)
の場合、誤り伝播は平均1.5ケになることがわかる。
For example, if the transmitted 2 bits are (1, 1) and a 1-bit error occurs, then (0, 1) or (1, 0) will be received. Then, according to Figure 2, the transmitted signal becomes (1, 1)
In the case of , the decoded value is (1, 0), but (0, 1),
If (1,0) is received, the signal value of lI- is respectively (
1,1), (0,0), which is 7 inches. This shows that when the random number is (00)-transmission (,1M is (1,1), even if a line error occurs, the error propagation is only 1 digit.A similar consideration can be applied to the random number If you do this for other transmitted signals in the case of (0,0), and for all transmitted signals in the case of random numbers (0,1), you will get random numbers (0,0), (0
, 1), it can be seen that the error propagation remains at one digit. Next, consider the same thing for random numbers (X, 0) (1, 1). For example, if the random number is (1, 01) and the 2 bits that were sent are (1,, 1), if a 1-bit error occurs, the number will be (0, 1) or (1, 0).
) is received. Then, according to Fig. 2, the transmitted signal -,1)
The decoded value for is (0,0), but (0,1),
If (1, 0) is not received, the decoded values are (1, 0) respectively.
0), (1, 1). i.e. (0,1)
is received, the error propagation remains at 1 (1
, 0) is received, the number is expanded to 1-i2. At this time, the probability that the transmitted signal (1,1) makes (0,1)K errors is (
1,0) It can be considered that the probability of making an error is equal to Ic, so in the end, the random number is (1,0) and the transmitted signal is (1,1)
It can be seen that in the case of , the error propagation is on average 1.5 digits.

同様のことを他の値の送信信号及び乱数が(1,1) 
の場合のすべての送信信号について行えは、乱数(1,
01、(1゜1)の場合には、1ビット誤りが発生ずれ
は、誤の生起する頻度が同一であることをも考慮すると
、第2図に示した例によれは、伝送誤りは平均1.25
になることが示される。インターリーバ<−101はピ
ントの順序を入換える装置である。この装置の構成につ
いては、特許出願香号昭58−16412号明細曹1−
インターリーバ−」あるいは特許出願番号昭58−70
482号明細書[シリアル・インターリーバ−」に詳細
に配達されている。
The same thing can be done if the transmission signal of other values and the random number is (1, 1)
For all transmitted signals in the case of , random numbers (1,
In the case of 01, (1°1), a 1-bit error occurs. Considering that the error frequency is the same, in the example shown in Figure 2, the transmission error is on average. 1.25
It is shown that Interleaver <-101 is a device that changes the focus order. Regarding the configuration of this device, please refer to patent application No. 16412/1986.
Interleaver” or patent application number 1982-70
482 [Serial Interleaver].

メモリ103はたとえはリード万ンリーメモリ(ROM
)やランダムアクセスメモリ(RAM)で構成1゛るこ
とかできる。
The memory 103 is, for example, a read-only memory (ROM).
) or random access memory (RAM).

第3図は本発明の第2の実施例を示すブロック図である
。図において、データは2ビツトずつ人力されるか、そ
のうちの1ビツト(例えば下位ビット)はインターリー
バ−101で順序を入扛かえられる。即ち、人力された
データを並べて、下位ビットたけ注目すると、その1位
ビットのIll’l序が入換えられる。1方残り−の上
位ビットは遅延回路301である定められた量たけ遅延
される。該遅延は受信側の遅処と合わせた鰍が送l受信
のインターリーバ−による遅延合計となるように定める
。この条件を満足するならば、遅延回路301は省略し
て遅延がないようにし、受信側で合計分の遅延を実行す
ることも、あるいは逆に送信側で合計分遅延−J<でし
まうこともできる。本実施例の他の部分は第1の実施例
と同じなので説明省略する。
FIG. 3 is a block diagram showing a second embodiment of the invention. In the figure, the data is manually entered two bits at a time, or one bit (for example, the lower bit) is rearranged by an interleaver 101. That is, when the manually entered data is arranged and attention is paid to the lower bits, the order of the first bit is changed. The remaining high-order bits are delayed by a predetermined amount by the delay circuit 301. The delay is determined so that the total delay caused by the interleaver for transmission and reception is the sum of the delays on the receiving side. If this condition is satisfied, the delay circuit 301 can be omitted so that there is no delay, and the total delay can be executed on the receiving side, or conversely, the total delay can be - J < on the transmitting side. can. The other parts of this embodiment are the same as those of the first embodiment, so their explanation will be omitted.

第4図は本発明の第3の実施例を示すフロック図である
。図において、入カデータは2ピツI・で構成されるが
、それらは上位ビットと下位ビットに分けて各々インタ
ーリーバ−401とインターリーバ−402に人力され
、独立してビットIII序を人換えられる。本実施例の
他の部分は第】の実施例と同じなのでこれ以上の説明を
省略する。
FIG. 4 is a block diagram showing a third embodiment of the present invention. In the figure, the input data is composed of two bits, which are divided into upper bits and lower bits and input to interleaver 401 and interleaver 402, respectively, and the bit order is changed independently. . The other parts of this embodiment are the same as those of the second embodiment, so further explanation will be omitted.

第5図は本発明の第4の実施例を示すブロック図である
。図において、メモリ103けあらがじめ足められた2
ビツトパターンを記憶し、乱数発生器104からの乱数
2ビツトと入カデータ2ビットを合わせた4ピツ[i−
アドレスとして、該アトシ・スに記憶されている2ビツ
トを出力する。パラレル/シリアル変換器501it前
記メモリ103の出力で2ビツト系列をシリアル系列に
変換し、該シリアル系列のビット順序をインターリーバ
−101で入換えて出力する。本実施例によっても乱数
の長烙、すなわちキーの長さを自由に設定できること、
乱数上メモリ103の内容を秘密にしておりは解読に強
くなること、および誤り伝搬の少ないことは第1の実施
例と同じである。また、本実lX1i例は第1の実施例
のテスクランクラ−として用いることができる。ざらに
役割を逆にして、本実施例をスクランブラ−とし第1の
実施例をデスクランゲラ−として使用することができる
FIG. 5 is a block diagram showing a fourth embodiment of the present invention. In the figure, memory 103 is added to 2
The bit pattern is memorized and the 4-bit [i-
Outputs the 2 bits stored in the atsys as the address. A parallel/serial converter 501 converts a 2-bit series into a serial series using the output of the memory 103, and interleaver 101 switches the bit order of the serial series for output. According to this embodiment, the length of the random number, that is, the length of the key can be freely set.
As in the first embodiment, since the contents of the random number memory 103 are kept secret, the second embodiment is more resistant to decoding and has less error propagation. Further, this example IX1i can be used as the test cranker of the first example. Roughly reversing the roles, this embodiment can be used as a scrambler and the first embodiment can be used as a descrambler.

換器501 を用いないでインターリーバ−Vこおいて
、2ビット単位に入換えてもよい。また、第2の実施例
及び第3の実施例において、メモリJ03を前に移動さ
せ2−こともできる。即ち、メモリ103でデータを変
換してからビットの順序を入換えてもよい。これらの変
(il−を本発明の範囲に含まれるものである。
Instead of using the converter 501, the interleaver V may be used to convert the data in units of 2 bits. Furthermore, in the second embodiment and the third embodiment, the memory J03 can also be moved forward. That is, the order of the bits may be changed after converting the data in the memory 103. These variations (il-) are included within the scope of the present invention.

本発明は必要に応じてシリアル/パラレル変換器または
パラレル/シリアル変換器4用いて401回か繰り返す
ことができるか、こうすると7’l’? a Kさらに
強くなる。捷た1本発明の第1甘たは第2捷たは第3の
実施例の後にビットIll序を入換えるインターリーバ
−を付加しても解読VCつよくなる。
The present invention can be repeated 401 times using a serial/parallel converter or parallel/serial converter 4 as required, so 7'l'? a K becomes even stronger. Even if an interleaver for changing the bit order is added after the first, second, or third embodiment of the present invention, the decoding VC becomes stronger.

これらは本発明の応用例である。These are examples of applications of the present invention.

以上詳細に説明したように、本発明を用いれは第3者に
データの中味を知られることなくチータラ通信あるいは
ファイルに蓄積することができ、データ通信やファイル
などに応用して効果は極めて太きい。
As explained in detail above, the present invention can be used to store data in Cheetara communications or files without letting a third party know the contents of the data, and can be extremely effective when applied to data communications or files. .

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

第1図は本発明の第1の実施例を示すブロック図、第2
図は本発明に用いられるメモリが記憶するティジタルパ
ターンの1例を示す図、第3図、第4図、第5図は各々
本発明の第2、第3、第4の実施例を示すブロック図で
ある。図において、101、 +01,402はインタ
ーリーバ−1102はシリアル/パラレル変換器、10
3はメモリ、104は乱数発生器、301 は遅延回路
、501はパラレル/シリアル変換器を各々示す。
FIG. 1 is a block diagram showing a first embodiment of the present invention;
The figure shows an example of a digital pattern stored in the memory used in the present invention, and FIGS. 3, 4, and 5 show second, third, and fourth embodiments of the present invention, respectively. It is a block diagram. In the figure, 101, +01,402 is an interleaver, 1102 is a serial/parallel converter, 10
3 is a memory, 104 is a random number generator, 301 is a delay circuit, and 501 is a parallel/serial converter.

Claims (1)

【特許請求の範囲】 1、人力データ系列の順序を入換える転置手段と、乱数
を発生する乱数発生手段と、あらかじめ定められたディ
ジタルパターンを記憶し、前記転置手段の出力する信号
と前記乱数をアドレスとして該アドレスに記憶されてい
るディジタルパターンを出力1−る記憶手段と、から成
ることを特徴とする符号変換器。 2、乱数を発生ずる乱数発生手段と、あらかじめ定めら
れたディジタルパターンを記憶し、人力データと乱数を
アドレスとみなし該アドレスに記憶されているディジタ
ルパターンを出力する記憶手段と、前記記憶手段の出力
するディジタル・パターン複数個のピントl1fj序を
入換える転置手段とから成ることを特徴とする符号変換
器。
[Claims] 1. Transposing means for changing the order of a human data series, random number generating means for generating random numbers, storing a predetermined digital pattern, and transposing the signal output from the transposing means and the random numbers. 1. A code converter comprising: storage means for outputting, as an address, a digital pattern stored at the address. 2. Random number generation means for generating random numbers, storage means for storing a predetermined digital pattern, regarding human data and random numbers as addresses, and outputting the digital patterns stored at the addresses; and the output of the storage means. and transposing means for transposing the order of a plurality of digital patterns.
JP58241269A 1983-12-21 1983-12-21 Encoder Pending JPS60133492A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58241269A JPS60133492A (en) 1983-12-21 1983-12-21 Encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58241269A JPS60133492A (en) 1983-12-21 1983-12-21 Encoder

Publications (1)

Publication Number Publication Date
JPS60133492A true JPS60133492A (en) 1985-07-16

Family

ID=17071739

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58241269A Pending JPS60133492A (en) 1983-12-21 1983-12-21 Encoder

Country Status (1)

Country Link
JP (1) JPS60133492A (en)

Similar Documents

Publication Publication Date Title
KR100333255B1 (en) Apparatus and method for converting N-bit input values to converted N-bit output values
US4893339A (en) Secure communication system
US4685132A (en) Bent sequence code generator
CA2359534A1 (en) Information additive group code generator and decoder for communication systems
EP0949764B1 (en) Method for calculating phase shift coefficients of an M sequence
JPS5964942A (en) Digital transmission system
JPH08179690A (en) Product encoding device
Ding Pattern distributions of Legendre sequences
CA1274627A (en) Data converter
EP0297581A2 (en) Pseudo-noise sequence generator
US7071855B1 (en) Gray code conversion method and apparatus embodying the same
JPH05183447A (en) Improved error detection coding system
JPS60133492A (en) Encoder
KR100327856B1 (en) Circuit and method for arbitrarily shifting M series
US5859912A (en) Digital information privacy system
JP3371677B2 (en) Variable length decoding device
JPS626380B2 (en)
RU2099885C1 (en) System of secret transmission and reception of voice information, system of synchronization for system of secret transmission and reception of voice information and information coding of decoding device for system of secret transmission and reception of voice information
JPS6356566B2 (en)
KR100275527B1 (en) Apparatus and method for generating word random number
KR0147327B1 (en) Random number gernerator using uncorrelated auto-summation
JP3051416B2 (en) Address generator
JPH04115616A (en) Random code generating device
SU590857A1 (en) Decoder
JPS6340381B2 (en)