JPH08186547A - Device and method for scramble and device and method for descramble - Google Patents

Device and method for scramble and device and method for descramble

Info

Publication number
JPH08186547A
JPH08186547A JP6328559A JP32855994A JPH08186547A JP H08186547 A JPH08186547 A JP H08186547A JP 6328559 A JP6328559 A JP 6328559A JP 32855994 A JP32855994 A JP 32855994A JP H08186547 A JPH08186547 A JP H08186547A
Authority
JP
Japan
Prior art keywords
initial value
packet
data
key
random sequence
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
JP6328559A
Other languages
Japanese (ja)
Inventor
Masami Yamashita
雅美 山下
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP6328559A priority Critical patent/JPH08186547A/en
Publication of JPH08186547A publication Critical patent/JPH08186547A/en
Pending legal-status Critical Current

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

PURPOSE: To improve the privacy of scramble. CONSTITUTION: Real data to be recorded in the data part of a packet composed of the header of 4 bytes and the data part of 184 bytes are scrambled by adding pseudo random sequences. An initial value for generating these pseudo random sequences is changed before and after the bits (512 bits) expressed by the first 10 bits, for example.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、例えば映像、音声など
のデジタルデータを放送衛星、通信衛星などを介して伝
送するデジタル放送システムにおいて、デジタルデータ
をスクランブルまたはデスクランブルする場合に用いて
好適なスクランブル装置および方法、並びにデスクラン
ブル装置および方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is suitable for scrambling or descrambling digital data in a digital broadcasting system for transmitting digital data such as video and audio through a broadcasting satellite, a communication satellite or the like. The present invention relates to a scramble apparatus and method, and a descramble apparatus and method.

【0002】[0002]

【従来の技術】契約放送においては、スクランブル放送
と呼ばれる放送方式が用いられることが多い。このスク
ランブル放送は、放送局側において、元信号を所定の方
法で意図的に乱すことにより、放送局と契約していない
者が放送を受信しても、正常な画像や音声データなどを
利用することが出来ないようにするものである。放送局
と契約した者に対しては、デコーダを与え、このデコー
ダによりスクランブルされているデータを元の形にデス
クランブルすることで、正常な画像、音声データなどを
得ることが出来るようにする。
2. Description of the Related Art In contract broadcasting, a broadcasting system called scramble broadcasting is often used. In this scrambled broadcasting, the broadcasting station side intentionally disturbs the original signal by a predetermined method so that normal images and audio data are used even if a person who does not have a contract with the broadcasting station receives the broadcasting. It is something that you can't do. A decoder is given to a person who has a contract with the broadcasting station, and the scrambled data is descrambled to the original form so that normal image and audio data can be obtained.

【0003】スクランブル放送においては、契約をして
いない者に放送が受信された場合においても、その内容
を知られないようにするために、出来るだけデスクラン
ブルすることが困難な方法でスクランブルすることが望
ましい。
[0003] In scrambled broadcasting, even if the broadcast is received by a person who does not have a contract, the scrambled broadcasting is scrambled by a method that is difficult to descramble as much as possible so that the content is not known. Is desirable.

【0004】スクランブルの方式は、大きく2つに分類
される。1つはストリームサイファであり、他の1つは
ブロックサイファである。
Scramble systems are roughly classified into two types. One is a stream cipher, and the other is a block cipher.

【0005】ストリームサイファは、疑似ランダム信号
を発生させ、この疑似ランダム信号を元信号にモジュロ
2加算することにより、元信号をスクランブルするよう
な方法である。
The stream cipher is a method of scrambling the original signal by generating a pseudo random signal and adding the pseudo random signal to the original signal by modulo 2.

【0006】これに対してブロックサイファは、DES
(Data EncryptionStandard)
のように、ブロック単位で元信号を区切り、各ブロック
で複雑な処理を繰り返す方法である。
On the other hand, the block cipher is a DES
(Data Encryption Standard)
As described above, the original signal is divided in block units, and complicated processing is repeated in each block.

【0007】ストリームサイファは、ハードウエア構成
が簡単である利点を有する反面、解読されやすいという
欠点を有している。これに対してブロックサイファは、
解読されにくいという利点を有する反面、ハードウエア
構成が複雑になるという欠点を有している。
The stream cipher has an advantage that the hardware configuration is simple, but has a drawback that it is easily decoded. On the other hand, block cipher
While it has the advantage of being difficult to decipher, it has the disadvantage of a complicated hardware configuration.

【0008】ISO(International O
rganization forStandardiz
ation)/IEC(International
Electoro−technjcal Comiss
ion)13818−1(MPEG2 System
s)では、トランスポートパケットを単位として、マル
チメディアのデータを多重化して伝送することが標準化
されている。このパケットは188バイトの長さを有し
ており、デジタル映像、デジタル音声、データ信号が、
パケット単位で多重化されている。多重化を柔軟に行う
ためには、パケット単位でスクランブルが完結するよう
にした方が、以後の伝送系においてパケットの編集など
を自由に行うことができるため好ましい。またその方
が、パケットの脱落などに関しても影響が少ない。
ISO (International O)
rganization for Standarddiz
ation) / IEC (International
Electro-technjcal Comiss
Ion) 13818-1 (MPEG2 System)
In s), it is standardized to multiplex and transmit multimedia data in units of transport packets. This packet has a length of 188 bytes, and digital video, digital audio, and data signals are
It is multiplexed in packet units. In order to flexibly perform the multiplexing, it is preferable that the scrambling be completed in units of packets because the packets can be freely edited in the subsequent transmission system. In addition, this also has less effect on packet loss and the like.

【0009】ところで放送衛星を介して伝送するデータ
をスクランブルする装置として、平成5年6月21日の
「電気通信技術審議会答申」により、「諮問第53号
「放送衛星によるデータ放送に関する技術的条件」のう
ち、伝送制御方式および有料方式ならびにファクシミ
リ、テレソフトウエア、静止画、文字(基本)、時刻の
各信号の技術的条件」として、図7に示すスクランブル
装置が提案されている。
By the way, as a device for scrambling data to be transmitted through a broadcasting satellite, "Telecommunication Technology Council Report" of June 21, 1993, "Consultation No. 53", "Technology concerning data broadcasting by broadcasting satellite" Among the "conditions," the scramble device shown in FIG. 7 has been proposed as "a transmission control system, a pay system, and a technical condition of each signal of facsimile, telesoftware, still image, character (basic), and time".

【0010】スクランブルキーは、32ビットの初期値
と、4ビットの修整制御値よりなり、初期値を初期値レ
ジスタ1にロードされ、修整制御値は修整制御レジスタ
5にロードされる。このロードはキー更新タイミングフ
ラグSCTが1のパケットのとき行われる。
The scramble key has a 32-bit initial value and a 4-bit modification control value. The initial value is loaded into the initial value register 1, and the modification control value is loaded into the modification control register 5. This loading is performed when the key update timing flag SCT is a packet of 1.

【0011】初期値レジスタ1は、32段のフィードバ
ックシフトレジスタにより構成されている。この初期値
レジスタ1にロードされたデータは、下位ビットから上
位ビットへシフト信号に対応してシフトが行われる。
The initial value register 1 is composed of 32 stages of feedback shift registers. The data loaded in the initial value register 1 is shifted from the lower bit to the upper bit in accordance with the shift signal.

【0012】前のパケットの連続性指標CIの値(0乃
至15のいずれかの値をとる)が15で、当該パケット
のCIの値が0であるとき、CIのキャリーが1とされ
る。CIのキャリーはそのほかの場合(連続性指標が1
5のパケットから0のパケットへの変化以外の変化であ
る場合)、0となっている。このCIの値が1で、修整
制御レジスタ5の出力f3が1のとき、アンドゲート1
0が論理1を出力する。この論理1が、スクランブルキ
ー更新タイミングフラグSCTが0であるとき、すなわ
ち初期値レジスタ1にロードが行われる以外のとき、ア
ンドゲート6を介して、シフト信号として初期値レジス
タ1に入力される。初期値レジスタ1は、この論理1の
シフト信号に対応してシフト動作を行う。
When the value of the continuity index CI of the previous packet (which takes any value from 0 to 15) is 15 and the CI value of the packet is 0, the carry of the CI is set to 1. In other cases of CI carry (continuity index is 1
It is 0 when the change is other than the change from the packet of 5 to the packet of 0). When the value of this CI is 1 and the output f3 of the modification control register 5 is 1, the AND gate 1
0 outputs a logic 1. The logic 1 is input to the initial value register 1 as a shift signal via the AND gate 6 when the scramble key update timing flag SCT is 0, that is, except when the initial value register 1 is loaded. The initial value register 1 performs a shift operation in response to this logic 1 shift signal.

【0013】初期値レジスタ1より出力された32ビッ
トの初期値は、初期値修整回路2に入力され、修整され
る。この修整は、修整制御レジスタ5の出力f0乃至f
2と、デジタルデータを伝送する論理チャンネルを識別
するための論理チャンネル識別LCI1,LCI2およ
び連続性指標CIをアンドゲート7乃至9で論理積して
得た初期値修整データに対応して行われる。
The 32-bit initial value output from the initial value register 1 is input to the initial value adjusting circuit 2 and adjusted. This modification is performed by the outputs f0 to f of the modification control register 5.
2 and the logical channel identifications LCI1 and LCI2 for identifying the logical channel for transmitting digital data and the continuity index CI are ANDed by AND gates 7 to 9 to obtain the initial value modification data.

【0014】初期値修整回路2が出力する修整された初
期値は、PRPS(Pseudo−random bi
ynary sequence:疑似ランダム2値信号
系列)、生成回路3に入力される。PRBS生成回路3
は所定のロード信号が入力されたとき、この修整された
初期値をロードし、アンドゲート11を介して所定のシ
フト信号が入力されたとき、その修整された初期値をシ
フトして、PN信号(疑似ランダム信号)を生成する。
このPN信号はスクランブル識別フラグSCFが1のと
き、アンドゲート4を通過し、加算器12に入力され
る。加算器12はアンドゲート4から入力されたPN信
号を、図示せぬ回路から供給されたパケットデータに加
算し、暗号化されたパケットデータとして出力する。
The modified initial value output from the initial value modification circuit 2 is PRPS (Pseudo-random bibi).
(ary sequence: pseudo-random binary signal sequence), which is input to the generation circuit 3. PRBS generation circuit 3
When the predetermined load signal is input, the modified initial value is loaded, and when the predetermined shift signal is input through the AND gate 11, the modified initial value is shifted to generate the PN signal. (Pseudo random signal) is generated.
When the scramble identification flag SCF is 1, this PN signal passes through the AND gate 4 and is input to the adder 12. The adder 12 adds the PN signal input from the AND gate 4 to the packet data supplied from a circuit (not shown), and outputs it as encrypted packet data.

【0015】この装置を、上述したMPEG2 Sys
temsのトランスポートパケットのスクランブルに用
いることが考えられる。
This apparatus is based on the above-mentioned MPEG2 Sys.
It can be considered to be used for scrambling transport packets of tems.

【0016】[0016]

【発明が解決しようとする課題】しかしながら先の答申
により提案されている装置においては、初期値修整デー
タを論理チャンネル識別と連続性指標より生成している
ので、スクランブルされたデータを比較的簡単にデスク
ランブルされてしまう恐れがあった。
However, in the device proposed by the above report, since the initial value modification data is generated from the logical channel identification and the continuity index, scrambled data can be relatively easily created. There was a risk of being descrambled.

【0017】本発明はこのような状況に鑑みてなされた
ものであり、デスクランブルされる恐れを少なくし、よ
り秘密性を高めるようにするものである。
The present invention has been made in view of the above circumstances, and is intended to reduce the risk of descrambling and further enhance confidentiality.

【0018】[0018]

【課題を解決するための手段】請求項1に記載のスクラ
ンブル装置は、パケット単位で伝送されるデジタルデー
タをパケット単位でスクランブルするスクランブル装置
において、所定の初期値を発生する初期値発生手段(例
えば図1の初期値レジスタ1)と、初期値修整データに
基づいて、初期値を修整する初期値修整手段(例えば図
1の初期値修整回路2)と、修整された初期値に基づい
て、疑似ランダム系列を生成する疑似ランダム系列生成
手段(例えば図1のPRBS生成回路3)と、疑似ラン
ダム系列をデジタルデータに加算する加算手段(例えば
図1の加算器12)と、初期値をパケットの途中の変更
点で変更する変更手段(例えば図1のキー切り換え回路
21)とを備えることを特徴とする。
A scrambling device according to claim 1 is a scrambling device for scrambling digital data transmitted in packet units in packet units, and initial value generating means for generating a predetermined initial value. Based on the initial value register 1 in FIG. 1, initial value modifying means for modifying the initial value based on the initial value modification data (for example, the initial value modification circuit 2 in FIG. 1), and the modified initial value. Pseudo-random sequence generation means (for example, PRBS generation circuit 3 in FIG. 1) that generates a random sequence, addition means (for example, adder 12 in FIG. 1) that adds the pseudo-random sequence to digital data, and an initial value in the middle of the packet. And a changing means (for example, the key switching circuit 21 in FIG. 1) for changing at the change point.

【0019】初期値の変更点を可変とする可変手段(例
えば図1のビット検出部22C)をさらに設け、変更点
を、パケットに含まれる実データに対応して可変させる
ことができる。
A changing means (for example, the bit detecting section 22C in FIG. 1) for changing the change point of the initial value can be further provided, and the change point can be changed corresponding to the actual data included in the packet.

【0020】初期値を、それぞれ32ビットの2つのキ
ーにより構成し、変更手段には、前記パケット内におけ
る変更点を1つとして、変更点において一方のキーから
他方のキーに変更させることができる。
The initial value is composed of two 32-bit keys, and the changing means can change from one key to the other key at one change point in the packet. .

【0021】初期値修整データを生成するために、パケ
ットのヘッダに含まれるパケットIDまたは継続カウン
タを初期値修整データを検出する検出手段(例えば図1
のID検出部22A、CC検出部22B)をさらに設け
ることができる。
In order to generate the initial value modification data, the packet ID or the continuation counter included in the header of the packet is detected by the detection means (eg, FIG. 1).
ID detector 22A, CC detector 22B) can be further provided.

【0022】請求項6に記載のスクランブル方法は、パ
ケット単位で伝送されるデジタルデータをパケット単位
でスクランブルするスクランブル方法において、所定の
初期値を発生し、初期値修整データに基づいて、初期値
を修整し、修整された初期値に基づいて、疑似ランダム
系列を生成し、疑似ランダム系列をデジタルデータに加
算し、初期値をパケットの途中で変更することを特徴と
する。
A scramble method according to a sixth aspect is a scramble method in which digital data transmitted in packet units is scrambled in packet units, and a predetermined initial value is generated, and the initial value is adjusted based on the initial value modification data. It is characterized in that a pseudo random sequence is generated based on the modified and modified initial value, the pseudo random sequence is added to the digital data, and the initial value is changed in the middle of the packet.

【0023】同様の構成でデスクランブル装置および方
法を実現することができる。$
The descrambling apparatus and method can be realized with the same configuration. $

【作用】請求項1に記載のスクランブル装置および請求
項6に記載のスクランブル方法においては、初期値修整
データに基づいて初期値を修整し、修整された初期値に
基づいて、疑似ランダム系列が生成される。そしてこの
疑似ランダム系列をデジタルデータに加算して、スクラ
ンブルが行われる。またこの初期値はパケットの途中で
変更される。その結果、1つのパケットにおいて使用す
ることが可能なスクランブルのためキーのビット数が増
加し、スクランブルがより複雑となって、不正にデスク
ランブルされるおそれが減少する。
In the scrambling device according to the first aspect and the scrambling method according to the sixth aspect, the initial value is modified based on the initial value modification data, and the pseudo-random sequence is generated based on the modified initial value. To be done. Then, the pseudo random sequence is added to the digital data and scrambled. Also, this initial value is changed in the middle of the packet. As a result, the number of bits in the key is increased due to the scrambling that can be used in one packet, the scrambling becomes more complicated, and the risk of unauthorized descrambling is reduced.

【0024】[0024]

【実施例】図1は、上述したISO/IEC 1381
8−1(MPEG2 Systems)で規定するトラ
ンスポートパケットをスクランブルする本発明のスクラ
ンブル装置の構成例を示すブロック図であり、図7にお
ける場合と対応する部分には同一の符号を付してある。
すなわちこの実施例においても、初期値レジスタ1乃至
加算器12の構成は、図7における場合と同様である。
ただしこの実施例においては、初期値レジスタ1の前段
にキー切換回路21が設けられており、またアンドゲー
ト7乃至10に、修整制御レジスタ5より信号が供給さ
れるとともに、検出回路22より出力された信号が入力
されるようになされている。また検出回路22は、キー
切換回路21にセレクト信号を出力するようになされて
いる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows the above-mentioned ISO / IEC 1381.
8-1 is a block diagram showing a configuration example of a scrambling device of the present invention that scrambles a transport packet specified by 8-1 (MPEG2 Systems), and the same reference numerals are given to parts corresponding to the case in FIG. 7.
That is, also in this embodiment, the configurations of the initial value register 1 to the adder 12 are similar to those in FIG.
However, in this embodiment, the key switching circuit 21 is provided in the preceding stage of the initial value register 1, and the AND gates 7 to 10 are supplied with the signal from the modification control register 5 and output from the detection circuit 22. Signal is input. The detection circuit 22 also outputs a select signal to the key switching circuit 21.

【0025】この検出回路22は、パケットのヘッダに
含まれるパケットIDを検出するID検出部22A、パ
ケットのヘッダに含まれるcontinuity−co
unter(継続カウンタ)を検出するCC検出部22
B、キー切換回路21に出力するセレクト信号を生成す
るための基準となるビットを検出するビット検出部22
C、スクランブル識別フラグSCFを検出するSCF検
出部22Dを有している。
The detection circuit 22 includes an ID detection unit 22A for detecting a packet ID contained in the packet header, and a continuity-co contained in the packet header.
CC detection unit 22 for detecting unter (continuation counter)
B, a bit detection unit 22 that detects a reference bit for generating a select signal to be output to the key switching circuit 21.
C, SCF detection section 22D for detecting the scramble identification flag SCF.

【0026】その他の構成は図7における場合と同様で
ある。
The other structure is the same as that shown in FIG.

【0027】図2は、キー切換回路21の構成例を表し
ている。この例においてはキーレジスタ61とキーレジ
スタ62に、それぞれ32ビットの初期値となるキーが
記憶されている。セレクタ63は、検出回路22からの
セレクト信号に対応して、キーレジスタ61またはキー
レジスタ62に記憶されている32ビットのキーを選択
し、スクランブルキーとしての32ビットの初期値a0
乃至a31を初期値レジスタ1に出力する。初期値レジ
スタ1は、入力された初期値a0乃至a31を、初期値
b0乃至b31として出力する。
FIG. 2 shows a configuration example of the key switching circuit 21. In this example, the key register 61 and the key register 62 store keys each having a 32-bit initial value. The selector 63 selects the 32-bit key stored in the key register 61 or the key register 62 in response to the select signal from the detection circuit 22, and the 32-bit initial value a0 as a scramble key.
To a31 are output to the initial value register 1. The initial value register 1 outputs the input initial values a0 to a31 as initial values b0 to b31.

【0028】初期値修整回路2は、例えば図3に示すよ
うに構成される。この実施例においては、アンドゲート
7乃至9より入力される合計15ビットのデータg0乃
至g14が接続マトリックス31において、32ビット
のデータh0乃至h31に変換され、それぞれ(h0,
h1),(h2,h3)・・・(h28,h29),
(h30,h31)のように、2ビットを単位とするデ
ータに区分され、それぞれ加算器32−1乃至32−1
6に供給される。加算器32−1乃至32−16には、
初期値レジスタ1より供給された32ビットの初期値デ
ータb0乃至b31が、(b0,b1),(b2,b
3)・・・(b28,b29),(b30,b31)の
ように、2ビットずつ区分されて、それぞれ加算器32
−1乃至32−16に供給される。
The initial value adjustment circuit 2 is constructed, for example, as shown in FIG. In this embodiment, a total of 15-bit data g0 to g14 input from the AND gates 7 to 9 are converted into 32-bit data h0 to h31 in the connection matrix 31, respectively (h0,
h1), (h2, h3) ... (h28, h29),
As shown in (h30, h31), data is divided into units of 2 bits, and the adders 32-1 to 32-1 respectively.
6. In the adders 32-1 to 32-16,
The 32-bit initial value data b0 to b31 supplied from the initial value register 1 are (b0, b1), (b2, b
3) ... (b28, b29), (b30, b31) are divided into 2 bits each, and each is added by an adder 32.
-1 to 32-16.

【0029】加算器32−1乃至32−16は、入力さ
れた4ビットのデータからそれぞれ2ビットのデータ
(c0,c1),(c2,c3),・・・(c28,c
29),(c30,c31)を生成し、これを修整され
た初期値としてPRBS生成回路3に出力する。
Each of the adders 32-1 to 32-16 receives 2-bit data (c0, c1), (c2, c3), ... (C28, c) from the input 4-bit data.
29) and (c30, c31) are generated, and these are output to the PRBS generation circuit 3 as modified initial values.

【0030】PRBS生成回路3は、例えば図4に示す
ように構成される。この実施例においては、初期値修整
回路2の加算器32−1乃至32−16より出力された
修整初期値c0乃至c31のうちc0乃至c7が、8段
のシフトレジスタで構成されるフィードバックシフトレ
ジスタ41に入力されている。また、c8乃至c18
が、11段のシフトレジスタで構成されるフィードバッ
クシフトレジスタ42に供給されている。さらにc19
乃至c31が13段のシフトレジスタにより構成される
フィードバックシフトレジスタ43に供給されている。
The PRBS generation circuit 3 is constructed, for example, as shown in FIG. In this embodiment, a feedback shift register in which c0 to c7 of the modified initial values c0 to c31 output from the adders 32-1 to 32-16 of the initial value modification circuit 2 are composed of 8 stages of shift registers 41 has been input. Also, c8 to c18
Are supplied to the feedback shift register 42 configured by the 11-stage shift register. Furthermore c19
To c31 are supplied to the feedback shift register 43 composed of 13 stages of shift registers.

【0031】フィードバックシフトレジスタ41は、入
力c0乃至c7から、データd0乃至d7を生成し、こ
のうちd0乃至d5を非線形ロジック44に出力する。
フィードバックシフトレジスタ42は、データc8乃至
c18からデータd8乃至d18を生成し、このうちd
8乃至d13を非線形ロジック45に出力する。フィー
ドバックシフトレジスタ43は、データc19乃至c3
1から、データd19乃至d31を生成し、このうちd
19乃至d24を非線形ロジック46に供給し、d31
を加算器48に出力する。
The feedback shift register 41 generates data d0 to d7 from the inputs c0 to c7 and outputs d0 to d5 of them to the non-linear logic 44.
The feedback shift register 42 generates data d8 to d18 from the data c8 to c18, of which d
8 to d13 are output to the non-linear logic 45. The feedback shift register 43 has data c19 to c3.
Data d19 to d31 are generated from 1, and d
19 to d24 are supplied to the non-linear logic 46, and d31
Is output to the adder 48.

【0032】非線形ロジック44は、データd0乃至d
5から1ビットのデータp1を生成し、非線形ロジック
45は、データd8乃至d13からデータp2を生成
し、非線形ロジック46は、データd19乃至d24か
らデータp3を生成する。
The non-linear logic 44 uses the data d0 to d.
The non-linear logic 45 generates the data p2 from the data d8 to d13, and the non-linear logic 46 generates the data p3 from the data d19 to d24.

【0033】スイッチ47は非線形ロジック45が出力
するデータp2が0であるとき、図中左側に切り換えら
れ、非線形ロジック44の出力p1を選択し、加算器4
8に出力する。また、非線形ロジック45の出力p2が
1であるとき、図中右側に切り換えられ、非線形ロジッ
ク46の出力p3を選択し、加算器48に出力する。加
算器48は、非線形ロジック44の出力p1または非線
形ロジック46の出力p3と、フィードバックシフトレ
ジスタ43が出力するデータd31との排他的論理和を
演算し、1ビットのPN信号pとしてアンドゲート4に
出力する。
When the data p2 output from the non-linear logic 45 is 0, the switch 47 is switched to the left side in the drawing to select the output p1 of the non-linear logic 44 and adder 4
Output to 8. When the output p2 of the non-linear logic 45 is 1, the output p3 of the non-linear logic 46 is selected and output to the adder 48 by switching to the right side in the drawing. The adder 48 calculates the exclusive OR of the output p1 of the non-linear logic 44 or the output p3 of the non-linear logic 46 and the data d31 output from the feedback shift register 43, and outputs it to the AND gate 4 as a 1-bit PN signal p. Output.

【0034】検出回路22は、入力されるパケットデー
タからそのヘッダを抽出する。すなわち入力されるパケ
ットデータは、図5に示すようなフォーマットとされて
いる。1パケットの長さは188バイトとされ、その先
頭の4バイトはヘッダ、残りの184バイトがデータ部
とされ、そこに実データが配置されるようになされてい
る。
The detection circuit 22 extracts the header from the input packet data. That is, the input packet data has a format as shown in FIG. The length of one packet is 188 bytes, the first 4 bytes are the header, and the remaining 184 bytes are the data part, and the actual data is arranged there.

【0035】ヘッダには、その先頭に8ビットの同期バ
イトが配置され、続く3ビットを挟んで、さらにそれに
続く13ビットはビデオデータ、オーディオデータなど
を識別するパケットID(PID0乃至PID13)と
されている。そして一番最後の4ビットが、conti
nuity−counter(継続カウンタ)の4ビッ
トのデータCCT0乃至CCT3とされている。
In the header, an 8-bit synchronization byte is arranged at the head of the header, and the following 3 bits are sandwiched between the 13 bits, which are packet IDs (PID0 to PID13) for identifying video data, audio data, and the like. ing. And the last 4 bits are conti
It is assumed to be 4-bit data CCT0 to CCT3 of a numeric-counter (continuation counter).

【0036】検出回路22のID検出部22Aは、図5
に示した13ビットのパケットIDPID0乃至PID
13を検出し、PID0乃至PID4の5ビットをアン
ドゲート7に、PID5乃至PID10の6ビットをア
ンドゲート8に出力する。そしてPID11乃至PID
13と、CC検出部22Bにより検出された継続カウン
タのデータCCT0乃至CCT3のうちのCCT0より
なる4ビットがアンドゲート9に出力される。
The ID detection section 22A of the detection circuit 22 is shown in FIG.
13-bit packet ID PID0 to PID shown in
13 is detected, and 5 bits of PID0 to PID4 are output to the AND gate 7, and 6 bits of PID5 to PID10 are output to the AND gate 8. And PID11 to PID
13 and 4 bits of CCT0 of the continuation counter data CCT0 to CCT3 detected by the CC detector 22B are output to the AND gate 9.

【0037】さらに、ビット検出部22Cは、図6に示
すように、ヘッダに続く実データの先頭から10ビット
の値を検出し、その検出値に対応するタイミングでセレ
クト信号を出力する。例えば先頭の10ビットが”10
00000000”(=512)である場合、実データ
の先頭から512ビット後のタイミングでセレクト信号
を出力する。
Further, as shown in FIG. 6, the bit detector 22C detects a value of 10 bits from the head of the actual data following the header, and outputs a select signal at a timing corresponding to the detected value. For example, the first 10 bits are "10"
In the case of 00000000 "(= 512), the select signal is output at the timing 512 bits after the beginning of the actual data.

【0038】SCF検出部22Dはパケットヘッダのス
クランブル識別フラグSCFを検出したとき、アンドゲ
ート4に1を出力する(勿論、図示せぬ他の回路から、
スクランブル指示信号の入力を受け、これをアンドゲー
ト4に出力することも可能である)。検出回路22は、
パケットヘッダのキー更新タイミングを検出し、キー更
新タイミングフラグSCTをアンドゲート6に出力す
る。
When the SCF detector 22D detects the scramble identification flag SCF of the packet header, it outputs 1 to the AND gate 4 (of course, from another circuit not shown,
It is also possible to receive the scramble instruction signal and output it to the AND gate 4. The detection circuit 22 is
The key update timing of the packet header is detected, and the key update timing flag SCT is output to the AND gate 6.

【0039】また、検出回路22は、データ部の先頭に
おいてロード信号を出力し、それをアンドゲート11と
PRBS生成回路3に出力する。さらに、データ部の先
頭以外においては、シフト信号をアンドゲート11に出
力する。
Further, the detection circuit 22 outputs a load signal at the head of the data section and outputs it to the AND gate 11 and the PRBS generation circuit 3. Further, the shift signal is output to the AND gate 11 except at the beginning of the data section.

【0040】次にその動作について説明する。ビット検
出部22Cは、データ部の先頭データに加算するPN信
号がPRBS回路3より出力されるより前の所定のタイ
ミングにおいて、第1のセレクト信号を発生し、キー切
り換え回路21に出力する。キー切り換え回路21のセ
レクタ63は、第1のセレクト信号が入力されたとき、
例えばキーレジスタ61にストアされているキーを選択
し、32ビットの初期値a0乃至a31として、初期値
レジスタ1に出力する。
Next, the operation will be described. The bit detection unit 22C generates a first select signal and outputs it to the key switching circuit 21 at a predetermined timing before the PN signal added to the head data of the data section is output from the PRBS circuit 3. The selector 63 of the key switching circuit 21, when the first select signal is input,
For example, the key stored in the key register 61 is selected and output to the initial value register 1 as 32-bit initial values a0 to a31.

【0041】その後、または初期値が入力されると同時
に、初期値レジスタ1には、スクランブルキー更新タイ
ミングフラグSCTが入力され、初期値レジスタ1にこ
の32ビットの初期値a0乃至a31がロードされる。
After that, or at the same time when the initial value is input, the scramble key update timing flag SCT is input to the initial value register 1 and the 32-bit initial values a0 to a31 are loaded to the initial value register 1. .

【0042】また、修整制御レジスタ5は、スクランブ
ルキー更新タイミングフラグSCTが1であるとき、図
示せぬ回路から供給される4ビットの修整制御値e0乃
至e3をロードする。そしてその4ビットのデータをそ
のまま4ビットの出力f0乃至f3として出力する。
When the scramble key update timing flag SCT is 1, the modification control register 5 loads 4-bit modification control values e0 to e3 supplied from a circuit (not shown). Then, the 4-bit data is output as it is as 4-bit outputs f0 to f3.

【0043】すなわち修整制御レジスタ5は、ロード時
に次の演算を行う。
That is, the modification control register 5 performs the following calculation at the time of loading.

【0044】[0044]

【数1】 [Equation 1]

【0045】アンドゲート10は、CC検出部22Bが
検出する継続カウンタの4ビットの値のうち、CCT1
が1であり、且つ修整制御レジスタ5の出力f3が1で
あるとき、1のシフト信号を出力する。このシフト信号
はキー更新タイミングフラグSCTが0であるとき(先
頭以外のとき)、アンドゲート6を通過し、初期値レジ
スタ1に入力される。初期値レジスタ1はこのシフト信
号が入力されると、下位ビットから上位ビットへデータ
を1ビットづつシフトする。最上位ビットは最下位ビッ
トへシフトされる。初期値レジスタ1を構成する32段
のフィードバックシフトレジスタの生成多項式は、次式
で表される。
The AND gate 10 selects the CCT1 of the 4-bit value of the continuation counter detected by the CC detector 22B.
Is 1 and the output f3 of the modification control register 5 is 1, a shift signal of 1 is output. This shift signal passes through the AND gate 6 and is input to the initial value register 1 when the key update timing flag SCT is 0 (other than at the beginning). When this shift signal is input, the initial value register 1 shifts the data from the lower bit to the upper bit bit by bit. The most significant bit is shifted to the least significant bit. The generator polynomial of the 32-stage feedback shift register forming the initial value register 1 is represented by the following equation.

【0046】G1(x)= x32+x22+x2+x+1G1 (x) = x 32 + x 22 + x 2 + x + 1

【0047】入力される初期値a0乃至a31に対し
て、出力をb0乃至b31とするとき、この初期値レジ
スタ1は、ロード時およびシフト時において次の演算を
行うことになる。
When the outputs are b0 to b31 with respect to the input initial values a0 to a31, the initial value register 1 performs the following calculation at the time of loading and at the time of shifting.

【0048】[0048]

【数2】 [Equation 2]

【0049】一方アンドゲート7は、ID検出部22A
が検出する13ビットのパケットIDのうち、5ビット
のPID0乃至PID4と、修整制御レジスタ5の出力
f0の論理積を演算し、15ビットの初期値修整データ
g0乃至g14のうちの、g10乃至g14を生成す
る。アンドゲート8は、ID検出部22Aが出力するP
ID5乃至PID10と、修整制御レジスタf1との論
理積とを演算し、g4乃至g9を生成する。さらにアン
ドゲート9は、ID検出部22Aが検出するPID11
乃至PID13、およびCC検出部22Bが検出するC
CT0の4ビットのデータと、修整制御レジスタ5の出
力f2との論理積を演算し、g0乃至g3を生成する。
On the other hand, the AND gate 7 has an ID detector 22A.
Of the 13-bit packet ID detected by the CPU and the logical product of the 5-bit PID0 to PID4 and the output f0 of the correction control register 5 to calculate g10 to g14 of the 15-bit initial value correction data g0 to g14. To generate. The AND gate 8 outputs P output by the ID detection unit 22A.
The logical product of ID5 to PID10 and the modification control register f1 is calculated to generate g4 to g9. Further, the AND gate 9 has the PID 11 detected by the ID detection unit 22A.
To PID13 and C detected by the CC detector 22B
The logical product of 4-bit data of CT0 and the output f2 of the modification control register 5 is calculated to generate g0 to g3.

【0050】初期値修整回路2の接続マトリックス31
は、アンドゲート7乃至9より入力される15ビットの
初期値修整データg0乃至g14を、次の表1に示すテ
ーブルにしたがって、データh0乃至h31の32ビッ
トのデータを生成する。
Connection matrix 31 of the initial value modifying circuit 2
Generates the 32-bit data h0 to h31 from the 15-bit initial value modification data g0 to g14 input from the AND gates 7 to 9 according to the table shown in Table 1 below.

【0051】[0051]

【表1】 [Table 1]

【0052】加算器32−1乃至32−16は、接続マ
トリックス31の出力h0乃至h31と、初期値レジス
タ1の出力b0乃至b31を、2ビットと単位とする1
6のブロックに区分し、次式で示される加算演算を行
い、得られた結果をc0乃至c31として、PRBS生
成回路3に出力する。
The adders 32-1 to 32-16 use the outputs h0 to h31 of the connection matrix 31 and the outputs b0 to b31 of the initial value register 1 as a unit of 2 bits.
The block is divided into 6 blocks, the addition operation shown in the following equation is performed, and the obtained results are output to the PRBS generation circuit 3 as c0 to c31.

【0053】[0053]

【数3】 (Equation 3)

【0054】PRBS生成回路3は、初期値修整回路2
の加算器32−1乃至32−16より出力された32ビ
ットの修整初期値c0乃至c31のうち、c0乃至c7
をフィードバックシフトレジスタ41に、c8乃至c1
8をフィードバックシフトレジスタ42に、そしてc1
9乃至c31をフィードバックシフトレジスタ43に、
それぞれロードする。
The PRBS generation circuit 3 includes an initial value correction circuit 2
Of the 32-bit modified initial values c0 to c31 output from the adders 32-1 to 32-16 of
In the feedback shift register 41, c8 to c1
8 to the feedback shift register 42, and c1
9 to c31 to the feedback shift register 43,
Load each.

【0055】フィードバックシフトレジスタ41は、8
段のシフトレジスタで構成され、次式で表される生成多
項式G2(x)に従い、入力c0乃至c7に対して、デ
ータd0乃至d7を生成する。
The feedback shift register 41 has eight
Comprising shift registers of stages, data d0 to d7 are generated for inputs c0 to c7 according to a generator polynomial G2 (x) represented by the following equation.

【0056】G2(x)=x8+x4+x3+x2+1G2 (x) = x 8 + x 4 + x 3 + x 2 +1

【0057】フィードバックレジスタ42は、11段の
シフトレジスタにより構成され、次式で表される生成多
項式G3(x)を用いて、入力c8乃至c18に対して
データd8乃至d18生成する。
The feedback register 42 is composed of an 11-stage shift register, and uses the generator polynomial G3 (x) represented by the following equation to generate the data d8 to d18 for the inputs c8 to c18.

【0058】G3(x)=x11+x2+1G3 (x) = x 11 + x 2 +1

【0059】フィードバックシフトレジスタ43は、1
3段のシフトレジスタで構成され、次式で表される生成
多項式G4(x)を用いて、入力c19乃至c31に対
して、データd19乃至d31を生成する。
The feedback shift register 43 has 1
Data d19 to d31 are generated for inputs c19 to c31 by using a generator polynomial G4 (x) represented by the following equation, which is composed of a shift register of three stages.

【0060】G4(x)=x13+x4+x3+x+1G4 (x) = x 13 + x 4 + x 3 + x + 1

【0061】データのシフトは各パケットのデータに対
応するクロックを用いて、下位ビットから上位ビットに
向けて行われる。
The data shift is performed from the lower bit to the upper bit using the clock corresponding to the data of each packet.

【0062】以上のフィードバックシフトレジスタ41
乃至43におけるロードと、シフトの動作をまとめると
次の式で表すことができる。
The above feedback shift register 41
The load and shift operations in Nos. 43 through 43 can be summarized by the following equation.

【0063】[0063]

【数4】 [Equation 4]

【0064】非線形ロジック44には、フィードバック
シフトレジスタ41が生成したデータd0乃至d7のう
ち、6ビットのデータd0乃至d5が入力される。非線
形ロジック44は、このデータd0乃至d5を入力と
し、1ビットのデータp1を生成する。
The 6-bit data d0 to d5 among the data d0 to d7 generated by the feedback shift register 41 are input to the non-linear logic 44. The non-linear logic 44 receives the data d0 to d5 and generates 1-bit data p1.

【0065】同様に非線形ロジック45には、フィード
バックシフトレジスタ42が生成するデータd8乃至d
17のうち、d8乃至b13が入力され、非線形ロジッ
ク45は、このデータd8乃至d13から、1ビットの
データp2を生成する。
Similarly, the non-linear logic 45 has data d8 to d generated by the feedback shift register 42.
Of the 17, 17, d8 to b13 are input, and the non-linear logic 45 generates 1-bit data p2 from the data d8 to d13.

【0066】また、非線形ロジック46には、フィード
バックシフトレジスタ43が生成するデータd19乃至
d31のうち、d19乃至d24が入力され、非線形ロ
ジック46は、このデータd19乃至d24から1ビッ
トのデータp3を生成する。
The non-linear logic 46 is supplied with d19 to d24 of the data d19 to d31 generated by the feedback shift register 43, and the non-linear logic 46 generates 1-bit data p3 from the data d19 to d24. To do.

【0067】i=0,8,19における6ビットの入力
(dl+5,di+4,di+3,di+2,di+i,di)の(0,
0,0,0,0,0),(0,0,0,0,0,1),
(0,0,0,0,1,0),・・・,(1,1,1,
1,1,1)に対応する1ビットの出力pをそれぞれ、
(p(0,0,0,0,0,0),(p(0,0,0,
0,0,1),・・・,p(0,1,1,1,1,
1),(p(1,0,0,0,0,0),(p(1,
0,0,0,0,1),・・・,p(1,1,1,1,
1,1))で表すものとすると、非線形ロジック44乃
至46の出力は、次のように表すことができるようにす
る。
6-bit inputs (d l + 5 , d i + 4 , d i + 3 , d i + 2 , d i + i , d i ) at i = 0, 8, 19 (0,
0,0,0,0,0), (0,0,0,0,0,1),
(0,0,0,0,1,0), ..., (1,1,1,
1-bit output p corresponding to (1, 1, 1),
(P (0,0,0,0,0,0), (p (0,0,0,
0,0,1), ..., p (0,1,1,1,1,
1), (p (1,0,0,0,0,0), (p (1,
0,0,0,0,1), ..., p (1,1,1,1,
, 1)), the outputs of the non-linear logics 44 to 46 can be expressed as follows.

【0068】非線形ロジック44 (0,0,0,0,1,1,1,0,0,1,1,1,
0,0,1,1,0,0,1,1,0,1,0,0,
1,0,0,1,0,1,1,0,1,1,1,1,
0,0,0,1,0,1,1,0,1,0,0,0,
1,0,0,0,1,0,1,1,0,0,1,1,
1,1,0,1)
Nonlinear Logic 44 (0,0,0,0,1,1,1,0,0,1,1,1,
0,0,1,1,0,0,1,1,0,1,0,0,
1,0,0,1,0,1,1,0,1,1,1,1,
0,0,0,1,0,1,1,0,1,0,0,0,
1,0,0,0,1,0,1,1,0,0,1,1,
1,1,0,1)

【0069】非線形ロジック45 (0,1,1,0,0,1,1,0,1,0,0,1,
1,0,1,1,0,1,1,0,1,0,0,1,
0,0,1,1,0,1,0,0,0,0,0,1,
1,1,1,1,1,0,0,0,0,1,1,1,
1,1,1,0,0,0,1,1,0,1,0,1,
0,0,0,0)
Nonlinear logic 45 (0,1,1,0,0,1,1,0,1,0,0,1,
1,0,1,1,0,1,1,0,1,0,0,1,
0,0,1,1,0,1,0,0,0,0,0,1,
1,1,1,1,1,0,0,0,0,1,1,1,
1,1,1,0,0,0,1,1,0,1,0,1,
0,0,0,0)

【0070】非線形ロジック46 (1,0,1,0,1,1,0,1,0,1,1,0,
0,0,0,1,1,1,0,1,0,0,0,0,
1,0,1,1,1,0,1,1,0,1,0,1,
0,0,1,1,1,0,1,1,1,1,1,0,
0,1,1,0,1,0,0,1,0,0,0,0,
0,0,0,1)
Nonlinear logic 46 (1,0,1,0,1,1,0,1,0,1,1,0,
0,0,0,1,1,1,0,1,0,0,0,0,
1,0,1,1,1,0,1,1,0,1,0,1,
0,0,1,1,1,0,1,1,1,1,1,0,
0,1,1,0,1,0,0,1,0,0,0,0,
0,0,0,1)

【0071】そして、非線形ロジック45の出力p2が
0であるとき、スイッチ47は、非線形ロジック44の
出力p1を選択し、加算器48に出力する。また非線形
ロジック45の出力p2が1であるとき、スイッチ47
は非線形ロジック46の出力p3を加算器48に出力す
る。
When the output p2 of the non-linear logic 45 is 0, the switch 47 selects the output p1 of the non-linear logic 44 and outputs it to the adder 48. When the output p2 of the non-linear logic 45 is 1, the switch 47
Outputs the output p3 of the non-linear logic 46 to the adder 48.

【0072】加算器48は、非線形ロジック44の出力
p1、または非線形ロジック46の出力p3と、フィー
ドバックシフトレジスタ43の出力d31との排他的論
理和の演算を行い、1ビットのPN信号pを生成する。
The adder 48 performs an exclusive OR operation on the output p1 of the non-linear logic 44 or the output p3 of the non-linear logic 46 and the output d31 of the feedback shift register 43 to generate a 1-bit PN signal p. To do.

【0073】すなわち、スイッチ47と、加算器48に
より、次の演算が行われることになる。
That is, the following calculation is performed by the switch 47 and the adder 48.

【0074】[0074]

【数5】 (Equation 5)

【0075】PRBS生成回路3が出力するデータp
は、スクランブル識別フラグSCFが1であるとき(ス
クランブルすべきパケットであるとき)、アンドゲート
4を介して、加算器12に供給され、パケットデータと
の排他的論理和が演算されて、暗号化されたパケットデ
ータとして出力される。
Data p output from the PRBS generation circuit 3
Is supplied to the adder 12 via the AND gate 4 when the scramble identification flag SCF is 1 (when the packet is to be scrambled), the exclusive OR with the packet data is calculated, and encryption is performed. And output as packetized data.

【0076】なお、ビット検出部22Cが、例えば実デ
ータの512番目のビットに対するPN信号を出力する
前の所定のタイミングのビットを検出し、第2のセレク
ト信号を出力したとき、キー切り換え回路21のセレク
タ63は、それまでのキーレジスタ61に代えて、キー
レジスタ62を選択し、そこにに記憶されている32ビ
ットのキーを初期値として初期値レジスタ1に出力す
る。その後、所定のタイミングで、キー更新タイミング
フラグSCTも1とされ、新たな32ビットの初期値
が、初期値レジスタ1にロードされ、同様の処理が実行
される。
When the bit detector 22C detects a bit at a predetermined timing before outputting the PN signal for the 512th bit of the actual data and outputs the second select signal, the key switching circuit 21 is detected. The selector 63 selects the key register 62 in place of the key register 61 and outputs the 32-bit key stored therein to the initial value register 1 as an initial value. After that, at a predetermined timing, the key update timing flag SCT is also set to 1, a new 32-bit initial value is loaded into the initial value register 1, and similar processing is executed.

【0077】以上のようにして、例えば実データの最初
の511ビットまでのデータは、第1の初期値によりス
クランブルが行われ、512ビット目以降のデータは、
第2の初期値によりスクランブルが行われる。そしてこ
の初期値の変更点は、各パケット毎にそのデータに対応
して可変となる。したがって、より秘密性を高めること
が可能となる。
As described above, for example, the data up to the first 511 bits of the actual data is scrambled by the first initial value, and the data after the 512th bit is
Scrambling is performed with the second initial value. The change of the initial value is variable for each packet corresponding to the data. Therefore, it becomes possible to increase the confidentiality.

【0078】なお、上記実施例においては、PID0乃
至PID13、およびCCT0、CCT1から初期値補
正データを生成するようにしたが、この他、CCT2、
CCT3を用いるようにすることもできる。
In the above embodiment, the initial value correction data is generated from PID0 to PID13 and CCT0 and CCT1, but in addition to this, CCT2,
It is also possible to use CCT3.

【0079】また、上述したように1パケット当たり6
4ビットのキーを用意し、そのうちの32ビットずつ
を、最初のロードと次のロードにそれぞれ用いるように
すると、暗号化(スクランブル)のアルゴリズムは、6
4ビットの長さのデータを扱うように設計されているこ
とが多いため、特別のアルゴリズムを設計せずとも、そ
のアルゴリズムをそのまま用いることが可能となる。
As described above, 6 packets per packet
If you prepare a 4-bit key and use 32 bits of each for the first load and the second load, the encryption (scramble) algorithm becomes 6
Since it is often designed to handle 4-bit length data, the algorithm can be used as it is without designing a special algorithm.

【0080】また上記実施例においては、1パケットの
中で初期値を変更する回数を1回だけとしたが、2回以
上とすることも可能である。また、初期値の変更点を実
データの1部を用いることにより可変としたが、実デー
タを用いずに予め定められた所定の位置に固定すること
も可能である。
In the above embodiment, the initial value is changed only once in one packet, but it may be changed twice or more. Further, although the change point of the initial value is made variable by using a part of the actual data, it is also possible to fix it at a predetermined position without using the actual data.

【0081】なお、データ部に記録される実データとし
ては、映像データ、音声データ、その他のデータの他、
任意のデータとすることができる。
The actual data recorded in the data section includes video data, audio data, other data,
It can be any data.

【0082】また上記実施例においては、スクランブル
装置を説明したが、全く同様の構成により、デスクラン
ブル装置を実現することができる。
Although the scrambler has been described in the above embodiment, a descrambler can be realized with the same configuration.

【0083】[0083]

【発明の効果】以上の如く請求項1に記載のスクランブ
ル装置、および請求項6に記載のスクランブル方法によ
れば、初期値を修整し、修整された初期値に基づいて、
疑似ランダム系列を生成し、この疑似ランダム系列をデ
ジタルデータに加算して、デジタルデータをスクランブ
ルする場合において、初期値をパケットの途中で変更す
るようにしたので、1パケットに使用可能なキーのビッ
ト数を増加することが出来、秘密性をより向上させるこ
とが可能となる。
As described above, according to the scrambler according to the first aspect and the scramble method according to the sixth aspect, the initial value is modified, and based on the modified initial value,
When a pseudo-random sequence is generated and this pseudo-random sequence is added to digital data to scramble the digital data, the initial value was changed in the middle of the packet, so the key bits that can be used for one packet The number can be increased and the confidentiality can be further improved.

【0084】また、請求項7に記載のデスクランブル装
置および請求項12に記載のデスクランブル方法によれ
ば、機密性の高いスクランブルされたデータを確実にデ
スクランブルすることが可能となる。
Further, according to the descrambler of the seventh aspect and the descrambling method of the twelfth aspect, it is possible to surely descramble scrambled data with high confidentiality.

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

【図1】本発明のスクランブル装置の構成例を示すブロ
ック図である。
FIG. 1 is a block diagram showing a configuration example of a scramble device of the present invention.

【図2】図1のキー切り換え回路21の構成例を示すブ
ロック図である。
FIG. 2 is a block diagram showing a configuration example of a key switching circuit 21 of FIG.

【図3】図1の初期値修整回路2の構成例を示すブロッ
ク図である。
3 is a block diagram showing a configuration example of an initial value modification circuit 2 in FIG.

【図4】図1のPRBS生成回路3の構成例を示すブロ
ック図である。
FIG. 4 is a block diagram showing a configuration example of a PRBS generation circuit 3 in FIG.

【図5】トランスポートパケットのフォーマットを説明
する図である。
FIG. 5 is a diagram illustrating a format of a transport packet.

【図6】初期値の変更点を説明する図である。FIG. 6 is a diagram illustrating changes in initial values.

【図7】従来のスクランブル装置の構成例を示すブロッ
ク図である。
FIG. 7 is a block diagram showing a configuration example of a conventional scramble device.

【符号の説明】[Explanation of symbols]

1 初期値レジスタ 2 初期値修整回路 3 PRBS生成回路 5 修整制御レジスタ 21 キー切り換え回路 22 検出回路 22A ID検出部 22B CC検出部 22C ビット検出部 22D SCF検出部 31 接続マトリックス 32−1乃至32−16 加算器 41乃至43 フィードバックシフトレジスタ 44乃至46 非線形ロジック 47 スイッチ 48 加算器 61,62 キーレジスタ 63 セレクタ 1 Initial Value Register 2 Initial Value Adjustment Circuit 3 PRBS Generation Circuit 5 Adjustment Control Register 21 Key Switching Circuit 22 Detection Circuit 22A ID Detection Section 22B CC Detection Section 22C Bit Detection Section 22D SCF Detection Section 31 Connection Matrix 32-1 to 32-16 Adder 41 to 43 Feedback shift register 44 to 46 Non-linear logic 47 Switch 48 Adder 61, 62 Key register 63 Selector

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04L 9/18 H04N 7/167 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Office reference number FI Technical display location H04L 9/18 H04N 7/167

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 パケット単位で伝送されるデジタルデー
タを前記パケット単位でスクランブルするスクランブル
装置において、 所定の初期値を発生する初期値発生手段と、 初期値修整データに基づいて、前記初期値を修整する初
期値修整手段と、 修整された前記初期値に基づいて、疑似ランダム系列を
生成する疑似ランダム系列生成手段と、 前記疑似ランダム系列を前記デジタルデータに加算する
加算手段と、 前記初期値を前記パケットの途中の変更点で変更する変
更手段とを備えることを特徴とするスクランブル装置。
1. A scrambler for scrambling digital data transmitted in packet units in packet units, wherein an initial value generating means for generating a predetermined initial value and the initial value modification data are modified based on the initial value modification data. Initial value modifying means, based on the modified initial value, pseudo-random sequence generating means for generating a pseudo-random sequence, adding means for adding the pseudo-random sequence to the digital data, the initial value A scrambler comprising: a changing unit that changes at a change point in the middle of a packet.
【請求項2】 前記初期値の前記変更点を可変とする可
変手段をさらに備えることを特徴とする請求項1に記載
のスクランブル装置。
2. The scrambler according to claim 1, further comprising a varying unit that varies the change point of the initial value.
【請求項3】 前記可変手段は、前記変更点を、前記パ
ケットに含まれる実データに対応して可変することを特
徴とする請求項2に記載のスクランブル装置。
3. The scrambler according to claim 2, wherein the changing unit changes the change point in accordance with the actual data included in the packet.
【請求項4】 前記初期値は、それぞれ32ビットの2
つのキーにより構成され、 前記変更手段は、前記パケット内における前記変更点を
1つとして、前記変更点において一方の前記キーから他
方の前記キーに変更することを特徴とする請求項1,2
または3に記載のスクランブル装置。
4. The initial value is 2 of 32 bits each.
4. The key is configured by one key, and the changing unit changes one of the keys from the one key to the other key at the change point with one change point in the packet.
Alternatively, the scrambler according to item 3.
【請求項5】 前記初期値修整データを生成するため
に、前記パケットのヘッダに含まれるパケットIDまた
は継続カウンタ検出する検出手段をさらに備えることを
特徴とする請求項1乃至4のいずれかに記載のスクラン
ブル装置。
5. The detection means for detecting the packet ID or the continuation counter included in the header of the packet, in order to generate the initial value modification data, according to any one of claims 1 to 4. Scrambler.
【請求項6】 パケット単位で伝送されるデジタルデー
タを前記パケット単位でスクランブルするスクランブル
方法において、 所定の初期値を発生し、 初期値修整データに基づいて、前記初期値を修整し、 修整された前記初期値に基づいて、疑似ランダム系列を
生成し、 前記疑似ランダム系列を前記デジタルデータに加算し、 前記初期値を前記パケットの途中で変更することを特徴
とするスクランブル方法。
6. A scramble method for scrambling digital data transmitted in packet units in packet units, wherein a predetermined initial value is generated, and the initial value is modified based on the initial value modification data and modified. A scrambling method comprising: generating a pseudo-random sequence based on the initial value, adding the pseudo-random sequence to the digital data, and changing the initial value in the middle of the packet.
【請求項7】 パケット単位で伝送されるとともに、パ
ケット単位でスクランブルされているデジタルデータを
デスクランブルするデスクランブル装置において、 所定の初期値を発生する初期値発生手段と、 初期値修整データに基づいて、前記初期値を修整する初
期値修整手段と、 修整された前記初期値に基づいて、疑似ランダム系列を
生成する疑似ランダム系列生成手段と、 前記疑似ランダム系列を前記デジタルデータに加算する
加算手段と、 前記初期値を前記パケットの途中の変更点で変更する変
更手段とを備えることを特徴とするデスクランブル装
置。
7. A descrambling device that descrambles digital data transmitted in packet units and scrambled in packet units, based on initial value generation means for generating a predetermined initial value and initial value modification data. An initial value modifying means for modifying the initial value, a pseudo random sequence generating means for generating a pseudo random sequence based on the modified initial value, and an adding means for adding the pseudo random sequence to the digital data. And a changing means for changing the initial value at a change point in the middle of the packet.
【請求項8】 前記初期値の前記変更点を可変とする可
変手段をさらに備えることを特徴とする請求項7に記載
のデスクランブル装置。
8. The descrambling device according to claim 7, further comprising a varying unit that varies the change point of the initial value.
【請求項9】 前可変手段は、前記変更点を、前記パケ
ットに含まれる実データに対応して可変することを特徴
とする請求項8に記載のデスクランブル装置。
9. The descrambling device according to claim 8, wherein the pre-variable means varies the change point in correspondence with the actual data included in the packet.
【請求項10】 前記初期値は、それぞれ32ビットの
2つのキーにより構成され、 前記変更手段は、前記パケット内における前記変更点を
1つとして、前記変更点において一方の前記キーから他
方の前記キーに変更することを特徴とする請求項7,8
または9に記載のデスクランブル装置。
10. The initial value is configured by two keys each having 32 bits, and the changing unit sets one of the change points in the packet as one, and at the change point, one of the keys to the other of the keys. 9. The key according to claim 7, wherein the key is changed to a key.
Alternatively, the descrambling device according to Item 9.
【請求項11】 前記初期値修整データを生成するため
に、前記パケットのヘッダに含まれるパケットIDまた
は継続カウンタを検出する検出手段をさらに備えること
を特徴とする請求項7乃至10のいずれかに記載のデス
クランブル装置。
11. The method according to claim 7, further comprising detection means for detecting a packet ID or a continuation counter included in the header of the packet in order to generate the initial value modification data. The descrambler described.
【請求項12】 パケット単位で伝送されるとともに前
記パケット単位でスクランブルされているデジタルデー
タをデスクランブルするデスクランブル方法において、 所定の初期値を発生し、 初期値修整データに基づいて、前記初期値を修整し、 修整された前記初期値に基づいて、疑似ランダム系列を
生成し、 前記疑似ランダム系列を前記デジタルデータに加算し、 前記初期値を前記パケットの途中の変更点で変更するこ
とを特徴とするデスクランブル方法。
12. A descrambling method for descrambling digital data transmitted in packet units and scrambled in packet units, wherein a predetermined initial value is generated, and the initial value is modified based on initial value modification data. And generating a pseudo random sequence based on the modified initial value, adding the pseudo random sequence to the digital data, and changing the initial value at a change point in the middle of the packet. And the descramble method.
JP6328559A 1994-12-28 1994-12-28 Device and method for scramble and device and method for descramble Pending JPH08186547A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6328559A JPH08186547A (en) 1994-12-28 1994-12-28 Device and method for scramble and device and method for descramble

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6328559A JPH08186547A (en) 1994-12-28 1994-12-28 Device and method for scramble and device and method for descramble

Publications (1)

Publication Number Publication Date
JPH08186547A true JPH08186547A (en) 1996-07-16

Family

ID=18211633

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6328559A Pending JPH08186547A (en) 1994-12-28 1994-12-28 Device and method for scramble and device and method for descramble

Country Status (1)

Country Link
JP (1) JPH08186547A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003096609A1 (en) * 2002-05-10 2003-11-20 Sony Corporation Encryption device and decryption device
JP2007529967A (en) * 2004-03-18 2007-10-25 クゥアルコム・インコーポレイテッド Efficient transmission of cryptographic information in a secure real-time protocol
JP2008283415A (en) * 2007-05-10 2008-11-20 Mitsubishi Electric Corp Ciphering device, ciphering method, ciphering program, deciphering device, deciphering method, and deciphering program

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003096609A1 (en) * 2002-05-10 2003-11-20 Sony Corporation Encryption device and decryption device
JPWO2003096609A1 (en) * 2002-05-10 2005-09-15 ソニー株式会社 Encryption device and decryption device
US7756270B2 (en) 2002-05-10 2010-07-13 Sony Corporation Encryption device and decryption device
JP4581685B2 (en) * 2002-05-10 2010-11-17 ソニー株式会社 Encryption device and decryption device
JP2007529967A (en) * 2004-03-18 2007-10-25 クゥアルコム・インコーポレイテッド Efficient transmission of cryptographic information in a secure real-time protocol
US8867745B2 (en) 2004-03-18 2014-10-21 Qualcomm Incorporated Efficient transmission of cryptographic information in secure real time protocol
JP2008283415A (en) * 2007-05-10 2008-11-20 Mitsubishi Electric Corp Ciphering device, ciphering method, ciphering program, deciphering device, deciphering method, and deciphering program

Similar Documents

Publication Publication Date Title
EP0713621B1 (en) Method and apparatus for uniquely encrypting a plurality of services at a transmission site
EP0674441B1 (en) A method for scrambling a digitally transmitted television signal
KR100314774B1 (en) Apparatus, method and computer program product for protecting copyright data within a computer system
EP0194769B1 (en) Cryptographic system for a direct broadcast by satellite network
US6804453B1 (en) Digital signal recording/reproducing apparatus
US8345713B2 (en) Methods and apparatus for content scrambling in a communications system
US20090245509A1 (en) Transmitting apparatus, receiving apparatus, and data transmitting system
JP2831650B2 (en) Signal scramble transmission system and device
JPH04233345A (en) Method and apparatus for transfer control in broadcast equipment
US8509435B2 (en) Method and system for a transport single key change point for all package identifier channels
JPH08186547A (en) Device and method for scramble and device and method for descramble
JPH08186546A (en) System and method for scramble and system and method for descramble
JPH08191280A (en) Method and device for scrambling and descrambling
KR20030056306A (en) Method and apparatus for descrambling of transport stream data
KR100758874B1 (en) Encryption and decryption system and method using variable factor of mpeg2 ts packet header
US20060088156A1 (en) Cfm mode system
JP2009213083A (en) Image compression method and apparatus
JPH10200877A (en) Transmission system for limited reception system of cable television and its reception device
JP4058167B2 (en) Storage type broadcast receiving apparatus, broadcast receiving method, transmitting apparatus, and transmitting method
JPH09298736A (en) Scramble transmitter, scrambler, descrambler and signal processor
JP2001292432A (en) Limited reception control system
KR100207379B1 (en) Encryption method of pn-key
JPH11225321A (en) Transmitter and receiver in restricted receiving system
JP2000092041A (en) Transmitter, receiver and system using them
JPH08265723A (en) Scramble control method, scramble device and de-scramble device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041201

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050128

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050221