JP4336131B2 - Recording apparatus, reading apparatus, program, and method - Google Patents

Recording apparatus, reading apparatus, program, and method Download PDF

Info

Publication number
JP4336131B2
JP4336131B2 JP2003080634A JP2003080634A JP4336131B2 JP 4336131 B2 JP4336131 B2 JP 4336131B2 JP 2003080634 A JP2003080634 A JP 2003080634A JP 2003080634 A JP2003080634 A JP 2003080634A JP 4336131 B2 JP4336131 B2 JP 4336131B2
Authority
JP
Japan
Prior art keywords
copy
control information
recording medium
digital stream
check code
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 - Fee Related
Application number
JP2003080634A
Other languages
Japanese (ja)
Other versions
JP2004007494A (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.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial 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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP2003080634A priority Critical patent/JP4336131B2/en
Publication of JP2004007494A publication Critical patent/JP2004007494A/en
Application granted granted Critical
Publication of JP4336131B2 publication Critical patent/JP4336131B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Description

【0001】
【発明の属する技術部分野】
本発明は、DVD等の記録媒体、記録装置、読出装置、プログラムに関し、特に、ホームネットワークにてデジタル著作物を私的に利用する場合の改良に関する。
【0002】
【従来の技術】
記録媒体、記録装置の研究開発において、記録媒体や記録装置を如何にホームネットワークと融合させるかが大きな論点になっている。ホームネットワークとは、デジタルインターフェイスをもった機器同士を、IEEE1394等のデジタルケーブルで接続することにより構築される構内ネットワークである。STB(Set Top Box)やデジタルTV、パソコン、記録装置を組み入れたホームネットワークでは、パソコンやSTBで受信したデジタルデータをホームネットワーク上で転送させて家庭内の別室に設けられたデジタルTVで再生させることができる。また家庭内の別室に設けられた記録装置を用いてDVDに記録させることもできる。機器間でのデジタルデータの共用が可能になるので、ユーザにとっての利便性が飛躍的に増す。
【0003】
ホームネットワークにおいて、デジタルデータを自由に流通させるとなると、著作権者保護がなされたビデオデータ、オーディオデータの扱いが問題となる。頒布権や複製権、送信化可能権等の著作権が及ぶデジタル著作物であったとしても、これをホームネットワークで私的にコピーし、再生させる行為は認められる。何故なら、ホームネットワークにおけるデジタル著作物の利用は私的利用であり、著作権の効力は及ばないからである。私的コピーのため、デジタルビデオデータをDVDを記録する技術には、以下の特許文献1に記載されたものがある。
【0004】
【特許文献1】
特許3162044号公報
【0005】
【発明が解決しようとする課題】
ところで私的コピーにあたって、記録媒体に記録済みのビデオデータにどのような著作権者保護を施すか、コピー許否をどのように設定するかが問題となる。何等著作権保護が存在しないのなら、ホームネットワークにおける私的コピーにより得られた複製物が、著作者に無断でインターネットのサイトにアップロードされ、不特定多数に頒布される恐れがある。しかし特許文献1に記載されているように、コピー制御情報を「一回限りコピー(Only One Copy)」「コピー禁止(No More Copy)」に設定し、ホームネットワークにおける私的コピー行為に歯止めをかけるのは、私的コピーの権利を抑制することとなり、ユーザ側の反発を買う。
【0006】
かかる問題は、現在私的コピーが慣例的になされているTV番組の著作物の扱い時に顕著に現れる。TV番組をエンコードして得られたデジタルデータが、著作者に無断で不特定多数に頒布されれば、著作者は打撃を被る。何故なら、正当な権利者がTV番組を録画したパッケージソフトを販売しても売れなくなるからである。その一方、良好な状態でのコピーが可能であるにも拘らず、かかるデジタルデータの私的コピーを禁ずるとなると、ユーザサイドの反発が大きくなる。従来には、両者の要望の調整を図るようなコピー許否設定は存在せず、メーカは、ユーザ、著作権者間の板挟みになり苦しい立場に追いやられている。
【0007】
本発明の目的は、ネットワーク上へとデジタルストリームをアップロードする行為は禁じつつも、私的コピーをユーザに行わせることができるというコピー許否設定が可能な録装置、読出装置、複製装置を提供することである。
【0008】
【課題を解決するための手段】
上記目的は、記録装置であって装置外部から入力されてくる信号についてのコピー属性を判定する判定手段と、コピー属性が条件付きコピーフリーを示す場合、条件付きコピーフリーである旨を示すコピー制御情報と対応づけて、デジタルストリームの一部分を記録媒体に書き込む書込手段と、デジタルストリームの一部分を、所定の暗号鍵を用いて暗号化する暗号化手段とを備え、条件付きコピーフリーは、暗号化した上で、コピー先記録媒体に書き込むことを条件としたコピーフリーであり、前記書込手段は、暗号化された一部分を、チェックコードと対応づけて前記記録媒体に書き込み、前記コピー制御情報と前記チェックコードとを、互いに対として、前記一部分毎に前記記録媒体に記録し、前記チェックコードは、前記暗号鍵を用いて、前記コピー制御情報を変換することで得られるコードであり、前記コピー制御情報が条件付きコピーフリーを示すか否かに応じて値が変わり、前記コピー制御情報の不正な改ざんが生じたか否かを決定するために使われることを特徴とする記録装置によって達成される。
【0009】
条件付きコピーフリーとは、「暗号化での書き込み」という条件さえ満たされれば、何度でもコピーすることができるコピーフリーである。
条件付きコピーフリーと混同し易い概念として、移動やマイグレイト、チェックアウトといったコピー処理がある。これらのコピー処理と条件付きコピーフリーとの違いは以下の通りである。
【0010】
移動とは、コピー元のコンテンツの削除が伴うコピー処理であり、複数記録媒体間でコンテンツを移動する場合に用いられる。条件付きコピーフリーは、コピー元を削除する必要はないのでこの移動とは明らかに異なる。
マイグレイトとは、コピー先記録媒体において、利用条件情報を生成させることを前提にした移動処理である。移動同様、コピー元の削除は義務付けられておらず、また利用条件情報の生成も義務付けられていないので、このマイグレイトとも明らかに異なる。
【0011】
チェックアウトとは、回数制限されたコピーの一種であり、コピー回数を1回デクリメントした上でコンテンツのコピーが実行される。一般にいう回数制限付きのコピーと、チェックアウトとの違いは、コピー回数のインクリメントが可能である点である。コピー回数のインクリメントは、コピーにより記録媒体に記録されたコンテンツを再生不能にするという処理("チェックイン"と呼ばれる。)を行った後でなされる。条件付きコピーフリーは、コピーの回数に一切制限が課せられていないのでチェックアウトとも異なる。これらのことから、条件付きコピーフリーは、コピー回数やコピー元の削除というような制限を排した純粋なコピーフリーであり、「暗号化での書き込み」という条件さえ満たされれば、何度でも行うことができる。
【0012】
【発明の実施の形態】
以下、本発明に係る記録媒体の実施行為の形態について説明する。この実施行為のうち、本発明に係る記録媒体の使用行為について説明する。本発明に係る記録媒体は、MPEG2-PS(Program Stream)形式のデジタルストリームを記録したDVDであり、ホームネットワークにおいてユーザの使用に供される。図1は、本発明に係る記録媒体の使用環境たるホームネットワークを示す図である。
【0013】
ホームネットワークは、記録装置であるDVDレコーダ100、STB110、デジタルTV120、HDレコーダ130等、IEEE1394デジタルインターフェイスを具備した機器同士を接続することで構成される。このホームネットワークにおける各機器は、単一のリモコン200にてユーザにより操作される。ホームネットワークにおける各機器は、自身が放送局から受信したMPEG2-TS(Transport Stream)形式のデジタルストリームをIEEE1394を介して他の機器に出力することができるし、他の機器が放送局から受信したデジタルストリームをIEEE1394を介して入力することができる。デジタルストリームは、ホームネットワークという閉じた世界において自由にコピーされる。DVDは、DVDレコーダ100に装填され、DVDレコーダ100によるデータ書き込みを受ける。DVDレコーダ100によるデータ書き込みにより、本発明に係る記録媒体は生産される。しかし、MPEG2-PS形式のデジタルストリームが記録されたDVDをホームネットワークから持ち出して(矢印my1)、不正パソコンを用いてインターネットのサイトにアップロードする(my2)という行為は禁じる。本発明に係る記録媒体(DVD)は、ホームネットワーク内での自由なコピーを実現しつつ、ホームネットワーク外へのデジタルストリームの流出を防止するという役割を果たす。以上が本発明に係る記録媒体の使用行為の形態である。
【0014】
続いて本発明に係る記録媒体の生産行為について説明する。本発明に係る記録媒体は、DVDに対して図2に示すデータ書き込みを行うことにより生産される

図2は、DVDに記録されるデジタルストリームの構成を段階的に詳細化した図である。本図では、DVDに記録されるべきデジタルストリームを最下段である第5段目に示している。このデジタルストリームは、MPEG2-PS形式のデジタルストリームであり、DVD-Video Recording規格ではVOB(Video Object)と呼ばれる。本図に示すようにVOBは、第1段目に示すビデオストリーム、オーディオストリームを多重化することにより得られる。この第1段目に位置するビデオストリームは、複数のピクチャデータpj1,2,3・・・・・の配列である。これらのピクチャデータは何れも、ディスプレイの一表示期間(ビデオフレームとも呼ばれる。)にて表示される。NTSC方式のディスプレィにおいて、ビデオフレームは約33msec(正確には1/29.97sec)であり、PAL方式のディスプレィにおいてビデオフレームは、40msecである。これらピクチャデータは、フレーム間の相関性に基づいた圧縮符号化を受けている。そのため、ビデオストリームを構成するピクチャデータには、過去方向および未来方向に再生されるべき画像との相関性を用いてフレーム間圧縮符号化がなされているBidirectionally Predictive(B)ピクチャ、過去方向に再生されるべき画像との相関性を用いてフレーム間圧縮符号化がされているPredictive(P)ピクチャ、相関性を用いず、一フレーム分の画像内での空間周波数特性を利用してフレーム内圧縮符号化がなされているIntra(I)ピクチャといった種別がある。
【0015】
ビデオストリームにおいて復号可能な最小単位をGOP(Group Of Picture)という。GOPは少なくとも1つのIピクチャを含み、約0.4〜1.0秒の再生時間を有するピクチャデータの集合である。図2において第1段目に示すビデオストリームは、その2段目において複数GOPに分割されている。ピクチャデータに対する圧縮符号化方式は可変符号長方式であるため、GOPのデータ長は互いに異なる。DVDに記録するにあたって、各GOPがどのようなサイズを有するかを問わず、GOP列は複数に分割される。分割により得られる分割部分は、第3段目に示すPESパケット列に格納される。一方、1段目の右側に位置するオーディオストリームも複数に分割され、分割により得られる分割部分は、第3段目に示すPESパケット列に格納される。PES(Packetized Elementary Stream)パケットとは、図2の第3段目に示すようにビデオストリーム、オーディオストリームの分割部分を格納しているパケットであり、ビデオストリーム、オーディオストリームの一部分を何時復号するかを示す「DTS(Decode Time Stamp)」、この一部分のデコード結果を何時表示するかを示す「PTS(Presentation Time Stamp)」がそのヘッダに付与されている。
【0016】
GOP列を格納したPESパケット列は、複数に分割され、オーディオデータを構成するPESパケットとインターリーブ多重化されて(tj2)、第4、第5段目に示すようにVOBU内のAVパック列を構成する。このVOBUのそれぞれには、RDI-Pack(図中のRDI)が先頭に付加される。
図3は、PESパケットと、AVパックとの関係を示す図である。図3の第2段目に示すように、AVパックは2048バイトのサイズを有しており、パックヘッダと、ペイロードとからなる。このペイロードにPESパケットが格納される。パックヘッダには、本AVパックが、機器内のバッファに入力される時刻を示すSCR(System Clock Reference)が設定される。このAVパックの2048バイトというサイズは、DVDにおける1セクタのサイズと一致しており、AVパックは、DVDにおける各セクタに、1対1の割合で格納されてゆく。
【0017】
図4は、VOBUを構成するパックを示す図である。図4の第1段目は、VOBUの全体構成を示す。この第1段目に示すように、VOBUの先頭にはRDI(Realtime Data Information)-Packがあり、AVパック列が後続している。
図4の第2段目は、RDI-Pack及びAVパック列の内部構成を示す。RDI-Packは、『CCI(Copy Control Information)』、『Manufacture Information』を含み、AVパック列は、先頭のパック内に『PSC(PES Scrambling Control)』、『時変係数Dtkc』があり、『暗号化AVデータ』が後続している。
【0018】
『CCI』は、VOBUにおけるコピー許否を規定する制御情報である。
『Manufacture Information』は、VOBUをDVDに書き込んだ機器についての情報であり、その内部にコードDveriを含む。
以上がRDI-Packの内部構成である。続いてAVパック列の内部構成について説明する。
【0019】
『AVパック列』は、複数のビデオパック、複数のオーディオパックからなり、GOP、オーディオデータを含む。暗号化という観点からすれば、AVパック列は、先頭部を占める平文と、暗号文とに分割される。
平文において、『PES Scrambling Control(PSC)』が存在し、先頭から84バイト目の位置に、時変係数Dtkcが存在する。この時変係数Dtkcからオフセットの位置に、暗号化データが存在する。
【0020】
『PES Scrambling Control(PSC)』は、「11」に設定されることにより、VOBUに含まれるオーディオデータは暗号化すべき旨を示し、「00」に設定されることにより、暗号化すべきでない旨を示すフラグである。以上が本実施形態に係るVOBUの概略構成である。
『時変係数Dtkc』は、時間変動要因をもつ係数である。時間変動要因とは、デジタルストリームに含まれるデジタルストリームの一部分がデジタルストリームの再生時間軸上のどこにあるかで変動することをいう。本実施形態では、AVパック列先頭から84バイト先にある8バイトのデータを時変係数Dtkcとしている。通常のAVパック列において、AVパック列先頭から84バイト先には、概してピクチャデータの一部が存在する。このピクチャデータの一部は、VOBUがVOBの再生時間軸上どこにあるか全く異なるものになるから時間変動要因といえる。
【0021】
『暗号化AVデータ』は、時変係数Dtkcから所定のオフセットの位置にある。このAVパック列において、先頭部が平文になっており、一見AVパック列に含まれるGOPは再生されるように思える。しかしこの平文の大きさは大体128バイト前後であり、GOPの大きさからすれば僅かに過ぎない。そのため先頭部が平文であっても、VOBUが正常に復号されることはない。よって暗号化データを含むVOBUは、復号されない限り正常に再生されることはない。
【0022】
続いてコピー許否を示す情報についてより詳細に説明する。図5は、第1実施形態に係るCCIの構成を示す図である。本実施形態においてCCIは、『CGMS(Copy Generation Managing System)』、『APSTB(Analogue Protection System Trigger Bits)』、『EPNフラグ』からなる。現行のDVD-Video Recording規格においてCCIは、CGMS、APSTBからなる。本実施形態におけるCCIが新規なのはEPNフラグが付加されている点である。
【0023】
『CGMS』は、「00」に設定されることでVOBUがコピーフリーである旨を示し、「11」に設定されることでVOBUが「No More Copy」である旨を示す情報である。『APSTB』は、VOBUをアナログ変換して出力するにあたって、アナログ出力での保護を施すか否かを示す2ビットの値である。APSTBが「01」であれば、VTRのAGC回路を攪乱させることにより保護を行うことを示し、「10」であれば、AGC攪乱と、カラーストライプを2ライン反転させることで保護を行うことを示す。「11」であれば、AGC攪乱と、カラーストライプを4ライン反転させることで保護を行うことを示す。APSTBが「00」であれば、アナログ出力での保護は行わないことを示す。
【0024】
『EPN(Encrypted Plus Non-asserted)フラグ』は、CGMSとの組み合わせて用いられるフラグであり、CGMSが「11」に設定された際、オン「1」に設定されることによりEPN Asserted コピーフリーである旨を示す。EPN Asserted コピーフリーとは、いわば条件付きのコピーフリーを意味する。その条件とは、コピー先へのデジタルストリームの書き込みにあたって、暗号化を行うことである。
【0025】
EPN Asserted コピーフリーというCCIの設定は、ホームネットワーク普及にあたっての以下のような要請から、生まれたものである。IEEE1394にてホームネットワークを構築している機器は、正当なメーカにより製造されるため、デジタルストリームを不特定多数に頒布するような複製を行うことはまず有り得ないといえる。しかし、機器に内蔵されたHDではなく、DVDのようなリムーバブルメディアをデジタルストリームのコピー先に選ぶ場合、DVDがホームネットワークから持ち出され、不正なパソコンに装填するという抜け道が生まれる(図1の矢印my1,my2)。そうした場合に、デジタルストリームが不特定多数に頒布されたのでは、著作者の利益を大きく害してしまう。そこで、本実施形態では、EPN Assertedコピーフリーという新たなコピー許否設定を導入している。EPN Asserted コピーフリーでは、コピー先へのデジタルストリームの書き込みにあたって、暗号化を行うことを条件として、他の機器へとMPEG2-TS形式のデジタルストリームを転送する。EPN Asserted コピーフリーにおける条件が満たされる限り、孫コピー、曾孫コピーが認められ、何世代にもわたる自由な私的コピーがホームネットワークにおいて可能となる。条件付きコピーフリーの条件が満たされる限り、ホームネットワークでは何世代にもわたるコピーが認められるので、ユーザにとっての利便性が増す。EPN Asserted コピーフリーにおけるコピーフリーは、私的コピーに、暗号化という制限を課していることから、暗号化制限付きのコピーフリーであるといえる。
【0026】
EPN Asserted コピーフリーは、暗号化されていれば、自由なコピーが認められる。しかし暗号化アルゴリズムやデータ構造等、暗号化方式の厳格な同一性は求められておらず、コピー元の暗号化方式と、コピー先の暗号化方式とが違っていても良い。例えば、コピー先がDVDとは異なる記録媒体であり、コピー先媒体固有の暗号化方式が存在する場合、その暗号化方式で暗号化されていれば条件は満たされる。
【0027】
また暗号化という条件さえ満たされていれば、コピー先での圧縮符号化方式は、コピー元の圧縮符号化方式と異なっていてもよい。例えば、コピー元の記録媒体がDVDであり、コピーの客体たるデジタルストリームがMPEG2-PS形式である場合、暗号化という条件が満たされているなら、MPEG2-PS形式をMPEG2-TS形式に変換した上でコピー先に書き込むことも認容される。同様に、MPEG1,MPEG4形式に変換して書き込むことも認容される。但し、暗号化という条件が必須条件かつ最低条件なので、著作権保護が存在せず、暗号化が義務付けられていない記録媒体にはデジタルストリームを書き込むことができない。かかる義務のない記録媒体には、マイクロドライブやコンパクトフラッシュ(登録商標)がある。
【0028】
逆に著作権保護が存在しており、暗号化が義務付けられている記録媒体には、DVDの他にSDメモリカード、Blu-ray Discがある。EPN Asserted コピーフリーの例外は、DVD等のリムーバブルメディアではなく、機器に内蔵型の記録媒体(内蔵型HD)等に書き込むことである。このHDでは、暗号化が必ずしも不要である。何故なら、かかる内蔵型記録媒体は、機器から取り外して持ち去ることが困難だからである。
【0029】
以上が、EPNフラグにより示される、EPN Asserted コピーフリーの技術的意義である。続いて図6を参照しながら、CGMSとEPNフラグとをどのように組み合わせるかについて説明する。図6は、CGMS、PSC、EPNフラグが取り得る値と、CGMS、PSC、EPNフラグの意味合いを示す。EPNフラグはオフ「0」に設定された場合、CGMS、PSCでコピー許否が設定される。CGMSが「00」、PSCが「00」なら、条件の無いコピーフリーを示し、CGMSが、「11」、PSCが「11」なら「No More Copy」を示す。
【0030】
一方、EPNフラグが「1」に設定された場合、CGMSが、「11」、PSCが「11」で条件付きコピーフリーである旨を示す。CCIが条件付きコピーフリーを示す場合、CGMS及びPSCを「11(No More Copy)」に設定するのは以下のような意図がある。それはEPNフラグに対応しえない現行規格対応機器に、本VOBUを記録したDVDが挿入された場合、本VOBUを無条件にコピーさせたくないとの意図である。現行規格対応機器は、EPNフラグの意図を解釈できずCGMS、PES Scrambling Controlでコピー制御を行う。CGMSは、上述したように「No More Copy」に設定されているのでVOBUは一切コピーされない。EPNフラグに対応していない現行機器にDVDが装填された場合、コピーを一切禁じ、より厳し目にコピーを扱うので、条件付きコピーフリーに設定された複製物の氾濫を防ぐことができる。これは、CCIからEPNフラグを取り除くような改竄が行われた場合も同様である。
【0031】
続いて暗号化AVデータの暗号化過程について説明する。図7は、暗号化AVデータがどのような暗号化の過程を経て生成されているかを示す図である。AVデータは、現行DVD-Video Recording規格との互換のある、CPRM(Copy Protection for Recordable Media)方式に基づく暗号化がなされている。図7の第1段目は、暗号化前のVOBUを示す。この第1段目では、AVデータは暗号化されていない。第3段目は、暗号化後のVOBUを示す。途中の第2段目の枠hw1が、AVデータの暗号化の過程を示す。枠hw1に示すように、暗号化AVデータは、オリジナルの複数ビデオパック、複数オーディオパックをコンテンツ鍵Kcを用いてC2-ECBCモードで暗号化することにより得られる。
【0032】
C2_ECBCモードによる暗号化とは、VOBU内のAVデータを64ビット以下に分割し、この分割部分毎に暗号化してゆくというものである。分割部分毎の暗号化にあたって、先頭の分割部分の暗号化にはコンテンツ鍵Kcを用いる。その暗号化結果が、次の分割部分の暗号化に用いられる。ある暗号化を用いて、次の分割部分を暗号化するという処理を繰り返すのがこのC2_ECBCモードである。尚、逆の手順を辿って、復号を行うモードをC2_DCBCモードという。また、C2_ECBCにおける「C2」とは、CPRMによる暗号化方式という意味である。
【0033】
図中の枠hw2は、コンテンツ鍵Kcの生成過程を示す図である。RDI-Pack内のAPSTBと、記録媒体固有のタイトル鍵Ktとを加算し、加算結果を用いて、時変係数DtkcをC2_G変換することでコンテンツ鍵Kcは得られる。図中のhw3は、CCI内のAPSTBのみが参照されていることを強調して示す。
このコンテンツ鍵Kcの生成過程のうち、C2-G変換は、一方向性関数であり、連結データに対して非可逆変換を施す。一般の暗号化が可逆変換であるのに対し、C2-G変換は非可逆変換であるので、出力値から入力値を特定し得ないという性質をもつ。コンテンツ鍵Kc生成のためのパラメータに、同じVOBU内に存在する時変係数Dtkcを用いるので、たとえ前後のVOBUが削除されたとしても、そのVOBUについてのコンテンツ鍵Kcを得ることができる。時変係数Dtkcは時間変動要因をもつのでこれから得られるコンテンツ鍵KcはVOBU毎に変化するという性質をもつ。
【0034】
この暗号化過程で問題となるのは、CCI全体からコンテンツ鍵Kcを生成しているのではなく、APSTBのみからコンテンツ鍵Kcを生成している点である。
この理由は以下の通りである。従来のDVDでのコピー許否状態には、暗号化した上でのコピー禁止か、非暗号化でのコピーフリーかという2つの状態しかなかった。「暗号化されていること イコール コピー禁止」であることを意味していたので、暗号化さえされていれば、著作権者保護は充分であり、APSTBを書き換えるという改竄行為さえ警戒していればよかった。つまり、コピー禁止であっても、再生出力は可能であるから、再生出力されたアナログ映像信号がVTRにて記録される恐れがある。そのため、アナログの映像出力に保護が施されるようAPSTBが設定されている場合、APSTBからコンテンツ鍵Kcを生成し、このコンテンツ鍵Kcにて暗号化を行う。これにより、APSTBを改竄して、アナログ映像信号をVTRにて記録するというダビング行為の阻止を図ることができる。
【0035】
しかし本実施形態では「暗号化を条件とした上でのコピーフリー」という新たな状態を導入している。本来コピー禁止に設定されているCGMSを、条件付きコピーフリーに改竄する行為がなされた場合、APSTBが一致している限り復号化は可能であるから、自由にコピーされてしまう。コピー禁止を示すCGMSを含むCCIが、条件付きコピーフリーを示すCCIを含むRDI-Packにすり替えられたりしても、同様である。
【0036】
そこで設けられたのが、コードDveriである。コードDveriは、図4に示すRDI-Pack内のManufacture Information内に存在する。このコードDveriがどのような過程を経て生成されるかを図8に示す。図8は、コードDveriの生成過程を図7と同様の表記で示している。図8の第1段目は、暗号化前のVOBUを示す。第4段目は、暗号化後のVOBUを示す。第2段目の枠hw1が、AVデータの暗号化の過程を示す。
【0037】
この暗号化後のVOBUと、AVデータの暗号化の過程との間の第3段目に、コードDveriの生成過程を示す。第3段目に示すようにコードDveriは、CCIを、コンテンツ鍵Kcを用いてC2-G変換することで得られる。
図8の枠cw1内は、このコードDveriを得るまでの過程を示す。枠内に示すようにコードDveriは、CGMSが「11」、EPNフラグが「1」に設定されたCCI全体をレジスタに格納させコンテンツ鍵Kcの生成を待機する過程pc1、生成されたコンテンツ鍵Kcを用いて、レジスタに格納されたCCI全体をC2-G変換する過程pc2、C2-G変換の変換結果をレジスタに書き戻し(pc3)、CPUがRDI-PackのManufacture Informationに書き込んで(pc4)コードDveriを得る過程からなる。
【0038】
このような過程でコードDveriが生成されているので以下のことがいえる。
それは、CCIと、AVデータの暗号化に用いたコンテンツ鍵KcとからコードDveriを生成しているので、EPN Asserted コピーフリーに対応する機器が図示した手順でコードDveriを生成してみて、これをRDI-Pack内に存在するコードDveriと照合すれば、CCIの改竄やRDI-Packの付け替えの有無を検出できるという点である。つまりVOBUが生成された後、CCIが改竄されたとする。そしてユーザがEPN対応機器に、そのVOBUのコピーを命じたとする。その際EPN対応機器は、図8と同じ過程を経てコンテンツ鍵Kcを生成し、このコンテンツ鍵Kcを用いて、CCIをC2-G変換して、その結果をRDI-Pack内のコードDveriと照合する。CCIのうちCGMS、EPNフラグが書き換えられていることから、EPN対応機器によるC2-G変換の結果は、RDI-Pack内のコードDveriと大きく異なったものとなる。
【0039】
照合の結果が明らかに違えば、EPN対応機器は復号化を中断する。これにより、現行のDVD-Video Recording規格対応機器との互換を確保しつつも、EPN対応機器にて、RDI-Packのすり替えやCCIの改竄を未然に防止することができる。
このコードDveriをRDI-Pack内に設けたことは、時変係数Dtkcから、AVデータまでのオフセット(図4参照)と深い因果関係にある。
【0040】
図9は、時変係数Dtkcから、AVデータまでのオフセットが、どのような基準で設けられているかを示す図である。オフセットは、コンテンツ鍵Kcを得るのに要する時間(C2_G)と、コードDveriを得るのに要する時間(C2_G)との和に基づき定められている。コンテンツ鍵Kcの生成、コードDveriの算出、AVデータの暗号化/復号化の処理タイミングを分離しているので、これらの処理は時分割化が可能である。この時分割化により、単一の暗号演算回路であっても、処理効率を低下させることなく、コンテンツ鍵Kcの生成、コードDveriの算出、AVデータの暗号化/復号化といった一連の処理を実現することができる。時変係数Dtkcから暗号化データまでのオフセットの値としては少なくとも暗号ブロックの最小単位以上にすることが望ましい。DES方式やC2の方式であれば、この暗号ブロックは8バイトであるので、上述したオフセットは、8バイト以上とするのが望ましい。以上が本実施形態にかかる記録媒体の生産行為の形態である。尚、時変係数(時変係数Dtkc)、媒体固有鍵(タイトル鍵Kt)、CCIからユニット固有の暗号鍵(コンテンツ鍵Kc)を求める手順は一例に過ぎない。かかる演算以外の演算を適用してもよいし、C2-G変換以外の変換を適用してもよい。
【0041】
続いて、本発明に係る記録装置の実施行為の形態について説明する。使用行為については、記録媒体と同じであり、ホームネットワークにおいてユーザの使用に供される。図10は、ホームネットワークにおいて記録装置が使用される形態を示す図である。
図10に示すように、DVDレコーダ100は矢印gy1に示すようにSTB110から送信されたMPEG2-TS形式のデジタルストリームを受信しMPEG2-PS形式に変換した上でDVDに書き込むことができるし、DVDに書き込んだデジタルストリームを読み出してデジタルTV120に再生させることができる。また、DVDに書き込んだMPEG2-PS形式のデジタルストリームを読み出してMPEG2-TS形式に変換した上でHDレコーダ130に記録させることもできる。
【0042】
ホームネットワーク上の転送にあたって記録装置は、MPEG2-TS形式のデジタルストリームをDTCP(Digital Transmission Content Protection)規格のプロトコルに基づき他の機器に転送する。このDTCP規格でのプロトコルは、互いの機器の相互認証や、TSパケットの暗号化・復号化等の手順を含む。しかし詳細については本願の主眼ではないので省略する。DTCP規格によりTSパケットの送受信を行う機器は、相互認証の段階で、著作権保護に準拠しない機器との接続を排除する。そのため、マイクロドライブやコンパクトフラッシュ(登録商標)のドライブ装置に、デジタルストリームが転送されることはない(図中の×印参照)。
【0043】
DVDやHDにデジタルストリームを書き込んでよいか否かは、DTCP規格におけるDTCP_Descriptorに明記されて他の機器に伝えられる。図11は、DTCP_Descriptorの一例を示す図である。DTCP_Descriptorは、デジタルストリームの一時蓄積や移動モードが規定されているかを示す「retention move mode」、一時蓄積の期間を示す「retention state」、MPEG2-TS形式のデジタルストリームのコピーが許可されているか否かを示す「CCI(Copy Control Information)」、CCIがコピーフリーを示している場合において、そのコピーフリーがEPN Asserted コピーフリーであるか否かを示す「EPNフラグ」、MPEG2-TS形式のデジタルストリームの再生出力にあたって、解像度制限がなされているとかを示す「Image Constraint Token」、MPEG2-TS形式のデジタルストリームをアナログ変換して出力するにあたって、アナログ出力での保護を施すか否かを示す「APS(Analogue Protection System)」を含む。このDTCP_Descriptorの伝送は、DTCP_DescriptorをTSパケットに格納した上でなされる。このDTCP_Descriptorのうち、CCIやEPNフラグは、RDI-PackにおけるCCIやEPNフラグと互換性を有している。かようなホームネットワークにおいて記録装置は、ユーザの使用に供される。
【0044】
次に本発明に係る記録装置の生産行為について説明する。記録装置は、図12の内部構成図に基づき、工業的に生産される。以下、記録装置の内部構成について説明する。図12は、DVDレコーダ100の内部構成を示す図である。
図12に示すようにDVDレコーダ100は、ドライブ1、CPU2、バッファメモリ3、ストリーム制御部4、アナログチューナ9、アナログプロテクト検出部10、IEEE1394受信部11、デジタルチューナ12、TSデコーダ13、AVエンコーダ14、ストリーム暗号化部15、ストリーム復号化部16、AVデコーダ17、TSエンコーダ18、IEEE1394送信部19を備える。
【0045】
始めに、DVDからのVOBU読み出しと、DVDへのVOBU書き込みとの双方に用いられる構成要素(ドライブ1、バッファメモリ3、ストリーム制御部4)について説明する。
ドライブ1は、DVD等のリムーバブルな記録媒体を装填する。
CPU2は、記録装置の全体制御を司る。
【0046】
バッファメモリ3は、VOBUを格納するバッファである。DVDから読み出されたVOBUも、HDDやDVDに書き込まれるべきVOBUも一旦本バッファに格納される。
ストリーム制御部4は、IDE I/Fによりドライブ1、HDDを接続しており、ドライブ1、HDD、バッファメモリ3、ストリーム暗号化部15、ストリーム復号化部16間でVOBUのリアルタイム伝送を行う。
【0047】
図13は、ストリーム制御部4の内部構成を示す図である。図13に示すようにストリーム制御部4は、バッファメモリ3を読み書きするためのメモリ制御部5、バッファメモリ3に対する読み書きにあたって、VOBUに対するスクランブル・デスクランブルを行うメモリスクランブル部6、ストリーム暗号化部15−バッファメモリ3間、バッファメモリ3−ストリーム復号化部16間のDMA転送を実行するDMA制御部7、ドライブ1、HDDとのI/FであるIDE I/F部8を備える。
【0048】
続いてDVDへのMPEG2-PS形式のデジタルストリーム書き込み時に用いられる構成要素について説明する。図14は、DVDのデータ書き込みに用いられる構成要素を示す図である。本図において、ストリーム制御部4は、ストリーム制御部4の内部バスに置き換えて図示している。DVDに書き込まれるVOBUには、DVDレコーダ100に入力されてくるアナログ信号をエンコードして得られるもの(1)、DVDレコーダ100に入力されてくるマルチプログラムMPEG2-TS形式のデジタルストリームを変換して得られるもの(2)、IEEE1394から入力されてくるデジタルストリームを変換して得られるもの(3)の3種類がある。図中の矢印wv1,2,3,4が、(1)(2)(3)のデジタルストリームが転送されてドライブ1に至るルートを示し、矢印wv6は、AVエンコーダ4へのアナログ信号の入力を示す。図中の矢印wv5は、(2)のデジタルストリームがAVエンコーダ14に至るまでのルートを示す。図中の矢印wv7は、(3)のデジタルストリームがAVエンコーダ14に至るまでのルートを示す。これらのルートに係る構成要素(アナログチューナ9、アナログプロテクト検出部10、IEEE1394受信部11、デジタルチューナ12、TSデコーダ13、AVエンコーダ14、ストリーム暗号化部15)について以下説明を行う。
【0049】
アナログチューナ9は、アナログ放送信号を受信してアナログ映像信号、音声信号を得る。これらの信号は、A/Dコンバータを介してAVエンコーダ14に出力される。
アナログプロテクト検出部10は、アナログ放送信号の垂直ブランキング区間(VBI)に重畳されたコピー制御情報(CGMS-A)やマクロビジョンやカラーストライプといったアナログプロテクション信号を検出する。
【0050】
IEEE1394受信部11は、IEEE1394を介して他の機器から入力されてくるTSパケットを、DTCP_Descriptorに基づき受信してTSデコーダ13に出力する。DTCP_DescriptorにおけるCCIが「No More Copy」を示しているならIEEE1394受信部11は受信を行わない。CCIが「No More Copy」に設定されたMPEG2-TS形式のデジタルストリームは、本来デジタルTVで再生されることを目的としてホームネットワーク上で転送されているものであり、これを誤ってDVDに記録することのないようするためである。TSパケットの受信の際、IEEE1394受信部11は受信したDTCP_Descriptorを、AVエンコーダ14に引き渡す。これは、このDTCP_Descriptor内のCCI、EPNフラグに基づき、RDI-Pack内のCCI、EPNフラグをAVエンコーダ14に設定させるためである。
【0051】
デジタルチューナ12は、放送波を受信してマルチプログラムTS形式のデジタルストリームを得る。
TSデコーダ13は、デジタルチューナ12が得たマルチプログラムTS形式のデジタルストリームに対して、多重分離を行い、これらTSパケットに時分割多重化されたビデオストリーム、オーディオストリームやサービス情報をAVエンコーダ14に出力する。サービス情報を出力するのは、このサービス情報に基づき、RDI-Pack内のCCI、EPNフラグをIEEE1394受信部11に設定させるためである。TSデコーダ13による多重分離は、IEEE1394受信部11が得たTSパケットに対しても行われる。つまりIEEE1394受信部11が得たTSパケットに対して多重分離を行い、ビデオストリーム、オーディオストリームを得てAVエンコーダ14に出力する。
【0052】
AVエンコーダ14は、チューナの復調により得られ、A/Dコンバータによりデジタル化された映像信号、音声信号を圧縮符号化して、0.4〜1.0秒のビデオデータ、オーディオデータを得る。更にこれらを多重化することでVOBUを得る。また、デジタルチューナ12やTSデコーダ13が得たビデオストリーム、オーディオストリームについても多重化を行い、VOBUを得る。VOBUを得るにあたって、アナログプロテクト検出部10の検出結果や、IEEE1394受信部11からのDTCP_Descriptor、デジタルチューナ12からのサービス情報に基づき、CCIを設定してRDI-Packを生成する。この設定はCGMS-AやDTCP_DescriptorのCCI、サービス情報に基づく。
【0053】
ストリーム暗号化部15は、エンコーダがVOBUを得た際、DVD固有のタイトル鍵Ktと、エンコーダがRDI-Packに設定したCCIと、エンコーダがエンコードの過程で生成した時変係数Dtkcとからコンテンツ鍵Kc及びコードDveriを得て、コンテンツ鍵Kcを用いてC2-ECBCモードで暗号化してバッファメモリ3に格納する。バッファメモリ3に格納されたVOBUは、ドライブ1によりDVDに書き込まれる。
【0054】
アナログ放送信号の入力やMPEG2-TS形式のデジタルストリームを構成するTSパケットの入力が継続している限り、アナログチューナ9〜ストリーム暗号化部15は上述した動作を継続するので、デジタルストリームはMPEG2-PS形式で記録されることになる。
以上がVOBU書き込みに係る構成要素である。続いてVOBU読み出しに係る構成要素について説明する。DVDから読み出されるVOBUには、AVデコーダ17により映像音声として再生されるもの(1)、IEEE1394から他の機器へと転送されるもの(2)の2種類がある。図15は、図12の構成要素のうちVOBUの読み出しに用いられるものを抜粋して描いた図である。本図において、ストリーム制御部4は、ストリーム制御部4の内部バスに置き換えて図示している。図中の矢印rv1,2は、前者、後者のVOBUがDVDから読み出されて、ストリーム復号化部16に至るまでのルートを示す。矢印rv3は、前者のVOBUが、AVデコーダ17により再生されるまでに至るルートを示し、矢印rv4は、後者のVOBUが、IEEE1394を介して他の機器へと出力されるルートを示す。以下、データ読み出しに用いられる構成要素(AVデコーダ17、TSエンコーダ18、IEEE1394送信部19)について説明する。
【0055】
ストリーム復号化部16は、DVDからVOBUを再生する場合や、DVDからホームネットワークにおける他の機器にVOBUをコピーする場合、DVD固有のタイトル鍵Ktと、エンコーダがRDI-Packに設定したCCIと、時変係数Dtkcとからコンテンツ鍵Kc及びコードDveriを得て、コンテンツ鍵Kcを用いてC2-DCBCモードでVOBUを復号化する。
【0056】
AVデコーダ17は、ストリーム復号化部16により復号されたVOBUに対してMPEG2に規定された伸長処理を行い、映像信号、音声信号を得て再生する。
TSエンコーダ18は、ストリーム復号化部16により復号化されたVOBUを、TSパケットに変換してIEEE1394送信部19に出力する。
IEEE1394送信部19は、TSエンコーダ18の変換により得られたTSパケット本体をDTCP規格に基づき暗号化して出力する。
【0057】
以上のように構成された記録装置の全体制御は、CPU2が図16に示すプログラムを実行することでなされる、以降、図16のフロ−チャ−トを参照しながらVOBU書き込み時におけるCPU2の処理手順について説明する。
図16のステップS41〜ステップS45は、DVDレコーダ100への入力信号に基づきVOBUを生成するためのループ処理である。入力信号には、アナログ信号、デジタル放送信号、ホームネットワークにおける他の機器からの入力信号がある。またコピー属性とは、CGMS-A、サービス情報、DTCP_DescriptorにおけるCCI、EPNフラグに示されるコピーの許否設定をいう。
【0058】
ループ処理においてステップS41では、入力信号のコピー属性の検出が完了したかどうかの監視を行っている。入力信号のコピー属性の検出が完了すれば、ステップS43、ステップS45、ステップS46の何れかでVOBUの生成を行う。
ステップS43、ステップS45、ステップS46の何れを実行するかは、ステップS42、ステップS44、ステップS52という3つの判定ステップにより規定される。
【0059】
ステップS43にてVOBUを得るのは、装置外部からの入力信号におけるコピー属性がEPN Assertedコピーフリーを示している場合である(ステップS42でYes)。この場合、EPN Asserted コピーフリーを示すCCIを含むRDI-Packと、AVパック列とからなるVOBUを得る(ステップS43)。
ステップS45にてVOBUを得るのは、コピー属性がOnly One Copyを示している場合である(ステップS44でYes)。この場合、Only One CopyをNo More Copyに変換する。変換後、No More Copyを示すCCIを含むRDI-Packと、AVパック列とからなるVOBUを得る(ステップS45)。
【0060】
コピー属性が通常のコピーフリーである場合(ステップS52でYES)、通常のコピーフリーを示すCCIを含むVOBUを記録する(ステップS46)。著作権保護を厳しくしたいのならば、コピー属性をEPN Asserted コピーフリーに変換して、EPN Asserted コピーフリーを示すCCIを含むVOBUを記録してもよい。コピー属性がNo More Copyを示している場合、ステップS41で入力信号におけるコピー属性の検出待ちに戻る。
【0061】
以上の手順でVOBUが得られれば、ステップS47〜ステップS51の処理を行ってステップS21に戻るという処理を行う。
ステップS47〜ステップS51の処理は、VOBUのRDI-PackにおけるAPSTBと、タイトル鍵Ktとを加算し(ステップS47)、加算結果を用いて時変係数DtkcをC2-G変換し、コンテンツ鍵Kcを得て(ステップS48)、コンテンツ鍵Kcを用いて、CCIをC2-G変換してコードDveriを得てRDI-Pack内のManufacture Informationに配置し(ステップS49)、コンテンツ鍵Kcで、VOBU内のAVパック列をC2_ECBCモードで暗号化して(ステップS50)、暗号化され、コードDveriが配置されたVOBUをDVDに書き込む(ステップS51)というものであり、このステップS41〜ステップS51の繰り返しにより、DVDにはVOBUが順次書き込まれてゆく。
【0062】
続いて図17のフロ−チャ−トを参照しながらVOBU読み出し時におけるCPU2の処理手順について説明する。
図17のフロ−チャ−トは、VOBUがバッファメモリ3に格納されるのを待ち(ステップS61)、VOBUが格納されれば、ステップS62〜ステップS71の処理を行ってステップS61に戻るというものである。
【0063】
このステップS62〜ステップS71の処理は、VOBUのRDI-PackにおけるAPSTBと、タイトル鍵Ktとを加算して(ステップS62)、加算結果を用いて、時変係数DtkcをC2-G変換し、コンテンツ鍵Kcを得てから(ステップS63)、コンテンツ鍵Kcを用いて、CCIをC2-G変換してコードDveriを得る(ステップS64)というものである。
【0064】
ステップS65は、ステップS64で生成されたコードDveriと、RDI-Pack内に存在するコードDveriとが一致するかの判定であり、もし不一致なら、その旨を示す表示を記録装置のフロントパネルもしくはTVモニタに出力した上でこの読出処理を強制終了する。これは、不正行為が発見されたための強行措置である。ここまで強行な措置をとるのではなく、より柔軟な対応を行っても良い。つまりコードDveriの不一致が検出されたVOBUのみを再生・送信せず、後続のVOBUについて同様の処理を繰り返してもよい。
【0065】
もし一致すれば、コンテンツ鍵Kcを用いて、VOBU内の暗号化AVパック列をC2-DCBCモードで復号する(ステップS66)。
以降は、再生であるか、送信であるかで異なる処理を行う。再生処理ならば(ステップS67で再生)、32個のEX付きTSパケットからTSパケットを取り出して、AVデコーダ17に出力し再生させる(ステップS68)。送信処理であれば、RDI-PackにおけるCCIがEPN Asserted コピーフリーであるかNo More Copyであるか通常のコピーフリーであるかで異なる処理を行う(ステップS69、70)。
【0066】
EPN Asserted コピーフリーならば(ステップS69でYES)、VOBUをTSパケットに変換して、EPN Asserted コピーフリーを示すDTCP_Descriptorと共に送信する(ステップS71)。CCIがNo More Copyであるなら(ステップS70でYES)、VOBUをTSパケットに変換して、No More Copyを示すDTCP_Descriptorと共に送信する(ステップS72)。通常のコピーフリーであれば(ステップS70でN0)、VOBUをTSパケットに変換して、通常のコピーフリーを示すDTCP_Descriptorと共に送信する(ステップS73)。著作権保護を厳し目に扱いたいのであれば、ステップS73において、EPN Asserted コピーフリーを示すDTCP_Descriptorと共に送信しても良い。
【0067】
以上のように本実施形態によれば、現行規格対応機器での暗号化AVデータの復号を保証するとともに、CCIの改竄やRDI-Packの付け替えといった不正行為時には、コードDveriとの照合にてこれを検出することができるので、不正行為を前提としたコピーを効率的に禁止することができる。
(第2実施形態)
第1実施形態は、コードDveriを用いて、CCI改竄を防止する点を主眼としたが、第2実施形態は、このコードDveriを用いずとも、CCIの改竄を防止できる改良を開示する。これには、APSTBのみからコンテンツ鍵Kcを生成するのではなく、ストレートにCCI全体からコンテンツ鍵Kcを生成すればよい
図18は、図7と同様の表記で、CCI全体からコンテンツ鍵Kcを生成する場合の暗号化過程を示す図である。この場合、現行規格対応機器との互換は保てないが、コードDveriを用いずとも、CCIの改竄は防止することができる。何故なら、仮にCCIを書き換えれば、復号時に機器で生成するコンテンツ鍵Kcが元のコンテンツ鍵Kcと大きく異なったものとなり、復号を正当に行えないからである。
【0068】
この場合、コードDveriが不要になるので、コードDveriの生成を待つ必要はなく、時変係数DtkcからAVデータまでのオフセットを短くすることができる。
(第3実施形態)
第1実施形態、第2実施形態は、MPEG2-PS形式のデジタルストリームを記録媒体に書き込む形態であったが、第3実施形態は、MPEG2-TS形式のデジタルストリームを記録媒体に書き込む形態に関する。
【0069】
MPEG2-TS形式での書き込みは、HDや、Blu-ray Discへのデジタルストリームの書き込みに好都合である。
デジタルストリームをMPEG2-TS形式で記録媒体に書き込むにあたって、第1実施形態に示したGOPがどのように変換されるかを説明する。
図19は、Blu-ray Discに記録されるデジタルストリームの構成を段階的に詳細化した図である。図19において第1〜第3段目は、図2と同じであり、ピクチャ列、GOP分割、PESパケット列をそれぞれ示す。第4、第5段目は、図2と大きく異なる。GOP列を格納したPESパケット列は、オーディオストリームを格納したPESパケット列と多重化(図中のtj1)されて、第4段目に示すMPEG2-TS形式のデジタルストリームを構成している。TV番組を構成するビデオストリーム、オーディオストリームは、この第4段目の形態で、衛星波、地上波、有線ケーブル等の伝送路を転送する。
【0070】
続いてTSパケットの内部構成について説明する。図20の第3段目に、TSパケットの構成を示す。図20の第3段目に示すように、TSパケットは、『TSパケットヘッダ』と、『ペイロード部』とから構成され、188Byteのサイズを有する。『ペイロード』には、PESパケットを複数に分割することにより得られた分割部分が格納される。矢印ct1,2,3に示すように、第3段目におけるTSパケットのペイロードに格納される。以上で、TSパケットについての説明を終える。
【0071】
続いて、MPEG2-TS形式が、Blu-ray Discにどのように書き込まれるかを説明する。図21は、MPEG2-TS形式を構成するTSパケットがどのような過程を経てBlu-ray Discに書き込まれるかを示す図である。本図の第1段目にMPEG2-TS形式のデジタルストリームを構成するTSパケットを示す。
MPEG2-TS形式のデジタルストリームを構成するTSパケットは、第2段目に示すようにTP_extra_header(図中の「EX」)が付される。
【0072】
第3段目、第4段目は、Blu-ray Discの物理単位と、TSパケットとの対応関係を示す。第4段目に示すように、Blu-ray Disc上には複数セクタが形成されている。extra_header付きTSパケット(以下EX付きTSパケットと略す)は、32個毎にグループ化されて、3つのセクタに書き込まれる。32個のEX付きTSパケットからなるグループは、6144バイト(=32×192)であり、これは3個のセクタサイズ6144バイト(=2048×3)と一致する。3個のセクタに収められた32個のEX付きTSパケットを”Aligned Unit”といい、Blu-ray Discへの書き込みにあたっては、Aligned Unit単位で暗号化がなされる。第4段目におけるセクタは、16個単位で誤り訂正符号が付され、ECCブロックを構成する。記録装置はAligned Unitの単位でBlu-ray Discをアクセスする限り、32個の完結したEX付きTSパケットを得ることができる。
【0073】
以上がBlu-ray Discに対するMPEG2-TS形式のデジタルストリームの書き込みのプロセスである。続いて、TP_extra_headerの内部構成について説明する。図22(a)は、TP_extra_headerの内部構成を示す図である。
TP_extra_headerは、『Arribval_Time_Stamp』と、『copy_permission_indicator』とを含む。
【0074】
『Arribval_Time_Stamp』は、MPEG2-TS形式のデジタルストリームにおける時変係数である。何故ならこのArribval_Time_Stampは、デジタルストリームの再生時間軸上においてAligned Unitが何処にあるかによって変わるという時間変動要因性をもつからである。何をもって時変係数とするかというと、TSパケットが機器に到達した時間を時変係数にしている。このArribval_Time_Stampは、ストリーム再生時にPCR、PTSといったタイムスタンプの参照に用いられる。一般に放送局から送信されたMPEG2-TS形式のデジタルストリームは、リアルタイムに受信され、再生されることを想定して、PCR、PTSが設定されている。ところが蓄積再生においてMPEG2-TS形式のデジタルストリームは、Blu-ray Disc、HDに一旦蓄積された上で時間的にかなり遅れて再生される。この蓄積再生では、リアルタイムに再生することを目的として調整されたPCR、PTSの値が無駄になる。そこでTP_extra_headerにおけるArribval_Time_Stampは、TSパケットが記録装置に到達した時刻を示している。そのため、再生時にこのArribval_Time_Stampを参照すれば、たとえMPEG2-TS形式のデジタルストリームがBlu-ray Disc等に蓄積された上で再生されたとしても、リアルタイムでの再生同様、PTS、PCRによる再生タイミング制御を実現することができる。
【0075】
『copy_permission_indicator』は、MPEG2-TS形式のデジタルストリームにおけるCCIである。Blu-ray Discへの記録時には、各TSパケットに対して、コピー許否を示す情報が緻密に設定される。copy_permission_indicatorは、2ビットの情報であり、図22(b)に示す4通りの値に設定される。「00」であれば通常のコピーフリー、「11」であれば「No More Copy」、「01」は、暗号化されてはいるが、条件の無いコピーフリー、「10」であればEPN Asserted コピーフリーをそれぞれ意味する。
【0076】
続いてAligned Unitに対する暗号化の過程について説明する。MPEG2-TS形式の形態をとるものの、時変係数やCCI、媒体固有鍵(タイトル鍵Kt)という3つのパラメータを用いて暗号化を行う点は第1実施形態、第2実施形態と変わらない。また、これらのパラメータのうち2つを用いて演算を行い、その演算結果と、残り1つのパラメータとからユニット毎の暗号鍵(コンテンツ鍵Kc)を得ている点も第1実施形態、第2実施形態と変わらない。
【0077】
図23は、Aligned Unitがどのような過程を経て暗号化されているかを示す図である。図23の第1段目は、暗号化前のAligned Unitを示す。暗号化前において、6144バイトのAligned Unitは、先頭のEX付きTSパケットのTP_extra_headerと、これに後続するDblkとに分割される。Dblkは、6144バイトのAligned Unitのうち、8バイトのTP_extra_headerを除く6136バイト(6144-8)の部分を意味する。
【0078】
第3段目は、暗号化後のAligned Unitを示す。先頭のEX付きTSパケットのTP_extra_headerは、平文であるので、暗号化前後で変化がない。Dblkは、De_blkに変換される。
第2段目の破線dc1は、Dblkに対する暗号化の過程を示す。Dblkは、64ビットのブロック鍵Kblkを用いてDES_ECBCモードで暗号化される。この鍵Kblkが、第1実施形態にいうコンテンツ鍵Kcに相当する。何故なら、この鍵Kblkも、ユニットに対して固有であり、ユニット毎に変わるからである。
【0079】
DES_ECBCモードによる暗号化とは、6136バイトのAligned Unitを64ビット以下に分割し、この分割部分毎に暗号化してゆくというものであり、第1実施形態におけるC2_ECBCと同視できる。一方、この逆の手順をたどって、復号化を行うモードをDES_DCBCモードという。
図中の枠dc2は、64ビットのブロック鍵Kblkがどのような過程を経て生成されるかを示す。図中の「‖」は、連結演算を示す。この連結演算は、所定の演算の1つであり、第1実施形態において、タイトル鍵Ktと、CCIとに対して行った加算演算に対応する。この連結演算の対象は、2ビットのcopy_permission_indicatorと、30ビットのArribval_Time_Stampと、32ビットのパラメータVbkgであり、ブロック鍵Kblkは、連結演算の演算結果(64ビット)を、128ビットのレコーディング鍵Krecを用いてTDES_Eモードで暗号化することにより得られる。
【0080】
パラメータVbkgとは、著作権保護に準拠した機器が具備している共通パラメータである。
またKrecとは、第1実施形態のタイトル鍵Ktに相当する暗号鍵であり、記録媒体固有の暗号鍵である。Krecは、Blu-ray Discにおける複数パラメータと、機器における複数パラメータから導出されるが、その詳細については本願の主眼ではないので省略する。
【0081】
TDES_Eモードによるブロック鍵Kblkの生成を式で表現すると、以下のようになる。
ブロック鍵Kblk=DES_E(K1,DES_D(K2,DES_E(K1,d)))
K1は、レコーディング鍵Krecの上位64ビット、K2は、レコーディング鍵Krecの下位64ビットを示す。
【0082】
DES_Eは、DES encriptionのECB(Electric Codebook)モードによる暗号化、
DES_Dは、DES encriptionのECB(Electric Codebook)モードによる復号化を示す。
ブロック鍵Kblkの生成には、DES方式での暗号化を3回繰り返すというTDES_Eモードが用いられる。
【0083】
ここで著作権保護を徹底するのなら、Aligned Unit毎ではなくTSパケット毎にブロック鍵を変化させればよいのではないかという疑問が生まれる。しかし各TSパケットについてブロック鍵Kblkを得ようとなると、このTDES_Eモードでの暗号化が各TSパケットについて必要になるので処理負荷が大きい。そこで本実施形態ではブロック鍵Kblkの生成は、Aligned Unitにつき1回としている。Aligned Unitは、32個のTSパケットを含んでおり、3セクタに記録されるので、鍵Kblkの生成は3セクタにつき1回になり、機器側の処理負荷を軽減することができる。
【0084】
続いて、本実施形態における記録装置の内部構成について説明する。図24は、第3実施形態に係る記録装置の内部構成を示す図である。TSエンコーダ18は、アナログチューナ9、アナログプロテクト検出部10の出力段に接続されている。これはBlu-ray Discは、MPEG2-TS形式のままデジタルストリームを記録するのでアナログチューナ9、アナログプロテクト検出部10の出力段にTSエンコーダ18を接続すれば足りるからである。またTSデコーダ13は、IEEE1394受信部11、デジタルチューナ12の出力段ではなく、AVデコーダ17の入力段に接続されている。これはBlu-ray Discでは、MPEG2-TS形式のままデジタルストリームが記録されているので、一旦ビデオストリーム、オーディオストリームにまでデジタルストリームを変換する必要がないからである。その他、ストリーム暗号化部15、ストリーム復号化部16は、ストリーム暗号化部23、ストリーム復号化部24に置き換えられ、IEEE1394受信部11、IEEE1394送信部19はIEEE1394受信部20、IEEE1394送信部25に置き換えられている。更にストリーム制御部4の出力段には、TSデコーダ21が追加されている。
【0085】
続いてBlu-ray DiscへのMPEG2-TS形式のデジタルストリーム書き込み時に用いられる構成要素について説明する。図25は、第3実施形態に係る記録装置の内部構成のうち、データ書き込みに係るもの(IEEE1394受信部20〜ストリーム暗号化部23)を、図14と同様の表記で示す図である。以下IEEE1394受信部20〜ストリーム暗号化部23について説明する。
【0086】
IEEE1394受信部20は、IEEE1394を介して転送されてくるTSパケットをDTCPに基づき受信する。IEEE1394を介して入力されてくるTSパケットには随所にisochronousパケットが挿入されており、isochronousパケットが到達した時点での、内部クロック22の計時時刻に基づいてArribval_Time_Stampを生成する。IEEE1394から入力されてきたisochronousパケットが、送り手側においてArribval_Time_Stampに基づき生成されたものであるならIEEE1394受信部11により生成されるArribval_Time_Stampは、その送り手側のArribval_Time_Stampとほぼ同じとなる。こうして生成されたArribval_Time_Stamp、copy_permission_indicatorを含むTP_extra_headerを、各TSパケットに付してEX付きTSパケットを得る。
【0087】
TSデコーダ21は、デジタルチューナ12により出力されるマルチプログラム形式のTSに対して多重分離を行い、TSパケットを得る。TSパケットが得られれば、TP_extra_headerを生成してTSパケットに付す。この生成にあたって、このTSパケットが属するTV番組についてのサービス情報を参照し、サービス情報に基づき、TP_extra_header内のcopy_permission_indicatorを生成する。Arribval_Time_Stampについては、TSパケットが機器に到達した時点における内部クロック22の計時時刻に基づき設定する。
【0088】
ストリーム暗号化部23は、IEEE1394受信部20、TSデコーダ21がEX付きTSパケットを得た場合、Blu-ray Discから予め定められた複数のパラメータを読み出し、これらBlu-ray Disc側のパラメータと、記録装置内で予め格納されている複数パラメータとによりレコーディング鍵Krecを得る。以降、バッファメモリ3上にAligned Unitが得られる度に、そのAligned Unitのcopy_permission_indicator、Arribval_Time_Stamp、パラメータVbkgに対して連結演算を行い、64ビットの演算結果をレコーディング鍵Krecを用いてTDES_Eモードで暗号化する。この暗号化により64ビットのブロック鍵Kblkを得る。こうしてブロック鍵Kblkが得られれば、Aligned Unitの先頭TP_extra_header以外を暗号化してDe_blkを得る。このように暗号化されたAligned Unitがバッファメモリ3に格納され、Blu-ray Discに書き込まれる。
【0089】
続いてBlu-ray DiscからのTSパケット読み出しに用いられる構成要素について説明する。図26は、記録装置のうち、データ読み出しに係るもの(ストリーム復号化部24、IEEE1394送信部25)を示す図である。以降ストリーム復号化部24、IEEE1394送信部25について説明する。
ストリーム復号化部24は、バッファメモリ3に読み出されたECCブロックに含まれるAligned Unitのそれぞれについて復号処理を行う。この復号処理は、Aligned Unit固有のブロック鍵Kblkを用いたDES_DCBCモードでの復号処理である。Aligned Unit固有のブロック鍵Kblkは、以下のようにして生成される。各Aligned Unitの先頭にあるTP_extra_headerは暗号化されていないので、TP_extra_headerにおけるcopy_permission_indicator、Arribval_Time_Stamp、パラメータVbkgに対して連結演算を行い、64ビットの演算結果を得る。レコーディング鍵Krecを用いて、この連結結果をTDES_Dモードで復号化することにより、Aligned UnitのDblkを得る。図26の矢印rt5,6は、再生時におけるAligned Unitの伝送ルートを示す。Aligned Unitは、矢印rt5,6に示すようにTSデコーダ13によりデコードされ、AVデコーダ17により映像信号、音声信号にデコードされていることがわかる。このDblkを矢印rt7,8に示すようにIEEE1394送信部25に出力することにより、Aligned Unitは、ホームネットワークにおける他の機器に送出される。
【0090】
IEEE1394送信部25は、Aligned Unitの復号時において、そのAligned Unitに含まれる32個のEX付きTSパケットのそれぞれからTP_extra_headerを取り外し、TSパケット本体をDTCP規格に基づき暗号化して出力する。TSパケットの出力にあたっては、TSパケット間の随所に、isochronousパケットを挿入する。この挿入箇所は、TP_extra_headerのArribval_Time_Stampに示される時刻に基づいた位置である。TSパケットの出力に伴い、IEEE1394送信部25はDTCP_Descriptorを出力する。DTCP_Descriptorは、TP_extra_headerにおけるコピー許否設定を示す。
【0091】
以上のように構成された記録装置の全体制御は、CPU2が図27に示すプログラムを実行することでなされる。以降、図27のフロ−チャ−トを参照しながらAligned Unit書き込み時におけるCPU2の処理手順について説明する。
図27のステップS1〜ステップS6は、バッファメモリ3にEX付きTSパケットを格納してゆくためのループ処理である。このループ処理においてステップS1では、放送波及びIEEE1394からのTSパケットの入力を監視している。TSパケットの入力があれば、ステップS3、ステップS5、ステップS14の何れかでTSパケットにTP_extra_headerを付加する。
【0092】
ステップS3、ステップS5、ステップS14の何れを実行するかは、ステップS2、ステップS4、ステップS13という3つの判定ステップにより規定される。
ステップS3にてTP_extra_headerの付加が行われるのは、サービス情報やDTCP_Descriptorにおけるコピー属性がEPN Asserted コピーフリーを示している場合である(ステップS2でYES)。この場合、コピー属性がEPN Asserted コピーフリーなので、EPN Asserted コピーフリーを示すcopy_permission_indicatorを含むTP_extra_headerをTSパケットに付加する(ステップS3)。
【0093】
ステップS5にてTP_extra_headerの付加が行われるのは、サービス情報、DTCP_Descriptorにおけるコピー属性がOnly One Copyを示している場合である(ステップS4)。この場合、Only One CopyをNo More Copyに変換する。このNo More Copyを示すcopy_permission_indicatorを含むTP_extra_headerを、TSパケットに付加する(ステップS5)。
【0094】
ステップS14にてTP_extra_headerの付加が行われるのは、サービス情報、DTCP_Descriptorにおけるコピー属性が通常のコピーフリーを示している場合である(ステップS13でYES)。この場合、コピー属性が通常のコピーフリーなので、通常コピーフリーを示すcopy_permission_indicatorを含むTP_extra_headerをTSパケットに付加する(ステップS14)。
【0095】
コピー属性がNo More Copyを示している場合、ステップS1でのTSパケットの受信待ちに戻る。こうすることで、No More CopyのTSパケットがBlu-ray Discに書き込まれないことが保証される。
ステップS6は、32個のEX付きTSパケットが生成されたかどうかを判定するステップであり、もし生成されればステップS7〜ステップS12の処理を行ってステップS1に戻る。32個のEX付きTSパケットが生成されれば、Blu-ray Discにおける複数パラメータと、記録装置におけるパラメータとからレコーディング鍵Krecを生成して(ステップS7)、Arribval_Time_Stampと、copy_permission_indicatorと、パラメータVbkgとに対して連結演算を行い(ステップS8)、演算結果をレコーディング鍵Krecを用いてTDES_Eモードで暗号化することによりブロック鍵Kblkを取得する(ステップS9)。
【0096】
鍵Kblkが得られれば、先頭のTP_extra_headerを除き、Aligned UnitのブロックDblkをDES_ECBCモードで暗号化して、ブロックDe_blkを得て、バッファメモリ3に格納する(ステップS10)。以降、バッファメモリ3に16個のAligned Unitが格納されるまで、ステップS1〜ステップS10の処理を繰り返す(ステップS11がNo)。バッファメモリ3に16個のAligned Unitが格納されれば(ステップS11がYes)、バッファメモリ3に格納された16個のAligned Unitに誤り訂正符号を付して、3個のECCブロックを得る。そして3個のECCブロックをBlu-ray Discに書き込む(ステップS12)。このステップS7〜ステップS12の繰り返しにより、Aligned UnitがBlu-ray Disc内に順次書き込まれてゆく。
【0097】
次に、図28のフロ−チャ−トを参照しながらAligned Unit読み出し時におけるCPU2の処理手順について説明する。
図28のフロ−チャ−トの構造は、バッファメモリ3に3個のECCブロックが格納されるのを待機し、もし格納されればステップS21〜ステップS32の処理を行ってまたステップS21に戻るというものである。
【0098】
ステップS22〜ステップS23のループ処理は、ECCブロックに含まれる計16個のAligned Unitのそれぞれについて、ステップS24〜ステップS32の処理を繰り返すというものである。
ここで繰り返される処理は、Aligned Unitのうち、copy_permission_indicator、Arribval_Time_Stamp、Vbkgを連結し(ステップS24)、Blu-ray Discにおける複数パラメータと、記録装置におけるパラメータとからレコーディング鍵Krecを生成して(ステップS25)、連結演算の結果をレコーディング鍵Krecを用いてTDES_Eモードで暗号化することによりブロック鍵Kblkを取得し(ステップS26)、Aligned UnitのブロックDe_blkをブロック鍵Kblkを用いてDES_DCBCモードで復号化して、32個のEX付きTSパケットを得る(ステップS27)というものである。
【0099】
以降は、再生であるか、送信であるかで異なる処理を行う。再生処理ならば(ステップS28で再生)、32個のEX付きTSパケットからTSパケットを取り出して、TSデコーダ13−AVデコーダ17に出力し再生させる(ステップS29)。
送信処理であれば(ステップS28で送信)、TP_extra_headerにおけるcopy_permission_indicatorがEPN Asserted コピーフリーであるかNo More Copyであるか通常のコピーフリーであるかで異なる処理を行う。
【0100】
EPN Asserted コピーフリーならば(ステップS30でYES)、32個のEX付きTSパケットからTSパケットを取り出して、EPN Asserted コピーフリーを示すDTCP_Descriptorと共に送信する(ステップS31)。通常のコピーフリーであるなら(ステップS33でYES)、32個のEX付きTSパケットからTSパケットを取り出して、通常のコピーフリーを示すDTCP_Descriptorと共に送信する(ステップS34)。
【0101】
No More Copyであるなら(ステップS33でNO)、32個のEX付きTSパケットからTSパケットを取り出して、No More Copyを示すDTCP_Descriptorと共に送信する(ステップS32)。この繰り返しにより、Aligned Unitが順次読み出されてゆく。
以上のように本実施形態によれば、各Aligned Unit毎に値が変わり、コピー許否の設定によっても値が変わるパラメータを用いて暗号鍵を生成するので、第1実施形態同様の著作権保護を実現しつつも、デジタルストリームの自由なコピーをホームネットワーク内で実施させることができる。
【0102】
(第4実施形態)
第1実施形態では、ホームネットワークにおける機器間でVOBUのコピーを行うものであったが、第4実施形態は、1つの機器内でVOBUのコピーを行うものである。
図29は、第4実施形態に係る記録装置の内部構成を示す図である。本図においてドライブ1、HDDのうち一方はコピー元、もう一方はコピー先となる。
【0103】
ストリーム復号化部16は、コピー時においてコピー元記録媒体からコンテンツ鍵Kc、コードDveriを生成し、生成したコードDveriと、RDI-Pack内に存在するコードDveriとの照合を行う。両者が一致すれば、コピー元記録媒体から読み出された暗号化VOBUを復号化する。
ストリーム暗号化部15は、コピー先記録媒体に固有なコンテンツ鍵Kcを生成し、バッファメモリ3上のVOBUをそのコンテンツ鍵Kcで暗号化する。
【0104】
図30は、コピー元ドライブ装置からのVOBU読み出しを示す図である。
矢印(2-1)は、コピー元ドライブ装置からバッファメモリ3に読み出しを示し、矢印(2-2)は、コピー元ドライブ装置によるタイトル鍵Ktの読み出しを示す。(2-3)は、タイトル鍵Ktに基づくVOBUの復号を示す。(2-4)は、復号結果のストリーム暗号化部15への出力を示す。
【0105】
図31は、コピー先ドライブ装置へのVOBU書き込みを示す。(3-1)は、ストリーム暗号化部15によるコピー先記録媒体からのタイトル鍵Ktの読み出しであり、ストリーム暗号化部15はこのタイトル鍵Ktからコンテンツ鍵Kcを生成してVOBUを暗号化する。(3-2)は、暗号化結果のバッファメモリ3への書き込みを示し、(3-3)は、暗号化されたVOBUの、コピー先ドライブ装置への書き込みを示す。
【0106】
以上のように本実施形態によれば、HD、DVDの双方のドライブ装置を具備しているようなハイブリッド型の記録装置において、第1実施形態に示したようなVOBUのコピーを実現することができる。
第4実施形態では、1つの機器内でのVOBUのコピーを行ったが、1つの機器内でAligned Unitのコピーを行ってもよい。
【0107】
(備考)
上記実施形態に基づいて説明してきたが、現状において最善の効果が期待できるシステム例として提示したに過ぎない。本発明はその要旨を逸脱しない範囲で変更実施することができる。代表的な変更実施の形態として、以下(A)(B)(C)・・・・のものがある。
【0108】
(A) 第1実施形態〜第4実施形態における記録装置は、ホームネットワークにおいてデジタルテレビと接続して利用されるタイプの記録装置であったが、液晶型ディスプレィと一体型となった記録装置であってもよい。また、第1実施形態に示した記録装置は、ドライブ1、AVデコーダ17を予め内蔵していたが、これらを具備せず、IEEE1394コネクタを介して接続されていてもよい。更に、各実施形態の記録装置において、処理の本質的部分をなす部分のみを、記録装置としてもよい。これらの記録装置は、何れも本願明細書に記載された発明であるから、これらの何れの態様であろうとも、第1実施形態〜第4実施形態に示した記録装置の内部構成を元に、記録装置を製造する行為は、本願の明細書に記載された発明の実施行為になる。第1実施形態〜第4実施形態に示した記録装置の有償・無償による譲渡(有償の場合は販売、無償の場合は贈与になる)、貸与、輸入する行為も、本発明の実施行為である。店頭展示、カタログ勧誘、パンフレット配布により、これらの譲渡や貸渡を、一般ユーザに申し出る行為も本記録装置の実施行為である。
【0109】
(B)図16、図17、図27、図28に示したプログラムによる情報処理は、ハードウェア資源を用いて具体的に実現されていることから、上記フローチャートに処理手順を示したプログラムは、単体で発明として成立する。第1実施形態〜第4実施形態は、記録装置に組み込まれた態様で、本発明に係るプログラムの実施行為についての実施形態を示したが、記録装置から分離して、第1実施形態〜第4実施形態に示したプログラム単体を実施してもよい。プログラム単体の実施行為には、これらのプログラムを生産する行為(1)や、有償・無償によりプログラムを譲渡する行為(2)、貸与する行為(3)、輸入する行為(4)、双方向の電子通信回線を介して公衆に提供する行為(5)、店頭展示、カタログ勧誘、パンフレット配布により、プログラムの譲渡や貸渡を、一般ユーザに申し出る行為(6)がある。
【0110】
(C)図16、図17、図27、図28のフロ−チャ−トにおいて時系列に実行される各ステップの「時」の要素を、発明を特定するための必須の事項と考える。そうすると、これらのフロ−チャ−トによる処理手順は、記録方法の使用形態を開示していることがわかる。各ステップの処理を、時系列に行うことで、本発明の本来の目的を達成し、作用及び効果を奏するよう、これらのフロ−チャ−トの処理を行うのであれば、本発明に係る記録方法の実施行為に該当することはいうまでもない。
【0111】
(D)第1実施形態では、VOBU単位で記録や暗号化、復号化を行うものとして記載したが、これはDVD-Video Recording規格に従って、本発明に係る記録装置を実施するための一態様に過ぎない。複数VOBU単位で記録してよいし、他の録画規格におけるデータ単位であって、VOBUに対応するものでもよい。
(E)第1実施形態、第2実施形態では媒体固有のタイトル鍵Ktや、Krecを用いてコンテンツ鍵Kc、ブロック鍵Kblkを生成したが、デジタルストリーム固有の暗号鍵を用いてコンテンツ鍵Kc、ブロック鍵Kblkを生成してもよい。こうすれば、記録媒体との依存性はなくなるので、記録媒体からの読み出し時、記録媒体への書き込み時に復号化、暗号化を行う必要がなくなり、高速コピーを実現することができる。
【0112】
(F)第2実施形態では、同じVOBU内に存在する時変係数Dtkcを用いてコンテンツ鍵Kcを得たが、この時変係数Dtkcではなく、前後のVOBU内にある時変係数Dtkcを用いてコンテンツ鍵Kcを生成してもよい。この場合、その前後のVOBUが削除されれば、そのVOBUにおけるコンテンツ鍵Kcを得ることができなる。このことから、前後のVOBU内に存在する時変係数Dtkcを用いれば、VOB全体における一貫性を保つこ とができる。
【0113】
(G)アナログチューナ9から出力されたアナログ映像信号、音声信号ではなく、VTRから出力されたアナログ映像信号、音声信号をAVエンコーダ14はエンコードしてもよい。
(H)第1実施形態においてAPSTBのみとタイトル鍵Ktとからコンテンツ鍵Kcを算出したが、現行機器との互換のためならCGMSとタイトル鍵Ktとからコンテンツ鍵Kcを算出してもよい。CCIは、RDI-PackやTP_extra_headerというヘッダに格納されるとしたが、電子透かしの形態でデジタルストリーム本体に埋め込まれていてもよい。
【0114】
【発明の効果】
以上説明したように、本発明に係る記録媒体によれば、デジタルストリームが記録される記録媒体であって、デジタルストリームの一部分毎に、当該一部分が条件付きコピーフリーであるか否かを示すコピー制御情報が対応付けられており、前記条件付きコピーフリーは、デジタルストリームの一部分を暗号化して、コピー先記録媒体に書き込むことを条件としたコピーフリーであることを特徴としている。
【0115】
記録媒体において、デジタルストリームの一部分は、暗号化を行うことを条件として、コピー先記録媒体に書き込まれる。つまりデジタルストリームの一部分は、暗号化という条件を満たす限り、自由にコピーされることになる。これによりユーザは、自由な私的コピーを謳歌することができる。暗号化という条件が存在するので、暗号化・復号化を行えない不正な機器は、そのような自由コピーから排斥される。不正な機器を私的コピーから排斥することで、デジタルストリームの一般公衆への頒布を防止することができる。
【0116】
既存の機器との互換を重視するなら、以下のようにすればよい。
即ち、前記コピー制御情報は、世代管理情報、拡張フラグを含み、コピー制御情報が条件付きコピーフリーであることを示すのは、世代管理情報が、コピー不可を示す値に設定され、拡張フラグが、オンに設定されている場合とすべきである(2)。「条件付きコピーフリー」というコピー制御情報の設定に対応してない未対応機器に本記録媒体が装填された場合、当該機器はコピー制御情報のうち世代管理情報に基づきコピー動作を行う。世代管理情報は、コピー不可に設定されているためデジタルストリームはコピーされることはない。「条件付きコピーフリー」に未対応の機器での自由なコピーは防ぐので、デジタルストリームの複製物の氾濫を防ぐことができる。
【0117】
ここで暗号化した上での条件付きコピーを認めると、一つの疑問が生じる。それは、元々コピー禁止の設定のため暗号化されていたデジタルストリームのコピー制御情報を、条件付きコピーフリーに改竄すれば、ホームネットワーク内で自由にコピーされてしまうのではないかという疑問である。
これを解決するには、以下のようにすればよい。
【0118】
即ち、前記デジタルストリームの一部分は、所定の暗号鍵を用いて暗号化されて、記録媒体に記録され、所定の暗号鍵は、コピー制御情報が条件付きコピーフリーを示すか否かに応じて値が変わる暗号鍵であるとすれはよい(4)。
コピー制御情報に基づき生成された暗号鍵にて、デジタルストリームの一部分を暗号化している。元々コピー禁止に設定されていたデジタルストリームを、条件付きコピーフリーに変更するようなコピー制御情報の改竄行為がなされた場合、復号時に得られる暗号鍵は、暗号化時に使用した暗号鍵と異なるものとなる。暗号鍵が異なってしまえばデジタルストリームの復号はなしえなくなる。よって、この条件付きコピーフリーの導入にてデジタルストリームの著作権者保護が脆弱化することはない。
【0119】
しかし、その一方、コピー制御情報から暗号鍵を生成していない機器では、改竄を検出することができない。この場合、以下のようにすべきである。
即ち、前記デジタルストリームの一部分は、所定の暗号鍵を用いて暗号化されて、記録媒体に記録され、前記一部分は、チェックコードが対応づけられて記録媒体に記録され、当該チェックコードは、前記暗号鍵を用いて、コピー制御情報を変換することで得られるコードであり、コピー制御情報が条件付きコピーフリーを示すか否かに応じて値が変わるようにすべきである(9)。
【0120】
過去の機器との互換のため、コピー制御情報を関係ない情報要素から暗号鍵を生成する場合、コピー制御情報に対する改竄の有無は、チェックコードの照合にて検出することができる。これにより過去の暗号化方式との互換を保ちつつ、コピー制御情報に対する改竄を防止することができる。
【図面の簡単な説明】
【図1】 本発明に係る記録媒体及び記録装置の使用環境たるホームネットワークを示す図である。
【図2】 VOBUがどのような過程を経て生成されているかを示した図である。
【図3】 PESパケットと、AVパックとの関係を示す図である。
【図4】 VOBUの内部構成を示す図である。
【図5】 第1実施形態に係るCCIの構成を示す図である。
【図6】 CGMS、PSC、EPNフラグが取り得る値と、CGMS、PSC、EPNフラグの意味合いを示す。
【図7】 VOBU内の暗号化AVデータがどのような暗号化の過程を経て生成されているかを示す図である。
【図8】 コードDveriの生成過程を図7と同様の表記で示した図である。
【図9】 時変係数Dtkcから、AVデータまでのオフセットが、どのような基準で設けられているかを示す図である。
【図10】 本発明に係る記録媒体及び記録装置の使用環境たるホームネットワークを示す図である。
【図11】 DTCP_Descriptorの一例を示す図である。
【図12】 第1実施形態に係るDVDレコーダ100の内部構成を示す図である。
【図13】 ストリーム制御部4の内部構成を示す図である。
【図14】 図12の構成要素のうちVOBUの書き込みに用いられるものを抜粋して描いた図である。
【図15】 図12の構成要素のうちVOBUの読み出しに用いられるものを抜粋して描いた図である。
【図16】 第1実施形態の書き込み時における全体制御の処理手順を示すフローチャートである。
【図17】 第1実施形態の読み出し時における全体制御の処理手順を示すフローチャートである。
【図18】 図7と同様の表記で、CCI全体からコンテンツ鍵Kcを生成する場合の暗号化過程を示す図である。
【図19】 Blu-ray Discに記録されるパーティションTSの構成を段階的に詳細化した図である。
【図20】 TSパケットの内部構成を示す図である。
【図21】 Blu-ray Discへの書き込みがどのような過程を経て行われるかを示す図である。
【図22】 TP_extra_headerの内部構成を示す図である。
【図23】 Aligned Unitがどのような過程を経て暗号化されているかを示す図である。
【図24】 第3実施形態に係る記録装置の内部構成を示す図である。
【図25】 図24の構成要素のうちTSパケットの書き込みに用いられるものを抜粋して描いた図である。
【図26】 図24の構成要素のうちTSパケットの読み出しに用いられるものを抜粋して描いた図である。
【図27】 第3実施形態の書き込み時における全体制御の処理手順を示すフローチャートである。
【図28】 第3実施形態の読み出し時における全体制御の処理手順を示すフローチャートである。
【図29】 第4実施形態に係る記録装置の内部構成を示す図である。
【図30】 コピー元ドライブ装置からのAligned Unit読み出しを示す図である。
【図31】 コピー先ドライブ装置へのAligned Unit書き込みを示す図である。
【符号の説明】
1 ドライブ
3 バッファメモリ
4 ストリーム制御部
5 メモリ制御部
6 メモリスクランブル部
9 アナログチューナ
10 アナログプロテクト検出部
11 IEEE1394受信部
12 デジタルチューナ
13 TSデコーダ
14 AVエンコーダ
15 ストリーム暗号化部
16 ストリーム復号化部
17 AVデコーダ
18 TSエンコーダ
19 IEEE1394送信部
20 IEEE1394受信部
21 TSデコーダ
22 内部クロック
23 ストリーム暗号化部
24 ストリーム復号化部
25 IEEE1394送信部
100 DVDレコーダ
120 デジタルTV
130 HDレコーダ
200 リモコン
[0001]
[Technical Department]
The present invention relates to a recording medium such as a DVD, a recording device, a reading device, and a program, and more particularly, to an improvement when a digital work is privately used on a home network.
[0002]
[Prior art]
In research and development of recording media and recording devices, how to integrate the recording media and recording devices with the home network has become a major issue. The home network is a private network constructed by connecting devices having digital interfaces with digital cables such as IEEE1394. In a home network that incorporates an STB (Set Top Box), digital TV, personal computer, or recording device, the digital data received by the personal computer or STB is transferred over the home network and played on a digital TV installed in a separate room at home. be able to. It is also possible to record on a DVD using a recording device provided in a separate room in the home. Since digital data can be shared between devices, convenience for users is dramatically increased.
[0003]
When digital data is freely distributed in a home network, the handling of video data and audio data protected by copyright holders becomes a problem. Even if it is a digital work covered by copyrights such as distribution rights, duplication rights, and transmittable rights, the act of privately copying and reproducing them on the home network is permitted. This is because the use of digital works on the home network is a private use and the copyright is not effective. A technique for recording digital video data on a DVD for private copying is described in Patent Document 1 below.
[0004]
[Patent Document 1]
Japanese Patent No. 3120444
[0005]
[Problems to be solved by the invention]
By the way, in the case of private copying, there are problems in what kind of copyright holder protection is applied to video data already recorded on a recording medium and how copying permission / inhibition is set. If there is no copyright protection, a copy obtained by a private copy in the home network may be uploaded to an Internet site without permission of the author and distributed to an unspecified number of people. However, as described in Patent Document 1, the copy control information is set to “Only One Copy” or “No More Copy” to stop private copying in the home network. Calling will suppress the right of private copying and will buy back on the user side.
[0006]
Such a problem becomes prominent when dealing with TV program works that are currently routinely used for private copying. If digital data obtained by encoding a TV program is distributed to an unspecified number of people without the author's permission, the author will suffer. This is because even if the rightful owner sells packaged software that records a TV program, it cannot be sold. On the other hand, despite the fact that copying in a good state is possible, if digital copying of such digital data is prohibited, the repulsion on the user side will increase. Conventionally, there is no copy permission / prohibition setting that adjusts the demands of both parties, and the maker has been put in a difficult position due to a pinch between the user and the copyright holder.
[0007]
The object of the present invention is to allow the user to make a private copy while prohibiting the act of uploading a digital stream over the network. Record It is to provide a recording device, a reading device, and a duplicating device.
[0008]
[Means for Solving the Problems]
The above purpose is Correspondence with determination means for determining a copy attribute for a signal input from the outside of the recording apparatus and copy control information indicating that the copy attribute is conditional copy free when the copy attribute indicates conditional copy free And writing means for writing a part of the digital stream to a recording medium, and encryption means for encrypting a part of the digital stream using a predetermined encryption key. The copy means is free to write on the copy destination recording medium, and the writing means writes the encrypted part in the recording medium in association with the check code, and the copy control information and the check code Are paired with each other and recorded on the recording medium for each part, and the check code is stored in the code using the encryption key. -A code obtained by converting control information, the value changes depending on whether the copy control information indicates conditional copy free, and determines whether the copy control information has been tampered with Recording device characterized in that it is used for Achieved by:
[0009]
The conditional copy-free is a copy-free copy that can be copied any number of times as long as the condition “write with encryption” is satisfied.
A concept that is easily confused with conditional copy-free is copy processing such as movement, migrate, and checkout. The difference between these copy processing and conditional copy free is as follows.
[0010]
“Move” is a copy process that involves deletion of copy source content, and is used when moving content between a plurality of recording media. Conditional copy-free is clearly different from this move because there is no need to delete the copy source.
The “migrate” is a transfer process on the premise that usage condition information is generated in the copy destination recording medium. Like moving, it is not required to delete the copy source, nor is it required to generate usage condition information, so it is clearly different from this migrate.
[0011]
Checkout is a type of copy that is limited in number of times. Content is copied after the copy number is decremented by one. The general difference between copying with a limited number of times and checkout is that the number of copies can be incremented. The increment of the number of copies is made after performing a process (called “check-in”) in which the content recorded on the recording medium by copying cannot be reproduced. Conditional copy-free is different from checkout because there is no limit on the number of copies. For these reasons, conditional copy-free is pure copy-free that removes restrictions such as the number of copies and deletion of the copy source, and can be performed any number of times as long as the condition of “write with encryption” is satisfied. be able to.
[0012]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, the mode of implementation of the recording medium according to the present invention will be described. Of these implementation actions, the use action of the recording medium according to the present invention will be described. The recording medium according to the present invention is a DVD on which a digital stream in the MPEG2-PS (Program Stream) format is recorded, and is used for a user in a home network. FIG. 1 is a diagram showing a home network as a use environment of a recording medium according to the present invention.
[0013]
The home network is configured by connecting devices equipped with an IEEE1394 digital interface, such as a DVD recorder 100, STB 110, digital TV 120, HD recorder 130, etc., which are recording devices. Each device in the home network is operated by a user with a single remote controller 200. Each device in the home network can output the MPEG2-TS (Transport Stream) format digital stream received from the broadcast station to other devices via IEEE1394, and other devices have received from the broadcast station. A digital stream can be input via IEEE1394. Digital streams are freely copied in the closed world of home networks. The DVD is loaded into the DVD recorder 100 and is subjected to data writing by the DVD recorder 100. By the data writing by the DVD recorder 100, the recording medium according to the present invention is produced. However, it is prohibited to take a DVD with a digital stream in MPEG2-PS format from the home network (arrow my1) and upload it to an Internet site using an unauthorized computer (my2). The recording medium (DVD) according to the present invention plays a role of preventing a digital stream from flowing out of the home network while realizing free copying within the home network. The above is the mode of use of the recording medium according to the present invention.
[0014]
Next, a recording medium production act according to the present invention will be described. The recording medium according to the present invention is produced by performing data writing shown in FIG. 2 on a DVD.
.
FIG. 2 is a diagram detailing the configuration of a digital stream recorded on a DVD in stages. In this figure, the digital stream to be recorded on the DVD is shown in the fifth level, which is the lowest level. This digital stream is an MPEG2-PS format digital stream and is called VOB (Video Object) in the DVD-Video Recording standard. As shown in the figure, the VOB is obtained by multiplexing the video stream and the audio stream shown in the first stage. The video stream located at the first level is an array of a plurality of picture data pj1, 2, 3,. All of these picture data are displayed in one display period (also called a video frame) of the display. In the NTSC display, the video frame is about 33 msec (exactly 1 / 29.97 sec), and in the PAL display, the video frame is 40 msec. These picture data are subjected to compression coding based on the correlation between frames. Therefore, Bidirectionally Predictive (B) pictures that have been inter-frame compressed using the correlation with images to be reproduced in the past and future directions are reproduced in the picture data constituting the video stream. Predictive (P) picture that has been inter-frame compression encoded using the correlation with the image to be performed, intra-frame compression using the spatial frequency characteristics in the image for one frame without using the correlation There are types such as Intra (I) pictures that have been encoded.
[0015]
The smallest unit that can be decoded in a video stream is called GOP (Group Of Picture). A GOP is a set of picture data including at least one I picture and having a playback time of about 0.4 to 1.0 seconds. In FIG. 2, the video stream shown at the first level is divided into a plurality of GOPs at the second level. Since the compression encoding method for picture data is a variable code length method, the GOP data lengths are different from each other. Regardless of the size of each GOP when recording on a DVD, the GOP sequence is divided into a plurality of parts. The division part obtained by the division is stored in the PES packet sequence shown in the third row. On the other hand, the audio stream located on the right side of the first stage is also divided into a plurality of parts, and the divided part obtained by the division is stored in the PES packet sequence shown in the third stage. A PES (Packetized Elementary Stream) packet is a packet storing a divided portion of a video stream and an audio stream as shown in the third row of FIG. 2, and when a part of the video stream and the audio stream is decoded. “DTS (Decode Time Stamp)” indicating “” and “PTS (Presentation Time Stamp)” indicating when the partial decoding result is displayed are added to the header.
[0016]
The PES packet sequence storing the GOP sequence is divided into a plurality of parts, interleaved with the PES packets constituting the audio data (tj2), and the AV pack sequence in the VOBU is converted into the fourth and fifth levels. Constitute. Each VOBU is prefixed with an RDI-Pack (RDI in the figure).
FIG. 3 is a diagram illustrating the relationship between PES packets and AV packs. As shown in the second row of FIG. 3, the AV pack has a size of 2048 bytes, and includes a pack header and a payload. A PES packet is stored in this payload. In the pack header, an SCR (System Clock Reference) indicating the time when the AV pack is input to the buffer in the device is set. The size of 2048 bytes of the AV pack is the same as the size of one sector in the DVD, and the AV pack is stored in each sector of the DVD at a ratio of 1: 1.
[0017]
FIG. 4 is a diagram showing packs constituting the VOBU. The first level of FIG. 4 shows the overall configuration of the VOBU. As shown in the first row, there is an RDI (Realtime Data Information) -Pack at the head of the VOBU, followed by an AV pack sequence.
The second row in FIG. 4 shows the internal configuration of the RDI-Pack and AV pack train. RDI-Pack includes `` CCI (Copy Control Information) '' and `` Manufacture Information '', and AV pack sequence includes `` PSC (PES Scrambling Control) '' and `` Time-varying coefficient Dtkc '' in the top pack, Encrypted AV data ”follows.
[0018]
“CCI” is control information that defines whether copying is permitted or not in VOBU.
“Manufacture Information” is information about the device that wrote the VOBU on the DVD, and contains the code Dveri inside.
The above is the internal configuration of the RDI-Pack. Next, the internal configuration of the AV pack row will be described.
[0019]
The “AV pack sequence” includes a plurality of video packs and a plurality of audio packs, and includes GOP and audio data. From the viewpoint of encryption, the AV pack sequence is divided into a plaintext that occupies the head and a ciphertext.
In plain text, “PES Scrambling Control (PSC)” exists, and a time-varying coefficient Dtkc exists at the 84th byte position from the beginning. The encrypted data exists at a position offset from the time-varying coefficient Dtkc.
[0020]
“PES Scrambling Control (PSC)” is set to “11” to indicate that the audio data contained in the VOBU should be encrypted, and set to “00” to indicate that it should not be encrypted. It is a flag to show. The above is the schematic configuration of the VOBU according to the present embodiment.
“Time-varying coefficient Dtkc” is a coefficient having a time-varying factor. The time variation factor means that a part of the digital stream included in the digital stream varies depending on where on the playback time axis of the digital stream. In the present embodiment, 8-byte data that is 84 bytes ahead from the beginning of the AV pack string is used as the time-varying coefficient Dtkc. In a normal AV pack sequence, a part of picture data generally exists 84 bytes from the beginning of the AV pack sequence. A part of this picture data can be said to be a time fluctuation factor because it is completely different where the VOB is on the VOB playback time axis.
[0021]
The “encrypted AV data” is located at a predetermined offset from the time-varying coefficient Dtkc. In this AV pack sequence, the beginning is in plain text, and at first glance, the GOP included in the AV pack sequence seems to be played. However, the size of this plaintext is about 128 bytes, which is only a small amount from the size of GOP. Therefore, even if the top part is plain text, the VOBU is not normally decrypted. Therefore, the VOBU including the encrypted data is not normally reproduced unless it is decrypted.
[0022]
Next, information indicating whether copying is permitted will be described in more detail. FIG. 5 is a diagram illustrating a configuration of the CCI according to the first embodiment. In this embodiment, the CCI includes “CGMS (Copy Generation Managing System)”, “APSTB (Analogue Protection System Trigger Bits)”, and “EPN flag”. In the current DVD-Video Recording standard, CCI consists of CGMS and APSTB. The CCI according to this embodiment is new in that an EPN flag is added.
[0023]
“CGMS” is information indicating that the VOBU is copy-free when set to “00” and indicating that the VOBU is “No More Copy” when set to “11”. “APSTB” is a 2-bit value indicating whether or not to protect analog output when the VOBU is converted to analog and output. If APSTB is “01”, it indicates that protection is performed by disturbing the AGC circuit of the VTR, and if “10”, protection is achieved by reversing the AGC disturbance and the color stripe by two lines. Show. “11” indicates that AGC is disturbed and protection is achieved by inverting the color stripes by 4 lines. If APSTB is “00”, it indicates that protection by analog output is not performed.
[0024]
The "EPN (Encrypted Plus Non-asserted) flag" is a flag used in combination with CGMS. When CGMS is set to "11", it is set to "1" on and EPN Asserted is copy free. Indicates that there is. EPN Asserted Copy-free means so-called conditional copy-free. The condition is to perform encryption when writing the digital stream to the copy destination.
[0025]
EPN Asserted Copy-free CCI setting was born from the following requests for the spread of home networks. Since devices that construct home networks with IEEE1394 are manufactured by legitimate manufacturers, it is unlikely that duplication that distributes digital streams to an unspecified number of people is possible. However, when a removable media such as a DVD is selected as the digital stream copy destination instead of the HD built in the device, a loophole is created in which the DVD is taken out of the home network and loaded into an unauthorized computer (arrow in Fig. 1). my1, my2). In such a case, if the digital stream is distributed to an unspecified number of times, the profits of the author will be greatly impaired. Therefore, in this embodiment, a new copy permission / prohibition setting called EPN Asserted copy free is introduced. In EPN Asserted copy-free, a digital stream in MPEG2-TS format is transferred to another device on condition that encryption is performed when the digital stream is written to the copy destination. As long as the conditions for EPN Asserted copy-free are satisfied, grandchild copy and great-grandchild copy are allowed, and free private copies for many generations are possible on the home network. As long as the conditional copy-free condition is satisfied, copies for generations are allowed on the home network, increasing convenience for the user. Copy-free in EPN Asserted copy-free is a copy-free with encryption restriction because it imposes restrictions on encryption for private copies.
[0026]
EPN Asserted Copy-free is allowed to copy freely if it is encrypted. However, the strict identity of the encryption method such as the encryption algorithm and data structure is not required, and the copy source encryption method and the copy destination encryption method may be different. For example, if the copy destination is a recording medium different from the DVD and there is an encryption method unique to the copy destination medium, the condition is satisfied as long as the encryption is performed by the encryption method.
[0027]
As long as the condition of encryption is satisfied, the compression encoding method at the copy destination may be different from the compression encoding method at the copy source. For example, if the recording medium of the copy source is a DVD and the digital stream that is the copy object is in the MPEG2-PS format, the MPEG2-PS format is converted to the MPEG2-TS format if the encryption condition is satisfied. Writing to the copy destination above is also acceptable. Similarly, conversion to MPEG1 and MPEG4 format and writing are also acceptable. However, since the condition of encryption is an indispensable and minimum condition, there is no copyright protection, and a digital stream cannot be written on a recording medium that is not obligated to encrypt. Recording media without such obligation include a microdrive and a compact flash (registered trademark).
[0028]
On the other hand, there are SD memory cards and Blu-ray Discs as well as DVDs as recording media for which copyright protection exists and encryption is obligatory. EPN Asserted Copy-free exception is not writing to removable media such as DVD, but writing to a built-in recording medium (built-in HD). This HD does not necessarily require encryption. This is because such a built-in recording medium is difficult to remove and take away from the device.
[0029]
The above is the technical significance of EPN Asserted copy-free as indicated by the EPN flag. Next, how to combine the CGMS and the EPN flag will be described with reference to FIG. FIG. 6 shows possible values of the CGMS, PSC, and EPN flags and the meaning of the CGMS, PSC, and EPN flags. When the EPN flag is set to “0”, copying permission / inhibition is set by CGMS and PSC. If CGMS is “00” and PSC is “00”, it indicates that there is no condition for copy free. If CGMS is “11” and PSC is “11”, it indicates “No More Copy”.
[0030]
On the other hand, when the EPN flag is set to “1”, it indicates that CGMS is “11”, PSC is “11”, and conditional copy free. When CCI indicates conditional copy free, setting CGMS and PSC to “11 (No More Copy)” has the following intention. The intention is that if a DVD that records this VOBU is inserted into a device that complies with the current standard that cannot support the EPN flag, this VOBU will not be copied unconditionally. Current standard-compliant devices cannot interpret the intention of the EPN flag and perform copy control using CGMS and PES Scrambling Control. Since CGMS is set to “No More Copy” as described above, VOBU is not copied at all. When a DVD is loaded on a current device that does not support the EPN flag, copying is completely prohibited, and copying is handled more strictly, thus preventing the overflow of duplicates that are set to conditional copy-free. This is the same when tampering is performed to remove the EPN flag from the CCI.
[0031]
Next, the encryption process of the encrypted AV data will be described. FIG. 7 is a diagram showing what kind of encryption process the encrypted AV data is generated through. AV data is encrypted based on CPRM (Copy Protection for Recordable Media), which is compatible with the current DVD-Video Recording standard. The first level in FIG. 7 shows the VOBU before encryption. In this first level, the AV data is not encrypted. The third level shows the VOBU after encryption. The middle frame hw1 in the middle shows the process of encrypting AV data. As indicated by the frame hw1, the encrypted AV data is obtained by encrypting the original video pack and audio pack in the C2-ECBC mode using the content key Kc.
[0032]
Encryption in the C2_ECBC mode is to divide AV data in VOBU into 64 bits or less, and encrypt each divided part. When encrypting each divided part, the content key Kc is used for encrypting the leading divided part. The encryption result is used for encryption of the next divided part. This C2_ECBC mode repeats the process of encrypting the next divided portion using a certain encryption. Note that a mode in which decoding is performed by following the reverse procedure is referred to as a C2_DCBC mode. Further, “C2” in C2_ECBC means an encryption method based on CPRM.
[0033]
A frame hw2 in the figure is a diagram showing a generation process of the content key Kc. The content key Kc is obtained by adding the APSTB in the RDI-Pack and the title key Kt unique to the recording medium, and using the addition result to perform C2_G conversion on the time-varying coefficient Dtkc. Hw3 in the figure emphasizes that only APSTB in CCI is referenced.
In the content key Kc generation process, the C2-G conversion is a one-way function, and performs irreversible conversion on the concatenated data. While general encryption is a reversible conversion, the C2-G conversion is an irreversible conversion, and therefore has the property that an input value cannot be specified from an output value. Since the time-varying coefficient Dtkc existing in the same VOBU is used as the parameter for generating the content key Kc, the content key Kc for the VOBU can be obtained even if the preceding and succeeding VOBUs are deleted. Since the time-varying coefficient Dtkc has a time-varying factor, the content key Kc obtained from the time-varying coefficient has a property of changing for each VOBU.
[0034]
The problem in this encryption process is that the content key Kc is generated not only from the entire CCI but from the APSTB alone.
The reason is as follows. Conventional DVD copy permission / rejection states have only two states: copy prohibition after encryption and copy free without encryption. It meant “encrypted, equal copy prohibited”, so if it was encrypted, the copyright holder would be adequately protected, and if it was wary of even tampering with rewriting APSTB Was good. In other words, even if copying is prohibited, reproduction output is possible, and there is a possibility that the reproduced analog video signal is recorded in the VTR. Therefore, when APSTB is set so that the analog video output is protected, a content key Kc is generated from APSTB, and encryption is performed using the content key Kc. As a result, it is possible to prevent dubbing by falsifying APSTB and recording an analog video signal with a VTR.
[0035]
However, in this embodiment, a new state of “copy free on condition of encryption” is introduced. If CGMS originally set to copy prohibition is tampered with conditional copy-free, it can be freely copied because it can be decrypted as long as the APSTB matches. The same applies if the CCI including CGMS indicating copy prohibition is replaced with an RDI-Pack including CCI indicating conditional copy-free.
[0036]
Therefore, the code Dveri is provided. The code Dveri is present in Manufacture Information in the RDI-Pack shown in FIG. FIG. 8 shows the process through which this code Dveri is generated. FIG. 8 shows the generation process of the code Dveri in the same notation as FIG. The first level in FIG. 8 shows the VOBU before encryption. The fourth level shows the VOBU after encryption. The second frame hw1 indicates the AV data encryption process.
[0037]
The code Dveri generation process is shown in the third level between the encrypted VOBU and the AV data encryption process. As shown in the third level, the code Dveri is obtained by performing C2-G conversion on the CCI using the content key Kc.
A frame cw1 in FIG. 8 shows a process until the code Dveri is obtained. As shown in the box, the code Dveri is a process pc1 in which the entire CCI with CGMS set to “11” and EPN flag set to “1” is stored in the register and waits for generation of the content key Kc, the generated content key Kc The process of C2-G conversion of the entire CCI stored in the register using pc2, the conversion result of the C2-G conversion is written back to the register (pc3), and the CPU writes to the Manufacturing Information of the RDI-Pack (pc4) The process consists of obtaining the code Dveri.
[0038]
Since the code Dveri is generated in this process, the following can be said.
It generates the code Dveri from the CCI and the content key Kc used to encrypt the AV data, so the device corresponding to EPN Asserted copy-free generates the code Dveri by the procedure shown in the figure, By comparing with the code Dveri existing in the RDI-Pack, it is possible to detect the presence or absence of CCI falsification or RDI-Pack replacement. In other words, after the VOBU is generated, the CCI is falsified. Suppose that the user commands an EPN compatible device to copy the VOBU. At that time, the EPN-compatible device generates the content key Kc through the same process as in FIG. 8, uses this content key Kc, converts the CCI to C2-G, and collates the result with the code Dveri in the RDI-Pack. To do. Since the CGMS and EPN flags in CCI are rewritten, the result of C2-G conversion by the EPN compatible device is significantly different from the code Dveri in the RDI-Pack.
[0039]
If the verification result is clearly different, the EPN compatible device interrupts the decoding. This makes it possible to prevent RDI-Pack replacement and CCI tampering with EPN compatible devices while ensuring compatibility with current DVD-Video Recording standard compatible devices.
The provision of the code Dveri in the RDI-Pack has a deep causal relationship with the offset (see FIG. 4) from the time-varying coefficient Dtkc to the AV data.
[0040]
FIG. 9 is a diagram showing on what basis the offset from the time-varying coefficient Dtkc to the AV data is provided. The offset is determined based on the sum of the time required to obtain the content key Kc (C2_G) and the time required to obtain the code Dveri (C2_G). Since the generation timing of the content key Kc, the calculation of the code Dveri, and the encryption / decryption processing of the AV data are separated, these processes can be time-shared. Through this time division, even with a single cryptographic operation circuit, a series of processing such as generation of content key Kc, calculation of code Dveri, encryption / decryption of AV data is realized without reducing processing efficiency. can do. The offset value from the time-varying coefficient Dtkc to the encrypted data is preferably at least the minimum unit of the cipher block. In the case of the DES method or the C2 method, this cipher block is 8 bytes, so the above-described offset is preferably 8 bytes or more. The above is the form of production of the recording medium according to the present embodiment. The procedure for obtaining the unit-specific encryption key (content key Kc) from the time-varying coefficient (time-varying coefficient Dtkc), medium unique key (title key Kt), and CCI is merely an example. An operation other than such an operation may be applied, or a conversion other than the C2-G conversion may be applied.
[0041]
Subsequently, a mode of implementation of the recording apparatus according to the present invention will be described. The usage action is the same as that of the recording medium, and is used for the user in the home network. FIG. 10 is a diagram illustrating a form in which a recording device is used in a home network.
As shown in FIG. 10, the DVD recorder 100 can receive the MPEG2-TS format digital stream transmitted from the STB 110 as shown by the arrow gy1, convert it to the MPEG2-PS format, and write it to the DVD. The digital stream written to the digital TV 120 can be read out and played back on the digital TV 120. It is also possible to read the MPEG2-PS format digital stream written on the DVD, convert it to the MPEG2-TS format, and then record it on the HD recorder 130.
[0042]
When transferring on the home network, the recording device transfers the MPEG2-TS format digital stream to another device based on a protocol of DTCP (Digital Transmission Content Protection) standard. The protocol in the DTCP standard includes procedures such as mutual authentication of devices and encryption / decryption of TS packets. However, the details are not the main subject of the present application, and will be omitted. Devices that send and receive TS packets according to the DTCP standard exclude connections with devices that do not comply with copyright protection at the stage of mutual authentication. For this reason, the digital stream is not transferred to a micro drive or a compact flash (registered trademark) drive device (see the cross in the figure).
[0043]
Whether or not a digital stream can be written to a DVD or HD is specified in the DTCP_Descriptor in the DTCP standard and transmitted to other devices. FIG. 11 is a diagram illustrating an example of the DTCP_Descriptor. DTCP_Descriptor is “retention move mode” indicating whether temporary storage or movement mode of digital stream is specified, “retention state” indicating period of temporary storage, copying of MPEG2-TS format digital stream is permitted or not "CCI (Copy Control Information)" indicating whether the copy is free or "EPN flag" indicating whether the copy free is EPN Asserted, or a digital stream in MPEG2-TS format `` Image Constraint Token '' indicating that resolution is limited when playing and outputting, and `` APS '' indicating whether or not to protect with analog output when converting MPEG2-TS format digital stream to analog (Analogue Protection System) ". This DTCP_Descriptor is transmitted after the DTCP_Descriptor is stored in a TS packet. In this DTCP_Descriptor, the CCI and EPN flags are compatible with the CCI and EPN flags in the RDI-Pack. In such a home network, the recording device is used for a user.
[0044]
Next, a production act of the recording apparatus according to the present invention will be described. The recording apparatus is industrially produced based on the internal configuration diagram of FIG. Hereinafter, the internal configuration of the recording apparatus will be described. FIG. 12 is a diagram showing an internal configuration of the DVD recorder 100.
As shown in FIG. 12, the DVD recorder 100 includes a drive 1, a CPU 2, a buffer memory 3, a stream controller 4, an analog tuner 9, an analog protect detector 10, an IEEE1394 receiver 11, a digital tuner 12, a TS decoder 13, and an AV encoder. 14, a stream encryption unit 15, a stream decryption unit 16, an AV decoder 17, a TS encoder 18, and an IEEE1394 transmission unit 19.
[0045]
First, components (drive 1, buffer memory 3, stream control unit 4) used for both VOBU reading from DVD and VOBU writing to DVD will be described.
The drive 1 is loaded with a removable recording medium such as a DVD.
The CPU 2 controls the entire recording apparatus.
[0046]
The buffer memory 3 is a buffer for storing VOBU. The VOBU read from the DVD and the VOBU to be written to the HDD or DVD are temporarily stored in this buffer.
The stream control unit 4 connects the drive 1 and the HDD via an IDE I / F, and performs real-time transmission of VOBU among the drive 1, the HDD, the buffer memory 3, the stream encryption unit 15, and the stream decryption unit 16.
[0047]
FIG. 13 is a diagram illustrating an internal configuration of the stream control unit 4. As shown in FIG. 13, the stream control unit 4 includes a memory control unit 5 for reading / writing the buffer memory 3, a memory scramble unit 6 for performing scramble / descrambling for the VOBU, and a stream encryption unit 15 for reading / writing the buffer memory 3. A DMA control unit 7 that performs DMA transfer between the buffer memory 3 and between the buffer memory 3 and the stream decoding unit 16, a drive 1, and an IDE I / F unit 8 that is an I / F with the HDD.
[0048]
Next, components used when writing an MPEG2-PS format digital stream to a DVD will be described. FIG. 14 is a diagram showing components used for writing data on a DVD. In this figure, the stream control unit 4 is replaced with the internal bus of the stream control unit 4 for illustration. A VOBU written on a DVD is obtained by encoding an analog signal input to the DVD recorder 100 (1), and a multi-program MPEG2-TS format digital stream input to the DVD recorder 100 is converted. There are three types: one obtained (2) and one obtained by converting a digital stream input from IEEE1394 (3). Arrows wv1, 2, 3, and 4 in the figure indicate routes to which the digital streams (1), (2), and (3) are transferred and reach the drive 1, and an arrow wv6 indicates an analog signal input to the AV encoder 4. Indicates. An arrow wv5 in the figure indicates a route from the digital stream (2) to the AV encoder 14. An arrow wv7 in the figure indicates a route from the digital stream (3) to the AV encoder 14. The components related to these routes (analog tuner 9, analog protect detection unit 10, IEEE1394 reception unit 11, digital tuner 12, TS decoder 13, AV encoder 14, and stream encryption unit 15) will be described below.
[0049]
The analog tuner 9 receives an analog broadcast signal and obtains an analog video signal and an audio signal. These signals are output to the AV encoder 14 via the A / D converter.
The analog protect detector 10 detects copy protection information (CGMS-A) superimposed on the vertical blanking interval (VBI) of the analog broadcast signal, and analog protection signals such as macrovision and color stripes.
[0050]
The IEEE1394 receiving unit 11 receives TS packets input from other devices via IEEE1394 based on the DTCP_Descriptor and outputs them to the TS decoder 13. If the CCI in the DTCP_Descriptor indicates “No More Copy”, the IEEE1394 receiver 11 does not perform reception. An MPEG2-TS format digital stream with CCI set to “No More Copy” was originally transferred over the home network for playback on a digital TV, and this was accidentally recorded on a DVD. This is to prevent you from doing it. When receiving the TS packet, the IEEE1394 reception unit 11 passes the received DTCP_Descriptor to the AV encoder 14. This is to cause the AV encoder 14 to set the CCI and EPN flags in the RDI-Pack based on the CCI and EPN flags in the DTCP_Descriptor.
[0051]
The digital tuner 12 receives a broadcast wave and obtains a digital stream in the multiprogram TS format.
The TS decoder 13 performs demultiplexing on the multi-program TS format digital stream obtained by the digital tuner 12, and sends the video stream, audio stream, and service information time-division multiplexed to these TS packets to the AV encoder 14. Output. The reason why the service information is output is to allow the IEEE1394 receiver 11 to set the CCI and EPN flags in the RDI-Pack based on the service information. Demultiplexing by the TS decoder 13 is also performed on TS packets obtained by the IEEE1394 receiver 11. That is, the TS packet obtained by the IEEE1394 receiver 11 is demultiplexed to obtain a video stream and an audio stream and output them to the AV encoder 14.
[0052]
The AV encoder 14 compresses and encodes the video signal and the audio signal obtained by the demodulation of the tuner and digitized by the A / D converter to obtain video data and audio data of 0.4 to 1.0 seconds. Furthermore, VOBU is obtained by multiplexing these. The video stream and audio stream obtained by the digital tuner 12 and TS decoder 13 are also multiplexed to obtain a VOBU. When obtaining a VOBU, an RDI-Pack is generated by setting CCI based on the detection result of the analog protect detection unit 10, the DTCP_Descriptor from the IEEE1394 reception unit 11, and the service information from the digital tuner 12. This setting is based on CCI and service information of CGMS-A and DTCP_Descriptor.
[0053]
When the encoder obtains the VOBU, the stream encryption unit 15 uses the content key from the DVD-specific title key Kt, the CCI set in the RDI-Pack by the encoder, and the time-varying coefficient Dtkc generated by the encoder during the encoding process. Kc and code Dveri are obtained, encrypted in the C2-ECBC mode using the content key Kc, and stored in the buffer memory 3. The VOBU stored in the buffer memory 3 is written on the DVD by the drive 1.
[0054]
As long as the analog broadcast signal and the TS packet constituting the MPEG2-TS format digital stream continue to be input, the analog tuner 9 to the stream encryption unit 15 continue the above-described operation. It will be recorded in PS format.
The above are the components related to VOBU writing. Next, components related to VOBU reading will be described. There are two types of VOBU read from a DVD: one that is reproduced as video and audio by the AV decoder 17 (1), and one that is transferred from IEEE1394 to another device (2). FIG. 15 is a diagram in which the components used for reading the VOBU are extracted from the components shown in FIG. In this figure, the stream control unit 4 is replaced with the internal bus of the stream control unit 4 for illustration. Arrows rv 1, 2 in the figure indicate routes from the former and latter VOBUs read from the DVD to the stream decoding unit 16. An arrow rv3 indicates a route through which the former VOBU is reproduced by the AV decoder 17, and an arrow rv4 indicates a route through which the latter VOBU is output to another device via IEEE1394. Hereinafter, components (AV decoder 17, TS encoder 18, IEEE1394 transmission unit 19) used for data reading will be described.
[0055]
When the VOBU is reproduced from the DVD or when the VOBU is copied from the DVD to another device in the home network, the stream decoding unit 16 includes the DVD-specific title key Kt, the CCI set in the RDI-Pack by the encoder, The content key Kc and the code Dveri are obtained from the time-varying coefficient Dtkc, and the VOBU is decrypted in the C2-DCBC mode using the content key Kc.
[0056]
The AV decoder 17 performs a decompression process defined in MPEG2 on the VOBU decoded by the stream decoding unit 16 to obtain and reproduce a video signal and an audio signal.
The TS encoder 18 converts the VOBU decoded by the stream decoding unit 16 into a TS packet and outputs the TS packet to the IEEE1394 transmission unit 19.
The IEEE1394 transmission unit 19 encrypts and outputs the TS packet body obtained by the conversion of the TS encoder 18 based on the DTCP standard.
[0057]
The overall control of the recording apparatus configured as described above is performed by the CPU 2 executing the program shown in FIG. 16. Thereafter, the processing of the CPU 2 at the time of VOBU writing with reference to the flowchart of FIG. The procedure will be described.
Steps S41 to S45 in FIG. 16 are a loop process for generating a VOBU based on an input signal to the DVD recorder 100. Input signals include analog signals, digital broadcast signals, and input signals from other devices in the home network. The copy attribute means copy permission / inhibition setting indicated by CGMS-A, service information, CCI in DTCP_Descriptor, and EPN flag.
[0058]
In step S41 in the loop processing, it is monitored whether or not the detection of the copy attribute of the input signal is completed. When the detection of the copy attribute of the input signal is completed, VOBU is generated in any of step S43, step S45, and step S46.
Which of step S43, step S45, and step S46 is executed is defined by three determination steps of step S42, step S44, and step S52.
[0059]
The VOBU is obtained in step S43 when the copy attribute in the input signal from the outside of the apparatus indicates EPN Asserted copy free (Yes in step S42). In this case, a VOBU including an RDI-Pack including CCI indicating EPN Asserted copy-free and an AV pack string is obtained (step S43).
The VOBU is obtained in step S45 when the copy attribute indicates Only One Copy (Yes in step S44). In this case, Only One Copy is converted to No More Copy. After the conversion, a VOBU including an RDI-Pack including CCI indicating No More Copy and an AV pack string is obtained (step S45).
[0060]
If the copy attribute is normal copy free (YES in step S52), a VOBU including CCI indicating normal copy free is recorded (step S46). If you want to make copyright protection stricter, the copy attribute may be converted to EPN Asserted Copy Free, and VOBU including CCI indicating EPN Asserted Copy Free may be recorded. If the copy attribute indicates No More Copy, the process returns to the detection of the copy attribute in the input signal in step S41.
[0061]
If VOBU is obtained by the above procedure, the process of step S47-step S51 is performed and it returns to step S21.
In the processing from step S47 to step S51, APSTB in the VOBU RDI-Pack and the title key Kt are added (step S47), the time-varying coefficient Dtkc is C2-G converted using the addition result, and the content key Kc is converted. (Step S48), CCI is C2-G converted using the content key Kc to obtain the code Dveri and placed in the Manufacture Information in the RDI-Pack (Step S49), and the content key Kc is used in the VOBU. The AV pack string is encrypted in the C2_ECBC mode (step S50), and the encrypted VOBU on which the code Dveri is arranged is written to the DVD (step S51). By repeating this step S41 to step S51, the DVD VOBU will be written sequentially.
[0062]
Next, the processing procedure of the CPU 2 at the time of VOBU reading will be described with reference to the flowchart of FIG.
The flowchart of FIG. 17 waits for the VOBU to be stored in the buffer memory 3 (step S61). If the VOBU is stored, the processing of step S62 to step S71 is performed and the process returns to step S61. It is.
[0063]
In the processing from step S62 to step S71, the APSTB in the VOBU RDI-Pack and the title key Kt are added (step S62), and the time-varying coefficient Dtkc is C2-G converted using the addition result, and the contents After obtaining the key Kc (step S63), CCI is C2-G converted using the content key Kc to obtain the code Dveri (step S64).
[0064]
In step S65, it is determined whether the code Dveri generated in step S64 matches the code Dveri existing in the RDI-Pack. If the code Dveri does not match, a display indicating that is displayed on the front panel of the recording apparatus or the TV. The read process is forcibly terminated after output to the monitor. This is a forced measure for fraud. Instead of taking such a forced measure, more flexible responses may be taken. That is, the same processing may be repeated for subsequent VOBUs without reproducing / transmitting only the VOBU in which the mismatch of the code Dveri is detected.
[0065]
If they match, the encrypted AV pack sequence in the VOBU is decrypted in the C2-DCBC mode using the content key Kc (step S66).
Thereafter, different processing is performed depending on whether playback or transmission. If it is a reproduction process (reproduction in step S67), TS packets are extracted from the 32 EX-added TS packets, and output to the AV decoder 17 for reproduction (step S68). In the case of transmission processing, different processing is performed depending on whether the CCI in the RDI-Pack is EPN Asserted copy free, No More Copy, or normal copy free (steps S69 and S70).
[0066]
If EPN Asserted copy free (YES in step S69), VOBU is converted into a TS packet and transmitted together with DTCP_Descriptor indicating EPN Asserted copy free (step S71). If the CCI is No More Copy (YES in Step S70), the VOBU is converted into a TS packet and transmitted together with the DTCP_Descriptor indicating No More Copy (Step S72). If it is normal copy free (N0 in step S70), VOBU is converted into a TS packet and transmitted together with DTCP_Descriptor indicating normal copy free (step S73). If it is desired to treat copyright protection strictly, it may be transmitted together with DTCP_Descriptor indicating EPN Asserted copy-free in step S73.
[0067]
As described above, according to the present embodiment, the decryption of the encrypted AV data by the device conforming to the current standard is ensured, and in the case of fraudulent acts such as falsification of the CCI and replacement of the RDI-Pack, this is verified by checking with the code Dveri. Therefore, it is possible to efficiently prohibit copying on the premise of fraud.
(Second embodiment)
The first embodiment mainly focuses on preventing CCI tampering using the code Dveri, but the second embodiment discloses an improvement that can prevent CCI tampering without using the code Dveri. For this purpose, it is only necessary to generate the content key Kc straight from the entire CCI, instead of generating the content key Kc only from APSTB.
FIG. 18 is a diagram showing an encryption process when the content key Kc is generated from the entire CCI in the same notation as FIG. In this case, compatibility with current standard-compliant devices cannot be maintained, but tampering with CCI can be prevented without using code Dveri. This is because if the CCI is rewritten, the content key Kc generated by the device at the time of decryption is significantly different from the original content key Kc, and decryption cannot be performed properly.
[0068]
In this case, the code Dveri becomes unnecessary, so there is no need to wait for the generation of the code Dveri, and the offset from the time-varying coefficient Dtkc to the AV data can be shortened.
(Third embodiment)
The first embodiment and the second embodiment are in the form of writing an MPEG2-PS format digital stream on a recording medium. The third embodiment relates to an aspect of writing an MPEG2-TS format digital stream in a recording medium.
[0069]
Writing in MPEG2-TS format is convenient for writing a digital stream to HD or Blu-ray Disc.
A description will be given of how the GOP shown in the first embodiment is converted when a digital stream is written in a recording medium in the MPEG2-TS format.
FIG. 19 is a diagram detailing the structure of a digital stream recorded on a Blu-ray Disc in stages. In FIG. 19, the first to third stages are the same as those in FIG. 2, and show a picture sequence, a GOP division, and a PES packet sequence, respectively. The fourth and fifth stages are greatly different from those in FIG. The PES packet sequence storing the GOP sequence is multiplexed (tj1 in the figure) with the PES packet sequence storing the audio stream to form the MPEG2-TS format digital stream shown in the fourth row. The video stream and audio stream constituting the TV program are transferred through a transmission path such as a satellite wave, a terrestrial wave, and a wired cable in the form of the fourth stage.
[0070]
Next, the internal structure of the TS packet will be described. The configuration of the TS packet is shown in the third level of FIG. As shown in the third row of FIG. 20, the TS packet is composed of a “TS packet header” and a “payload part”, and has a size of 188 bytes. The “payload” stores a divided portion obtained by dividing the PES packet into a plurality of pieces. As indicated by arrows ct1,2,3, it is stored in the payload of the TS packet in the third stage. This completes the description of the TS packet.
[0071]
Next, how the MPEG2-TS format is written on a Blu-ray Disc will be described. FIG. 21 is a diagram showing a process through which TS packets constituting the MPEG2-TS format are written on a Blu-ray Disc. The first stage of the figure shows TS packets constituting an MPEG2-TS format digital stream.
As shown in the second row, TP_extra_header (“EX” in the figure) is added to the TS packets constituting the MPEG2-TS format digital stream.
[0072]
The third and fourth levels show the correspondence between the physical unit of the Blu-ray Disc and the TS packet. As shown in the fourth row, a plurality of sectors are formed on the Blu-ray Disc. TS packets with extra_header (hereinafter abbreviated as EX-added TS packets) are grouped every 32 and written in three sectors. A group consisting of 32 EX-attached TS packets is 6144 bytes (= 32 × 192), which matches three sector sizes of 6144 bytes (= 2048 × 3). Thirty-two EX-attached TS packets stored in three sectors are called “Aligned Units”, and when writing to a Blu-ray Disc, encryption is performed in units of Aligned Units. The sector in the fourth stage is added with an error correction code in units of 16 and constitutes an ECC block. The recording device can obtain 32 complete TS packets with EX as long as the Blu-ray Disc is accessed in units of Aligned Units.
[0073]
The above is the process of writing the MPEG2-TS format digital stream to the Blu-ray Disc. Next, the internal configuration of TP_extra_header will be described. FIG. 22A shows the internal structure of TP_extra_header.
The TP_extra_header includes “Arribval_Time_Stamp” and “copy_permission_indicator”.
[0074]
“Arribval_Time_Stamp” is a time-varying coefficient in the MPEG2-TS format digital stream. This is because Arribval_Time_Stamp has a time variation factor that varies depending on where the Aligned Unit is located on the playback time axis of the digital stream. What is used as the time-varying coefficient is the time-varying coefficient when the TS packet reaches the device. This Arribval_Time_Stamp is used to refer to time stamps such as PCR and PTS during stream reproduction. In general, PCR and PTS are set on the assumption that an MPEG2-TS format digital stream transmitted from a broadcasting station is received and reproduced in real time. However, in the accumulation and reproduction, the MPEG2-TS format digital stream is once accumulated on the Blu-ray Disc and HD and then reproduced with a considerable delay in time. In this accumulation reproduction, PCR and PTS values adjusted for real-time reproduction are wasted. Therefore, Arribval_Time_Stamp in TP_extra_header indicates the time when the TS packet reaches the recording device. Therefore, if you refer to this Arribval_Time_Stamp during playback, even if a digital stream in MPEG2-TS format is stored on a Blu-ray Disc, etc., playback timing control using PTS and PCR is the same as in real-time playback. Can be realized.
[0075]
“Copy_permission_indicator” is CCI in the MPEG2-TS format digital stream. At the time of recording on a Blu-ray Disc, information indicating whether copying is permitted is precisely set for each TS packet. The copy_permission_indicator is 2-bit information and is set to four values shown in FIG. "00" is normal copy free, "11" is "No More Copy", "01" is encrypted but unconditional copy free, "10" is EPN Asserted Each means copy free.
[0076]
Next, an encryption process for the Aligned Unit will be described. Although it takes the form of the MPEG2-TS format, the point of performing encryption using three parameters such as a time-varying coefficient, CCI, and a medium unique key (title key Kt) is the same as in the first and second embodiments. Also, the calculation is performed using two of these parameters, and the encryption key (content key Kc) for each unit is obtained from the calculation result and the remaining one parameter. It is not different from the embodiment.
[0077]
FIG. 23 is a diagram illustrating a process through which the Aligned Unit is encrypted. The first row in FIG. 23 shows the Aligned Unit before encryption. Before encryption, the 6144-byte Aligned Unit is divided into a TP_extra_header of the leading EX-added TS packet and a subsequent Dblk. Dblk means a 6136-byte (6144-8) portion excluding 8-byte TP_extra_header in the 6144-byte Aligned Unit.
[0078]
The third level shows the Aligned Unit after encryption. Since TP_extra_header of the TS packet with EX at the beginning is plain text, there is no change before and after encryption. Dblk is converted to De_blk.
The broken line dc1 in the second row shows the encryption process for Dblk. Dblk is encrypted in DES_ECBC mode using a 64-bit block key Kblk. This key Kblk corresponds to the content key Kc referred to in the first embodiment. This is because the key Kblk is also unique to the unit and varies from unit to unit.
[0079]
The encryption in the DES_ECBC mode is to divide a 6136-byte aligned unit into 64 bits or less and encrypt each divided part, and can be regarded as C2_ECBC in the first embodiment. On the other hand, a mode in which the reverse procedure is followed to perform decoding is called a DES_DCBC mode.
A frame dc2 in the figure indicates a process through which the 64-bit block key Kblk is generated. “‖” In the figure indicates a concatenation operation. This concatenation operation is one of predetermined operations, and corresponds to the addition operation performed on the title key Kt and CCI in the first embodiment. The target of this concatenation operation is a 2-bit copy_permission_indicator, a 30-bit Arribval_Time_Stamp, and a 32-bit parameter Vbkg.The block key Kblk is the concatenation operation result (64 bits) and the 128-bit recording key Krec. Used to encrypt in TDES_E mode.
[0080]
The parameter Vbkg is a common parameter included in devices that comply with copyright protection.
Krec is an encryption key corresponding to the title key Kt of the first embodiment, and is an encryption key unique to the recording medium. Krec is derived from a plurality of parameters in the Blu-ray Disc and a plurality of parameters in the device, but details thereof are omitted because they are not the main points of the present application.
[0081]
The generation of the block key Kblk in the TDES_E mode is expressed as follows:
Block key Kblk = DES_E (K1, DES_D (K2, DES_E (K1, d)))
K1 indicates the upper 64 bits of the recording key Krec, and K2 indicates the lower 64 bits of the recording key Krec.
[0082]
DES_E is encryption by ECB (Electric Codebook) mode of DES encription,
DES_D indicates decoding in the ECB (Electric Codebook) mode of DES encription.
For generation of the block key Kblk, the TDES_E mode is used in which the DES encryption is repeated three times.
[0083]
Here, if copyright protection is thoroughly enforced, the question arises that the block key should be changed not for each Aligned Unit but for each TS packet. However, when the block key Kblk is to be obtained for each TS packet, the processing load is heavy because encryption in the TDES_E mode is required for each TS packet. Therefore, in this embodiment, the block key Kblk is generated once for each Aligned Unit. Since the Aligned Unit includes 32 TS packets and is recorded in 3 sectors, the key Kblk is generated once per 3 sectors, and the processing load on the device side can be reduced.
[0084]
Next, the internal configuration of the recording apparatus according to this embodiment will be described. FIG. 24 is a diagram illustrating an internal configuration of the recording apparatus according to the third embodiment. The TS encoder 18 is connected to the output stage of the analog tuner 9 and the analog protect detection unit 10. This is because a Blu-ray Disc records a digital stream in the MPEG2-TS format, so it is sufficient to connect a TS encoder 18 to the output stage of the analog tuner 9 and the analog protect detection unit 10. The TS decoder 13 is connected to the input stage of the AV decoder 17 instead of the output stage of the IEEE1394 receiver 11 and the digital tuner 12. This is because in Blu-ray Disc, the digital stream is recorded in the MPEG2-TS format, so it is not necessary to convert the digital stream into a video stream and an audio stream. In addition, the stream encryption unit 15 and the stream decryption unit 16 are replaced with the stream encryption unit 23 and the stream decryption unit 24, and the IEEE1394 reception unit 11 and the IEEE1394 transmission unit 19 are replaced with the IEEE1394 reception unit 20 and the IEEE1394 transmission unit 25. Has been replaced. Further, a TS decoder 21 is added to the output stage of the stream control unit 4.
[0085]
Next, components used when writing an MPEG2-TS format digital stream to a Blu-ray Disc will be described. FIG. 25 is a diagram illustrating, among the internal configurations of the recording apparatus according to the third embodiment, those related to data writing (IEEE1394 reception unit 20 to stream encryption unit 23) in the same notation as FIG. Hereinafter, the IEEE1394 receiver 20 to the stream encryption unit 23 will be described.
[0086]
The IEEE1394 receiver 20 receives TS packets transferred via IEEE1394 based on DTCP. Isochronous packets are inserted everywhere in TS packets input via IEEE1394, and Arribval_Time_Stamp is generated based on the time measured by the internal clock 22 when the isochronous packet arrives. If an isochronous packet input from IEEE1394 is generated on the sender side based on Arribval_Time_Stamp, Arribval_Time_Stamp generated by the IEEE1394 receiver 11 is substantially the same as Arribval_Time_Stamp on the sender side. TP_extra_header including Arribval_Time_Stamp and copy_permission_indicator generated in this way is attached to each TS packet to obtain a TS packet with EX.
[0087]
The TS decoder 21 demultiplexes the multi-program format TS output from the digital tuner 12 to obtain a TS packet. If a TS packet is obtained, TP_extra_header is generated and attached to the TS packet. In this generation, the service information about the TV program to which the TS packet belongs is referred to, and a copy_permission_indicator in TP_extra_header is generated based on the service information. Arribval_Time_Stamp is set based on the time measured by the internal clock 22 when the TS packet reaches the device.
[0088]
When the IEEE1394 receiver 20 and the TS decoder 21 obtain an EX-attached TS packet, the stream encryption unit 23 reads a plurality of predetermined parameters from the Blu-ray Disc, and these Blu-ray Disc side parameters, A recording key Krec is obtained from a plurality of parameters stored in advance in the recording apparatus. Thereafter, every time an Aligned Unit is obtained on the buffer memory 3, a concatenation operation is performed on the copy_permission_indicator, Arribval_Time_Stamp, and parameter Vbkg of the Aligned Unit, and the 64-bit operation result is encrypted in the TDES_E mode using the recording key Krec. To do. With this encryption, a 64-bit block key Kblk is obtained. When the block key Kblk is obtained in this way, De_blk is obtained by encrypting the part other than the first TP_extra_header of the Aligned Unit. The Aligned Unit encrypted in this way is stored in the buffer memory 3 and written on the Blu-ray Disc.
[0089]
Next, components used for reading TS packets from a Blu-ray Disc will be described. FIG. 26 is a diagram showing a recording apparatus related to data reading (stream decoding unit 24, IEEE1394 transmission unit 25). Hereinafter, the stream decoding unit 24 and the IEEE1394 transmission unit 25 will be described.
The stream decoding unit 24 performs a decoding process on each Aligned Unit included in the ECC block read out to the buffer memory 3. This decryption process is a decryption process in the DES_DCBC mode using the block key Kblk unique to the Aligned Unit. The block key Kblk unique to the Aligned Unit is generated as follows. Since TP_extra_header at the head of each Aligned Unit is not encrypted, a concatenation operation is performed on copy_permission_indicator, Arribval_Time_Stamp, and parameter Vbkg in TP_extra_header to obtain a 64-bit operation result. Using the recording key Krec, this concatenation result is decrypted in the TDES_D mode, thereby obtaining Dblk of the Aligned Unit. Arrows rt5 and 6 in FIG. 26 indicate transmission routes of Aligned Units during reproduction. It can be seen that the Aligned Unit is decoded by the TS decoder 13 as indicated by arrows rt5 and 6, and decoded by the AV decoder 17 into a video signal and an audio signal. By outputting this Dblk to the IEEE1394 transmission unit 25 as indicated by arrows rt7 and 8, the Aligned Unit is transmitted to other devices in the home network.
[0090]
When the Aligned Unit is decrypted, the IEEE1394 transmission unit 25 removes TP_extra_header from each of the 32 EX-added TS packets included in the Aligned Unit, and encrypts and outputs the TS packet body based on the DTCP standard. When outputting TS packets, isochronous packets are inserted everywhere between TS packets. This insertion location is a position based on the time indicated in Arribval_Time_Stamp of TP_extra_header. With the output of the TS packet, the IEEE1394 transmission unit 25 outputs DTCP_Descriptor. DTCP_Descriptor indicates copy permission / inhibition setting in TP_extra_header.
[0091]
The overall control of the recording apparatus configured as described above is performed by the CPU 2 executing the program shown in FIG. Hereinafter, the processing procedure of the CPU 2 at the time of Aligned Unit writing will be described with reference to the flowchart of FIG.
Steps S <b> 1 to S <b> 6 in FIG. 27 are loop processing for storing the TS packet with EX in the buffer memory 3. In step S1, in this loop processing, the input of broadcast waves and TS packets from IEEE1394 is monitored. If a TS packet is input, TP_extra_header is added to the TS packet in any of step S3, step S5, and step S14.
[0092]
Which of step S3, step S5, and step S14 is executed is defined by three determination steps of step S2, step S4, and step S13.
In step S3, TP_extra_header is added when the copy attribute in the service information or DTCP_Descriptor indicates EPN Asserted copy free (YES in step S2). In this case, since the copy attribute is EPN Asserted copy free, TP_extra_header including copy_permission_indicator indicating EPN Asserted copy free is added to the TS packet (step S3).
[0093]
In step S5, TP_extra_header is added when the copy attribute in the service information and DTCP_Descriptor indicates Only One Copy (step S4). In this case, Only One Copy is converted to No More Copy. TP_extra_header including copy_permission_indicator indicating this No More Copy is added to the TS packet (step S5).
[0094]
In step S14, TP_extra_header is added when the copy attribute in the service information and DTCP_Descriptor indicates normal copy free (YES in step S13). In this case, since the copy attribute is normal copy free, TP_extra_header including copy_permission_indicator indicating normal copy free is added to the TS packet (step S14).
[0095]
When the copy attribute indicates “No More Copy”, the process returns to waiting for reception of a TS packet in step S1. This guarantees that the No More Copy TS packet will not be written to the Blu-ray Disc.
Step S6 is a step for determining whether or not 32 EX-added TS packets have been generated. If they are generated, the processing of steps S7 to S12 is performed, and the process returns to step S1. If 32 EX-added TS packets are generated, a recording key Krec is generated from a plurality of parameters in Blu-ray Disc and parameters in the recording device (step S7), and Arribval_Time_Stamp, copy_permission_indicator, and parameter Vbkg are generated. A concatenation operation is performed on the block (step S8), and the block key Kblk is obtained by encrypting the operation result in the TDES_E mode using the recording key Krec (step S9).
[0096]
If the key Kblk is obtained, the block Dblk of the Aligned Unit is encrypted in the DES_ECBC mode except for the leading TP_extra_header, and the block De_blk is obtained and stored in the buffer memory 3 (step S10). Thereafter, the processing of step S1 to step S10 is repeated until 16 aligned units are stored in the buffer memory 3 (No in step S11). If 16 Aligned Units are stored in the buffer memory 3 (Yes in step S11), error correction codes are attached to the 16 Aligned Units stored in the buffer memory 3 to obtain 3 ECC blocks. Then, three ECC blocks are written on the Blu-ray Disc (step S12). By repeating these steps S7 to S12, Aligned Units are sequentially written in the Blu-ray Disc.
[0097]
Next, the processing procedure of the CPU 2 at the time of reading Aligned Unit will be described with reference to the flowchart of FIG.
The flow chart structure shown in FIG. 28 waits for three ECC blocks to be stored in the buffer memory 3, and if stored, performs the processing from step S21 to step S32 and returns to step S21. That's it.
[0098]
The loop processing from step S22 to step S23 is to repeat the processing from step S24 to step S32 for each of a total of 16 Aligned Units included in the ECC block.
In the process repeated here, copy_permission_indicator, Arribval_Time_Stamp, and Vbkg of the Aligned Unit are concatenated (step S24), and a recording key Krec is generated from a plurality of parameters in the Blu-ray Disc and parameters in the recording device (step S25). The block key Kblk is obtained by encrypting the result of the concatenation operation in the TDES_E mode using the recording key Krec (step S26), and the block De_blk of the Aligned Unit is decrypted in the DES_DCBC mode using the block key Kblk. 32 TS packets with EX are obtained (step S27).
[0099]
Thereafter, different processing is performed depending on whether playback or transmission. If it is playback processing (playback in step S28), TS packets are extracted from the 32 EX-added TS packets, and output to the TS decoder 13-AV decoder 17 for playback (step S29).
If it is transmission processing (transmission in step S28), different processing is performed depending on whether copy_permission_indicator in TP_extra_header is EPN Asserted copy-free, No More Copy, or normal copy-free.
[0100]
If EPN Asserted copy free (YES in step S30), TS packets are extracted from 32 EX-added TS packets and transmitted together with DTCP_Descriptor indicating EPN Asserted copy free (step S31). If it is normal copy free (YES in step S33), TS packets are extracted from 32 EX-added TS packets and transmitted together with DTCP_Descriptor indicating normal copy free (step S34).
[0101]
If it is No More Copy (NO in Step S33), the TS packet is extracted from the 32 EX-added TS packets and transmitted together with the DTCP_Descriptor indicating No More Copy (Step S32). By repeating this, Aligned Units are sequentially read out.
As described above, according to this embodiment, the encryption key is generated using the parameter that changes for each Aligned Unit and the value also changes depending on the copy permission / rejection setting. While being realized, a free copy of the digital stream can be implemented in the home network.
[0102]
(Fourth embodiment)
In the first embodiment, VOBU copying is performed between devices in the home network, but in the fourth embodiment, VOBU copying is performed within one device.
FIG. 29 is a diagram illustrating an internal configuration of a recording apparatus according to the fourth embodiment. In this figure, one of the drive 1 and HDD is the copy source, and the other is the copy destination.
[0103]
The stream decryption unit 16 generates the content key Kc and the code Dveri from the copy source recording medium at the time of copying, and collates the generated code Dveri with the code Dveri existing in the RDI-Pack. If they match, the encrypted VOBU read from the copy source recording medium is decrypted.
The stream encryption unit 15 generates a content key Kc unique to the copy destination recording medium, and encrypts the VOBU on the buffer memory 3 with the content key Kc.
[0104]
FIG. 30 is a diagram showing VOBU reading from the copy source drive device.
An arrow (2-1) indicates reading from the copy source drive device to the buffer memory 3, and an arrow (2-2) indicates reading of the title key Kt by the copy source drive device. (2-3) shows VOBU decryption based on the title key Kt. (2-4) shows the output of the decryption result to the stream encryption unit 15.
[0105]
FIG. 31 shows VOBU writing to the copy destination drive device. (3-1) is the reading of the title key Kt from the copy destination recording medium by the stream encryption unit 15, and the stream encryption unit 15 generates the content key Kc from the title key Kt and encrypts the VOBU. . (3-2) indicates the writing of the encryption result to the buffer memory 3, and (3-3) indicates the writing of the encrypted VOBU to the copy destination drive device.
[0106]
As described above, according to the present embodiment, a VOBU copy as shown in the first embodiment can be realized in a hybrid recording apparatus having both HD and DVD drive apparatuses. it can.
In the fourth embodiment, the VOBU is copied in one device, but the Aligned Unit may be copied in one device.
[0107]
(Remarks)
Although it has been described based on the above embodiment, it is merely presented as an example of a system that can be expected to have the best effect in the present situation. The present invention can be modified and implemented without departing from the gist thereof. As typical modified embodiments, there are the following (A), (B), (C),...
[0108]
(A) The recording apparatus in the first to fourth embodiments is a recording apparatus of a type used by being connected to a digital television in a home network, but is a recording apparatus integrated with a liquid crystal display. There may be. In addition, the recording apparatus shown in the first embodiment includes the drive 1 and the AV decoder 17 in advance, but they may not be provided and may be connected via an IEEE1394 connector. Furthermore, in the recording apparatus of each embodiment, only a part that constitutes an essential part of the processing may be used as the recording apparatus. Since these recording apparatuses are inventions described in the present specification, any of these aspects is based on the internal configuration of the recording apparatus shown in the first to fourth embodiments. The act of manufacturing the recording device is an implementation act of the invention described in the specification of the present application. The act of transferring the recording apparatus shown in the first embodiment to the fourth embodiment for a fee or free of charge (sale if paid, or gift if free), lending or importing is also an implementation of the present invention. . The act of applying to the general user to transfer or lend them through store display, catalog solicitation, or pamphlet distribution is also an implementation of this recording device.
[0109]
(B) Since the information processing by the program shown in FIG. 16, FIG. 17, FIG. 27 and FIG. 28 is specifically realized using hardware resources, the program whose processing procedure is shown in the flowchart is as follows: Stand alone as an invention. The first to fourth embodiments have been incorporated into the recording apparatus, and the embodiments of the implementation of the program according to the present invention have been described. However, the first to fourth embodiments are separated from the recording apparatus. The single program shown in the four embodiments may be implemented. The act of implementing the program alone includes the act of producing these programs (1), the act of transferring the program for a fee (2), the act of lending (3), the act of importing (4), There is an act of offering to the public via an electronic communication line (5), an act of offering to the general user transfer or rental of the program by store display, catalog solicitation, pamphlet distribution.
[0110]
(C) The “time” element of each step executed in time series in the flowcharts of FIGS. 16, 17, 27, and 28 is considered to be an indispensable matter for specifying the invention. Then, it can be seen that the processing procedure by these flowcharts discloses the usage pattern of the recording method. If the processing of these flowcharts is performed so that the original purpose of the present invention can be achieved and the operations and effects can be achieved by performing the processing of each step in time series, the recording according to the present invention is performed. Needless to say, this is an implementation of the method.
[0111]
(D) In the first embodiment, it has been described that recording, encryption, and decryption are performed in units of VOBU. However, this is one aspect for implementing the recording apparatus according to the present invention in accordance with the DVD-Video Recording standard. Not too much. Recording may be performed in units of a plurality of VOBUs, or data units in other recording standards and corresponding to VOBUs.
(E) In the first and second embodiments, the content key Kc and the block key Kblk are generated using the medium-specific title key Kt and Krec, but the content key Kc, using the digital stream-specific encryption key, The block key Kblk may be generated. In this case, since there is no dependency on the recording medium, it is not necessary to perform decryption or encryption when reading from the recording medium or writing to the recording medium, and high-speed copying can be realized.
[0112]
(F) In the second embodiment, the content key Kc is obtained using the time-varying coefficient Dtkc existing in the same VOBU, but the time-varying coefficient Dtkc in the preceding and following VOBUs is used instead of the time-varying coefficient Dtkc. The content key Kc may be generated. In this case, if the preceding and succeeding VOBUs are deleted, the content key Kc in that VOBU can be obtained. For this reason, the consistency of the entire VOB can be maintained by using the time-varying coefficient Dtkc existing in the preceding and succeeding VOBUs.
[0113]
(G) The AV encoder 14 may encode the analog video signal and audio signal output from the VTR instead of the analog video signal and audio signal output from the analog tuner 9.
(H) In the first embodiment, the content key Kc is calculated from only the APSTB and the title key Kt. However, for compatibility with the current device, the content key Kc may be calculated from the CGMS and the title key Kt. The CCI is stored in a header called RDI-Pack or TP_extra_header. However, the CCI may be embedded in the digital stream body in the form of a digital watermark.
[0114]
【The invention's effect】
As described above, the recording medium according to the present invention is a recording medium on which a digital stream is recorded, and for each part of the digital stream, a copy indicating whether or not the part is conditional copy-free. Control information is associated, and the conditional copy-free is characterized in that it is copy-free on condition that a part of the digital stream is encrypted and written to the copy destination recording medium.
[0115]
In the recording medium, a part of the digital stream is written to the copy destination recording medium on condition that encryption is performed. That is, a part of the digital stream is freely copied as long as the condition of encryption is satisfied. This allows the user to enjoy a free private copy. Since the condition of encryption exists, an unauthorized device that cannot perform encryption / decryption is excluded from such free copy. By excluding unauthorized devices from private copies, digital streams can be prevented from being distributed to the general public.
[0116]
If importance is attached to compatibility with existing equipment, the following should be done.
That is, the copy control information includes generation management information and an extension flag. The copy control information indicates that the conditional copy is free. The generation management information is set to a value indicating that copying cannot be performed. Should be set to on (2). When the recording medium is loaded in an unsupported device that does not support the copy control information setting of “conditional copy free”, the device performs a copy operation based on the generation management information in the copy control information. Since the generation management information is set so as not to be copied, the digital stream is not copied. Since free copying with a device that does not support “conditional copy free” is prevented, flooding of duplicates of the digital stream can be prevented.
[0117]
One question arises here if we allow conditional copy with encryption. It is a question that if the digital stream copy control information that was originally encrypted for the copy prohibition setting is tampered with conditional copy free, it will be freely copied within the home network.
In order to solve this, the following may be performed.
[0118]
That is, a part of the digital stream is encrypted using a predetermined encryption key and recorded on a recording medium, and the predetermined encryption key has a value depending on whether the copy control information indicates conditional copy free. If it is an encryption key that changes, it is good (4).
A part of the digital stream is encrypted with the encryption key generated based on the copy control information. If the copy control information is altered to change the digital stream that was originally set to copy-protected to conditional copy-free, the encryption key obtained at the time of decryption is different from the encryption key used at the time of encryption. It becomes. If the encryption key is different, the digital stream cannot be decrypted. Thus, the introduction of conditional copy-free does not weaken the copyright holder protection of the digital stream.
[0119]
On the other hand, tampering cannot be detected by a device that has not generated an encryption key from copy control information. In this case, it should be as follows.
That is, a part of the digital stream is encrypted using a predetermined encryption key and recorded on a recording medium, and the part is recorded on a recording medium in association with a check code. This code is obtained by converting the copy control information using the encryption key, and the value should be changed depending on whether the copy control information indicates conditional copy free (9).
[0120]
When the encryption key is generated from the information element not related to the copy control information for compatibility with the past device, whether or not the copy control information is falsified can be detected by checking the check code. As a result, it is possible to prevent falsification of the copy control information while maintaining compatibility with past encryption methods.
[Brief description of the drawings]
FIG. 1 is a diagram showing a home network as a usage environment of a recording medium and a recording apparatus according to the present invention.
FIG. 2 is a diagram showing a process through which a VOBU is generated.
FIG. 3 is a diagram illustrating a relationship between a PES packet and an AV pack.
FIG. 4 is a diagram showing an internal configuration of a VOBU.
FIG. 5 is a diagram showing a configuration of a CCI according to the first embodiment.
FIG. 6 shows possible values of the CGMS, PSC and EPN flags and the meaning of the CGMS, PSC and EPN flags.
FIG. 7 is a diagram showing what kind of encryption process the encrypted AV data in the VOBU is generated.
FIG. 8 is a diagram showing the generation process of the code Dveri in the same notation as FIG.
FIG. 9 is a diagram showing on what basis an offset from a time-varying coefficient Dtkc to AV data is provided.
FIG. 10 is a diagram showing a home network which is a use environment of a recording medium and a recording apparatus according to the present invention.
FIG. 11 is a diagram illustrating an example of DTCP_Descriptor.
FIG. 12 is a diagram showing an internal configuration of the DVD recorder 100 according to the first embodiment.
13 is a diagram showing an internal configuration of a stream control unit 4. FIG.
FIG. 14 is a diagram in which components used for writing VOBU are extracted from the components shown in FIG.
FIG. 15 is a diagram illustrating extracted components used for VOBU reading out of the components in FIG.
FIG. 16 is a flowchart showing a processing procedure of overall control at the time of writing according to the first embodiment;
FIG. 17 is a flowchart showing a processing procedure of overall control at the time of reading in the first embodiment;
FIG. 18 is a diagram illustrating an encryption process when the content key Kc is generated from the entire CCI, in the same notation as FIG.
FIG. 19 is a diagram detailing the configuration of a partition TS recorded on a Blu-ray Disc in stages.
FIG. 20 is a diagram illustrating an internal configuration of a TS packet.
FIG. 21 is a diagram showing a process through which writing to a Blu-ray Disc is performed.
FIG. 22 is a diagram illustrating an internal configuration of TP_extra_header.
FIG. 23 is a diagram illustrating a process through which an Aligned Unit is encrypted.
FIG. 24 is a diagram illustrating an internal configuration of a recording apparatus according to a third embodiment.
FIG. 25 is a diagram illustrating extracted components used for TS packet writing out of the components shown in FIG. 24;
FIG. 26 is a diagram in which components used for reading TS packets are extracted from the components shown in FIG.
FIG. 27 is a flowchart showing a processing procedure of overall control at the time of writing according to the third embodiment;
FIG. 28 is a flowchart showing a processing procedure of overall control at the time of reading in the third embodiment.
FIG. 29 is a diagram illustrating an internal configuration of a recording apparatus according to a fourth embodiment.
FIG. 30 is a diagram illustrating Aligned Unit reading from the copy source drive apparatus.
FIG. 31 is a diagram showing Aligned Unit writing to a copy destination drive apparatus;
[Explanation of symbols]
1 drive
3 Buffer memory
4 Stream control unit
5 Memory control unit
6 Memo Risk Rumble Club
9 Analog tuner
10 Analog protect detector
11 IEEE1394 receiver
12 Digital tuner
13 TS decoder
14 AV encoder
15 Stream encryption unit
16 Stream decoding unit
17 AV decoder
18 TS encoder
19 IEEE1394 transmitter
20 IEEE1394 receiver
21 TS decoder
22 Internal clock
23 Stream encryption part
24 Stream decoding unit
25 IEEE1394 transmitter
100 DVD recorder
120 digital TV
130 HD recorder
200 remote control

Claims (22)

記録装置であって
装置外部から入力されてくる信号についてのコピー属性を判定する判定手段と、
コピー属性が条件付きコピーフリーを示す場合、条件付きコピーフリーである旨を示すコピー制御情報と対応づけて、デジタルストリームの一部分を記録媒体に書き込む書込手段と、
デジタルストリームの一部分を、所定の暗号鍵を用いて暗号化する暗号化手段とを備え、
条件付きコピーフリーは、暗号化した上で、コピー先記録媒体に書き込むことを条件としたコピーフリーであり、
前記書込手段は、暗号化された一部分を、チェックコードと対応づけて前記記録媒体に書き込み、前記コピー制御情報と前記チェックコードとを、互いに対として、前記一部分毎に前記記録媒体に記録し、
前記チェックコードは、前記暗号鍵を用いて、前記コピー制御情報を変換することで得られるコードであり、前記コピー制御情報が条件付きコピーフリーを示すか否かに応じて値が変わり、前記コピー制御情報の不正な改ざんが生じたか否かを決定するために使われる
ことを特徴とする記録装置。
Determining means for determining a copy attribute of a signal input from outside the recording apparatus;
When the copy attribute indicates conditional copy free, a writing unit that writes a part of the digital stream to the recording medium in association with copy control information indicating that the conditional copy is free;
An encryption means for encrypting a part of the digital stream using a predetermined encryption key ;
Conditional copy free, on encrypted, Ri copy free der was subject to be written to the copy destination recording medium,
The writing means writes the encrypted part on the recording medium in association with a check code, and records the copy control information and the check code as a pair on the recording medium for each part. ,
The check code is a code obtained by converting the copy control information using the encryption key, the value changes depending on whether the copy control information indicates conditional copy free, and the copy code A recording apparatus used to determine whether or not unauthorized alteration of control information has occurred .
前記書込手段は、
コピー属性が無条件のコピーフリーを示す場合も、条件付きコピーフリーである旨を示すコピー制御情報と対応づけて、デジタルストリームの一部分を記録媒体に書き込む
ことを特徴とする請求項記載の記録装置。
The writing means includes
Even if the copy attribute showing the unconditional copy free, in association with the copy control information indicating a conditional copy free, recording of claim 1, wherein a portion of the digital stream and writes into the recording medium apparatus.
前記装置外部から入力されてくる信号とは、デジタル放送信号であり、
前記コピー属性は、
デジタル放送信号におけるサービス情報に示される
ことを特徴とする請求項記載の記録装置。
The signal input from the outside of the device is a digital broadcast signal,
The copy attribute is:
Recording apparatus according to claim 1, wherein the indicated in the service information in a digital broadcast signal.
前記装置外部から入力されてくる信号とは、他の機器から伝送されてくる信号であり、
前記コピー属性は、
他の機器から伝送されているプロトコル記述子に示されている
ことを特徴とする請求項記載の記録装置。
The signal input from the outside of the device is a signal transmitted from another device,
The copy attribute is:
Recording apparatus according to claim 1, wherein the indicated protocol descriptor, which is transmitted from another device.
前記装置外部からの入力信号は、複数トランスポートパケットを含んでおり、
前記記録装置は、複数トランスポートパケットをエレメンタリーストリームに変換するトランスポートデコーダを備え、
前記デジタルストリームの一部分は、エレメンタリーストリームの一部分を含む
ことを特徴とする請求項又は記載の記録装置。
The input signal from the outside of the device includes a plurality of transport packets,
The recording apparatus includes a transport decoder that converts a plurality of transport packets into an elementary stream,
The recording apparatus according to claim 3 or 4 , wherein a part of the digital stream includes a part of an elementary stream.
前記装置外部から入力されてくる信号とは、アナログ放送信号であり、
前記コピー属性は、アナログ放送信号に重畳されている情報に示される
ことを特徴とする請求項記載の記録装置。
The signal input from the outside of the device is an analog broadcast signal,
The copy attribute, recording apparatus according to claim 1, wherein the indicated information that is superimposed on the analog broadcast signal.
前記所定の暗号鍵とは、
コピー制御情報が条件付きコピーフリーを示すか否かに応じて値が変わる暗号鍵である
ことを特徴とする請求項記載の記録装置。
The predetermined encryption key is
The recording apparatus according to claim 1 , wherein the recording apparatus is an encryption key whose value changes depending on whether or not the copy control information indicates conditional copy free.
前記コピー制御情報は、世代管理情報、拡張フラグを含み、
コピー制御情報が条件付きコピーフリーであることを示すのは、世代管理情報が、コピー不可を示す値に設定され、
拡張フラグが、オンに設定されている場合である
ことを特徴とする請求項記載の記録装置。
The copy control information includes generation management information and an extension flag,
The generation control information is set to a value indicating that copying is not possible.
Extension flag, the recording apparatus according to claim 1, characterized in that when it is set to ON.
前記暗号鍵は、デジタルストリームの一部分についてのアナログプロテクション情報を第1のパラメータ、デジタルストリームの一部分についての時変係数を第2のパラメータ、記録媒体固有のデータを第3のパラメータとした3つのパラメータから算出され、
前記アナログプロテクション情報は、デジタルストリームをアナログ信号に変換した際、アナログ信号に対してコピー制限を施すか否かを示す情報であり、
時変係数とは、デジタルストリームの再生時間軸上において、前記一部分の再生時間が何処に存在するかに応じて変動する値である
ことを特徴とする請求項記載の記録装置。
The encryption key has three parameters, the analog protection information for a part of the digital stream as the first parameter, the time-varying coefficient for the part of the digital stream as the second parameter, and the data specific to the recording medium as the third parameter. Calculated from
The analog protection information is information indicating whether or not copy restriction is applied to the analog signal when the digital stream is converted into the analog signal.
When The varying coefficient, on the playback time axis of the digital stream, the recording apparatus according to claim 1, wherein the playback time of the portion is a value that varies depending on whether there where.
前記暗号化されたデジタルストリームの一部分は、記録媒体上において時変係数から所定のオフセットを隔てて配置されており、
オフセットは、前記3つのパラメータから暗号鍵を得るまでの時間と、暗号鍵を用いてコピー制御情報を変換してチェックコードを得るまでの時間との和に基づき設定されている
ことを特徴とする請求項記載の記録装置。
A portion of the encrypted digital stream is disposed on the recording medium with a predetermined offset from a time-varying coefficient,
The offset is set based on the sum of the time until the encryption key is obtained from the three parameters and the time until the copy control information is converted using the encryption key to obtain the check code. The recording apparatus according to claim 9 .
記録媒体からデジタルストリームを読み出す読出装置であって、
前記記録媒体上においてデジタルストリームの一部分は暗号化されており、暗号化された一部分は、チェックコードが対応づけられて前記記録媒体に書き込まれており、
前記チェックコードは、前記コピー制御情報が条件付きコピーフリーを示すか否かに応じて値が変わり、前記コピー制御情報の不正な改ざんが生じたか否かを決定するために使われ、前記コピー制御情報と前記チェックコードは、互いに対となって、前記一部分毎に前記記録媒体に記録されており、
前記読出装置は、暗号化されたデジタルストリームの一部分と、当該一部分に対応づけられたコピー制御情報とを記録媒体から読み出す読出手段と、
暗号化した上で、コピー先記録媒体に書き込むことを条件とした条件付きコピーフリーをコピー制御情報が示しているか否かを判定する判定手段と、
条件付きコピーフリーをコピー制御情報が示しているなら、条件付きコピーフリーを示すコピー制御情報と共に、伝送路上のプロトコルに基づきデジタルストリームの一部分を他の機器に送信する送信手段と、
チェックコードを生成し(1)、生成されたチェックコードと、予め記録媒体に記録されているチェックコードとを照合して(2)、照合の結果、両者のチェックコードが一致した場合、前記所定の暗号鍵を用いて、読出手段により読み出されたデジタルストリームの一部分を復号する(3)復号化手段とを備え、
前記チェックコードの生成は、
前記コピー制御情報を、前記暗号鍵を用いて変換することによりなされることを特徴とする読出装置。
A reading device for reading a digital stream from a recording medium,
A part of the digital stream is encrypted on the recording medium, and the encrypted part is written to the recording medium in association with a check code,
The check code changes depending on whether or not the copy control information indicates conditional copy free, and is used to determine whether or not the copy control information has been tampered with. The information and the check code are paired with each other and recorded on the recording medium for each part.
The reading device includes a reading unit that reads a part of the encrypted digital stream and copy control information associated with the part from the recording medium,
A determination means for determining whether or not the copy control information indicates conditional copy-free on condition that writing to the copy destination recording medium after encryption,
If the copy control information indicates conditional copy free, together with copy control information indicating conditional copy free, a transmission means for transmitting a part of the digital stream to another device based on the protocol on the transmission path;
A check code is generated (1), and the generated check code is collated with a check code recorded in a recording medium in advance (2). (3) decrypting means for decrypting a part of the digital stream read by the reading means using the encryption key of
The generation of the check code is as follows:
A reading apparatus characterized in that the copy control information is converted by using the encryption key .
前記コピー制御情報は、プロトコル記述子に変換されて他の機器に送信される
ことを特徴とする請求項11記載の読出装置。
The reading apparatus according to claim 11 , wherein the copy control information is converted into a protocol descriptor and transmitted to another device.
前記読出装置は、デジタルストリームの一部分を複数トランスポートパケットに変換するトランスポートエンコーダを備え、
前記送信手段により送信されるのは、トランスポートエンコーダにより得られた複数トランスポートパケットである
ことを特徴とする請求項11記載の読出装置。
The reading device includes a transport encoder that converts a part of a digital stream into a plurality of transport packets,
The reading device according to claim 11, wherein the transmission means transmits a plurality of transport packets obtained by a transport encoder.
前記コピー制御情報は、世代管理情報、拡張フラグを含み、
送信手段による復号後のデジタルストリームの送信は、
世代管理情報が、コピー不可を示す値に設定され、拡張フラグが、オンに設定されている場合のみ行われる
ことを特徴とする請求項11記載の読出装置。
The copy control information includes generation management information and an extension flag,
Transmission of the digital stream after decoding by the transmission means is as follows:
The reading apparatus according to claim 11 , wherein the reading is performed only when the generation management information is set to a value indicating that copying cannot be performed and the extension flag is set to ON.
前記記録媒体上においてデジタルストリームの一部分は暗号化されており、
読出装置は、
コピー制御情報が条件付きコピーフリーを示すか否かに応じて値が変わる暗号鍵を用いて、読出手段により読み出されたデジタルストリームの一部分を復号する復号化手段を備え、
送信手段により送信されるのは、復号後のデジタルストリームの一部分である
ことを特徴とする請求項11記載の読出装置。
A part of the digital stream is encrypted on the recording medium,
The reading device
Using decryption means for decrypting a part of the digital stream read by the read means, using an encryption key whose value changes depending on whether the copy control information indicates conditional copy-free,
12. The reading apparatus according to claim 11, wherein the transmission means transmits a part of the decoded digital stream.
前記暗号鍵は、コピー制御情報内のアナログプロテクション情報を第1のパラメータ、デジタルストリームの一部分についての時変係数を第2パラメータ、記録媒体固有のデータを第3のパラメータとした3つのパラメータから算出され、
前記アナログプロテクション情報は、デジタルストリームをアナログ信号に変換した際、アナログ信号に対してコピー制限を施すか否かを示す情報であり、
時変係数とは、デジタルストリームの再生時間軸上において、前記一部分の再生時間が何処に存在するかに応じて変動する値である
ことを特徴とする請求項11記載の読出装置。
The encryption key is calculated from three parameters with the analog protection information in the copy control information as the first parameter, the time-varying coefficient for a part of the digital stream as the second parameter, and the recording medium specific data as the third parameter. And
The analog protection information is information indicating whether or not copy restriction is applied to the analog signal when the digital stream is converted into the analog signal.
12. The reading apparatus according to claim 11 , wherein the time-varying coefficient is a value that varies depending on where the reproduction time of the part exists on the reproduction time axis of the digital stream.
前記暗号化されたデジタルストリームの一部分は、記録媒体上において時変係数から所定のオフセットを隔てて配置されており、
オフセットは、3つのパラメータから暗号鍵を得るまでの時間と、暗号鍵を用いてコピー制御情報を変換してチェックコードを得るまでの時間との和に基づき設定されている
ことを特徴とする請求項16記載の読出装置。
A portion of the encrypted digital stream is disposed on the recording medium with a predetermined offset from a time-varying coefficient,
The offset is set based on the sum of the time until the encryption key is obtained from the three parameters and the time until the copy control information is converted using the encryption key to obtain the check code. Item 17. The reading device according to Item 16 .
記録媒体に記録されたデジタルストリームを、他の記録媒体にコピーする複製装置であって、
前記記録媒体上においてデジタルストリームの一部分は暗号化されており、暗号化された一部分は、チェックコードが対応づけられて前記記録媒体に書き込まれており、
前記チェックコードは、前記コピー制御情報が条件付きコピーフリーを示すか否かに応じて値が変わり、前記コピー制御情報の不正な改ざんが生じたか否かを決定するために使われ、前記コピー制御情報と前記チェックコードは、互いに対となって、前記一部分毎に前記記録媒体に記録されており、
前記複製装置は、
コピー制御情報が対応づけられ、暗号化されたデジタルストリームの一部分をコピー元記録媒体から読み出す読出手段と、
チェックコードを生成し、生成されたチェックコードと、予め記録媒体に記録されているチェックコードとを照合して、両者のチェックコードが一致した場合、コピー元の記録媒体に固有な暗号鍵を用いて、読出手段により読み出されたデジタルストリームの一部分を復号する復号化手段と、
復号されたデジタルストリームの一部分を、コピー先の記録媒体に固有な暗号鍵を用いて暗号化する暗号化手段と、
コピー制御情報が条件付きコピーフリーを示しているなら、暗号化されたデジタルストリームの一部分を、コピー制御情報と対応づけてコピー先記録媒体に書き込む書込手段とを備え、
前記チェックコードは、
前記コピー制御情報を、前記暗号鍵を用いて変換することにより生成される
ことを特徴とする複製装置。
A duplication device for copying a digital stream recorded on a recording medium to another recording medium,
A part of the digital stream is encrypted on the recording medium, and the encrypted part is written to the recording medium in association with a check code,
The check code changes depending on whether or not the copy control information indicates conditional copy free, and is used to determine whether or not the copy control information has been tampered with. The information and the check code are paired with each other and recorded on the recording medium for each part.
The replication device is
Reading means associated with the copy control information and reading a part of the encrypted digital stream from the copy source recording medium;
A check code is generated, and the generated check code is checked against the check code recorded in advance on the recording medium. If both check codes match, an encryption key unique to the copy source recording medium is used. Decoding means for decoding a part of the digital stream read by the reading means;
Encryption means for encrypting a part of the decrypted digital stream using an encryption key unique to the copy destination recording medium;
If the copy control information indicates conditional copy free, a writing means for writing a part of the encrypted digital stream to the copy destination recording medium in association with the copy control information,
The check code is
A duplication apparatus, wherein the copy control information is generated by converting the copy control information using the encryption key.
プログラムであって、
装置外部から入力されてくる信号についてのコピー属性を判定する判定ステップと、
コピー属性がコピーフリーを示す場合、条件付きコピーフリーであるか否かを示すコピー制御情報と対応づけて、デジタルストリームの一部分を記録媒体に書き込む書込ステップとデジタルストリームの一部分を、所定の暗号鍵を用いて暗号化する暗号化ステップとをコンピュータに行わせ、
条件付きコピーフリーは、
暗号化した上で、コピー先記録媒体に書き込むことを条件としたコピーフリーであり、
前記書込ステップでは、暗号化された一部分を、チェックコードと対応づけて記録媒体に書き込み、前記コピー制御情報と前記チェックコードとを、互いに対として、前記一部分毎に前記記録媒体に記録し、
前記チェックコードは、前記暗号鍵を用いて、前記コピー制御情報を変換することで得られるコードであり、前記コピー制御情報が条件付きコピーフリーを示すか否かに応じて値が変わり、前記コピー制御情報の不正な改ざんが生じたか否かを決定するために使われる、
ことを特徴とするプログラム。
A program,
A determination step of determining a copy attribute for a signal input from outside the apparatus;
When the copy attribute indicates copy free, a writing step for writing a part of the digital stream to the recording medium in association with copy control information indicating whether or not conditional copy free is performed, and a part of the digital stream are set to a predetermined encryption. The encryption step of encrypting with the key is performed by the computer,
Conditional copy free is
It is copy-free on condition that it is encrypted and written to the copy destination recording medium.
In the writing step, the encrypted part is written on a recording medium in association with a check code, the copy control information and the check code are recorded as a pair on the recording medium for each part,
The check code is a code obtained by converting the copy control information using the encryption key, the value changes depending on whether the copy control information indicates conditional copy free, and the copy code Used to determine whether unauthorized tampering with control information has occurred,
A program characterized by that.
記録媒体からデジタルストリームを読み出す処理をコンピュータに行わせるプログラムであって、
前記記録媒体上においてデジタルストリームの一部分は暗号化されており、暗号化された一部分は、チェックコードが対応づけられて前記記録媒体に書き込まれており、
前記チェックコードは、前記コピー制御情報が条件付きコピーフリーを示すか否かに応じて値が変わり、前記コピー制御情報の不正な改ざんが生じたか否かを決定するために使われ、前記コピー制御情報と前記チェックコードは、互いに対となって、前記一部分毎に前記記録媒体に記録されており、
前記プログラムは、
暗号化されたデジタルストリームの一部分と、当該一部分に対応づけられたコピー制御情報とを記録媒体から読み出す読出ステップと、
暗号化した上で、コピー先記録媒体に書き込むことを条件とした条件付きコピーフリーをコピー制御情報が示しているか否かを判定する判定ステップと、
条件付きコピーフリーをコピー制御情報が示しているなら、条件付きコピーフリーを示すコピー制御情報と共に、伝送路上のプロトコルに基づきデジタルストリームの一部分を他の機器に送信する送信ステップと、
チェックコードを生成し(1)、生成されたチェックコードと、予め記録媒体に記録されているチェックコードとを照合して(2)、照合の結果、両者のチェックコードが一致した場合、所定の暗号鍵を用いて、読出手段により読み出されたデジタルストリームの一部分を復号する(3)復号化ステップとをコンピュータに行わせ、
前記チェックコードの生成は、
前記コピー制御情報を、前記暗号鍵を用いて変換することによりなされることを特徴とするプログラム。
A program that causes a computer to perform a process of reading a digital stream from a recording medium,
A part of the digital stream is encrypted on the recording medium, and the encrypted part is written to the recording medium in association with a check code,
The check code changes depending on whether or not the copy control information indicates conditional copy free, and is used to determine whether or not the copy control information has been tampered with. The information and the check code are paired with each other and recorded on the recording medium for each part.
The program is
A step of reading out a portion of the encrypted digital stream and copy control information associated with the portion from the recording medium;
A determination step of determining whether or not the copy control information indicates conditional copy-free on condition that the data is encrypted and written to the copy destination recording medium;
If the copy control information indicates conditional copy free, a transmission step of transmitting a part of the digital stream to another device based on the protocol on the transmission path together with copy control information indicating conditional copy free;
A check code is generated (1), and the generated check code is checked against the check code recorded in the recording medium in advance (2). Decrypt a part of the digital stream read by the reading means using the encryption key (3) Let the computer perform the decryption step ,
The generation of the check code is as follows:
A program which is made by converting the copy control information using the encryption key .
記録方法であって、
装置外部から入力されてくる信号についてのコピー属性を判定する判定ステップと、
コピー属性がコピーフリーを示す場合、条件付きコピーフリーであるか否かを示すコピー制御情報と対応づけて、デジタルストリームの一部分を記録媒体に書き込む書込ステップとデジタルストリームの一部分を、所定の暗号鍵を用いて暗号化する暗号化ステップとをコンピュータに行わせ、
条件付きコピーフリーは、
暗号化した上で、コピー先記録媒体に書き込むことを条件としたコピーフリーであり、
前記書込ステップでは、暗号化された一部分を、チェックコードと対応づけて記録媒体に書き込み、前記コピー制御情報と前記チェックコードとを、互いに対として、前記一部分毎に前記記録媒体に記録し、
前記チェックコードは、前記暗号鍵を用いて、前記コピー制御情報を変換することで得られるコードであり、前記コピー制御情報が条件付きコピーフリーを示すか否かに応じて値が変わり、前記コピー制御情報の不正な改ざんが生じたか否かを決定するために使われる
ことを特徴とする記録方法。
A recording method,
A determination step of determining a copy attribute for a signal input from outside the apparatus;
When the copy attribute indicates copy free, a writing step for writing a part of the digital stream to the recording medium in association with copy control information indicating whether or not conditional copy free is performed, and a part of the digital stream are set to a predetermined encryption. The encryption step of encrypting with the key is performed by the computer,
Conditional copy free is
On encrypted, Ri copy free der that the condition that the writing to the copy destination recording medium,
In the writing step, the encrypted part is written on a recording medium in association with a check code, the copy control information and the check code are recorded as a pair on the recording medium for each part,
The check code is a code obtained by converting the copy control information using the encryption key, the value changes depending on whether the copy control information indicates conditional copy free, and the copy code A recording method which is used to determine whether or not unauthorized alteration of control information has occurred .
読出方法であって、
前記記録媒体上においてデジタルストリームの一部分は暗号化されており、暗号化された一部分は、チェックコードが対応づけられて前記記録媒体に書き込まれており、
前記チェックコードは、前記コピー制御情報が条件付きコピーフリーを示すか否かに応じて値が変わり、前記コピー制御情報の不正な改ざんが生じたか否かを決定するために使われ、前記コピー制御情報と前記チェックコードは、互いに対となって、前記一部分毎に前記記録媒体に記録されており、
前記読出方法は、
暗号化されたデジタルストリームの一部分と、当該一部分に対応づけられたコピー制御情報とを記録媒体から読み出す読出ステップと、
暗号化した上で、コピー先記録媒体に書き込むことを条件とした条件付きコピーフリーをコピー制御情報が示しているか否かを判定する判定ステップと、
条件付きコピーフリーをコピー制御情報が示しているなら、条件付きコピーフリーを示すコピー制御情報と共に、伝送路上のプロトコルに基づきデジタルストリームの一部分を他の機器に送信する送信ステップと、
チェックコードを生成し(1)、生成されたチェックコードと、予め記録媒体に記録されているチェックコードとを照合して(2)、照合の結果、両者のチェックコードが一致した場合、所定の暗号鍵を用いて、読出手段により読み出されたデジタルストリームの一部分を復号する(3)復号化ステップとをコンピュータに行わせ、
前記チェックコードの生成は、
前記コピー制御情報を、前記暗号鍵を用いて変換することによりなされる
ことを特徴とする読出方法。
A reading method comprising:
A part of the digital stream is encrypted on the recording medium, and the encrypted part is written to the recording medium in association with a check code,
The check code changes depending on whether or not the copy control information indicates conditional copy free, and is used to determine whether or not the copy control information has been tampered with. The information and the check code are paired with each other and recorded on the recording medium for each part.
The reading method is:
A step of reading out a portion of the encrypted digital stream and copy control information associated with the portion from the recording medium;
A determination step of determining whether or not the copy control information indicates conditional copy-free on condition that the data is encrypted and written to the copy destination recording medium;
If the copy control information indicates conditional copy free, a transmission step of transmitting a part of the digital stream to another device based on the protocol on the transmission path together with copy control information indicating conditional copy free;
A check code is generated (1), and the generated check code is checked against the check code recorded in the recording medium in advance (2). Decrypt a part of the digital stream read by the reading means using the encryption key (3) Let the computer perform the decryption step ,
The generation of the check code is as follows:
A reading method comprising: converting the copy control information by using the encryption key .
JP2003080634A 2002-03-25 2003-03-24 Recording apparatus, reading apparatus, program, and method Expired - Fee Related JP4336131B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003080634A JP4336131B2 (en) 2002-03-25 2003-03-24 Recording apparatus, reading apparatus, program, and method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2002082618 2002-03-25
JP2003080634A JP4336131B2 (en) 2002-03-25 2003-03-24 Recording apparatus, reading apparatus, program, and method

Publications (2)

Publication Number Publication Date
JP2004007494A JP2004007494A (en) 2004-01-08
JP4336131B2 true JP4336131B2 (en) 2009-09-30

Family

ID=30445877

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003080634A Expired - Fee Related JP4336131B2 (en) 2002-03-25 2003-03-24 Recording apparatus, reading apparatus, program, and method

Country Status (1)

Country Link
JP (1) JP4336131B2 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005304006A (en) * 2004-03-15 2005-10-27 Yamaha Corp Electronic music instrument and computer readable program
JP4595361B2 (en) * 2004-03-19 2010-12-08 株式会社日立製作所 Content recording / reproducing apparatus and system
JP4936652B2 (en) * 2004-08-26 2012-05-23 ソニー株式会社 Information processing apparatus, information recording medium, information processing method, and computer program
CN101027725A (en) * 2004-09-22 2007-08-29 皇家飞利浦电子股份有限公司 Method of generating verification data
US7804957B2 (en) 2005-04-23 2010-09-28 Samsung Electronics Co., Ltd. Copy protection method, cablecard module, and video system of digital cable broadcasting channel according to predetermined digital cable broadcasting standard
KR100640426B1 (en) 2005-06-14 2006-10-30 삼성전자주식회사 Method of recording broadcasting per a frame unit and the terminal therfor
JP2007164377A (en) * 2005-12-12 2007-06-28 Toshiba Corp Data processor and data processing method
JP2007235260A (en) * 2006-02-27 2007-09-13 Toshiba Corp Content recorder, recording method and program
JP4629141B2 (en) * 2006-04-25 2011-02-09 三菱電機株式会社 Video content playback apparatus and video content playback method
JP4582215B2 (en) 2008-07-10 2010-11-17 ソニー株式会社 Content data management apparatus, content data management method, and content data management program
WO2010143299A1 (en) * 2009-06-12 2010-12-16 株式会社 東芝 Information processing device
JP4875219B2 (en) * 2011-06-27 2012-02-15 株式会社東芝 Content recording apparatus, encryption apparatus, recording method, and recording program

Also Published As

Publication number Publication date
JP2004007494A (en) 2004-01-08

Similar Documents

Publication Publication Date Title
KR100912745B1 (en) Recording medium, recording apparatus, reading apparatus, and method therefore
JP4457474B2 (en) Information recording apparatus, information reproducing apparatus, information recording method, information reproducing method, information recording medium, and program providing medium
JP4422105B2 (en) Information processing apparatus system, information processing method, and computer program executed in information processing system
US6834349B1 (en) Copyright protection system for data storage and transmission
JP4336131B2 (en) Recording apparatus, reading apparatus, program, and method
JP4601959B2 (en) Information recording apparatus and method, information reproducing apparatus and method, program storage medium, program, information recording medium
US8918909B2 (en) Output control method
US20110010301A1 (en) Output control method, receiver, and receiving method
JP3775154B2 (en) Information recording method, recording apparatus, recording / reproducing method, reproducing apparatus, and recording medium
JP3630406B2 (en) Packet processing apparatus, packet processing method and storage medium therefor
JP4269289B2 (en) Information playback device
JP5530628B2 (en) Output device and output control method
JP2006195973A (en) Data processing apparatus
JP2011018410A (en) Output control method
JP5097677B2 (en) Copy control method and receiving apparatus
JP2006345234A (en) Encryption device and encryption method, decoder and decoding method, and program
JP5548246B2 (en) Digital content transmission / reception method and digital content transmission / reception system
JP5236113B2 (en) Digital content transmission / reception system and digital content transmission / reception method
JP5236112B2 (en) Digital content transmission / reception system and digital content transmission / reception method
JP5522644B2 (en) Digital content transmission / reception system and digital content transmission / reception method
JP5486800B2 (en) Output control method and output device
JP5097676B2 (en) Copy control method and receiving apparatus
JP5325512B2 (en) Digital content receiving apparatus and digital content receiving method
CN101640051A (en) Copy control method
JP2011018411A (en) Output control method, receiver, and receiving method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051130

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090224

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090407

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090602

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090626

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120703

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4336131

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120703

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130703

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees