JP2006238154A - Data processing method - Google Patents

Data processing method Download PDF

Info

Publication number
JP2006238154A
JP2006238154A JP2005051084A JP2005051084A JP2006238154A JP 2006238154 A JP2006238154 A JP 2006238154A JP 2005051084 A JP2005051084 A JP 2005051084A JP 2005051084 A JP2005051084 A JP 2005051084A JP 2006238154 A JP2006238154 A JP 2006238154A
Authority
JP
Japan
Prior art keywords
data
processing
program
temporary
key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2005051084A
Other languages
Japanese (ja)
Inventor
Tsurayuki Oishi
貫之 大石
Daisuke Takeda
大輔 武田
Hiroshi Inoue
啓 井上
Takashi Koike
隆 小池
Kazuhiro Hara
和弘 原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2005051084A priority Critical patent/JP2006238154A/en
Publication of JP2006238154A publication Critical patent/JP2006238154A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data processing method capable of enhancing the secrecy of key data. <P>SOLUTION: Program data of a first part FA1 of a data processing program EP1 are set to temporary key data D1, program data of a second part SA1 are set to temporary processing object data D2, the key data D3 are generated by data-processing the temporary processing object data D2 by using the temporary key data D1 according to the data processing program EP1, and the processing object data are data-processed by using the key data D3 according to the data processing program EP1. Thus, even if the data processing program EP1 are unfairly acquired by a third person, the temporary key data D1 and the temporary processing object data D2 are specified in the data processing program EP1, the leakage of the key data D3 is almost surely prevented, and the secrecy of the key data D3 is improved. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明はデータ処理方法に関し、例えば音楽データを記録再生する記録再生システムに適用して好適なものである。   The present invention relates to a data processing method, and is suitable for application to, for example, a recording / reproducing system for recording / reproducing music data.

従来のデータ提供システムにおいてコンテンツプロバイダは、コンテンツデータをコンテンツ鍵データで暗号化すると共に、当該コンテンツ鍵データを配信用鍵データで暗号化する。そしてコンテンツプロバイダは、これら暗号化したコンテンツデータ(以下、これを暗号化コンテンツデータと呼ぶ)及びコンテンツ鍵データ(以下、これを暗号化コンテンツ鍵データと呼ぶ)を格納したセキュアコンテナをユーザホームネットワークに供給している。   In a conventional data providing system, a content provider encrypts content data with content key data, and encrypts the content key data with distribution key data. Then, the content provider sends a secure container storing these encrypted content data (hereinafter referred to as encrypted content data) and content key data (hereinafter referred to as encrypted content key data) to the user home network. Supply.

一方、ユーザホームネットワークのネットワーク機器及びA/V機器は、内部に設けられた、耐タンパ性を持ったハードウェアモジュールでなるSAM(Secure Application Module )により配信用鍵データを用いてセキュアコンテナ内の暗号化コンテンツ鍵データを復号する。そしてネットワーク機器及びA/V機器は、SAMで得られたコンテンツ鍵データを暗号化コンテンツデータと共に復号・伸張モジュールに送出し、当該復号・伸張モジュールでコンテンツ鍵データを用いて暗号化コンテンツデータを復号した後、伸張していた(例えば、特許文献1参照)。
特開2001−22271公報(第19頁、第20頁、図10)
On the other hand, the network devices and A / V devices in the user home network use the distribution key data in the secure container by using a SAM (Secure Application Module), which is a tamper-resistant hardware module provided inside. Decrypt the encrypted content key data. Then, the network device and the A / V device send the content key data obtained by the SAM to the decryption / decompression module together with the encrypted content data, and the decryption / decompression module uses the content key data to decrypt the encrypted content data. After that, it was stretched (see, for example, Patent Document 1).
JP 2001-22271 (page 19, page 20, FIG. 10)

ところでかかる構成のネットワーク機器及びA/V機器は、外部から不正にアクセスし難いハードウェア構成のSAMにより配信用鍵データを保持している。これによりネットワーク機器及びA/V機器では、配信用鍵データが漏洩することを防止して、当該配信用鍵データを用いてコンテンツ鍵データや暗号化コンテンツデータ等が不当に利用されることを防止している。しかしながらネットワーク機器やA/V機器等では最近の高機能化に伴い、内部の回路を全てハードウェア構成としたのでは回路規模が著しく増加するため、例えば復号処理を実行する回路をソフトウェア構成にすることが提案されている。そしてネットワーク機器やA/V機器等では、復号処理を実行する回路をソフトウェア構成とする場合、復号処理を実行するための復号プログラムに鍵データを埋め込んだ状態で実装しておき、当該復号プログラムから鍵データを取り出して復号処理に用いることも提案されている。   By the way, the network device and the A / V device having such a configuration hold the distribution key data by a SAM having a hardware configuration that is difficult to illegally access from the outside. As a result, the network device and the A / V device prevent the distribution key data from leaking and prevent the content key data, encrypted content data, etc. from being used illegally using the distribution key data. is doing. However, with network devices and A / V devices, etc., with the recent increase in functionality, if all internal circuits have a hardware configuration, the circuit scale will increase significantly. For example, the circuit that executes the decoding process will have a software configuration. It has been proposed. In a network device, an A / V device, or the like, when the circuit for executing the decryption process has a software configuration, it is mounted with the key data embedded in the decryption program for executing the decryption process. It has also been proposed to extract key data and use it for decryption.

ところが復号プログラムに対し鍵データをそのまま埋め込んだのでは、例えば第三者によりかかる復号プログラムが不当に取得された場合、当該復号プログラムを構成するプログラムデータと、鍵データとのデータ構造の違いにより、復号プログラム内でその鍵データを容易に特定することができる。このためネットワーク機器やA/V機器等では、復号処理を実行する回路をソフトウェア構成とする場合、かかる復号処理に用いる鍵データの秘匿性が未だ著しく低いという問題があった。   However, when the key data is embedded in the decryption program as it is, for example, when such a decryption program is illegally obtained by a third party, due to the difference in the data structure between the program data constituting the decryption program and the key data, The key data can be easily specified in the decryption program. For this reason, in a network device, an A / V device, or the like, when the circuit for executing the decryption process has a software configuration, there is a problem that the confidentiality of the key data used for the decryption process is still extremely low.

本発明は以上の点を考慮してなされたもので、鍵データの秘匿性を向上し得るデータ処理方法を提案しようとするものである。   The present invention has been made in view of the above points, and intends to propose a data processing method capable of improving the confidentiality of key data.

かかる課題を解決するため本発明においては、データ処理方法において、データ処理プログラムの第1の部分のプログラムデータを仮の鍵データに設定し、当該データ処理プログラムの第2の部分のプログラムデータを仮の処理対象データに設定するデータ設定ステップと、データ処理プログラムに従い仮の鍵データを用いて仮の処理対象データをデータ処理することにより鍵データを生成する鍵データ生成ステップと、データ処理プログラムに従い鍵データを用いて処理対象データをデータ処理するデータ処理ステップとを設けるようにした。   In order to solve this problem, according to the present invention, in a data processing method, program data of a first part of a data processing program is set as temporary key data, and program data of a second part of the data processing program is temporarily stored. A data setting step for setting the processing target data, a key data generation step for generating key data by processing the temporary processing target data using the temporary key data according to the data processing program, and a key according to the data processing program A data processing step for processing data to be processed using data is provided.

従って本発明のデータ処理方法では、データ処理プログラムの第1及び第2の部分のプログラムデータ自体をそれぞれ仮の鍵データ及び仮の処理対象データとし、かかるデータ処理プログラムに従い仮の鍵データを用いて仮の処理対象データをデータ処理して鍵データを生成するため、第三者によりデータ処理プログラムが不当に取得された場合でも、かかるデータ処理プログラム内で仮の鍵データ及び仮の処理対象データが特定されることをほぼ確実に防止することができる。その結果、かかるデータ処理方法では、データ処理プログラムが不当に取得されても、鍵データが漏洩することをほぼ確実に防止することができる。   Therefore, in the data processing method of the present invention, the program data itself of the first and second portions of the data processing program are set as temporary key data and temporary processing target data, respectively, and the temporary key data is used according to the data processing program. Since the temporary processing target data is processed to generate key data, even if the data processing program is illegally acquired by a third party, the temporary key data and the temporary processing target data are stored in the data processing program. It can be prevented almost certainly. As a result, in such a data processing method, it is possible to almost certainly prevent the key data from leaking even if the data processing program is illegally acquired.

また本発明においては、データ可逆処理方法において、データ処理プログラムの第1の部分のプログラムデータを仮の鍵データとし、かつ当該データ処理プログラムの第2の部分のプログラムデータを仮の処理対象データとして、データ処理プログラムに従い仮の鍵データを用いて仮の処理対象データをデータ処理することにより生成される鍵データを用いて入力データを当該データ処理とは可逆なデータ可逆処理するデータ可逆処理ステップを設けるようにした。   In the present invention, in the data reversible processing method, the program data of the first part of the data processing program is used as temporary key data, and the program data of the second part of the data processing program is used as temporary process target data. A data reversible processing step for performing reversible data processing on input data using key data generated by data processing of temporary processing target data using temporary key data according to a data processing program. I made it.

従って本発明のデータ可逆処理方法では、データ処理プログラムを保持しているデータ処理回路でデータ処理プログラムの第1及び第2の部分のプログラムデータ自体をそれぞれ仮の鍵データ及び仮の処理対象データとし、かかるデータ処理プログラムに従い仮の鍵データを用いて仮の処理対象データをデータ処理して生成される鍵データと同じ鍵データを用いて入力データに対するデータ可逆処理を実行するため、当該データ処理回路に対し自己宛に鍵データを転送させることを回避することができる。その結果、かかるデータ可逆処理方法では、データ処理回路で用いられる鍵データが転送により漏洩することをほぼ確実に防止することができる。   Therefore, in the data reversible processing method according to the present invention, the program data itself of the first and second parts of the data processing program is used as temporary key data and temporary processing target data in the data processing circuit holding the data processing program. In order to execute the data reversible processing on the input data using the same key data as the key data generated by processing the temporary processing target data using the temporary key data according to the data processing program, the data processing circuit It is possible to avoid the key data being forwarded to the self. As a result, in this data reversible processing method, it is possible to almost certainly prevent the key data used in the data processing circuit from leaking due to the transfer.

さらに本発明においては、データ処理装置において、データ処理プログラムの第1の部分のプログラムデータを仮の鍵データに設定する第1のデータ設定手段と、データ処理プログラムの第2の部分のプログラムデータを仮の処理対象データに設定する第2のデータ設定手段と、データ処理プログラムに従い仮の鍵データを用いて仮の処理対象データをデータ処理することにより鍵データを生成する鍵データ生成手段と、データ処理プログラムに従い鍵データを用いて処理対象データをデータ処理するデータ処理手段とを有するデータ処理回路を設けるようにした。   Further, in the present invention, in the data processing device, the first data setting means for setting the program data of the first part of the data processing program as temporary key data and the program data of the second part of the data processing program are stored. Second data setting means for setting temporary data to be processed, key data generating means for generating key data by processing the temporary data to be processed using temporary key data according to the data processing program, and data A data processing circuit having data processing means for processing data to be processed using key data in accordance with a processing program is provided.

従って本発明のデータ処理装置では、データ処理回路において、データ処理プログラムの第1及び第2の部分のプログラムデータ自体をそれぞれ仮の鍵データ及び仮の処理対象データとし、かかるデータ処理プログラムに従い仮の鍵データを用いて仮の処理対象データをデータ処理して鍵データを生成するため、第三者によりデータ処理プログラムが不当に取得された場合でも、かかるデータ処理プログラム内で仮の鍵データ及び仮の処理対象データが特定されることをほぼ確実に防止することができる。その結果、かかるデータ処理装置では、データ処理プログラムが不当に取得されても、鍵データが漏洩することをほぼ確実に防止することができる。   Therefore, in the data processing apparatus of the present invention, in the data processing circuit, the program data itself of the first and second portions of the data processing program are set as temporary key data and temporary processing target data, respectively, and the temporary processing is performed according to the data processing program. Since the key data is generated by processing the temporary processing target data using the key data, even if the data processing program is illegally acquired by a third party, the temporary key data and the temporary data are included in the data processing program. It is possible to almost certainly prevent the processing target data from being specified. As a result, such a data processing apparatus can almost certainly prevent the key data from leaking even if the data processing program is obtained improperly.

さらに本発明においては、データ可逆処理装置において、データ処理プログラムの第1の部分のプログラムデータを仮の鍵データとし、かつ当該データ処理プログラムの第2の部分のプログラムデータを仮の処理対象データとして、データ処理プログラムに従い仮の鍵データを用いて仮の処理対象データをデータ処理することにより生成される鍵データを用いて入力データを当該データ処理とは可逆なデータ可逆処理するデータ可逆処理手段を有するデータ可逆処理回路を設けるようにした。   Further, according to the present invention, in the data reversible processing apparatus, the program data of the first part of the data processing program is used as temporary key data, and the program data of the second part of the data processing program is used as temporary processing target data. Data reversible processing means for performing reversible data reversible on input data using key data generated by data processing of temporary processing target data using temporary key data according to a data processing program A data reversible processing circuit is provided.

従って本発明のデータ可逆処理装置では、データ処理プログラムを保持しているデータ処理回路でデータ処理プログラムの第1及び第2の部分のプログラムデータ自体をそれぞれ仮の鍵データ及び仮の処理対象データとし、かかるデータ処理プログラムに従い仮の鍵データを用いて仮の処理対象データをデータ処理して生成される鍵データと同じ鍵データを用いて入力データに対するデータ可逆処理を実行するため、当該データ処理回路に対し自己のデータ可逆処理装置宛に鍵データを転送させることを回避することができる。その結果、かかるデータ可逆処理装置では、データ処理回路で用いられる鍵データが転送により漏洩することをほぼ確実に防止することができる。   Therefore, in the data reversible processing apparatus according to the present invention, the program data itself of the first and second parts of the data processing program in the data processing circuit holding the data processing program is used as temporary key data and temporary processing target data, respectively. In order to execute the data reversible processing on the input data using the same key data as the key data generated by processing the temporary processing target data using the temporary key data according to the data processing program, the data processing circuit On the other hand, it is possible to avoid transferring the key data to the self-reversible data processing apparatus. As a result, such a data reversible processing apparatus can almost certainly prevent the key data used in the data processing circuit from leaking due to the transfer.

さらに本発明においては、データ処理回路において、データ処理プログラムの第1の部分のプログラムデータを仮の鍵データに設定する第1のデータ設定手段と、データ処理プログラムの第2の部分のプログラムデータを仮の処理対象データに設定する第2のデータ設定手段と、データ処理プログラムに従い仮の鍵データを用いて仮の処理対象データをデータ処理することにより鍵データを生成する鍵データ生成手段と、データ処理プログラムに従い鍵データを用いて処理対象データをデータ処理するデータ処理手段とを設けるようにした。   Further, in the present invention, in the data processing circuit, the first data setting means for setting the program data of the first part of the data processing program as temporary key data and the program data of the second part of the data processing program are stored. Second data setting means for setting temporary data to be processed, key data generating means for generating key data by processing the temporary data to be processed using temporary key data in accordance with a data processing program, and data Data processing means for processing data to be processed using key data in accordance with a processing program is provided.

従って本発明のデータ処理回路では、データ処理プログラムの第1及び第2の部分のプログラムデータ自体をそれぞれ仮の鍵データ及び仮の処理対象データとし、かかるデータ処理プログラムに従い仮の鍵データを用いて仮の処理対象データをデータ処理して鍵データを生成するため、第三者によりデータ処理プログラムが不当に取得された場合でも、かかるデータ処理プログラム内で仮の鍵データ及び仮の処理対象データが特定されることをほぼ確実に防止することができる。その結果、かかるデータ処理回路では、データ処理プログラムが不当に取得されても、鍵データが漏洩することをほぼ確実に防止することができる。   Therefore, in the data processing circuit of the present invention, the program data itself of the first and second portions of the data processing program are set as temporary key data and temporary processing target data, respectively, and the temporary key data is used according to the data processing program. Since the temporary processing target data is processed to generate key data, even if the data processing program is illegally acquired by a third party, the temporary key data and the temporary processing target data are stored in the data processing program. It can be prevented almost certainly. As a result, such a data processing circuit can almost certainly prevent the key data from leaking even if the data processing program is illegally acquired.

さらに本発明においては、データ可逆処理回路において、データ処理プログラムの第1の部分のプログラムデータを仮の鍵データとし、かつ当該データ処理プログラムの第2の部分のプログラムデータを仮の処理対象データとして、データ処理プログラムに従い仮の鍵データを用いて仮の処理対象データをデータ処理することにより生成される鍵データを用いて入力データを当該データ処理とは可逆なデータ可逆処理するデータ可逆処理手段を設けるようにした。   Furthermore, in the present invention, in the data reversible processing circuit, the program data of the first part of the data processing program is used as temporary key data, and the program data of the second part of the data processing program is used as temporary processing target data. Data reversible processing means for performing reversible data reversible on input data using key data generated by data processing of temporary processing target data using temporary key data according to a data processing program I made it.

従って本発明のデータ可逆処理回路では、データ処理プログラムを保持しているデータ処理回路でデータ処理プログラムの第1及び第2の部分のプログラムデータ自体をそれぞれ仮の鍵データ及び仮の処理対象データとし、かかるデータ処理プログラムに従い仮の鍵データを用いて仮の処理対象データをデータ処理して生成される鍵データと同じ鍵データを用いて入力データに対するデータ可逆処理を実行するため、当該データ処理プログラムを保持しているデータ処理回路に対し自己のデータ可逆処理回路宛に鍵データを転送させることを回避することができる。その結果、かかるデータ可逆処理回路では、データ処理回路で用いられる鍵データが転送により漏洩することをほぼ確実に防止することができる。   Therefore, in the data reversible processing circuit of the present invention, the program data itself of the first and second parts of the data processing program is the temporary key data and temporary processing target data in the data processing circuit holding the data processing program, respectively. In order to execute the data reversible processing on the input data using the same key data as the key data generated by data processing the temporary processing target data using the temporary key data according to the data processing program, the data processing program It is possible to avoid transferring the key data to the data reversible processing circuit of the data processing circuit that holds the data. As a result, in such a data reversible processing circuit, it is possible to almost certainly prevent the key data used in the data processing circuit from leaking due to transfer.

さらに本発明においては、データ処理制御プログラムによりデータ処理回路に対して、データ処理プログラムの第1の部分のプログラムデータを仮の鍵データに設定し、当該データ処理プログラムの第2の部分のプログラムデータを仮の処理対象データに設定するデータ設定ステップと、データ処理プログラムに従い仮の鍵データを用いて仮の処理対象データをデータ処理することにより鍵データを生成する鍵データ生成ステップと、データ処理プログラムに従い鍵データを用いて処理対象データをデータ処理するデータ処理ステップとを実行させるようにした。   Further, in the present invention, the data processing control program sets the program data of the first part of the data processing program as temporary key data for the data processing circuit, and the program data of the second part of the data processing program. A data setting step for setting data as temporary processing target data, a key data generation step for generating key data by processing the temporary processing target data using temporary key data according to the data processing program, and a data processing program And a data processing step for processing data to be processed using key data.

従って本発明のデータ処理制御プログラムでは、データ処理回路に対し、データ処理プログラムの第1及び第2の部分のプログラムデータ自体をそれぞれ仮の鍵データ及び仮の処理対象データとし、かかるデータ処理プログラムに従い仮の鍵データを用いて仮の処理対象データをデータ処理して鍵データを生成させるため、第三者によりデータ処理プログラムが不当に取得された場合でも、かかるデータ処理プログラム内で仮の鍵データ及び仮の処理対象データが特定されることをほぼ確実に防止することができる。その結果、かかるデータ処理制御プログラムでは、データ処理プログラムが不当に取得されても、鍵データが漏洩することをほぼ確実に防止することができる。   Therefore, in the data processing control program of the present invention, the program data itself of the first and second parts of the data processing program is set as temporary key data and temporary processing target data to the data processing circuit, respectively. Temporary processing target data is processed using temporary key data to generate key data. Even if a data processing program is illegally acquired by a third party, the temporary key data within the data processing program And it can prevent almost certainly that temporary process target data are specified. As a result, such a data processing control program can almost certainly prevent the key data from leaking even if the data processing program is illegally acquired.

さらに本発明においては、データ可逆処理制御プログラムによりデータ可逆処理回路に対して、データ処理プログラムの第1の部分のプログラムデータを仮の鍵データとし、かつ当該データ処理プログラムの第2の部分のプログラムデータを仮の処理対象データとして、データ処理プログラムに従い仮の鍵データを用いて仮の処理対象データをデータ処理することにより生成される鍵データを用いて入力データを当該データ処理とは可逆なデータ可逆処理するデータ可逆処理ステップを実行させるようにした。   Further, in the present invention, the program data of the first part of the data processing program is used as temporary key data for the data reversible processing circuit by the data reversible processing control program, and the program of the second part of the data processing program. Data that is reversible to the data processing using the key data generated by processing the temporary processing target data using the temporary key data according to the data processing program as the temporary processing target data The data reversible processing step for reversible processing is executed.

従って本発明のデータ可逆処理制御プログラムでは、データ可逆処理回路に対し、データ処理プログラムを保持しているデータ処理回路でデータ処理プログラムの第1及び第2の部分のプログラムデータ自体をそれぞれ仮の鍵データ及び仮の処理対象データとし、かかるデータ処理プログラムに従い仮の鍵データを用いて仮の処理対象データをデータ処理して生成される鍵データと同じ鍵データを用いて入力データに対するデータ可逆処理を実行させるため、当該データ処理プログラムを保持しているデータ処理回路に対しデータ可逆処理回路宛に鍵データを転送させることを回避することができる。その結果、かかるデータ可逆処理制御プログラムでは、データ処理回路で用いられる鍵データが転送により漏洩することをほぼ確実に防止することができる。   Accordingly, in the data reversible processing control program of the present invention, the program data itself of the first and second parts of the data processing program is temporarily stored in the data reversible processing circuit by the data processing circuit holding the data processing program. Data and provisional processing target data, and data reversible processing is performed on the input data using the same key data as the key data generated by data processing the provisional processing target data using the provisional key data according to the data processing program. Since it is executed, it is possible to avoid transferring the key data to the data reversible processing circuit to the data processing circuit holding the data processing program. As a result, such a data reversible processing control program can almost certainly prevent the key data used in the data processing circuit from leaking due to the transfer.

本発明によれば、データ処理プログラムの第1の部分のプログラムデータを仮の鍵データに設定すると共に、当該データ処理プログラムの第2の部分のプログラムデータを仮の処理対象データに設定し、データ処理プログラムに従い仮の鍵データを用いて仮の処理対象データをデータ処理することにより鍵データを生成し、データ処理プログラムに従い鍵データを用いて処理対象データをデータ処理するようにしたことにより、第三者によりデータ処理プログラムが不当に取得された場合でも、かかるデータ処理プログラム内で仮の鍵データ及び仮の処理対象データが特定されることをほぼ確実に防止することができ、その結果、鍵データが漏洩することもほぼ確実に防止することができ、かくして鍵データの秘匿性を向上し得るデータ処理方法、データ処理装置、データ処理回路及びデータ処理制御プログラムを実現することができる。   According to the present invention, the program data of the first part of the data processing program is set as temporary key data, the program data of the second part of the data processing program is set as temporary processing target data, and the data The key data is generated by data processing the temporary processing target data using the temporary key data according to the processing program, and the processing target data is processed using the key data according to the data processing program. Even if the data processing program is obtained by the three parties illegally, it is possible to almost certainly prevent the provisional key data and the provisional processing target data from being specified in the data processing program. Data processing that can almost certainly prevent data leakage and thus improve the confidentiality of key data Law, data processing apparatus, it is possible to realize the data processing circuit and a data processing control program.

また本発明によれば、データ処理プログラムの第1の部分のプログラムデータを仮の鍵データとし、かつ当該データ処理プログラムの第2の部分のプログラムデータを仮の処理対象データとして、データ処理プログラムに従い仮の鍵データを用いて仮の処理対象データをデータ処理することにより生成される鍵データを用いて入力データを当該データ処理とは可逆なデータ可逆処理するようにしたことにより、データ処理プログラムを保持しているデータ処理回路に対し自己宛に鍵データを転送させることを回避することができ、その結果、データ処理回路で用いられる鍵データが転送により漏洩することをほぼ確実に防止することができ、かくして鍵データの秘匿性を向上し得るデータ可逆処理方法、データ可逆処理装置、データ可逆処理回路及びデータ可逆処理制御プログラムを実現することができる。   According to the invention, the program data of the first part of the data processing program is used as temporary key data, and the program data of the second part of the data processing program is used as temporary processing target data according to the data processing program. By using key data generated by data processing of temporary processing target data using temporary key data, the input data is subjected to data reversible processing that is reversible to the data processing, thereby enabling the data processing program to It is possible to prevent the key data used in the data processing circuit from being leaked due to the transfer, as a result, it is possible to avoid transferring the key data to the data processing circuit held by itself. Data reversible processing method, data reversible processing apparatus, and data reversible processing capable of improving the confidentiality of key data It is possible to realize the road and data lossless processing control program.

以下図面について、本発明の一実施の形態を詳述する。   Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

(1)第1の実施の形態
図1において、1は全体として第1の実施の形態による記録再生システムを示し、ユーザの使用する記録再生装置2がネットワークNTを介して楽曲提供サーバ3と通信し得るようになされている。
(1) 1st Embodiment In FIG. 1, 1 shows the recording / reproducing system by 1st Embodiment as a whole, and the recording / reproducing apparatus 2 which a user uses communicates with the music provision server 3 via network NT. It is made to be able to do.

この場合、図2に示すように、記録再生装置2は、当該記録再生装置2の筐体表面やリモートコントローラ(図示せず)に設けられた各種操作ボタンでなる操作入力部10がユーザによって操作されると、当該操作入力部10でこれを認識し、その操作に応じた操作入力信号を入力処理部11に送出する。入力処理部11は、供給される操作入力信号に対して所定の処理を施すことにより、当該操作入力信号を操作コマンドに変換し、これをバス12を介して中央処理ユニット(CPU:Central Processing Unit )13に送出する。   In this case, as shown in FIG. 2, the recording / reproducing apparatus 2 is operated by the user by an operation input unit 10 including various operation buttons provided on the surface of the casing of the recording / reproducing apparatus 2 or a remote controller (not shown). Then, the operation input unit 10 recognizes this and sends an operation input signal corresponding to the operation to the input processing unit 11. The input processing unit 11 converts the operation input signal into an operation command by performing predetermined processing on the supplied operation input signal, and converts the operation command signal to a central processing unit (CPU) via the bus 12. ) 13.

中央処理ユニット13は、ROM(Read Only Memory)14又はハードディスクドライブ15に予め記憶されている基本プログラムやアプリケーションプログラム等の各種プログラムをバス12を介してRAM(Random Access Memory)16に読み出す。そして中央処理ユニット13は、RAM16上で展開したこれら各種プログラムに従って全体を制御すると共に、所定の演算処理や、入力処理部11から与えられる操作コマンドに応じた各種処理を実行する。   The central processing unit 13 reads various programs such as basic programs and application programs stored in advance in a ROM (Read Only Memory) 14 or a hard disk drive 15 into a RAM (Random Access Memory) 16 via the bus 12. The central processing unit 13 controls the whole in accordance with these various programs developed on the RAM 16, and executes predetermined arithmetic processing and various processing according to operation commands given from the input processing unit 11.

これにより中央処理ユニット13は、通信処理部17及びネットワークインタフェース18を順次介してネットワークNTに接続し、当該ネットワークNT上の楽曲提供サーバ3にアクセスすることができる。この場合、楽曲提供サーバ3は、音楽配信用の多数の音楽データを、それぞれ圧縮符号化処理した後、記録再生装置2で復号処理に用いられる鍵データと同じ鍵データを用いて暗号化して得られる暗号化音楽データとして蓄積している。因みに音楽配信用の音楽データは、ATRAC3(Adaptive Transform Acoustic Coding 3)、AAC(Advanced Audio Coding )、WMA(Windows(登録商標) Media Audio )、RealAUDIO G2 Music Codec、MP3(MPEG Audio Layer-3)等の圧縮符号化方式で圧縮符号化されている。   Thereby, the central processing unit 13 can connect to the network NT via the communication processing unit 17 and the network interface 18 in order, and can access the music providing server 3 on the network NT. In this case, the music providing server 3 obtains by encrypting a large number of music data for music distribution using the same key data as the key data used for the decryption process in the recording / playback apparatus 2 after compression-encoding processing. Is stored as encrypted music data. Incidentally, music data for music distribution includes ATRAC3 (Adaptive Transform Acoustic Coding 3), AAC (Advanced Audio Coding), WMA (Windows (registered trademark) Media Audio), RealAudio G2 Music Codec, MP3 (MPEG Audio Layer-3), etc. The compression encoding method is used.

従って中央処理ユニット13は、ユーザにより操作入力部10を介して所望の楽曲を配信要求するための操作入力信号が入力されると、これに応じて楽曲提供サーバ3にアクセスし所望の楽曲を配信要求する。その結果、中央処理ユニット13は、楽曲提供サーバ3から配信される所望の楽曲の暗号化音楽データをネットワークインタフェース18及び通信処理部17を順次介して取り込む。これにより中央処理ユニット13は、かかる暗号化音楽データをハードディスクドライブ15に送出してハードディスクに記録する。   Therefore, when an operation input signal for requesting distribution of desired music is input by the user via the operation input unit 10, the central processing unit 13 accesses the music providing server 3 and distributes the desired music accordingly. Request. As a result, the central processing unit 13 takes in the encrypted music data of the desired music distributed from the music providing server 3 via the network interface 18 and the communication processing unit 17 in order. Thus, the central processing unit 13 sends the encrypted music data to the hard disk drive 15 and records it on the hard disk.

そして中央処理ユニット13は、ユーザにより操作入力部10を介してハードディスクドライブ15内の暗号化音楽データが指定され、かつ当該指定された暗号化音楽データを再生要求する操作入力信号が入力されると、これに応じてハードディスクドライブ15から、当該指定された暗号化音楽データを読み出してデータ処理回路19に送出する。データ処理回路19は、鍵データを用いて暗号化音楽データを復号処理して圧縮符号化音楽データを生成する。またデータ処理回路19は、かかる圧縮符号化音楽データを伸張処理し、得られた音楽データを音声処理部20に送出する。音声処理部20は、データ処理回路19から与えられた音楽データに対してデジタルアナログ変換や増幅等の音声処理を施し、得られた音楽信号をスピーカ21に送出する。これにより音声処理部20は、スピーカ21から音楽信号に基づく楽曲を出力させユーザに聴かせることができる。   The central processing unit 13 receives the operation input signal for requesting reproduction of the designated encrypted music data and the designated music data in the hard disk drive 15 being designated by the user via the operation input unit 10. In response to this, the designated encrypted music data is read from the hard disk drive 15 and sent to the data processing circuit 19. The data processing circuit 19 decrypts the encrypted music data using the key data and generates compressed encoded music data. The data processing circuit 19 decompresses the compression-encoded music data and sends the obtained music data to the audio processing unit 20. The sound processing unit 20 performs sound processing such as digital-analog conversion and amplification on the music data given from the data processing circuit 19 and sends the obtained music signal to the speaker 21. As a result, the audio processing unit 20 can output music based on the music signal from the speaker 21 and allow the user to listen to the music.

ここで図3に示すように、データ処理回路19は、耐タンパ性を有するメモリ30と、DSP(Digital Signal Processor)31とをそれぞれ構成するIC(Integrated Circuit)チップが実装された回路基板として形成されている。この場合、データ処理回路19は、メモリ30に予め基本動作用のデータ処理制御プログラム等を記憶している。そしてデータ処理回路19のDSP31は、メモリ30内のデータ処理制御プログラムに従って、復号プログラムを用いた復号処理や伸張プログラムを用いた伸張処理を実行すると共に、処理対象データを実際に復号処理する際に用いる鍵データ(以下、これを特に実使用鍵データと呼ぶ)を生成する鍵データ生成処理等も実行する。しかしながら以下に示す図3のデータ処理回路19の構成については、説明の便宜上、DSP31の各種機能(すなわち、データ処理制御プログラムや復号プログラム及び伸張プログラムに従って実行可能な各種機能)を、機能ブロックに見立てて(すなわち、データ設定部32、鍵データ生成部33、コーデック処理部34)説明する。   As shown in FIG. 3, the data processing circuit 19 is formed as a circuit board on which an IC (Integrated Circuit) chip that constitutes a tamper-resistant memory 30 and a DSP (Digital Signal Processor) 31 is mounted. Has been. In this case, the data processing circuit 19 stores a data processing control program for basic operation in the memory 30 in advance. The DSP 31 of the data processing circuit 19 executes the decoding process using the decoding program and the expansion process using the expansion program in accordance with the data processing control program in the memory 30, and at the time of actually decoding the processing target data. A key data generation process for generating key data to be used (hereinafter referred to as actual use key data) is also executed. However, in the configuration of the data processing circuit 19 shown in FIG. 3 described below, various functions of the DSP 31 (that is, various functions that can be executed according to the data processing control program, the decoding program, and the decompression program) are assumed to be functional blocks for convenience of explanation. (Ie, data setting unit 32, key data generation unit 33, codec processing unit 34).

まず記録再生装置2の製造メーカは、データ処理回路19において暗号化音楽データを復号処理するためのデータ復号プログラムや、圧縮符号化音楽データを伸張処理するための伸張プログラム等をまとめたファームウェアを、予め所定の実使用鍵データを用いて暗号化処理することにより暗号化ファームウェアを生成している。また製造メーカは、かかる暗号化ファームウェアを記録再生装置2のROM14又はハードディスクドライブ15に記憶している。そして中央処理ユニット13は、記録再生装置2を起動させる毎に、ROM14又はハードディスクドライブ15からその暗号化ファームウェアを読み出し、当該読み出した暗号化ファームウェアをデータ処理回路19に転送してメモリ30に一時記憶する。   First, the manufacturer of the recording / reproducing apparatus 2 includes a firmware that summarizes a data decryption program for decrypting encrypted music data in the data processing circuit 19 and a decompression program for decompressing compression-encoded music data. Encryption firmware is generated by performing encryption processing using predetermined actual use key data in advance. The manufacturer stores such encrypted firmware in the ROM 14 or the hard disk drive 15 of the recording / reproducing apparatus 2. The central processing unit 13 reads the encrypted firmware from the ROM 14 or the hard disk drive 15 every time the recording / reproducing apparatus 2 is started up, transfers the read encrypted firmware to the data processing circuit 19 and temporarily stores it in the memory 30. To do.

この場合、データ処理回路19のメモリ30には、データ処理制御プログラムに加えて、予め暗号化ファームウェアを復号処理するための復号プログラム(以下、これを特にファームウェア復号プログラムと呼ぶ)も記憶している。従って図4に示すように、DSP31の一部機能を機能ブロックに見立てて示すデータ設定部32は、記録再生装置2が起動すると、メモリ30からファームウェア復号プログラムEP1を読み出し、予め設定された初期設定情報に基づいて、かかるファームウェア復号プログラムEP1内の予め選定された1つの部分でなる第1の部分FA1を判別すると共に、当該第1の部分FA1と一部重複する1つの部分でなる第2の部分SA1を判別する。そしてデータ設定部32は、ファームウェア復号プログラムEP1を形成するプログラムデータ全体のうち第1の部分FA1のプログラムデータを、当該ファームウェア復号プログラムEP1に従って実行可能な復号処理に用いる仮の鍵データD1に設定する。またデータ設定部32は、ファームフェア復号プログラムEP1を形成するプログラムデータ全体のうち第2の部分SA1のプログラムデータを、当該ファームウェア復号プログラムEP1に従って実行可能な復号処理に用いる仮の処理対象データD2に設定する。このようにしてデータ設定部32は、ファームウェア復号プログラムEP1を用いて設定した仮の鍵データD1及び仮の処理対象データD2を、DSP31の一部機能を機能ブロックに見立てて示す鍵データ生成部33に送出する。   In this case, in addition to the data processing control program, the memory 30 of the data processing circuit 19 also stores in advance a decryption program for decrypting the encrypted firmware (hereinafter referred to as a firmware decryption program). . Therefore, as shown in FIG. 4, the data setting unit 32 that shows some functions of the DSP 31 as functional blocks reads the firmware decoding program EP1 from the memory 30 when the recording / reproducing apparatus 2 is activated, and sets initial settings that are set in advance. Based on the information, the first part FA1 consisting of one part selected in advance in the firmware decoding program EP1 is discriminated, and the second part consisting of one part partially overlapping with the first part FA1. The part SA1 is determined. Then, the data setting unit 32 sets the program data of the first portion FA1 in the entire program data forming the firmware decryption program EP1 as temporary key data D1 used for decryption processing that can be executed according to the firmware decryption program EP1. . In addition, the data setting unit 32 uses the program data of the second part SA1 in the entire program data forming the firmware decryption program EP1 as temporary processing target data D2 used for decryption processing that can be executed according to the firmware decryption program EP1. Set. In this way, the data setting unit 32 shows the temporary key data D1 and the temporary processing target data D2 set by using the firmware decryption program EP1, with the partial function of the DSP 31 as function blocks. To send.

鍵データ生成部33は、データ設定部32から仮の鍵データD1及び仮の処理対象データD2が与えられると、メモリ30からファームウェア復号プログラムEP1を読み出す。そして鍵データ生成部33は、かかるファームウェア復号プログラムEP1に従い仮の鍵データD1を用いて仮の処理対象データD2を復号処理する。これにより鍵データ生成部33は、かかる復号処理によって得た処理結果(すなわち、演算結果)を、暗号化ファームウェアの復号処理に実際に用いる実使用鍵データD3としてメモリ30に送出し、当該メモリ30にその実使用鍵データD3を記憶する。   The key data generation unit 33 reads the firmware decryption program EP1 from the memory 30 when provisional key data D1 and provisional processing target data D2 are given from the data setting unit 32. Then, the key data generation unit 33 decrypts the temporary processing target data D2 using the temporary key data D1 in accordance with the firmware decryption program EP1. As a result, the key data generation unit 33 sends the processing result (that is, the operation result) obtained by the decryption process to the memory 30 as the actual use key data D3 actually used for the decryption process of the encrypted firmware. The actual use key data D3 is stored.

これによりDSP31の一部機能を機能ブロックに見立てて示すコーデック処理部34は、記録再生装置2が起動すると、メモリ30から中央処理ユニット13により一時記憶された暗号化ファームウェアと、鍵データ生成部33により生成された実使用鍵データD3とをファームウェア復号プログラムEP1と共に読み出す。そしてコーデック処理部34は、かかるファームウェア復号プログラムEP1に従い実使用鍵データD3を用いて暗号化ファームウェアを復号処理することにより、暗号化を解いたファームウェアを生成し、当該生成したファームウェアをメモリ30に送出して記憶する。このようにしてコーデック処理部34は、ファームウェアとして、暗号化音楽データを復号処理するための復号プログラム(以下、これを特にデータ復号プログラムと呼ぶ)EP2や、圧縮符号化音楽データを伸張処理するための伸張プログラム等を得ることができる。   As a result, the codec processing unit 34 showing the partial functions of the DSP 31 as function blocks, when the recording / reproducing apparatus 2 is activated, the encrypted firmware temporarily stored in the central processing unit 13 from the memory 30 and the key data generation unit 33. The actual use key data D3 generated by the above is read together with the firmware decryption program EP1. The codec processing unit 34 generates the decrypted firmware by decrypting the encrypted firmware using the actual use key data D3 in accordance with the firmware decryption program EP1, and sends the generated firmware to the memory 30. And remember. In this way, the codec processing unit 34 performs, as firmware, a decryption program EP2 for decrypting encrypted music data (hereinafter referred to as a data decryption program in particular) EP2 and a decompression process for compression-encoded music data. Can be obtained.

またデータ設定部32は、メモリ30に対し暗号化の解かれたファームウェアとしてデータ復号プログラムEP2が記憶されると、当該メモリ30からそのデータ復号プログラムEP2を読み出し、初期設定情報に基づいて、かかるデータ復号プログラムEP2内の予め選定された1つの部分でなる第1の部分FA2を判別すると共に、当該第1の部分FA2と一部重複する1つの部分でなる第2の部分SA2を判別する。そしてデータ設定部32は、データ復号プログラムEP2を形成するプログラムデータ全体のうち第1の部分FA2のプログラムデータを、当該データ復号プログラムEP2に従って実行可能な復号処理に用いる仮の鍵データD4に設定する。またデータ設定部32は、データ復号プログラムEP2を形成するプログラムデータ全体のうち第2の部分SA2のプログラムデータを、当該データ復号プログラムEP2に従って実行可能な復号処理に用いる仮の処理対象データD5に設定する。このようにしてデータ設定部32は、データ復号プログラムEP2を用いて設定した仮の鍵データD4及び仮の処理対象データD5を鍵データ生成部33に送出する。   Further, when the data decryption program EP2 is stored as the decrypted firmware in the memory 30, the data setting unit 32 reads the data decryption program EP2 from the memory 30, and based on the initial setting information, the data setting program 32 A first part FA2 consisting of one part selected in advance in the decryption program EP2 is discriminated, and a second part SA2 consisting of one part partially overlapping with the first part FA2 is discriminated. Then, the data setting unit 32 sets the program data of the first portion FA2 in the entire program data forming the data decryption program EP2 as temporary key data D4 used for decryption processing that can be executed according to the data decryption program EP2. . In addition, the data setting unit 32 sets the program data of the second part SA2 in the entire program data forming the data decoding program EP2 as temporary processing target data D5 used for the decoding process executable according to the data decoding program EP2. To do. In this way, the data setting unit 32 sends the temporary key data D4 and temporary processing target data D5 set using the data decryption program EP2 to the key data generation unit 33.

鍵データ生成部33は、データ設定部32から仮の鍵データD4及び仮の処理対象データD5が与えられると、メモリ30からデータ復号プログラムEP2を読み出す。そして鍵データ生成部33は、かかるデータ復号プログラムEP2に従い仮の鍵データD4を用いて仮の処理対象データD5を復号処理する。これにより鍵データ生成部33は、かかる復号処理によって得た処理結果(すなわち、演算結果)を、暗号化音楽データの復号処理に実際に用いる実使用鍵データD6としてメモリ30に送出し、かくしてメモリ30にその実使用鍵データD6を記憶する。   The key data generation unit 33 reads the data decryption program EP2 from the memory 30 when provisional key data D4 and provisional processing target data D5 are given from the data setting unit 32. The key data generation unit 33 decrypts the temporary processing target data D5 using the temporary key data D4 according to the data decryption program EP2. Thus, the key data generation unit 33 sends the processing result (that is, the operation result) obtained by the decryption process to the memory 30 as the actual use key data D6 actually used for the decryption process of the encrypted music data, and thus the memory 30 stores the actual use key data D6.

この状態で中央処理ユニット13は、ユーザにより暗号化音楽データの再生が要求されると、ハードディスクドライブ15から暗号化音楽データを読み出してデータ処理回路19に転送しメモリ30に一時記憶する。このときデータ処理回路19のコーデック処理部34は、メモリ30からデータ復号プログラムEP2と、暗号化音楽データの復号処理に用いる実使用鍵データD6とを読み出すと共に、伸張プログラムを読み出し、さらに一時記憶された暗号化音楽データも読み出す。そしてコーデック処理部34は、データ復号プログラムEP2に従い実使用鍵データD6を用いて暗号化音楽データを復号処理することにより圧縮符号化音楽データを生成する。またコーデック処理部34は、伸張プログラムに従い圧縮符号化音楽データを伸張処理することにより音楽データを生成し、当該生成した音楽データを音声処理部20に送出する。   In this state, when the user requests the reproduction of the encrypted music data, the central processing unit 13 reads the encrypted music data from the hard disk drive 15, transfers it to the data processing circuit 19, and temporarily stores it in the memory 30. At this time, the codec processing unit 34 of the data processing circuit 19 reads the data decryption program EP2 and the actual use key data D6 used for the decryption processing of the encrypted music data from the memory 30, and also reads the decompression program and further temporarily stores it. Also read encrypted music data. Then, the codec processing unit 34 generates compression-encoded music data by decoding the encrypted music data using the actual use key data D6 in accordance with the data decoding program EP2. The codec processing unit 34 generates music data by expanding the compression-encoded music data according to the expansion program, and sends the generated music data to the audio processing unit 20.

このようにしてデータ処理回路19では、一般に復号処理については、鍵データ及び処理対象データとしてそれぞれ任意のデータを用いることが可能であるため、かかる利点を利用してファームウェア復号プログラムEP1及びデータ復号プログラムEP2内の第1及び第2の部分FA1、FA2及びSA1、SA2のプログラムデータ自体をそれぞれ仮の鍵データD1、D4及び仮の処理対象データD2、D5として用いるようにした。そしてデータ処理回路19では、これら仮の鍵データD1及びD4を用いて仮の処理対象データD2及びD5を復号処理し、その処理結果として実使用鍵データD3及びD6を生成している。このため図5に示すように、データ処理回路19では、言い換えれば、ファームウェア復号プログラムEP1及びデータ復号プログラムEP2に対し、実使用鍵データD3及びD6をあたかも外観上当該実使用鍵データD3及びD6とは判別不可能なように擬装処理して(すなわち、仮の鍵データD1、D4及び仮の処理対象データD2、D5として)埋め込んでいると言うことができる。   In this way, in the data processing circuit 19, since it is generally possible to use arbitrary data as the key data and the data to be processed for the decryption process, the firmware decryption program EP1 and the data decryption program are utilized using such advantages. The program data itself of the first and second portions FA1, FA2, SA1, and SA2 in EP2 are used as temporary key data D1 and D4 and temporary processing target data D2 and D5, respectively. The data processing circuit 19 decrypts the temporary processing target data D2 and D5 using the temporary key data D1 and D4, and generates actual use key data D3 and D6 as the processing results. For this reason, as shown in FIG. 5, in the data processing circuit 19, in other words, the actual use key data D3 and D6 are given to the firmware decryption program EP1 and the data decryption program EP2 as if they were actually used key data D3 and D6. Can be said to be embedded so as to be indistinguishable (that is, as temporary key data D1, D4 and temporary processing target data D2, D5).

ところで復号データに対し鍵データを埋め込む鍵データ埋込手法としては、図6(A)に示すように復号プログラムEP3に対して、実使用鍵データD7自体をシャッフリング等の所定の処理手法で擬装処理することにより得られる鍵擬装データD8として埋め込むことも考えられる。しかしながらかかる鍵データ埋込手法では、復号プログラムEP3全体のデータサイズがこれに埋め込む鍵擬装データD8の分だけ増加する。またかかる鍵データ埋込手法では、メモリに対し、鍵擬装データD8を埋め込んだ復号プログラムEP3と共に、当該鍵擬装データD8の擬装を解除して実使用鍵データD7を得るための擬装解除プログラムCCP1も記憶しておく必要がある。このためかかる鍵データ埋込手法では、復号プログラムEP3を記憶するためのメモリの容量が、当該復号プログラムEP3と共に擬装解除プログラムCCP1も記憶する必要があるために大幅に増大する。これに対して図6(B)に示すように本実施の形態によるデータ処理回路19では、ファームウェア復号プログラムEP1及びデータ復号プログラムEP2内のプログラムデータ自体を仮の鍵データD1、D4及び仮の処理対象データD2、D5とし、これら仮の鍵データD1、D4及び仮の処理対象データD2、D5を用いて実使用鍵データD3及びD6を生成するため、当該ファームウェア復号プログラムEP1及びデータ復号プログラムEP2全体のデータサイズが鍵擬装データD8の分だけ増加することを回避することができる。またデータ処理回路19では、実使用鍵データD3及びD6自体を擬装しているわけではないため、メモリ30に対し擬装解除プログラムCCP1を記憶する必要もない。よってデータ処理回路19では、メモリ30の容量が鍵擬装データD8や擬装解除プログラムCCP1の分だけ増大することを回避することができる。   By the way, as a key data embedding method for embedding the key data in the decrypted data, as shown in FIG. 6A, the actual use key data D7 itself is impersonated by a predetermined processing method such as shuffling for the decryption program EP3. It is also conceivable to embed it as key disguise data D8 obtained by doing so. However, in this key data embedding method, the data size of the entire decryption program EP3 increases by the amount of the key disguise data D8 embedded therein. Also, in this key data embedding method, a disguise canceling program CCP1 for canceling the disguise of the key disguise data D8 and obtaining the actual use key data D7 is provided together with the decryption program EP3 in which the key disguise data D8 is embedded in the memory. It is necessary to remember. For this reason, in this key data embedding method, the capacity of the memory for storing the decryption program EP3 needs to be stored together with the decryption program EP3, so that the disguise cancellation program CCP1 is also greatly increased. On the other hand, as shown in FIG. 6B, in the data processing circuit 19 according to the present embodiment, the program data itself in the firmware decryption program EP1 and the data decryption program EP2 is converted into temporary key data D1, D4 and temporary processing. Since the target data D2 and D5 are used, and the temporary key data D1 and D4 and the temporary processing target data D2 and D5 are used to generate the actual use key data D3 and D6, the firmware decryption program EP1 and the data decryption program EP2 as a whole Can be prevented from increasing by the amount of the key disguise data D8. Further, the data processing circuit 19 does not disguise the actual use key data D3 and D6 itself, so that it is not necessary to store the disguise cancellation program CCP1 in the memory 30. Therefore, in the data processing circuit 19, it is possible to avoid an increase in the capacity of the memory 30 by the amount of the key disguise data D8 and the disguise cancellation program CCP1.

そしてかかる鍵データ埋込手法では、復号プログラムEP3内で鍵擬装データD8が当該復号プログラムEP3としては何ら意味をなさない異別なものであるため、鍵擬装データD8を復号プログラムEP3から容易に区別可能となる。これに対して本実施の形態によるデータ処理回路19では、ファームウェア復号プログラムEP1及びデータ復号プログラムEP2内のプログラムデータ自体を仮の鍵データD1、D4及び仮の処理対象データD2、D5としているため、これらをファームウェア復号プログラムEP1及びデータ復号プログラムEP2からは容易に区別し得ないようにし、その結果、実使用鍵データD3及びD6も漏洩し難くすることができる。よって本発明においては、かかる鍵データ埋込手法を採用するのではなく、ファームウェア復号プログラムEP1及びデータ復号プログラムEP2に対し、実使用鍵データD3及びD6をプログラムデータ自体である仮の鍵データD1、D4及び仮の処理対象データD2、D5として埋め込んでいる。   In this key data embedding method, the key impersonation data D8 is different from the decryption program EP3 because the key impersonation data D8 is different from the decryption program EP3. It becomes possible. On the other hand, in the data processing circuit 19 according to the present embodiment, the program data itself in the firmware decryption program EP1 and the data decryption program EP2 is set as temporary key data D1, D4 and temporary processing target data D2, D5. These cannot be easily distinguished from the firmware decryption program EP1 and the data decryption program EP2, and as a result, the actual use key data D3 and D6 can be made difficult to leak. Therefore, in the present invention, instead of adopting such a key data embedding method, temporary key data D1, which is program data itself, is used as the actual key data D3 and D6 for the firmware decryption program EP1 and the data decryption program EP2. D4 and temporary processing target data D2 and D5 are embedded.

なお、第1の実施の形態の場合、例えば記録再生装置2の製造メーカでは、データ処理回路19と同様に、ファームウェア復号プログラムEP1内の第1及び第2の部分FA1及びSA1のプログラムデータを仮の鍵データD1及び仮の処理対象データD2に設定し、当該ファームウェア復号プログラムEP1に従い仮の鍵データD1を用いて仮の処理対象データD2を復号処理することにより実使用鍵データD3を生成している。また製造メーカでは、このように実使用鍵データD3を生成すると、ファームウェア復号プログラムEP1に従って実行可能な復号処理とは可逆な暗号化処理を実行するための暗号化プログラムに従い、かかる実使用鍵データD3を用いてファームウェアを暗号化処理することにより暗号化ファームウェアを生成している。そして製造メーカでは、記録再生装置2の製造時、当該記録再生装置2のROM14又はハードディスクドライブ15に対し、かかる暗号化ファームウェアを記憶している。従ってデータ処理回路19は、中央処理ユニット13から転送された暗号化ファームウェアを、暗号化処理の際に用いられた実使用鍵データD3と同じ実使用鍵データD3を用いて復号処理し、かくして暗号化を解いたファームウェアを得ることができる。なお本発明では、復号処理と暗号化処理とのように、処理対象データに対して一方のデータ処理を実行し、その結果得られた処理結果データに対して他方のデータ処理を実行して元の処理対象データを得ることができる場合、これら一方のデータ処理と他方のデータ処理との関係を、互いに可逆な関係と呼ぶ。   In the case of the first embodiment, for example, the manufacturer of the recording / reproducing apparatus 2 temporarily stores the program data of the first and second portions FA1 and SA1 in the firmware decryption program EP1 as in the data processing circuit 19. Key data D1 and temporary processing target data D2 are set, and the actual processing key data D3 is generated by decrypting the temporary processing target data D2 using the temporary key data D1 according to the firmware decryption program EP1. Yes. When the manufacturer generates the actual use key data D3 as described above, the actual use key data D3 is generated in accordance with an encryption program for executing an encryption process reversible with the decryption process that can be executed according to the firmware decryption program EP1. The encrypted firmware is generated by encrypting the firmware using. The manufacturer stores the encrypted firmware in the ROM 14 or the hard disk drive 15 of the recording / reproducing apparatus 2 when the recording / reproducing apparatus 2 is manufactured. Therefore, the data processing circuit 19 decrypts the encrypted firmware transferred from the central processing unit 13 using the same actual use key data D3 as the actual use key data D3 used in the encryption process, and thus encrypts the encrypted firmware. You can get the firmware that was solved. In the present invention, as in the decryption process and the encryption process, one data process is performed on the processing target data, and the other data process is performed on the process result data obtained as a result. When the data to be processed can be obtained, the relationship between the one data processing and the other data processing is called a reversible relationship.

実際上、データ処理回路19のDSP31は、メモリ30に予め記憶されたデータ処理制御プログラムに従って、暗号化ファームウェアを復号処理する際の第1のデータ処理制御処理手順や、暗号化音楽データを復号処理する際の第2のデータ処理制御処理手順を実行している。まずDSP31は、記録再生装置2が起動すると、データ処理制御プログラムに従って図7に示す第1のデータ処理制御処理手順RT1を開始する。DSP31は、第1のデータ処理制御処理手順RT1を開始すると、ステップSP1において初期設定情報に基づきファームフェア復号プログラムEP1内の第1の部分FA1を判別し、当該判別した第1の部分FA1のプログラムデータを仮の鍵データD1に設定する。またDSP31は、ファームウェア復号プログラムEP1内の第2の部分SA1を判別し、当該判別した第2の部分SA1のプログラムデータを仮の処理対象データD2に設定して、次のステップSP2に移る。   In practice, the DSP 31 of the data processing circuit 19 performs the first data processing control processing procedure for decrypting the encrypted firmware and the decryption processing of the encrypted music data according to the data processing control program stored in the memory 30 in advance. The second data processing control processing procedure is executed. First, when the recording / reproducing apparatus 2 is activated, the DSP 31 starts the first data processing control processing procedure RT1 shown in FIG. 7 according to the data processing control program. When starting the first data processing control processing procedure RT1, the DSP 31 determines the first part FA1 in the firmware decoding program EP1 based on the initial setting information in step SP1, and determines the program of the determined first part FA1. Data is set to temporary key data D1. Further, the DSP 31 determines the second part SA1 in the firmware decryption program EP1, sets the program data of the determined second part SA1 in the temporary processing target data D2, and moves to the next step SP2.

ステップSP2においてDSP31は、ファームウェア復号プログラムEP1に従い仮の鍵データD1を用いて仮の処理対象データD2を復号処理することにより実使用鍵データD3を生成して、次のステップSP3に移る。ステップSP3においてDSP31は、かかる実使用鍵データD3をメモリ30に記憶して、次のステップSP4に移る。そしてステップSP4においてDSP31は、ファームウェア復号プログラムEP1に従い実使用鍵データD3を用いて暗号化ファームウェアを復号処理することにより暗号化を解いたファームウェアを生成し、これをメモリ30に記憶した後、次のステップSP5に移ってかかる第1のデータ処理制御処理手順RT1を終了する。このようにしてDSP31は、記録再生装置2が起動する毎にかかる第1のデータ処理制御処理手順RT1を実行する。   In step SP2, the DSP 31 generates the actual use key data D3 by decrypting the temporary processing target data D2 using the temporary key data D1 in accordance with the firmware decryption program EP1, and moves to the next step SP3. In step SP3, the DSP 31 stores the actual use key data D3 in the memory 30, and proceeds to the next step SP4. In step SP4, the DSP 31 generates the decrypted firmware by decrypting the encrypted firmware using the actual use key data D3 in accordance with the firmware decryption program EP1, and stores the decrypted firmware in the memory 30. Moving to step SP5, the first data processing control processing procedure RT1 is terminated. In this way, the DSP 31 executes the first data processing control processing procedure RT1 every time the recording / reproducing apparatus 2 is activated.

またDSP31は、ファームウェアの暗号化を解いてデータ復号プログラムEP2を得ると、データ処理制御プログラムに従って図8に示す第2のデータ処理制御処理手順RT2を開始する。DSP31は、かかる第2のデータ処理制御処理手順RT2を開始すると、ステップSP11において初期設定情報に基づきデータ復号プログラムEP2内の第1の部分FA2を判別し、当該判別した第1の部分FA2のプログラムデータを仮の鍵データD4に設定する。またDSP31は、データ復号プログラムEP2内の第2の部分SA2を判別し、当該判別した第2の部分SA2のプログラムデータを仮の処理対象データD5に設定して、次のステップSP12に移る。   When the DSP 31 decrypts the firmware and obtains the data decryption program EP2, the DSP 31 starts the second data processing control processing procedure RT2 shown in FIG. 8 according to the data processing control program. When starting the second data processing control processing procedure RT2, the DSP 31 determines the first part FA2 in the data decoding program EP2 based on the initial setting information in step SP11, and determines the program of the determined first part FA2. Data is set to temporary key data D4. Further, the DSP 31 determines the second part SA2 in the data decoding program EP2, sets the determined program data of the second part SA2 in the temporary processing target data D5, and moves to the next step SP12.

ステップSP12においてDSP31は、データ復号プログラムEP2に従い仮の鍵データD4を用いて仮の処理対象データD5を復号処理することにより実使用鍵データD6を生成して、次のステップSP13に移る。ステップSP13においてDSP31は、かかる実使用鍵データD6をメモリ30に記憶して、次のステップSP14に移る。そしてステップSP14においてDSP31は、暗号化音楽データに対するデータ処理を実行するか否かを判別する。このステップSP14において肯定結果が得られると、このことはユーザにより暗号化音楽データの再生が要求されたことを表している。すなわち、かかる肯定結果は、DSP31に対し中央処理ユニット13から暗号化音楽データに対するデータ処理の実行開始を要求する処理開始要求が与えられると共に、データ処理回路19のメモリ30に当該中央処理ユニット13から転送された処理対象の暗号化音楽データを一時記憶し始めたことを表している。従ってDSP31は、このとき次のステップSP15に移る。   In step SP12, the DSP 31 generates the actual use key data D6 by decrypting the temporary processing target data D5 using the temporary key data D4 in accordance with the data decryption program EP2, and proceeds to the next step SP13. In step SP13, the DSP 31 stores the actual use key data D6 in the memory 30, and proceeds to the next step SP14. In step SP14, the DSP 31 determines whether or not to execute data processing on the encrypted music data. If a positive result is obtained in step SP14, this indicates that the user has requested reproduction of the encrypted music data. In other words, the affirmative result is that a processing start request for requesting the DSP 31 to start execution of data processing on the encrypted music data is given from the central processing unit 13 to the memory 30 of the data processing circuit 19 from the central processing unit 13. This indicates that the transferred encrypted music data to be processed is temporarily stored. Therefore, the DSP 31 proceeds to the next step SP15 at this time.

そしてステップSP15においてDSP31は、データ復号プログラムEP2に従い実使用鍵データD6を用いて暗号化音楽データを復号処理することにより圧縮符号化音楽データを生成すると共に、伸張プログラムに従って当該圧縮符号化音楽データを伸張処理することにより音楽データを生成し、これを音声処理部20に送出して、次のステップSP16に移る。そしてステップSP16においてDSP31は、データ処理回路19の起動を停止させるか否かを判別する。その結果、DSP31は、記録再生装置2が動作途中であることに伴いデータ処理回路19も動作させたままの状態にするため否定結果を得ると、ステップSP14に戻る。ところで上述のステップSP14において否定結果が得られると、このことはユーザにより未だ暗号化音楽データの再生が要求されてはいないことを表している。従ってDSP31は、このときステップSP16に移る。このためDSP31は、この後、ステップSP16において肯定結果を得るまでの間、暗号化音楽データの再生が要求される毎にステップSP14乃至ステップSP16の処理を循環的に繰り返すようにして当該暗号化音楽データを再生する。そしてDSP31は、ステップSP16において、記録再生装置2の起動停止に伴い、データ処理回路19も起動停止することで肯定結果を得ると、次のステップSP17に移って、かかる第2のデータ処理制御処理手順RT2を終了する。このようにしてDSP31は、記録再生装置2が起動する毎にかかる第2のデータ処理制御処理手順RT2を実行する。   In step SP15, the DSP 31 generates compressed encoded music data by decrypting the encrypted music data using the actual use key data D6 according to the data decryption program EP2, and generates the compressed encoded music data according to the decompression program. Music data is generated by performing the decompression process, and the music data is sent to the audio processing unit 20, and the process proceeds to the next step SP16. In step SP16, the DSP 31 determines whether to stop the data processing circuit 19 from starting. As a result, when the DSP 31 obtains a negative result in order to keep the data processing circuit 19 in operation while the recording / reproducing apparatus 2 is in operation, the DSP 31 returns to step SP14. By the way, if a negative result is obtained in the above-described step SP14, this indicates that the user has not yet requested reproduction of the encrypted music data. Accordingly, the DSP 31 proceeds to step SP16 at this time. For this reason, the DSP 31 thereafter repeats the processing from step SP14 to step SP16 cyclically every time reproduction of the encrypted music data is requested until a positive result is obtained in step SP16. Play the data. When the DSP 31 obtains an affirmative result by stopping the data processing circuit 19 in response to the start / stop of the recording / reproducing apparatus 2 in step SP16, the DSP 31 proceeds to the next step SP17 and performs the second data processing control process. The procedure RT2 is terminated. In this way, the DSP 31 executes the second data processing control processing procedure RT2 every time the recording / reproducing apparatus 2 is activated.

次いで図9を用いて楽曲提供サーバ3の回路構成について説明する。楽曲提供サーバ3は、内部の中央処理ユニット40がROM41又はハードディスクドライブ42に予め記憶されている基本プログラムやアプリケーションプログラム等の各種プログラムをバス43を介してRAM44に読み出す。そして中央処理ユニット40は、RAM44上で展開したこれら各種プログラムに従って全体を制御すると共に、所定の演算処理等の各種処理を実行する。これにより中央処理ユニット40は、外部から音楽配信用の多数の音楽データがネットワークNT経由の通信又は当該音楽データを記録した記録媒体の搬送等によって供給されると、かかる音楽データをデータ処理回路45に送出する。   Next, the circuit configuration of the music providing server 3 will be described with reference to FIG. In the music providing server 3, the internal central processing unit 40 reads various programs such as basic programs and application programs stored in advance in the ROM 41 or the hard disk drive 42 to the RAM 44 via the bus 43. The central processing unit 40 controls the whole in accordance with these various programs developed on the RAM 44 and executes various processes such as predetermined arithmetic processing. Thus, when a large number of music data for music distribution is supplied from the outside by communication via the network NT or transport of a recording medium on which the music data is recorded, the central processing unit 40 converts the music data into the data processing circuit 45. To send.

この場合、データ処理回路45は、耐タンパ性を有するメモリ46と、DSP構成のコーデック処理部47とをそれぞれ構成するICチップが実装された回路基板として形成されている。そして回路基板構成のデータ処理回路45は、例えば記録再生装置2の製造メーカで製造されている。記録再生装置2の製造メーカは、データ処理回路45の製造時、当該記録再生装置2のデータ処理回路19と同様に、データ復号プログラムEP2内の第1及び第2の部分FA2及びSA2のプログラムデータを仮の鍵データD4及び仮の処理対象データD5に設定し、当該データ復号プログラムEP2に従い仮の鍵データD4を用いて仮の処理対象データD5を復号処理することにより実使用鍵データD6を生成している。そして製造メーカは、かかる実使用鍵データD6をデータ処理回路45のメモリ46に記憶している。また製造メーカは、データ処理回路45のメモリ46に対し、記録再生装置2のデータ処理回路19でデータ復号プログラムに従い実行可能な復号処理とは可逆な関係にある暗号化処理を実行するための暗号化プログラム(以下、これを特にデータ暗号化プログラムと呼ぶ)を記憶している。さらに製造メーカは、データ処理回路45のメモリ46に対し、記録再生装置2のデータ処理回路19で伸張プログラムに従い実行可能な伸張処理とは可逆な関係にある圧縮符号化処理を実行するための圧縮符号化プログラムも記憶している。さらにまた製造メーカは、データ処理回路45のメモリ46に対し、記録再生装置2のデータ処理回路19で実行可能な復号化処理及び伸張処理とは可逆な関係にある暗号化処理及び圧縮符号化処理を制御するためのデータ可逆処理制御プログラムも記憶している。そして製造メーカは、かかる回路基板構成のデータ処理回路45を楽曲提供サーバ3の運営会社に提供し、当該楽曲提供サーバ3に組み込ませている。   In this case, the data processing circuit 45 is formed as a circuit board on which IC chips that respectively constitute a tamper-resistant memory 46 and a DSP-configured codec processing unit 47 are mounted. The data processing circuit 45 having the circuit board configuration is manufactured, for example, by the manufacturer of the recording / reproducing apparatus 2. When the data processing circuit 45 is manufactured, the manufacturer of the recording / reproducing apparatus 2 program data of the first and second parts FA2 and SA2 in the data decoding program EP2 in the same manner as the data processing circuit 19 of the recording / reproducing apparatus 2. Is set as temporary key data D4 and temporary processing target data D5, and actual processing key data D6 is generated by decrypting temporary processing target data D5 using temporary key data D4 according to the data decryption program EP2. is doing. The manufacturer stores the actual use key data D6 in the memory 46 of the data processing circuit 45. The manufacturer also performs encryption on the memory 46 of the data processing circuit 45 to execute encryption processing that is reversible with the decryption processing that can be executed by the data processing circuit 19 of the recording / reproducing apparatus 2 according to the data decryption program. (Hereinafter referred to as a data encryption program). Further, the manufacturer compresses the memory 46 of the data processing circuit 45 to execute a compression encoding process that has a reversible relationship with the decompression process that can be executed in accordance with the decompression program by the data processing circuit 19 of the recording / reproducing apparatus 2. An encoding program is also stored. Furthermore, the manufacturer performs encryption processing and compression coding processing on the memory 46 of the data processing circuit 45, which has a reversible relationship with the decryption processing and decompression processing that can be executed by the data processing circuit 19 of the recording / reproducing apparatus 2. A data reversible processing control program for controlling the data is also stored. Then, the manufacturer provides the data processing circuit 45 having such a circuit board configuration to the operating company of the music providing server 3 and incorporates it in the music providing server 3.

従ってデータ処理回路45においてコーデック処理部47は、中央処理ユニット40から音楽配信用の音楽データが与えられると、メモリ46から圧縮符号化プログラム及びデータ暗号化プログラム並びに実使用鍵データD6を読み出す。そしてコーデック処理部47は、圧縮符号化プログラムに従い音楽データを圧縮符号化処理することにより圧縮符号化音楽データを生成する。またコーデック処理部47は、データ暗号化プログラムに従い実使用鍵データD6を用いて圧縮符号化音楽データを暗号化処理することにより暗号化音楽データを生成する。このようにしてコーデック処理部47は、暗号化音楽データを生成すると、当該生成した暗号化音楽データを中央処理ユニット40経由でハードディスクドライブ42に送出してハードディスクに記憶する。   Therefore, in the data processing circuit 45, when the music data for music distribution is given from the central processing unit 40, the codec processing unit 47 reads the compression encoding program, the data encryption program, and the actual use key data D6 from the memory 46. Then, the codec processing unit 47 generates compression-encoded music data by performing compression-encoding processing on the music data according to the compression-encoding program. The codec processing unit 47 generates encrypted music data by encrypting the compression-encoded music data using the actual use key data D6 according to the data encryption program. When the codec processing unit 47 generates the encrypted music data in this way, the generated encrypted music data is sent to the hard disk drive 42 via the central processing unit 40 and stored in the hard disk.

そして中央処理ユニット40は、記録再生装置2からユーザによる所望の楽曲の配信要求に応じて配信要求信号がネットワークNT経由で送信されると、かかる配信要求信号をネットワークインタフェース48及び通信処理部49を順次介して取り込む。これにより中央処理ユニット40は、かかる配信要求信号に応じてハードディスクドライブ42からユーザにより配信要求された楽曲に対応する暗号化音楽データを選択的に読み出すと共に、当該読み出した暗号化音楽データを通信処理部49及びネットワークインタフェース48を順次介してネットワークNT経由で記録再生装置2に送信する。このようにして中央処理ユニット40は、記録再生装置2に対して暗号化音楽データを配信することができる。そして中央処理ユニット40は、かかる暗号化音楽データを、記録再生装置2のデータ処理回路19で復号処理に用いる実使用鍵データD6と同じ実使用鍵データD6を用いて生成していることにより、当該記録再生装置2で、その暗号化音楽データを的確に復号させることができる。   When the distribution request signal is transmitted from the recording / reproducing apparatus 2 via the network NT in response to a distribution request for a desired music piece by the user, the central processing unit 40 sends the distribution request signal to the network interface 48 and the communication processing unit 49. Capture through sequentially. Thus, the central processing unit 40 selectively reads out the encrypted music data corresponding to the music requested to be distributed by the user from the hard disk drive 42 in response to the distribution request signal, and performs communication processing on the read encrypted music data. The data is transmitted to the recording / reproducing apparatus 2 via the network NT via the unit 49 and the network interface 48 in order. In this way, the central processing unit 40 can distribute the encrypted music data to the recording / reproducing apparatus 2. The central processing unit 40 generates the encrypted music data by using the same actual use key data D6 as the actual use key data D6 used for the decryption process in the data processing circuit 19 of the recording / reproducing apparatus 2. The recording / playback apparatus 2 can accurately decrypt the encrypted music data.

実際上、データ処理回路45のコーデック処理部47は、楽曲提供サーバ3が起動すると、メモリ46に予め記憶したデータ可逆処理制御プログラムに従って図10に示す第1のデータ可逆処理制御処理手順RT3を開始する。コーデック処理部47は、かかる第1のデータ可逆処理制御処理手順RT3を開始すると、ステップSP21において音楽データに対するデータ処理を実行するか否かを判別する。このステップSP21において否定結果が得られると、このことは例えば楽曲提供サーバ3の運営会社から配信用の新たな音楽データを記憶するようには要求されていないことを表している。従ってコーデック処理部47は、このときかかるステップSP21の判別処理を定期的に繰り返すことにより、新たな音楽データに対するデータ処理の実行開始が要求されることを待ち受ける。これに対してステップSP21において肯定結果が得られると、このことは例えば楽曲提供サーバ3の運営会社から配信用の新たな音楽データを記憶するように要求されたことを表している。すなわち、かかる肯定結果は、コーデック処理部47に対し中央処理ユニット40から処理対象の新たな音楽データと共に当該音楽データに対するデータ処理の実行開始を要求する処理開始要求が与えられたことを表している。従ってコーデック処理部47は、このとき次のステップSP22に移る。   In practice, when the music providing server 3 is activated, the codec processing unit 47 of the data processing circuit 45 starts the first data reversible processing control processing procedure RT3 shown in FIG. To do. When starting the first data reversible processing control processing procedure RT3, the codec processing unit 47 determines whether or not to perform data processing on music data in step SP21. If a negative result is obtained in step SP21, this indicates that, for example, the management company of the music providing server 3 is not requested to store new music data for distribution. Accordingly, the codec processing unit 47 waits for a request to start execution of data processing on new music data by periodically repeating the determination processing in step SP21 at this time. On the other hand, if a positive result is obtained in step SP21, this indicates that, for example, the management company of the music providing server 3 has requested to store new music data for distribution. That is, this affirmative result indicates that a processing start request for requesting the codec processing unit 47 to start execution of data processing on the music data is given from the central processing unit 40 together with the new music data to be processed. . Accordingly, the codec processing unit 47 moves to the next step SP22 at this time.

ステップSP22においてコーデック処理部47は、圧縮符号化プログラムに従って新たな音楽データを圧縮符号化処理することにより圧縮符号化音楽データを生成する。またコーデック処理部47は、データ暗号化プログラムに従い実使用鍵データD6を用いて、かかる圧縮符号化音楽データを暗号化処理することにより暗号化音楽データを生成する。そしてコーデック処理部47は、かかる暗号化音楽データを中央処理ユニット40経由でハードディスクドライブ42に送出してハードディスクに記憶した後、ステップSP21に戻る。このようにしてコーデック処理部47は、この後、新たな音楽データを音楽配信用にデータ処理して記憶するように要求される毎に、ステップSP21及びステップSP22の処理を循環的に繰り返すようにして、新たに配信可能な暗号化音楽データを生成する。   In step SP22, the codec processing unit 47 performs compression encoding processing of new music data according to the compression encoding program to generate compression encoded music data. The codec processing unit 47 generates encrypted music data by performing encryption processing on the compression-encoded music data using the actual use key data D6 in accordance with the data encryption program. The codec processing unit 47 sends the encrypted music data to the hard disk drive 42 via the central processing unit 40 and stores it in the hard disk, and then returns to step SP21. In this way, each time the codec processing unit 47 is requested to process and store new music data for music distribution, the processing of step SP21 and step SP22 is repeated cyclically. Thus, encrypted music data that can be newly distributed is generated.

以上の構成において、記録再生装置2では起動時、データ処理回路19のDSP31が、メモリ30に予め記憶されたデータ処理制御プログラムに従って、初期設定情報に基づきファームフェア復号プログラムEP1内の第1の部分FA1のプログラムデータを仮の鍵データD1に設定すると共に、当該ファームウェア復号プログラムEP1内の第2の部分SA1のプログラムデータを仮の処理対象データD2に設定する(ステップSP1)。そしてDSP31は、ファームウェア復号プログラムEP1に従い仮の鍵データD1を用いて仮の処理対象データD2を復号処理することにより実使用鍵データD3を生成し、当該生成した実使用鍵データD3をメモリ30に記憶する(ステップSP2及びステップSP3)。この状態でDSP31は、ファームウェア復号プログラムEP1に従い実使用鍵データD3を用いて、中央処理ユニット13から与えられた暗号化ファームウェアを復号処理することにより暗号化を解いたファームウェアを生成し、これをメモリ30に記憶する(ステップSP4)。   In the above configuration, when the recording / reproducing apparatus 2 is activated, the DSP 31 of the data processing circuit 19 performs the first part in the firmware decoding program EP1 based on the initial setting information in accordance with the data processing control program stored in the memory 30 in advance. The program data of FA1 is set as temporary key data D1, and the program data of the second portion SA1 in the firmware decryption program EP1 is set as temporary processing target data D2 (step SP1). Then, the DSP 31 generates the actual use key data D3 by decrypting the temporary processing target data D2 using the temporary key data D1 in accordance with the firmware decryption program EP1, and the generated actual use key data D3 is stored in the memory 30. Store (step SP2 and step SP3). In this state, the DSP 31 generates decrypted firmware by decrypting the encrypted firmware given from the central processing unit 13 using the actual use key data D3 in accordance with the firmware decryption program EP1, and stores the decrypted firmware in the memory. 30 (step SP4).

またDSP31は、ファームウェアの暗号化を解いてデータ復号プログラムEP2を得ると、データ処理制御プログラムに従って初期設定情報に基づき、かかるデータ復号プログラムEP2内の第1の部分FA2のプログラムデータを仮の鍵データD4に設定すると共に、当該データ復号プログラムEP2内の第2の部分SA2のプログラムデータを仮の処理対象データD5に設定する(ステップSP11)。そしてDSP31は、データ復号プログラムEP2に従い仮の鍵データD4を用いて仮の処理対象データD5を復号処理することにより実使用鍵データD6を生成し、当該生成した実使用鍵データD6をメモリ30に記憶する(ステップSP12及びステップSP13)。この状態でDSP31は、暗号化音楽データの再生が要求されると、データ復号プログラムEP2に従い実使用鍵データD6を用いて、中央処理ユニット13から転送された処理対象の暗号化音楽データを復号処理することにより圧縮符号化音楽データを生成すると共に、伸張プログラムに従って当該圧縮符号化音楽データを伸張処理することにより音楽データを生成する(ステップSP15)。   Further, when the DSP 31 decrypts the firmware and obtains the data decryption program EP2, the program data of the first part FA2 in the data decryption program EP2 is provisional key data based on the initial setting information according to the data processing control program. In addition to setting to D4, the program data of the second portion SA2 in the data decoding program EP2 is set to temporary processing target data D5 (step SP11). Then, the DSP 31 generates the actual use key data D6 by decrypting the provisional processing target data D5 using the provisional key data D4 according to the data decryption program EP2, and the generated actual use key data D6 is stored in the memory 30. Store (step SP12 and step SP13). In this state, when the DSP 31 is requested to reproduce the encrypted music data, the DSP 31 decrypts the encrypted music data to be processed transferred from the central processing unit 13 using the actual use key data D6 in accordance with the data decryption program EP2. Thus, the compression-encoded music data is generated, and the compression-encoded music data is expanded according to the expansion program to generate the music data (step SP15).

従って記録再生装置2では、ファームウェア復号プログラムEP1内及びデータ復号プログラムEP2内のプログラムデータ自体を、実使用鍵データD3及びD6の生成に使用する仮の鍵データD1、D4及び仮の処理対象データD2、D5とするため、当該ファームウェア復号プログラムEP1及びデータ復号プログラムEP2が第三者に不当に取得されても、その第三者により当該仮の鍵データD1、D4及び仮の処理対象データD2、D5が特定されることをほぼ確実に防止することができる。また記録再生装置2では、実使用鍵データD3及びD6を生成するための元データを仮の鍵データD1、D4及び仮の処理対象データD2、D5の2種類のデータとしたため、第三者に対しこれら仮の鍵データD1、D4及び仮の処理対象データD2、D5を特定するためのファームウェア復号プログラムEP1及びデータ復号プログラムEP2に対する解析処理を複雑化させることができる。そのため記録再生装置2では、ファームウェア復号プログラムEP1及びデータ復号プログラムEP2が第三者に不当に取得されても、その第三者により仮の鍵データD1、D4及び仮の処理対象データD2、D5が特定されることを一段と確実に防止することができる。さらに記録再生装置2では、このように仮の鍵データD1、D4及び仮の処理対象データD2、D5を容易には特定し難くしていると共に、ファームウェア復号プログラムEP1内及びデータ復号プログラムEP2内に実使用鍵データD3及びD6自体を埋め込んではいないため、第三者に対し実使用鍵データD3及びD6が漏洩することをほぼ確実に防止することができる。   Therefore, in the recording / reproducing apparatus 2, the program data itself in the firmware decryption program EP1 and the data decryption program EP2 are used as temporary key data D1, D4 and temporary processing target data D2 used to generate the actual use key data D3 and D6. Therefore, even if the firmware decryption program EP1 and the data decryption program EP2 are illegally obtained by a third party, the temporary key data D1, D4 and the provisional processing target data D2, D5 are obtained by the third party. Can be almost certainly prevented. In the recording / reproducing apparatus 2, since the original data for generating the actual use key data D3 and D6 is two types of data, temporary key data D1 and D4 and temporary processing target data D2 and D5, On the other hand, the analysis process for the firmware decryption program EP1 and the data decryption program EP2 for specifying the temporary key data D1 and D4 and the provisional processing target data D2 and D5 can be complicated. Therefore, in the recording / reproducing apparatus 2, even if the firmware decryption program EP1 and the data decryption program EP2 are illegally obtained by a third party, the temporary key data D1, D4 and the provisional processing target data D2, D5 are obtained by the third party. Identification can be prevented more reliably. Further, the recording / reproducing apparatus 2 makes it difficult to easily specify the temporary key data D1 and D4 and the temporary processing target data D2 and D5 as described above, and in the firmware decryption program EP1 and the data decryption program EP2. Since the actual use key data D3 and D6 are not embedded, it is possible to almost certainly prevent the actual use key data D3 and D6 from leaking to a third party.

一方、楽曲提供サーバ3では、新たな音楽データを配信用として記憶するように要求されると、データ処理回路45においてコーデック処理部47が、圧縮符号化プログラムに従って新たな音楽データを圧縮符号化処理することにより圧縮符号化音楽データを生成すると共に、データ暗号化プログラムに従い、メモリ46内の実使用鍵データD6を用いて、かかる圧縮符号化音楽データを暗号化処理することにより暗号化音楽データを生成する(ステップSP22)。   On the other hand, when the music providing server 3 is requested to store new music data for distribution, the codec processing unit 47 in the data processing circuit 45 performs compression encoding processing on the new music data in accordance with the compression encoding program. Thus, the compressed encoded music data is generated, and the encoded music data is encrypted by encrypting the compressed encoded music data using the actual use key data D6 in the memory 46 in accordance with the data encryption program. Generate (step SP22).

従って楽曲提供サーバ3では、記録再生装置2で復号処理に使用されるデータ復号プログラムEP2を保持してはいないことで自己では実使用鍵データD6を生成することができなくても、当該記録再生装置2で暗号化音楽データの復号処理に用いる実使用鍵データD6と同じ実使用鍵データD6を予め保持し、かかる実使用鍵データD6を用いて音楽データを暗号化処理しているため、記録再生装置2で破綻無く復号処理し得る暗号化音楽データを生成することができる。そして楽曲提供サーバ3では、このように実使用鍵データD6を予め保持しているため、記録再生装置2から自己宛に実使用鍵データD6を転送させて取得することを回避することができる。その結果、楽曲提供サーバ3では、実使用鍵データD6が自己宛の転送により漏洩することを防止することができる。   Accordingly, the music providing server 3 does not hold the data decryption program EP2 used for the decryption process in the recording / playback apparatus 2, and thus the recording / playback can be performed even if the actual use key data D6 cannot be generated by itself. Since the actual use key data D6 that is the same as the actual use key data D6 used for the decryption process of the encrypted music data in the apparatus 2 is held in advance and the music data is encrypted using the actual use key data D6, the recording is performed. It is possible to generate encrypted music data that can be decrypted by the playback device 2 without failure. Since the music providing server 3 holds the actual use key data D6 in advance as described above, it is possible to prevent the actual use key data D6 from being transferred from the recording / reproducing apparatus 2 to the self. As a result, the music providing server 3 can prevent the actual use key data D6 from leaking due to the transfer addressed to itself.

以上の構成によれば、記録再生装置2において、データ処理回路19のDSP31が、初期設定情報に基づきファームフェア復号プログラムEP1内の第1の部分FA1のプログラムデータを仮の鍵データD1に設定すると共に、当該ファームウェア復号プログラムEP1内の第2の部分SA1のプログラムデータを仮の処理対象データD2に設定し、かかるファームウェア復号プログラムEP1に従い仮の鍵データD1を用いて仮の処理対象データD2を復号処理することにより実使用鍵データD3を生成して記憶し、この状態でファームウェア復号プログラムEP1に従い実使用鍵データD3を用いて暗号化ファームウェアを復号処理するようにした。従って記録再生装置2では、ファームフェア復号プログラムEP1内の第1及び第2の部分FA1及びSA1のプログラムデータ自体をそれぞれ仮の鍵データD1及び仮の処理対象データD2に設定し、かかるファームフェア復号プログラムEP1に従い仮の鍵データD1を用いて仮の処理対象データD2を復号処理して実使用鍵データD3を生成するため、第三者によりファームフェア復号プログラムEP1が不当に取得された場合でも、かかるファームフェア復号プログラムEP1内で仮の鍵データD1及び仮の処理対象データD2が特定されることをほぼ確実に防止することができる。その結果、記録再生装置2では、ファームフェア復号プログラムEP1が第三者に不当に取得されても、実使用鍵データD3が漏洩することをほぼ確実に防止することができ、かくして実使用鍵データD3の秘匿性を向上させることができる。   According to the above configuration, in the recording / reproducing apparatus 2, the DSP 31 of the data processing circuit 19 sets the program data of the first portion FA1 in the firmware decryption program EP1 to the temporary key data D1 based on the initial setting information. At the same time, the program data of the second part SA1 in the firmware decryption program EP1 is set as temporary process target data D2, and the temporary process target data D2 is decrypted using the temporary key data D1 in accordance with the firmware decryption program EP1. By processing, the actual use key data D3 is generated and stored, and in this state, the encrypted firmware is decrypted using the actual use key data D3 in accordance with the firmware decryption program EP1. Therefore, in the recording / reproducing apparatus 2, the program data itself of the first and second portions FA1 and SA1 in the firmware decryption program EP1 are set as temporary key data D1 and temporary processing target data D2, respectively. Even if the firmware decryption program EP1 is illegally acquired by a third party in order to generate the actual use key data D3 by decrypting the temporary processing target data D2 using the temporary key data D1 according to the program EP1, It is possible to almost certainly prevent the provisional key data D1 and the provisional processing target data D2 from being specified in the firmware decryption program EP1. As a result, the recording / reproducing apparatus 2 can almost certainly prevent the actual use key data D3 from leaking even if the firmware decryption program EP1 is illegally obtained by a third party, and thus the actual use key data. The confidentiality of D3 can be improved.

また記録再生装置2では、データ処理回路19のDSP31が、初期設定情報に基づきデータ復号プログラムEP2内の第1の部分FA2のプログラムデータを仮の鍵データD4に設定すると共に、当該データ復号プログラムEP2内の第2の部分SA2のプログラムデータを仮の処理対象データD5に設定し、かかるデータ復号プログラムEP2に従い仮の鍵データD4を用いて仮の処理対象データD5を復号処理することにより実使用鍵データD6を生成して記憶し、この状態でデータ復号プログラムEP2に従い実使用鍵データD6を用いて処理対象の暗号化音楽データを復号処理するようにした。従って記録再生装置2では、ファームフェア復号プログラムEP1を用いて実使用鍵データD3を生成する場合と同様に、データ復号プログラムEP2内の第1及び第2の部分FA2及びSA2のプログラムデータ自体をそれぞれ仮の鍵データD4及び仮の処理対象データD5に設定し、かかるデータ復号プログラムEP2に従い仮の鍵データD4を用いて仮の処理対象データD5を復号処理して実使用鍵データD6を生成するため、第三者によりデータ復号プログラムEP2が不当に取得された場合でも、かかるデータ復号プログラムEP2内で仮の鍵データD4及び仮の処理対象データD5が特定されることをほぼ確実に防止することができる。その結果、記録再生装置2では、データ復号プログラムEP2が第三者に不当に取得されても、実使用鍵データD6が漏洩することをほぼ確実に防止することができ、かくして実使用鍵データD6の秘匿性を向上させることができる。   In the recording / reproducing apparatus 2, the DSP 31 of the data processing circuit 19 sets the program data of the first part FA2 in the data decryption program EP2 to the temporary key data D4 based on the initial setting information, and also the data decryption program EP2 The program data of the second part SA2 is set in the temporary processing target data D5, and the temporary processing target data D5 is decrypted by using the temporary key data D4 in accordance with the data decryption program EP2. Data D6 is generated and stored, and in this state, the encrypted music data to be processed is decrypted using the actual key data D6 according to the data decryption program EP2. Accordingly, in the recording / reproducing apparatus 2, the program data itself of the first and second portions FA2 and SA2 in the data decryption program EP2 are respectively stored in the same manner as when the actual use key data D3 is generated using the firmware decryption program EP1. In order to set the temporary key data D4 and the temporary processing target data D5 and decrypt the temporary processing target data D5 using the temporary key data D4 according to the data decryption program EP2 to generate the actual use key data D6. Even when the data decryption program EP2 is illegally acquired by a third party, it is almost certainly possible to prevent the provisional key data D4 and the provisional processing target data D5 from being specified in the data decryption program EP2. it can. As a result, the recording / reproducing apparatus 2 can almost certainly prevent the actual use key data D6 from leaking even if the data decryption program EP2 is illegally acquired by a third party, and thus the actual use key data D6. It is possible to improve secrecy.

さらに楽曲提供サーバ3において、データ処理回路45のコーデック処理部47が、記録再生装置2でデータ復号プログラムEP2内の第1及び第2の部分FA2及びSA2のプログラムデータ自体を仮の鍵データD4及び仮の処理対象データD5とし、当該データ復号プログラムEP2に従い仮の鍵データD4を用いて仮の処理対象データD5を復号処理して生成される実使用鍵データD6と同じ実使用鍵データD6を用いて、圧縮符号化音楽データを暗号化処理するようにした。従って楽曲提供サーバ3は、記録再生装置2に対し自己宛に実使用鍵データD6を転送させることを回避することができる。その結果、楽曲提供サーバ3は、記録再生装置2で用いられる実使用鍵データD6が転送により漏洩することをほぼ確実に防止することができ、かくして実使用鍵データD6の秘匿性を向上させることができる。   Further, in the music providing server 3, the codec processing section 47 of the data processing circuit 45 uses the temporary reproduction of the key data D4 and the program data itself of the first and second portions FA2 and SA2 in the data decryption program EP2 in the recording / playback apparatus 2. Temporary process target data D5 is used, and the same actual use key data D6 as the actual use key data D6 generated by decrypting the temporary process target data D5 using the temporary key data D4 according to the data decryption program EP2 is used. Thus, the compression-encoded music data is encrypted. Accordingly, the music providing server 3 can avoid causing the recording / reproducing apparatus 2 to transfer the actual use key data D6 to the recording / playback apparatus 2 itself. As a result, the music providing server 3 can almost certainly prevent the actual use key data D6 used in the recording / reproducing apparatus 2 from leaking due to transfer, and thus improve the confidentiality of the actual use key data D6. Can do.

これに加えて記録再生装置2では、暗号化ファームウェア及び暗号化音楽データに対する復号処理を実行するためのファームフェア復号プログラムEP1及びデータ復号プログラムEP2を併用して実使用鍵データD3及びD6を生成する。このため記録再生装置2では、データ処理回路19のメモリ30に対し、実使用鍵データD3及びD6を生成するための専用のプログラムを記憶しておく必要がなく、かくしてメモリ30の容量が増大することを回避することができる。また記録再生装置2では、ファームフェア復号プログラムEP1内及びデータ復号プログラムEP2内のプログラムデータ自体を仮の鍵データD1、D4及び仮の処理対象データD2、D5とし、これらに仮の鍵データD1、D4及び仮の処理対象データD2、D5を用いて実使用鍵データD3及びD6を生成するため、図6(A)について上述した鍵データ埋込手法と比べた場合、メモリ30に対しファームウェア復号プログラムEP1及びデータ復号プログラムEP2と共に、擬装化した実使用鍵データD3及びD6及びその擬装を解除するための擬装解除プログラムCCP1を記憶しておくことを回避することができる。その結果、記録再生装置2では、擬装化した実使用鍵データD3及びD6及び擬装解除プログラムCCP1の分だけ、メモリ30の容量が増大することを回避することができる。   In addition to this, the recording / reproducing apparatus 2 generates actual use key data D3 and D6 in combination with the firmware decryption program EP1 and the data decryption program EP2 for executing decryption processing on the encrypted firmware and the encrypted music data. . Therefore, in the recording / reproducing apparatus 2, it is not necessary to store a dedicated program for generating the actual use key data D3 and D6 in the memory 30 of the data processing circuit 19, and thus the capacity of the memory 30 increases. You can avoid that. Further, in the recording / reproducing apparatus 2, the program data itself in the firmware decryption program EP1 and the data decryption program EP2 are set as temporary key data D1, D4 and temporary processing target data D2, D5, and the temporary key data D1, Since the actual use key data D3 and D6 are generated using D4 and the provisional processing target data D2 and D5, the firmware decryption program is stored in the memory 30 when compared with the key data embedding method described above with reference to FIG. Along with EP1 and the data decryption program EP2, it is possible to avoid storing the disguise actual use key data D3 and D6 and the disguise cancellation program CCP1 for canceling the disguise. As a result, the recording / reproducing apparatus 2 can avoid an increase in the capacity of the memory 30 by the amount of the actually used key data D3 and D6 and the disguise cancellation program CCP1.

さらに記録再生装置2では、ファームウェア復号プログラムEP1内及びデータ復号プログラムEP2内で仮の鍵データD1、D4及び仮の処理対象データD2、D5に設定する第1及び第2の部分FA1、FA2及びSA1、SA2を一部重複させているため、例えば仮の鍵データD1、D4及び仮の処理対象データD2、D5のデータ長が比較的長い場合でも、これらをファームウェア復号プログラムEP1内及びデータ復号プログラムEP2内のプログラムデータとして確実に設定することができる。   Further, in the recording / reproducing apparatus 2, the first and second portions FA1, FA2, and SA1 set in the temporary key data D1, D4 and the temporary processing target data D2, D5 in the firmware decryption program EP1 and the data decryption program EP2. Since SA2 is partially overlapped, for example, even if the temporary key data D1, D4 and the temporary processing target data D2, D5 have a relatively long data length, they are stored in the firmware decryption program EP1 and the data decryption program EP2. It can be reliably set as program data.

さらに第1の実施の形態による記録再生システム1では、記録再生装置2の製造メーカが製造した回路基板構成のデータ処理回路45を楽曲提供サーバ3に組み込むようにしているため、既存の楽曲提供サーバでも、かかる回路基板構成のデータ処理回路45を組み込むだけで、記録再生装置2に対し音楽データを配信可能なサーバとして容易に機能させることができる。   Furthermore, in the recording / reproducing system 1 according to the first embodiment, since the data processing circuit 45 having the circuit board configuration manufactured by the manufacturer of the recording / reproducing apparatus 2 is incorporated in the music providing server 3, the existing music providing server However, it is possible to easily cause the recording / reproducing apparatus 2 to function as a server capable of distributing music data simply by incorporating the data processing circuit 45 having such a circuit board configuration.

なお上述した第1の実施の形態においては、記録再生装置2のデータ処理回路19において、ファームウェア復号プログラムEP1内及びデータ復号プログラムEP2内で一部重複する第1及び第2の部分FA1、FA2及びSA1、SA2のプログラムデータをそれぞれ仮の鍵データD1、D4及び仮の処理対象データD2、D5に設定するようにした場合について述べたが、本発明はこれに限らず、図11(A)に示すように記録再生装置2のデータ処理回路19において、ファームウェア復号プログラムEP1内及びデータ復号プログラムEP2内で重複しないそれぞれ1つの部分でなる第1及び第2の部分FA3及びSA3のプログラムデータを仮の鍵データD10及び仮の処理対象データD11に設定するようにしても良い。また図11(B)に示すように記録再生装置2のデータ処理回路19において、ファームウェア復号プログラムEP1内及びデータ復号プログラムEP2内で複数の部分でなる第1の部分FA4のプログラムデータを繋げて仮の鍵データD12に設定し、当該ファームウェア復号プログラムEP1内及びデータ復号プログラムEP2内の複数の部分でなる第2の部分SA4のプログラムデータを繋げて仮の処理対象データD13に設定するようにしても良い。このようにしても上述した第1の実施の形態と同様の効果を得ることができる。特に記録再生装置2では、図11(B)に示すように第1及び第2の部分FA4及びSA4をそれぞれ複数の部分で形成する場合には、ファームウェア復号プログラムEP1及びデータ復号プログラムEP2が第三者に不当に取得されたとき、それぞれ複数の部分でなる第1及び第2の部分FA4及びSA4と共に仮の鍵データD12及び仮の処理対象データD13をさらに特定させ難くすることができる。   In the first embodiment described above, in the data processing circuit 19 of the recording / reproducing apparatus 2, the first and second parts FA1, FA2 and the second part partially overlapping in the firmware decoding program EP1 and the data decoding program EP2 and Although the case where the program data of SA1 and SA2 are set to temporary key data D1 and D4 and temporary processing target data D2 and D5 has been described, the present invention is not limited to this, and FIG. As shown, in the data processing circuit 19 of the recording / reproducing apparatus 2, the program data of the first and second parts FA3 and SA3, which are each one part that does not overlap in the firmware decoding program EP1 and the data decoding program EP2, are temporarily stored. You may make it set to the key data D10 and temporary process target data D11. Further, as shown in FIG. 11B, in the data processing circuit 19 of the recording / reproducing apparatus 2, the program data of the first part FA4 composed of a plurality of parts in the firmware decryption program EP1 and the data decryption program EP2 are connected and temporarily Key data D12, and the program data of the second part SA4 consisting of a plurality of parts in the firmware decryption program EP1 and the data decryption program EP2 are connected and set in the temporary processing target data D13. good. Even if it does in this way, the same effect as a 1st embodiment mentioned above can be acquired. In particular, in the recording / reproducing apparatus 2, when the first and second portions FA4 and SA4 are each formed of a plurality of portions as shown in FIG. 11B, the firmware decoding program EP1 and the data decoding program EP2 are the third ones. When it is illegally acquired by a person, it is possible to further make it difficult to specify the temporary key data D12 and the temporary processing target data D13 together with the first and second portions FA4 and SA4 each having a plurality of portions.

また上述した第1の実施の形態においては、記録再生装置2のデータ処理回路19において、ファームウェア復号プログラムEP1内及びデータ復号プログラムEP2内の第1及び第2の部分FA1、FA2及びSA1、SA2のプログラムデータを仮の鍵データD1、D4及び仮の処理対象データD2、D5に設定するようにした場合について述べたが、本発明はこれに限らず、記録再生装置2のデータ処理回路19において、楽曲提供サーバ3で暗号化音楽データを生成するときの暗号化処理手法とは異なる、例えば携帯型記録再生装置に適用された所定の暗号化処理手法で暗号化処理するための暗号化プログラムを用意しておき、かかる暗号化プログラム内の第1及び第2の部分のプログラムデータを仮の鍵データ及び仮の処理対象データに設定し、当該暗号化プログラムに従い仮の鍵データを用いて仮の処理対象データを暗号化処理して実使用鍵データを生成するようにしても良い。このようにすれば、記録再生装置2では、楽曲提供サーバ3から取得した暗号化音楽データを一旦復号して圧縮符号化音楽データを生成した後、かかる暗号化プログラムに従い実使用鍵データを用いて当該圧縮符号化音楽データを暗号化処理して再び暗号化音楽データを生成することにより、外部の携帯型記録再生装置に対しかかる暗号化音楽データを転送して当該携帯型記録再生装置でも暗号化音楽データを再生して楽曲を聴かせることができる。   In the first embodiment described above, in the data processing circuit 19 of the recording / reproducing apparatus 2, the first and second portions FA1, FA2, SA1, and SA2 in the firmware decoding program EP1 and the data decoding program EP2 are stored. Although the case where the program data is set to the temporary key data D1 and D4 and the temporary processing target data D2 and D5 has been described, the present invention is not limited to this, and in the data processing circuit 19 of the recording / reproducing apparatus 2, An encryption program is prepared for encryption processing by a predetermined encryption processing method applied to, for example, a portable recording / reproducing apparatus, which is different from the encryption processing method used when the music providing server 3 generates encrypted music data. In addition, the program data of the first and second parts in the encryption program are converted into temporary key data and temporary processing target data. Set data, the temporary processing target data by using the temporary key data may be generated actual use key data by encrypting in accordance with the encrypted program. In this manner, the recording / reproducing apparatus 2 once decrypts the encrypted music data acquired from the music providing server 3 to generate compression-encoded music data, and then uses the actual use key data according to the encryption program. By encrypting the compression-encoded music data and generating the encrypted music data again, the encrypted music data is transferred to an external portable recording / reproducing device and encrypted by the portable recording / reproducing device. Music data can be played to listen to music.

さらに上述した第1の実施の形態においては、データ処理回路19において、記録再生装置2が起動する毎に実使用鍵データD3及びD6を生成するようにした場合について述べたが、本発明はこれに限らず、データ処理回路19において、記録再生装置2が始めて起動したときにのみ実使用鍵データD3及びD6を生成し、これをメモリ30に記憶しておくことで、記録再生装置2の2回目以降の起動時には実使用鍵データD3及びD6を生成しないようにしても良い。このようにすれば、データ処理回路19に対する、記録再生装置2の起動時の処理負荷を大幅に低減させることができる。   Further, in the above-described first embodiment, the case where the data processing circuit 19 generates the actual use key data D3 and D6 every time the recording / reproducing apparatus 2 is activated has been described. However, the data processing circuit 19 generates the actual use key data D3 and D6 only when the recording / reproducing apparatus 2 is activated for the first time, and stores them in the memory 30 so that 2 of the recording / reproducing apparatus 2 is stored. The actual use key data D3 and D6 may not be generated at the time of starting after the first time. In this way, it is possible to significantly reduce the processing load on the data processing circuit 19 when the recording / reproducing apparatus 2 is activated.

(2)第2の実施の形態
図1との対応部分に同一符号を付して示す図12において、第2の実施の形態による記録再生システム60では、図2との対応部分に同一符号を付した図13に示すように記録再生装置61の中央処理ユニット62及びデータ処理回路63が第1の実施の形態による記録再生装置2の中央処理ユニット13及びデータ処理回路19とは異なる構成を有している。また記録再生システム60では、図9との対応部分に同一符号を付した図14に示すように、楽曲提供サーバ65の中央処理ユニット66及びデータ処理回路67が第1の実施の形態による楽曲提供サーバ3の中央処理ユニット40及びデータ処理回路45とは異なる構成を有している。
(2) Second Embodiment In FIG. 12, in which the same reference numerals are assigned to the parts corresponding to those in FIG. As shown in FIG. 13, the central processing unit 62 and the data processing circuit 63 of the recording / reproducing apparatus 61 have different configurations from the central processing unit 13 and the data processing circuit 19 of the recording / reproducing apparatus 2 according to the first embodiment. is doing. Further, in the recording / reproducing system 60, as shown in FIG. 14 in which the same reference numerals are given to corresponding parts to FIG. 9, the central processing unit 66 and the data processing circuit 67 of the music providing server 65 provide the music according to the first embodiment. The central processing unit 40 and the data processing circuit 45 of the server 3 have different configurations.

かかる記録再生システム60では、記録再生装置61の製造メーカが、データ処理回路63のファームウェアを暗号化処理する際に用いる実使用鍵データ(すなわち、記録再生装置61で暗号化ファームウェアを復号処理する際に用いる実使用鍵データと同じもの)を予め複数用意している。そして製造メーカは、例えばファームウェアの暗号化処理に用いる実使用鍵データをその安全性を向上させるうえで定期的に交換すると共に、当該実使用鍵データを交換する毎にファームウェアをその交換した新たな実使用鍵データを用いて暗号化処理し、得られた暗号化ファームウェアを、その暗号化処理に用いた実使用鍵データを識別可能な鍵識別情報と共に記録再生装置61に供給している。一方、楽曲提供サーバ65も、配信可能な音楽データの暗号化処理に用いる実使用鍵データ(すなわち、記録再生装置61で暗号化音楽データを復号処理する際に用いる実使用鍵データと同じもの)を複数保持している。そして楽曲提供サーバ65は、音楽データの暗号化処理に用いる実使用鍵データをその安全性を向上させるうえで定期的に交換すると共に、音楽データを暗号化処理して暗号化音楽データを生成したときには、当該暗号化音楽データを、その暗号化処理に用いた実使用鍵データの鍵識別情報と共に記録再生装置61に配信している。   In such a recording / reproducing system 60, the manufacturer of the recording / reproducing device 61 uses the actual key data used when the firmware of the data processing circuit 63 is encrypted (that is, when the recording / reproducing device 61 decrypts the encrypted firmware). A plurality of the same key data as the actual use key data used in the above are prepared in advance. For example, the manufacturer periodically exchanges the actual use key data used for the encryption process of the firmware in order to improve its safety, and every time the actual use key data is exchanged, the manufacturer replaces the firmware with a new one. Encryption processing is performed using the actual use key data, and the obtained encrypted firmware is supplied to the recording / reproducing apparatus 61 together with key identification information that can identify the actual use key data used for the encryption processing. On the other hand, the music providing server 65 also uses the actual use key data used for the encryption processing of the distributable music data (that is, the same as the actual use key data used when the recording / playback apparatus 61 decrypts the encrypted music data). Is held multiple times. Then, the music providing server 65 periodically exchanges the actual use key data used for the music data encryption process in order to improve the safety, and encrypts the music data to generate the encrypted music data. In some cases, the encrypted music data is distributed to the recording / reproducing apparatus 61 together with the key identification information of the actual use key data used for the encryption process.

この場合、図13に示すように、記録再生装置61の中央処理ユニット62は、当該記録再生装置61の製造メーカから記録媒体又はネットワークNTを介して供給される暗号化ファームウェア及び鍵識別情報を取り込むと、当該取り込んだ暗号化ファームウェア及び鍵識別情報を例えばハードディスクドライブ15に送出してハードディスクに記憶する。このようにして中央処理ユニット62は、製造メーカから暗号化ファームウェア及び対応する鍵識別情報が与えられる毎に当該暗号化ファームウェア及び対応する鍵識別情報を更新する。そして中央処理ユニット62は、記録再生装置61を起動させる毎に、ハードディスクドライブ15からその時点に記憶している最新の暗号化ファームウェア及び対応する鍵識別情報を読み出して、これらを共にデータ処理回路63に送出する。また中央処理ユニット62は、ユーザにより所望の楽曲の配信が要求されると、これに応じて楽曲提供サーバ65から配信された暗号化音楽データ及び鍵識別情報をネットワークインタフェース18及び通信処理部17を順次介して取り込み、当該暗号化音楽データ及び鍵識別情報をハードディスクドライブ15に送出してハードディスクに記録する。そして中央処理ユニット62は、ユーザにより所望の暗号化音楽データの再生が要求されると、これに応じてハードディスクドライブ15からその暗号化音楽データを対応する鍵識別情報と共に読み出してデータ処理回路63に送出する。   In this case, as shown in FIG. 13, the central processing unit 62 of the recording / reproducing apparatus 61 takes in the encrypted firmware and key identification information supplied from the manufacturer of the recording / reproducing apparatus 61 via the recording medium or the network NT. Then, the fetched encrypted firmware and key identification information are sent to the hard disk drive 15, for example, and stored in the hard disk. In this way, the central processing unit 62 updates the encrypted firmware and the corresponding key identification information each time the encrypted firmware and the corresponding key identification information are given from the manufacturer. The central processing unit 62 reads the latest encrypted firmware and the corresponding key identification information stored at that time from the hard disk drive 15 every time the recording / reproducing apparatus 61 is activated, and both of them read the data processing circuit 63. To send. Further, when the user requests distribution of the desired music, the central processing unit 62 sends the encrypted music data and the key identification information distributed from the music providing server 65 to the network interface 18 and the communication processing unit 17 in response to the request. The encrypted music data and key identification information are sent to the hard disk drive 15 and recorded on the hard disk. When the user requests the reproduction of the desired encrypted music data, the central processing unit 62 reads out the encrypted music data together with the corresponding key identification information from the hard disk drive 15 in response to this, and sends it to the data processing circuit 63. Send it out.

ここで図3との対応部分に同一符号を付して示す図15において、データ処理回路63は、DSP70のデータ設定部71に相当する一部機能が第1の実施の形態の場合と異なる。かかるデータ設定部71は、図16に示すように、記録再生装置61が起動する毎に中央処理ユニット62から暗号化ファームウェア及び対応する鍵識別情報が与えられると、初期設定情報に基づき、ファームウェア復号プログラムEP1内の予め選定された1つの部分でなる第1の部分FA10を判別する。そしてデータ設定部71は、ファームウェア復号プログラムEP1を形成するプログラムデータ全体のうち第1の部分FA10のプログラムデータを1つの仮の鍵データD15に設定する。   Here, in FIG. 15 in which the same reference numerals are assigned to corresponding parts to FIG. 3, the data processing circuit 63 differs from the first embodiment in a partial function corresponding to the data setting unit 71 of the DSP 70. As shown in FIG. 16, the data setting unit 71 receives the encrypted firmware and the corresponding key identification information from the central processing unit 62 every time the recording / reproducing apparatus 61 is activated. A first part FA10 consisting of one part selected in advance in the program EP1 is discriminated. Then, the data setting unit 71 sets the program data of the first portion FA10 in one temporary key data D15 among the entire program data forming the firmware decryption program EP1.

またデータ設定部71は、初期設定情報に基づき、ファームウェア復号プログラムEP1内の第1の部分FA10と一部重複する1つの部分でなる第2の部分SA10を判別する。この場合、図17に示すように、ファームウェア復号プログラムEP1については、第2の部分SA10が、複数種類の仮の処理対象データD16の設定に用いる複数の箇所(以下、これをデータ設定使用箇所と呼ぶ)SA101乃至SA103を例えば順次一部重複させて含むようなデータサイズに選定されている。そして初期設定情報は、第2の部分SA10内の複数のデータ設定使用箇所SA101乃至SA103をそれぞれ判別可能な位置情報を含む。また初期設定情報では、第2の部分SA10内の複数のデータ設定使用箇所SA101乃至SA103の位置情報に対し、それぞれ個々のデータ設定使用箇所SA101、SA102又はSA103のプログラムデータを仮の処理対象データD16として用いたときに生成される実使用鍵データD17の鍵識別情報が対応付けられている。従ってデータ設定部71(図16)は、ファームウェア復号プログラムEP1内の第2の部分SA10を判別すると、このとき中央処理ユニット62から与えられた鍵識別情報に基づき初期設定情報内の対応する位置情報を選択すると共に、当該選択した位置情報に応じて、当該第2の部分SA10内の対応する1つのデータ設定使用箇所SA101、SA102又はSA103を判別する。そしてデータ設定部71は、ファームフェア復号プログラムEP1を形成するプログラムデータ全体のうち第2の部分SA10内で判別した1つのデータ設定使用箇所SA101、SA102又はSA103のプログラムデータを仮の処理対象データD16に設定する。このようにしてデータ設定部71は、ファームウェア復号プログラムEP1を用いて設定した仮の鍵データD15及び仮の処理対象データD16を鍵データ生成部33に送出する。   Further, the data setting unit 71 determines a second part SA10 that is a part that partially overlaps the first part FA10 in the firmware decryption program EP1 based on the initial setting information. In this case, as shown in FIG. 17, for the firmware decryption program EP1, the second portion SA10 uses a plurality of locations used for setting a plurality of types of temporary processing target data D16 (hereinafter referred to as data setting usage locations). For example, the data size is selected so as to partially overlap SA101 to SA103. The initial setting information includes position information that can identify each of the plurality of data setting use locations SA101 to SA103 in the second portion SA10. Further, in the initial setting information, the program data of each data setting use location SA101, SA102, or SA103 is stored in the temporary processing target data D16 with respect to the location information of the plurality of data setting use locations SA101 to SA103 in the second portion SA10. Are associated with the key identification information of the actual use key data D17 generated when used as. Accordingly, when the data setting unit 71 (FIG. 16) determines the second part SA10 in the firmware decryption program EP1, the corresponding position information in the initial setting information is based on the key identification information given from the central processing unit 62 at this time. And corresponding one data setting use location SA101, SA102 or SA103 in the second portion SA10 is determined according to the selected position information. Then, the data setting unit 71 sets the program data of one data setting use location SA101, SA102 or SA103 determined in the second portion SA10 out of the entire program data forming the firmware decryption program EP1 as temporary processing target data D16. Set to. In this way, the data setting unit 71 sends the temporary key data D15 and temporary processing target data D16 set by using the firmware decryption program EP1 to the key data generation unit 33.

これにより鍵データ生成部33は、データ設定部71から与えられた仮の鍵データD15及び仮の処理対象データD16を用いて上述した第1の実施の形態の場合と同様に復号処理することにより、暗号化ファームウェアの復号処理に用いる実使用鍵データD17を生成すると共に、当該生成した実使用鍵データD17をメモリ30に記憶する。そしてコーデック処理部34は、かかる実使用鍵データD17を用いて、このとき中央処理ユニット62から転送されメモリ30に一時記憶していた暗号化ファームウェアを上述した第1の実施の形態の場合と同様に復号処理することにより、その暗号化を解いたファームウェアを生成する。   As a result, the key data generation unit 33 uses the temporary key data D15 and temporary processing target data D16 given from the data setting unit 71 to perform decryption processing in the same manner as in the first embodiment described above. The actual use key data D17 used for the decryption process of the encrypted firmware is generated, and the generated actual use key data D17 is stored in the memory 30. Then, the codec processing unit 34 uses the actual use key data D17 to store the encrypted firmware that is transferred from the central processing unit 62 and temporarily stored in the memory 30 at this time, as in the case of the first embodiment described above. By performing the decryption process, the decrypted firmware is generated.

またデータ設定部71は、ユーザによる暗号化音楽データの再生要求に応じて、中央処理ユニット62から当該暗号化音楽データと共に対応する鍵識別情報が与えられる毎に、初期設定情報に基づき、データ復号プログラムEP2内の予め選定された1つの部分でなる第1の部分FA11を判別する。そしてデータ設定部71は、データ復号プログラムEP2を形成するプログラムデータ全体のうち第1の部分FA11のプログラムデータを1つの仮の鍵データD18に設定する。   The data setting unit 71 performs data decryption based on the initial setting information every time the central processing unit 62 provides corresponding key identification information together with the encrypted music data in response to a reproduction request of the encrypted music data by the user. A first part FA11 consisting of one part selected in advance in the program EP2 is discriminated. Then, the data setting unit 71 sets the program data of the first part FA11 in one temporary key data D18 among the entire program data forming the data decryption program EP2.

この場合、データ復号プログラムEP2については、上述のファームウェア復号プログラムEP1の場合と同様に、第2の部分SA11が、複数種類の仮の処理対象データD19に対応する複数のデータ設定使用箇所SA111乃至SA113を例えば順次一部重複させて含むようなデータサイズに選定されている。そして初期設定情報は、第2の部分SA11内の複数のデータ設定使用箇所SA111乃至SA113をそれぞれ判別可能な位置情報を含む。また初期設定情報では、第2の部分SA11内の複数のデータ設定使用箇所SA111乃至SA113の位置情報に対し、それぞれ個々のデータ設定使用箇所SA111、SA112又はSA113のプログラムデータを仮の処理対象データD19として用いたときに生成される実使用鍵データD20の鍵識別情報が対応付けられている。   In this case, for the data decryption program EP2, as in the case of the firmware decryption program EP1, the second part SA11 has a plurality of data setting use locations SA111 to SA113 corresponding to a plurality of types of temporary processing target data D19. For example, the data size is selected so as to partially overlap one another. The initial setting information includes position information that can identify each of the plurality of data setting use locations SA111 to SA113 in the second portion SA11. Further, in the initial setting information, the program data of each data setting / use location SA111, SA112 or SA113 is provisionally processed data D19 with respect to the position information of the plurality of data setting / use locations SA111 to SA113 in the second portion SA11. Are associated with the key identification information of the actual use key data D20 generated when used as a key.

従ってデータ設定部71は、初期設定情報に基づき、データ復号プログラムEP2内の第1の部分FA11と一部重複する1つの部分でなる第2の部分SA11を判別する。またデータ設定部71は、このとき中央処理ユニット62から与えられた鍵識別情報に基づき初期設定情報内の対応する位置情報を選択すると共に、当該選択した位置情報に応じて、当該第2の部分SA11内の対応する1つのデータ設定使用箇所SA111、SA112又はSA113を判別する。そしてデータ設定部71は、データ復号プログラムEP2を形成するプログラムデータ全体のうち第2の部分SA11内で判別した1つのデータ設定使用箇所SA111、SA112又はSA113のプログラムデータを仮の処理対象データD19に設定する。このようにしてデータ設定部71は、データ復号プログラムEP2を用いて設定した仮の鍵データD18及び仮の処理対象データD19を鍵データ生成部33に送出する。   Therefore, the data setting unit 71 determines the second part SA11 that is a part that partially overlaps the first part FA11 in the data decoding program EP2 based on the initial setting information. In addition, the data setting unit 71 selects corresponding position information in the initial setting information based on the key identification information given from the central processing unit 62 at this time, and the second part according to the selected position information. One corresponding data setting use location SA111, SA112 or SA113 in SA11 is determined. Then, the data setting unit 71 sets the program data of one data setting use location SA111, SA112 or SA113 determined in the second portion SA11 out of the entire program data forming the data decryption program EP2 as temporary processing target data D19. Set. In this way, the data setting unit 71 sends the temporary key data D18 and temporary processing target data D19 set using the data decryption program EP2 to the key data generation unit 33.

これにより鍵データ生成部33は、データ設定部71から与えられた仮の鍵データD18及び仮の処理対象データD19を用いて上述した第1の実施の形態の場合と同様に復号処理することにより、暗号化音楽データの復号処理に用いる実使用鍵データD20を生成すると共に、当該生成した実使用鍵データD20をメモリ30に記憶する。そしてコーデック処理部34は、かかる実使用鍵データD20を用いて、このとき中央処理ユニット62から転送されメモリ30に一時記憶している暗号化音楽データを上述した第1の実施の形態の場合と同様に復号処理することにより圧縮符号化音楽データを生成する。   As a result, the key data generation unit 33 uses the temporary key data D18 and the temporary processing target data D19 given from the data setting unit 71 to perform decryption processing in the same manner as in the first embodiment described above. Then, the actual use key data D20 used for the decryption process of the encrypted music data is generated, and the generated actual use key data D20 is stored in the memory 30. The codec processing unit 34 uses the actual use key data D20 to store the encrypted music data transferred from the central processing unit 62 at this time and temporarily stored in the memory 30 in the case of the first embodiment described above. Similarly, compression-coded music data is generated by performing decoding processing.

そしてデータ処理回路63では、かかるファームウェア復号プログラムEP1及びデータ復号プログラムEP2を、図18に示すような複数の実使用鍵データをそれぞれ擬装処理して鍵擬装データD21乃至D23として埋め込むようにする復号プログラムEP5と比較すると、当該ファームウェア復号プログラムEP1及びデータ復号プログラムEP2に対し、それぞれ実使用鍵データD17及びD20を埋め込む必要がない分、メモリ30の容量が増大することを回避することができる。また復号プログラムEP5に対し鍵擬装データD21乃至D23を埋め込む鍵データ埋込手法では、擬装解除プログラムCCP2も必要となる。これに対してデータ処理回路63では、かかる擬装解除プログラムCCP2を全く必要としないため、メモリ30の容量がさらに擬装解除プログラムCCP2の分だけ増大することも合わせて回避することができる。鍵データ埋込手法では、復号プログラムEP5内で鍵擬装データD21乃至D23が当該復号プログラムEP5としては何ら意味をなさない異別なものであるため、復号プログラムEP5内でかかる鍵擬装データD21乃至D23が容易に区別可能となる。これに対してデータ処理回路63では、ファームウェア復号プログラムEP1及びデータ復号プログラムEP2内のプログラムデータ自体を仮の鍵データD15、D18及び仮の処理対象データD16、D19としているため、これらをファームウェア復号プログラムEP1及びデータ復号プログラムEP2からは容易に区別し得ないようにし、その結果、実使用鍵データD17及びD20も容易に漏洩し難くすることができる。   In the data processing circuit 63, the firmware decryption program EP1 and the data decryption program EP2 are decrypted by embedding a plurality of actual use key data as shown in FIG. 18 and embedding them as key disguise data D21 to D23. Compared with EP5, it is possible to avoid an increase in the capacity of the memory 30 because it is not necessary to embed the actual use key data D17 and D20 in the firmware decryption program EP1 and the data decryption program EP2, respectively. Further, in the key data embedding method for embedding the key disguise data D21 to D23 in the decryption program EP5, the disguise cancellation program CCP2 is also required. On the other hand, since the data processing circuit 63 does not require the disguise cancellation program CCP2 at all, it can be avoided that the capacity of the memory 30 is further increased by the disguise cancellation program CCP2. In the key data embedding method, the key impersonation data D21 to D23 in the decryption program EP5 are different from each other and have no meaning as the decryption program EP5. Therefore, the key impersonation data D21 to D23 in the decryption program EP5. Can be easily distinguished. On the other hand, in the data processing circuit 63, the program data itself in the firmware decryption program EP1 and the data decryption program EP2 is set as temporary key data D15 and D18 and temporary processing target data D16 and D19. It is possible to make it difficult to distinguish from the EP1 and the data decryption program EP2, and as a result, it is possible to make the actual use key data D17 and D20 difficult to leak easily.

実際上、データ処理回路63のDSP70は、メモリ30に予め記憶されたデータ処理制御プログラムに従って上述した、暗号化ファームウェアを復号処理する際の第3のデータ処理制御処理手順や、暗号化音楽データを復号処理する際の第4のデータ処理制御処理手順を実行している。まずDSP70は、記録再生装置2が起動すると、データ処理制御プログラムに従って図19に示す第3のデータ処理制御処理手順RT4を開始する。DSP70は、第3のデータ処理制御処理手順RT4を開始すると、ステップSP31において初期設定情報に基づきファームフェア復号プログラムEP1内の第1の部分FA10を判別し、当該判別した第1の部分FA10のプログラムデータを仮の鍵データD15に設定する。またDSP70は、初期設定情報と、このとき中央処理ユニット62から与えられた鍵識別情報とに基づいて、ファームウェア復号プログラムEP1内の第2の部分SA10を判別すると共に、当該第2の部分SA10内の鍵識別情報に対応する1つのデータ設定使用箇所SA101、SA102又はSA103を判別する。そしてDSP70は、かかる第2の部分SA10内で判別した1つのデータ設定使用箇所SA101、SA102又はSA103のプログラムデータを仮の処理対象データD16に設定して、次のステップSP32に移る。   In practice, the DSP 70 of the data processing circuit 63 receives the above-described third data processing control processing procedure when decrypting the encrypted firmware according to the data processing control program stored in advance in the memory 30, and the encrypted music data. A fourth data processing control processing procedure at the time of decoding processing is executed. First, when the recording / reproducing apparatus 2 is activated, the DSP 70 starts the third data processing control processing procedure RT4 shown in FIG. 19 according to the data processing control program. When starting the third data processing control processing procedure RT4, the DSP 70 determines the first part FA10 in the firmware decoding program EP1 based on the initial setting information in step SP31, and determines the program of the determined first part FA10. Data is set to temporary key data D15. Further, the DSP 70 determines the second part SA10 in the firmware decryption program EP1 based on the initial setting information and the key identification information given from the central processing unit 62 at this time, and also in the second part SA10. One data setting use location SA101, SA102 or SA103 corresponding to the key identification information is determined. Then, the DSP 70 sets the program data of one data setting / use location SA101, SA102 or SA103 determined in the second part SA10 to the temporary processing target data D16, and proceeds to the next step SP32.

ステップSP32においてDSP70は、ファームウェア復号プログラムEP1に従い仮の鍵データD15を用いて仮の処理対象データD16を復号処理することにより実使用鍵データD17を生成して、次のステップSP33に移る。ステップSP33においてDSP70は、かかる実使用鍵データD17をメモリ30に記憶して、次のステップSP34に移る。そしてステップSP34においてDSP70は、ファームウェア復号プログラムEP1に従い実使用鍵データD17を用いて暗号化ファームウェアを復号処理することにより暗号化を解いたファームウェアを生成し、これをメモリ30に記憶した後、次のステップSP35に移ってかかる第3のデータ処理制御処理手順RT4を終了する。このようにしてDSP70は、記録再生装置61が起動する毎にかかる第3のデータ処理制御処理手順RT4を実行する。   In step SP32, the DSP 70 generates the actual use key data D17 by decrypting the temporary processing target data D16 using the temporary key data D15 in accordance with the firmware decryption program EP1, and proceeds to the next step SP33. In step SP33, the DSP 70 stores the actual use key data D17 in the memory 30, and proceeds to the next step SP34. In step SP34, the DSP 70 generates the decrypted firmware by decrypting the encrypted firmware using the actual use key data D17 in accordance with the firmware decryption program EP1, and stores the decrypted firmware in the memory 30. The process proceeds to step SP35 to end the third data processing control processing procedure RT4. In this way, the DSP 70 executes the third data processing control processing procedure RT4 every time the recording / reproducing apparatus 61 is activated.

またDSP70は、記録再生装置61が起動しファームウェアの暗号化を解いてデータ復号プログラムEP2を得ると、データ処理制御プログラムに従って図20に示す第4のデータ処理制御処理手順RT5を開始する。DSP70は、かかる第4のデータ処理制御処理手順RT5を開始すると、ステップSP41において暗号化音楽データに対するデータ処理を実行するか否かを判別する。このステップSP41において肯定結果が得られると、このことはユーザにより暗号化音楽データの再生が要求されたことを表している。すなわち、かかる肯定結果は、DSP70に対し中央処理ユニット62から暗号化音楽データに対するデータ処理の実行開始を要求する処理開始要求が与えられると共に、データ処理回路63のメモリ30に当該中央処理ユニット62から転送された処理対象の暗号化音楽データを一時記憶し始めたことを表している。従ってDSP70は、このとき次のステップSP42に移る。   When the recording / reproducing apparatus 61 is activated and the firmware is decrypted to obtain the data decryption program EP2, the DSP 70 starts the fourth data processing control processing procedure RT5 shown in FIG. 20 according to the data processing control program. When starting the fourth data processing control processing procedure RT5, the DSP 70 determines whether or not to execute data processing on the encrypted music data in step SP41. If a positive result is obtained in step SP41, this indicates that the user has requested reproduction of the encrypted music data. In other words, the affirmative result is that a processing start request is issued from the central processing unit 62 to the DSP 70 to start execution of data processing on the encrypted music data, and the memory 30 of the data processing circuit 63 is sent to the memory 30 from the central processing unit 62. This indicates that the transferred encrypted music data to be processed is temporarily stored. Therefore, the DSP 70 proceeds to the next step SP42 at this time.

ステップSP42においてDSP70は、初期設定情報に基づきデータ復号プログラムEP2内の第1の部分FA11を判別し、当該判別した第1の部分FA11のプログラムデータを仮の鍵データD18に設定する。またDSP70は、初期設定情報と、このとき中央処理ユニット62から与えられた鍵識別情報とに基づいて、データ復号プログラムEP2内の第2の部分SA11を判別すると共に、当該第2の部分SA11内の鍵識別情報に対応する1つのデータ設定使用箇所SA111、SA112又はSA113を判別する。そしてDSP70は、かかる1つのデータ設定使用箇所SA111、SA112又はSA113のプログラムデータを仮の処理対象データD19に設定して、次のステップSP43に移る。   In step SP42, the DSP 70 determines the first part FA11 in the data decryption program EP2 based on the initial setting information, and sets the determined program data of the first part FA11 in the temporary key data D18. Further, the DSP 70 determines the second part SA11 in the data decryption program EP2 based on the initial setting information and the key identification information given from the central processing unit 62 at this time, and also in the second part SA11. One data setting use location SA111, SA112 or SA113 corresponding to the key identification information is determined. Then, the DSP 70 sets the program data of one data setting / use location SA111, SA112 or SA113 in the temporary processing target data D19, and proceeds to the next step SP43.

ステップSP43においてDSP70は、データ復号プログラムEP2に従い仮の鍵データD18を用いて仮の処理対象データD19を復号処理することにより実使用鍵データD20を生成して、次のステップSP44に移る。ステップSP44においてDSP70は、かかる実使用鍵データD20をメモリ30に記憶して、次のステップSP45に移る。そしてステップSP45においてDSP70は、データ復号プログラムEP2に従い実使用鍵データD20を用いて暗号化音楽データを復号処理することにより圧縮符号化音楽データを生成すると共に、伸張プログラムに従って当該圧縮符号化音楽データを伸張処理することにより音楽データを生成し、これを音声処理部20に送出して、次のステップSP46に移る。   In step SP43, the DSP 70 generates the actual use key data D20 by decrypting the temporary processing target data D19 using the temporary key data D18 in accordance with the data decryption program EP2, and then proceeds to the next step SP44. In step SP44, the DSP 70 stores the actual use key data D20 in the memory 30, and proceeds to the next step SP45. In step SP45, the DSP 70 generates compressed encoded music data by decrypting the encrypted music data using the actual use key data D20 according to the data decryption program EP2, and generates the compressed encoded music data according to the decompression program. Music data is generated by performing the decompression process, and the music data is transmitted to the audio processing unit 20, and the process proceeds to the next step SP46.

ステップSP46においてDSP70は、データ処理回路63の起動を停止させるか否かを判別する。その結果、DSP70は、記録再生装置61が動作途中であることに伴いデータ処理回路63も動作させたままの状態にするため否定結果を得ると、ステップSP41に戻る。ところで上述のステップSP41において否定結果が得られると、このことはユーザにより未だ暗号化音楽データの再生が要求されてはいないことを表している。従ってDSP70は、このときステップSP46に移る。このためDSP70は、この後、ステップSP46において肯定結果を得るまでの間、暗号化音楽データの再生が要求される毎にステップSP41乃至ステップSP46の処理を循環的に繰り返すようにして当該暗号化音楽データを再生する。そしてDSP70は、ステップSP46において、記録再生装置61の起動停止に伴い、データ処理回路63も起動停止することで肯定結果を得ると、次のステップSP47に移って、かかる第4のデータ処理制御処理手順RT5を終了する。このようにしてDSP70は、記録再生装置61が起動する毎にかかる第4のデータ処理制御処理手順RT5を実行する。   In step SP46, the DSP 70 determines whether or not to stop the data processing circuit 63 from being activated. As a result, when the DSP 70 obtains a negative result in order to keep the data processing circuit 63 in operation while the recording / reproducing apparatus 61 is in operation, the DSP 70 returns to step SP41. By the way, if a negative result is obtained in the above-described step SP41, this indicates that the user has not yet requested reproduction of the encrypted music data. Therefore, the DSP 70 proceeds to step SP46 at this time. Therefore, the DSP 70 thereafter repeats the processing of steps SP41 to SP46 cyclically every time reproduction of the encrypted music data is requested until a positive result is obtained in step SP46. Play the data. When the DSP 70 obtains a positive result by stopping the data processing circuit 63 in response to the start / stop of the recording / reproducing device 61 in step SP46, the DSP 70 proceeds to the next step SP47 and performs the fourth data processing control process. The procedure RT5 is terminated. In this way, the DSP 70 executes the fourth data processing control processing procedure RT5 every time the recording / reproducing apparatus 61 is activated.

次いで図14に示すように、楽曲提供サーバ65のデータ処理回路67は、耐タンパ性を有するメモリ75と、DSP構成のコーデック処理部76とをそれぞれ構成するICチップが実装された回路基板として形成されている。そして回路基板構成のデータ処理回路67は、例えば記録再生装置61の製造メーカで製造されている。記録再生装置61の製造メーカは、データ処理回路67の製造時、当該記録再生装置61のデータ処理回路63と同様に、データ復号プログラムEP2内の第1及び第2の部分FA11及びSA11のプログラムデータを仮の鍵データD18及び仮の処理対象データD19に設定し、当該データ復号プログラムEP2に従い仮の鍵データD18を用いて仮の処理対象データD19を復号処理することにより複数種類の実使用鍵データD20を生成している。そして製造メーカは、かかる複数種類の実使用鍵データD20をそれぞれ対応する鍵識別情報と共にデータ処理回路67のメモリ75に記憶している。また製造メーカは、データ処理回路67のメモリ75に対し、上述した第1の実施の形態の場合と同様にデータ暗号化プログラム及び圧縮符号化プログラム並びにデータ可逆処理制御プログラムも記憶している。そして製造メーカは、かかる回路基板構成のデータ処理回路67を楽曲提供サーバ65の運営会社に提供し、当該楽曲提供サーバ65に組み込ませている。   Next, as shown in FIG. 14, the data processing circuit 67 of the music providing server 65 is formed as a circuit board on which an IC chip that constitutes a tamper-resistant memory 75 and a DSP-configured codec processing unit 76 is mounted. Has been. The data processing circuit 67 having a circuit board configuration is manufactured by, for example, a manufacturer of the recording / reproducing apparatus 61. When the data processing circuit 67 is manufactured, the manufacturer of the recording / reproducing apparatus 61, like the data processing circuit 63 of the recording / reproducing apparatus 61, program data of the first and second parts FA11 and SA11 in the data decoding program EP2. Are set in the temporary key data D18 and the temporary processing target data D19, and the temporary processing target data D19 is decrypted by using the temporary key data D18 in accordance with the data decryption program EP2, whereby a plurality of types of actually used key data are obtained. D20 is generated. The manufacturer stores the plural types of actual use key data D20 in the memory 75 of the data processing circuit 67 together with the corresponding key identification information. The manufacturer also stores a data encryption program, a compression encoding program, and a data reversible processing control program in the memory 75 of the data processing circuit 67 as in the case of the first embodiment described above. Then, the manufacturer provides the data processing circuit 67 having such a circuit board configuration to the operating company of the music providing server 65 and incorporates it in the music providing server 65.

この場合、中央処理ユニット66は、外部から音楽配信用の音楽データが供給されると、かかる音楽データをデータ処理回路67のコーデック処理部76に送出する。コーデック処理部76は、中央処理ユニット66から音楽配信用の音楽データが与えられると、メモリ75内の圧縮符号化プログラムに従い当該音楽データを圧縮符号化処理することにより圧縮符号化音楽データを生成する。そしてコーデック処理部76は、かかる圧縮符号化音楽データを中央処理ユニット66経由でハードディスクドライブ42に送出してハードディスクに記憶する。このようにして中央処理ユニット66は、配信可能な音楽データを圧縮符号化音楽データとしてハードディスクドライブ42に蓄積する。   In this case, when music data for music distribution is supplied from the outside, the central processing unit 66 sends the music data to the codec processing unit 76 of the data processing circuit 67. When the music data for music distribution is given from the central processing unit 66, the codec processing unit 76 performs compression coding processing on the music data in accordance with the compression coding program in the memory 75 to generate compression coded music data. . The codec processing unit 76 sends the compression-encoded music data to the hard disk drive 42 via the central processing unit 66 and stores it in the hard disk. In this way, the central processing unit 66 stores the distributable music data in the hard disk drive 42 as the compression encoded music data.

また中央処理ユニット66は、楽曲提供サーバ65が始めて機動したとき、例えば予め圧縮符号化音楽データの暗号化処理で最初に用いるように選定されている実使用鍵データD20の鍵識別情報をデータ処理回路67のコーデック処理部76に通知する。これによりデータ処理回路67のコーデック処理部76は、中央処理ユニット66から鍵識別情報が通知されると、メモリ75内の複数種類の実使用鍵データD20のうち当該鍵識別情報に対応する1つの実使用鍵データD20を暗号化処理に用いるように設定する。この後、中央処理ユニット66は、例えば楽曲提供サーバ65の運営会社から定期的に実使用鍵データD20の変更が指示され、新たに暗号化処理に用いる実使用鍵データD20の鍵識別情報が通知されると、これに応じてデータ処理回路67のコーデック処理部76に対し当該鍵識別情報と共に実使用鍵データD20の変更を通知する。これによりデータ処理回路67のコーデック処理部76は、メモリ75内の複数種類の実使用鍵データD20のうち、中央処理ユニット66から通知された鍵識別情報に対応する1つの実使用鍵データD20を新たに暗号化処理に用いるように設定し直す。このようにしてコーデック処理部76は、中央処理ユニット66から鍵識別情報と共に実使用鍵データD20の変更が通知される毎に、暗号化処理に用いる1つの実使用鍵データD20を変更する。   When the music providing server 65 is activated for the first time, the central processing unit 66 performs data processing on the key identification information of the actually used key data D20 that is selected to be used first in the encryption processing of the compression encoded music data, for example. This is notified to the codec processing unit 76 of the circuit 67. Thus, when the key identification information is notified from the central processing unit 66, the codec processing unit 76 of the data processing circuit 67 receives one of the plurality of types of actually used key data D20 in the memory 75 corresponding to the key identification information. The actual use key data D20 is set to be used for the encryption process. Thereafter, the central processing unit 66 is periodically instructed to change the actual use key data D20 by, for example, the operating company of the music providing server 65, and is notified of the key identification information of the actual use key data D20 newly used for the encryption process. In response to this, the codec processing unit 76 of the data processing circuit 67 is notified of the change of the actual key data D20 together with the key identification information. As a result, the codec processing unit 76 of the data processing circuit 67 selects one actual used key data D20 corresponding to the key identification information notified from the central processing unit 66 among the plurality of types of actual used key data D20 in the memory 75. Set again to use for encryption processing. In this way, every time the central processing unit 66 notifies the change of the actual use key data D20 together with the key identification information, the codec processing unit 76 changes one actual use key data D20 used for the encryption process.

このような状況のもと中央処理ユニット66は、記録再生装置61からユーザによる所望の楽曲の配信要求に応じて配信要求信号がネットワークNT経由で送信されると、かかる配信要求信号をネットワークインタフェース48及び通信処理部49を順次介して取り込む。そして中央処理ユニット66は、かかる配信要求信号に応じてハードディスクドライブ42からユーザにより配信要求された楽曲に対応する圧縮符号化音楽データを選択的に読み出すと共に、当該読み出した圧縮符号化音楽データをデータ処理回路67のコーデック処理部76に送出する。コーデック処理部76は、中央処理ユニット66から配信対象の圧縮符号化音楽データが与えられると、メモリ75からデータ暗号化プログラムと、その時点に暗号化処理に用いるように設定している実使用鍵データD20とを読み出す。そしてコーデック処理部76は、かかるデータ暗号化プログラムに従い実使用鍵データD20を用いて圧縮符号化音楽データを暗号化処理することにより暗号化音楽データを生成する。このようにしてコーデック処理部76は、配信対象の圧縮符号化音楽データから暗号化音楽データを生成すると、当該暗号化音楽データを、このとき暗号化処理に用いた実使用鍵データD20の鍵識別情報と共に中央処理ユニット66に送出する。これにより中央処理ユニット66は、暗号化音楽データを鍵識別情報と共に通信処理部49及びネットワークインタフェース48を順次介してネットワークNT経由で記録再生装置61に送信する。このようにして中央処理ユニット66は、記録再生装置61に対し暗号化音楽データをその暗号化処理に用いた実使用鍵データD20の鍵識別情報と共に配信することができる。   Under such circumstances, when the distribution request signal is transmitted from the recording / reproducing apparatus 61 in response to a distribution request for a desired music piece by the user via the network NT, the central processing unit 66 sends the distribution request signal to the network interface 48. And the communication processing unit 49 is taken in sequentially. The central processing unit 66 selectively reads out the compressed encoded music data corresponding to the music requested to be distributed by the user from the hard disk drive 42 in response to the distribution request signal, and the read compressed encoded music data as data. The data is sent to the codec processing unit 76 of the processing circuit 67. When the compression encoded music data to be distributed is given from the central processing unit 66, the codec processing unit 76 stores the data encryption program from the memory 75 and the actual use key set to be used for the encryption process at that time. Read data D20. Then, the codec processing unit 76 generates encrypted music data by encrypting the compression-encoded music data using the actual use key data D20 in accordance with the data encryption program. In this way, when the codec processing unit 76 generates the encrypted music data from the compression encoded music data to be distributed, the code identification unit 76 identifies the encrypted music data as the key identification of the actually used key data D20 used for the encryption process at this time. The information is sent to the central processing unit 66 together with the information. Thereby, the central processing unit 66 transmits the encrypted music data together with the key identification information to the recording / reproducing apparatus 61 via the communication processing unit 49 and the network interface 48 via the network NT. In this way, the central processing unit 66 can distribute the encrypted music data to the recording / reproducing apparatus 61 together with the key identification information of the actual use key data D20 used for the encryption processing.

実際上、データ処理回路67のコーデック処理部76は、楽曲提供サーバ65が起動すると、メモリ75に予め記憶されたデータ可逆処理制御プログラムに従って図21に示す第2のデータ可逆処理制御処理手順RT6を開始する。コーデック処理部76は、かかる第2のデータ可逆処理制御処理手順RT6を開始すると、ステップSP51においてメモリ75内の複数種類の実使用鍵データD20のうち、このとき中央処理ユニット66から通知された鍵識別情報に対応する1つの実使用鍵データD20を暗号化処理に用いるように設定して、次のステップSP52に移る。ステップSP52においてコーデック処理部76は、配信対象の圧縮符号化音楽データに対する暗号化処理を実行するか否かを判別する。このステップSP52において否定結果が得られると、このことはこの時点に記録再生装置61から楽曲の配信が要求されてはいないことを表している。従ってコーデック処理部76は、このときステップSP53に移る。ステップSP53においてコーデック処理部76は、暗号化処理に用いる実使用鍵データD20を変更するか否かを判別する。このステップSP53において否定結果が得られると、このことはこの時点に中央処理ユニット66からは鍵識別情報と共に実使用鍵データD20の変更が通知されてはいないことを表している。従ってコーデック処理部76は、このときステップSP52に戻る。従ってコーデック処理部76は、この後、ステップSP52及びステップSP53で肯定結果を得るまでの間、当該ステップSP52及びステップSP53の処理を循環的に繰り返すことにより、圧縮符号化音楽データに対する暗号化処理の実行及び実使用鍵データD20の変更が要求されることを待ち受ける。   In practice, when the music providing server 65 is activated, the codec processing unit 76 of the data processing circuit 67 performs the second data reversible processing control processing procedure RT6 shown in FIG. 21 according to the data reversible processing control program stored in the memory 75 in advance. Start. When the codec processing unit 76 starts the second data reversible process control processing procedure RT6, the key notified from the central processing unit 66 at this time among the plural types of actual use key data D20 in the memory 75 in step SP51. One actual use key data D20 corresponding to the identification information is set to be used for the encryption process, and the process proceeds to the next step SP52. In step SP52, the codec processing unit 76 determines whether or not to perform encryption processing on the compression-coded music data to be distributed. If a negative result is obtained in this step SP52, this means that the distribution of music is not requested from the recording / reproducing apparatus 61 at this time. Accordingly, the codec processing unit 76 proceeds to step SP53 at this time. In step SP53, the codec processing unit 76 determines whether to change the actual use key data D20 used for the encryption process. If a negative result is obtained in step SP53, this means that the central processing unit 66 has not been notified of the change of the actual use key data D20 together with the key identification information at this time. Accordingly, the codec processing unit 76 returns to step SP52 at this time. Accordingly, the codec processing unit 76 thereafter repeats the processing of step SP52 and step SP53 cyclically until obtaining a positive result at step SP52 and step SP53, thereby performing the encryption processing for the compression encoded music data. It waits for a request to change the execution and actual use key data D20.

そしてステップSP53において肯定結果が得られると、このことはこの時点に中央処理ユニット66から鍵識別情報と共に実使用鍵データD20の変更が通知されたことを表している。従ってコーデック処理部76は、このとき次のステップSP54に移る。そしてステップSP54においてコーデック処理部76は、メモリ75内の複数種類の実使用鍵データD20のうち、中央処理ユニット66から新たに通知された鍵識別情報に対応する1つの実使用鍵データD20を暗号化処理に用いるように設定し直すことで、当該暗号化処理に用いる実所用鍵データD20を変更して、ステップSP52に戻る。またステップSP52において肯定結果が得られると、このことはこの時点に記録再生装置61から楽曲の配信が要求されたことを表している。すなわちかかる肯定結果は、中央処理ユニット66から配信対象の圧縮符号化音楽データが与えられたことを表している。従ってコーデック処理部76は、このときステップSP55に移る。   If a positive result is obtained in step SP53, this indicates that the change of the actual use key data D20 is notified from the central processing unit 66 together with the key identification information at this time. Accordingly, the codec processing unit 76 proceeds to the next step SP54 at this time. In step SP54, the codec processing unit 76 encrypts one actual use key data D20 corresponding to the key identification information newly notified from the central processing unit 66 among the plurality of kinds of actual use key data D20 in the memory 75. The real key data D20 used for the encryption process is changed by resetting it to be used for the encryption process, and the process returns to step SP52. If an affirmative result is obtained in step SP52, this indicates that the recording / playback apparatus 61 has requested distribution of music at this point. That is, this positive result indicates that the compression-coded music data to be distributed has been given from the central processing unit 66. Accordingly, the codec processing unit 76 proceeds to step SP55 at this time.

そしてステップSP55においてコーデック処理部76は、メモリ75内のデータ暗号化プログラムに従い最新の(すなわち、この時点で暗号化処理に用いるように設定している)実使用鍵データD20を用いて、かかる圧縮符号化音楽データを暗号化処理することにより暗号化音楽データを生成して、次のステップSP56に移る。これによりステップSP56においてコーデック処理部76は、かかる暗号化音楽データに対し、この時点の暗号化処理に用いた実使用鍵データD20の鍵識別情報を対応付け、これら暗号化音楽データ及び鍵識別情報を中央処理ユニット66に送出した後、ステップSP52に戻る。このようにしてコーデック処理部76は、この後、ステップSP52乃至ステップSP56の処理を循環的に繰り返すようにして、暗号化処理に用いる実使用鍵データD20を適宜変更すると共に、楽曲の配信が要求される毎に、最新の実使用鍵データD20を用いて配信対象の圧縮符号化音楽データを暗号化処理することにより暗号化音楽データを生成する。   In step SP55, the codec processing unit 76 uses the latest used key data D20 (that is, set to be used for encryption processing at this time) according to the data encryption program in the memory 75, and performs such compression. Encrypted music data is generated by encrypting the encoded music data, and the process proceeds to the next step SP56. Accordingly, in step SP56, the codec processing unit 76 associates the encrypted music data with the key identification information of the actual use key data D20 used for the encryption processing at this time, and the encrypted music data and the key identification information. Is sent to the central processing unit 66, and the process returns to step SP52. In this way, the codec processing unit 76 thereafter repeats the processing of step SP52 to step SP56 in a cyclic manner, appropriately changes the actual key data D20 used for the encryption processing, and requests distribution of music. Each time, the encrypted music data is generated by encrypting the compression-coded music data to be distributed using the latest actual use key data D20.

以上の構成において、記録再生装置61では起動時、中央処理ユニット62が暗号化ファームウェアと共にその暗号化処理に用いられた実使用鍵データD17の鍵識別情報をデータ処理回路63に送出する。これに応じてデータ処理回路63のDSP70は、メモリ30に予め記憶されたデータ処理制御プログラムに従って初期設定情報に基づき、ファームフェア復号プログラムEP1内の第1の部分FA10全体のプログラムデータをそのまま1つの仮の鍵データD15に設定する。またDSP70は、初期設定情報及び鍵識別情報に基づき、ファームウェア復号プログラムEP1の第2の部分SA10内の複数のデータ設定使用箇所SA101乃至SA103のうち当該鍵識別情報に対応する1つのデータ設定使用箇所SA101、SA102又はSA103のプログラムデータのみを1つの仮の処理対象データD16に設定する(ステップSP31)。そしてDSP70は、ファームウェア復号プログラムEP1に従い仮の鍵データD15を用いて仮の処理対象データD16を復号処理することにより実使用鍵データD17を生成し、当該生成した実使用鍵データD17をメモリ30に記憶する(ステップSP32及びステップSP33)。この状態でDSP70は、ファームウェア復号プログラムEP1に従い実使用鍵データD17を用いて暗号化ファームウェアを復号処理することにより暗号化を解いたファームウェアを生成し、これをメモリ30に記憶する(ステップSP34)。   In the above configuration, when the recording / reproducing apparatus 61 is activated, the central processing unit 62 sends the key identification information of the actual use key data D17 used for the encryption processing together with the encryption firmware to the data processing circuit 63. In response to this, the DSP 70 of the data processing circuit 63 stores the entire program data of the first portion FA10 in the firmware decoding program EP1 as it is based on the initial setting information in accordance with the data processing control program stored in the memory 30 in advance. The temporary key data D15 is set. The DSP 70 also uses one data setting use location corresponding to the key identification information among the plurality of data setting use locations SA101 to SA103 in the second part SA10 of the firmware decryption program EP1 based on the initial setting information and the key identification information. Only the program data of SA101, SA102 or SA103 is set as one temporary processing target data D16 (step SP31). Then, the DSP 70 generates the actual use key data D17 by decrypting the temporary processing target data D16 using the temporary key data D15 according to the firmware decryption program EP1, and stores the generated actual use key data D17 in the memory 30. Store (step SP32 and step SP33). In this state, the DSP generates decrypted firmware by decrypting the encrypted firmware using the actual use key data D17 in accordance with the firmware decryption program EP1, and stores the decrypted firmware in the memory 30 (step SP34).

また記録再生装置61では、暗号化音楽データの再生が要求されたとき、中央処理ユニット62が処理対象の暗号化音楽データ及びその暗号化処理に用いられた実使用鍵データD20の鍵識別情報をデータ処理回路63に送出する(ステップSP41)。これに応じてデータ処理回路63のDSP70は、メモリ30に予め記憶されたデータ処理制御プログラムに従って、初期設定情報に基づきデータ復号プログラムEP2内の第1の部分FA11全体のプログラムデータをそのまま1つの仮の鍵データD18に設定する。またDSP70は、初期設定情報及び鍵識別情報に基づき、データ復号プログラムEP2の第2の部分SA11内の複数のデータ設定使用箇所SA111乃至SA113のうち当該鍵識別情報に対応する1つのデータ設定使用箇所SA111、SA112又はSA113のプログラムデータのみを1つの仮の処理対象データD19に設定する(ステップSP42)。そしてDSP70は、データ復号プログラムEP2に従い仮の鍵データD18を用いて仮の処理対象データD19を復号処理することにより実使用鍵データD20を生成し、当該生成した実使用鍵データD20をメモリ30に記憶する(ステップSP43及びステップSP44)。この状態でDSP70は、データ復号プログラムEP2に従いかかる実使用鍵データD20を用いて暗号化音楽データを復号処理することにより圧縮符号化音楽データを生成すると共に、伸張プログラムに従って当該圧縮符号化音楽データを伸張処理することにより音楽データを生成する(ステップSP45)。   In the recording / reproducing apparatus 61, when the reproduction of the encrypted music data is requested, the central processing unit 62 obtains the encrypted music data to be processed and the key identification information of the actually used key data D20 used for the encryption process. The data is sent to the data processing circuit 63 (step SP41). In response to this, the DSP 70 of the data processing circuit 63 follows the data processing control program stored in the memory 30 in advance, and the entire program data of the first portion FA11 in the data decoding program EP2 is directly stored as one temporary data based on the initial setting information. To the key data D18. The DSP 70 also uses one data setting use location corresponding to the key identification information among the plurality of data setting use locations SA111 to SA113 in the second part SA11 of the data decryption program EP2 based on the initial setting information and the key identification information. Only the program data of SA111, SA112 or SA113 is set as one temporary processing target data D19 (step SP42). Then, the DSP 70 generates the actual use key data D20 by decrypting the provisional processing target data D19 using the provisional key data D18 in accordance with the data decryption program EP2, and generates the actual use key data D20 in the memory 30. Store (step SP43 and step SP44). In this state, the DSP 70 generates compressed encoded music data by decrypting the encrypted music data using the actual use key data D20 according to the data decryption program EP2, and generates the compressed encoded music data according to the decompression program. Music data is generated by the decompression process (step SP45).

従って記録再生装置61では、ファームウェア復号プログラムEP1内及びデータ復号プログラムEP2内のプログラムデータ自体を、実使用鍵データD17及びD20の生成に使用する仮の鍵データD15、D18及び仮の処理対象データD16、D19とするため、当該ファームウェア復号プログラムEP1及びデータ復号プログラムEP2が第三者に不当に取得されても、その第三者によりこれら仮の鍵データD15、D18及び仮の処理対象データD16、D19が特定されることをほぼ確実に防止することができる。そして記録再生装置61では、ファームウェア復号プログラムEP1内及びデータ復号プログラムEP2内でデータ設定使用箇所SA101乃至SA103及びSA111乃至SA113を複数用意しておき、当該データ設定使用箇所SA101乃至SA103及びSA111乃至SA113を適宜変更して選択し、その選択したデータ設定使用箇所SA101乃至SA103及びSA111乃至SA113のプログラムデータを仮の処理対象データD16及びD19することで、仮の処理対象データD16及びD19自体を適宜変更している。このため記録再生装置61では、ファームウェア復号プログラムEP1及びデータ復号プログラムEP2が第三者に不当に取得されても、その第三者により仮の処理対象データD16及びD19が特定されることをさらに確実に防止することができる。このため記録再生装置61では、上述した第1の実施の形態の場合よりも、第三者に対し実使用鍵データD17及びD18が漏洩することを一段と確実に防止することができる。   Accordingly, in the recording / reproducing apparatus 61, the program data itself in the firmware decryption program EP1 and the data decryption program EP2 is used as temporary key data D15, D18 and temporary processing target data D16 used to generate the actual use key data D17 and D20. Therefore, even if the firmware decryption program EP1 and the data decryption program EP2 are illegally obtained by a third party, the temporary key data D15 and D18 and the provisional processing target data D16 and D19 are obtained by the third party. Can be almost certainly prevented. In the recording / reproducing apparatus 61, a plurality of data setting / use locations SA101 to SA103 and SA111 to SA113 are prepared in the firmware decryption program EP1 and the data decryption program EP2, and the data setting / use locations SA101 to SA103 and SA111 to SA113 are prepared. The temporary setting data D16 and D19 itself are appropriately changed by appropriately changing and selecting the program data of the selected data setting use locations SA101 to SA103 and SA111 to SA113 as the temporary processing target data D16 and D19. ing. Therefore, in the recording / reproducing apparatus 61, even if the firmware decryption program EP1 and the data decryption program EP2 are illegally obtained by a third party, it is further ensured that the provisional processing target data D16 and D19 are specified by the third party. Can be prevented. For this reason, in the recording / reproducing apparatus 61, it is possible to prevent the actual use key data D17 and D18 from leaking to a third party more reliably than in the case of the first embodiment described above.

一方、楽曲提供サーバ65では、中央処理ユニット66が暗号化処理に用いる実使用鍵データD20の鍵識別情報を定期的に変更してデータ処理回路67に通知する。これに応じてデータ処理回路67のコーデック処理部76は、メモリ75に予め記憶している複数種類の実使用鍵データD20のうち、かかる鍵識別情報に対応する実使用鍵データD20を暗号化処理に用いるように設定することにより、当該暗号化処理に用いる実使用鍵データD20を定期的に変更する(ステップSP51及びステップSP54)。この状態で中央処理ユニット66は、楽曲の配信が要求されると、当該楽曲に対応する圧縮符号化音楽データをデータ処理回路67に送出する。このときデータ処理回路67のコーデック処理部76は、メモリ75内のデータ暗号化プログラムに従い、その時点で暗号化処理に用いるように設定している実使用鍵データD20を用いて、かかる圧縮符号化音楽データを暗号化処理することにより暗号化音楽データを生成すると共に、当該暗号化音楽データに対し、その暗号化処理に用いた実使用鍵データD20の鍵識別情報を対応付ける(ステップSP55及びステップSP56)。そして中央処理ユニット66は、かかる暗号化音楽データ及び鍵識別情報を記録再生装置61に配信する。   On the other hand, in the music providing server 65, the central processing unit 66 periodically changes the key identification information of the actual use key data D20 used for the encryption process and notifies the data processing circuit 67 of the key identification information. In response to this, the codec processing unit 76 of the data processing circuit 67 encrypts the actual use key data D20 corresponding to the key identification information among the plural types of actual use key data D20 stored in the memory 75 in advance. By changing the setting so that the actual use key data D20 used for the encryption processing is periodically changed (step SP51 and step SP54). In this state, when the distribution of the music is requested, the central processing unit 66 sends the compression-coded music data corresponding to the music to the data processing circuit 67. At this time, the codec processing unit 76 of the data processing circuit 67 uses the actual use key data D20 set to be used for the encryption processing at that time according to the data encryption program in the memory 75, and performs such compression encoding. Encrypted music data is generated by encrypting the music data, and the key identification information of the actual key data D20 used for the encryption processing is associated with the encrypted music data (step SP55 and step SP56). ). The central processing unit 66 distributes the encrypted music data and the key identification information to the recording / reproducing apparatus 61.

従って楽曲提供サーバ65では、圧縮符号化音楽データの暗号化処理に用いる実使用鍵データD20を適宜変更しても、当該暗号化処理に用いた実使用鍵データD20の鍵識別情報を暗号化音楽データと共に記録再生装置61に配信することで、当該記録再生装置61においてその暗号化音楽データを鍵識別情報に対応する実使用鍵データD20を用いて的確に復号させることができる。そして楽曲提供サーバ65は、暗号化処理に用いる実使用鍵データD20を適宜変更しても、その実使用鍵データD20自体を記録再生装置61との間で転送することなく、当該実使用鍵データD20の鍵識別情報を転送して復号処理に用いる実使用鍵データD20を通知するため、実使用鍵データD20が転送により漏洩することを防止することができる。   Therefore, even if the actual use key data D20 used for the encryption process of the compression encoded music data is appropriately changed, the music providing server 65 uses the key identification information of the actual use key data D20 used for the encryption process as the encrypted music. By distributing the data together with the data to the recording / reproducing apparatus 61, the recorded / reproducing apparatus 61 can accurately decrypt the encrypted music data using the actual use key data D20 corresponding to the key identification information. Then, even if the music use server 65 appropriately changes the actual use key data D20 used for the encryption process, the actual use key data D20 itself is not transferred to and from the recording / reproducing device 61, but the actual use key data D20 is transferred. Therefore, the actual use key data D20 used for the decryption process is notified and the actual use key data D20 can be prevented from being leaked by the transfer.

以上の構成によれば、記録再生装置61において、中央処理ユニット62が暗号化ファームウェアと共に鍵識別情報をデータ処理回路63に送出し、これを受けたデータ処理回路63のDSP70が初期設定情報に基づきファームフェア復号プログラムEP1内の第1の部分FA10全体のプログラムデータをそのまま1つの仮の鍵データD15に設定すると共に、初期設定情報及び鍵識別情報に基づきファームウェア復号プログラムEP1の第2の部分SA10内の複数のデータ設定使用箇所SA101乃至SA103のうち当該鍵識別情報に対応する1つのデータ設定使用箇所SA101、SA102又はSA103のプログラムデータのみを1つの仮の処理対象データD16に設定し、ファームウェア復号プログラムEP1に従い仮の鍵データD15を用いて仮の処理対象データD16を復号処理することにより実使用鍵データD17を生成して記憶し、かくしてファームウェア復号プログラムEP1に従い実使用鍵データD17を用いて暗号化ファームウェアを復号処理するようにした。従って記録再生装置61では、ファームウェア復号プログラムEP1内で仮の処理対象データD16の設定に使用する複数のデータ設定使用箇所SA101乃至SA103を適宜変更して選択し、当該選択したデータ設定使用箇所SA101乃至SA103のプログラムデータを仮の処理対象データD16に設定するようにして当該仮の処理対象データD16自体を適宜変更するため、ファームウェア復号プログラムEP1が第三者に不当に取得されても、仮の処理対象データD16が特定されることをさらに確実に防止することができる。その結果、記録再生装置61では、上述した第1の実施の形態の場合よりも、第三者に対し実使用鍵データD17が漏洩することをさらに確実に防止することができ、かくして実使用鍵データD17の秘匿性を一段と向上させることができる。   According to the above configuration, in the recording / reproducing apparatus 61, the central processing unit 62 sends the key identification information together with the encrypted firmware to the data processing circuit 63, and the DSP 70 of the data processing circuit 63 receiving the key identification information based on the initial setting information. The entire program data of the first part FA10 in the firmware decryption program EP1 is set as it is in one temporary key data D15 as it is, and in the second part SA10 of the firmware decryption program EP1 based on the initial setting information and the key identification information. Of the plurality of data setting / use locations SA101 to SA103, only the program data of one data setting / use location SA101, SA102 or SA103 corresponding to the key identification information is set as one temporary processing target data D16, and the firmware decryption program Temporary according to EP1 The actual use key data D17 is generated and stored by decrypting the temporary processing target data D16 using the data D15, and thus the encrypted firmware is decrypted using the actual use key data D17 in accordance with the firmware decryption program EP1. I did it. Accordingly, the recording / reproducing apparatus 61 appropriately changes and selects the plurality of data setting / use points SA101 to SA103 used for setting the temporary processing target data D16 in the firmware decryption program EP1, and selects the selected data setting / use points SA101 to SA101. Even if the firmware decryption program EP1 is illegally acquired by a third party, the temporary processing target data D16 itself is appropriately changed so that the program data of SA103 is set as the temporary processing target data D16. It is possible to more reliably prevent the target data D16 from being specified. As a result, the recording / reproducing apparatus 61 can more reliably prevent the actual use key data D17 from leaking to a third party than in the case of the first embodiment described above, and thus the actual use key. The confidentiality of the data D17 can be further improved.

また記録再生装置61において、中央処理ユニット62が処理対象の暗号化音楽データと共に鍵識別情報をデータ処理回路63に送出し、これを受けたデータ処理回路63のDSP70が初期設定情報に基づきデータ復号プログラムEP2内の第1の部分FA11全体のプログラムデータをそのまま1つの仮の鍵データD18に設定すると共に、初期設定情報及び鍵識別情報に基づきデータ復号プログラムEP2の第2の部分SA11内の複数のデータ設定使用箇所SA111乃至SA113のうち当該鍵識別情報に対応する1つのデータ設定使用箇所SA111、SA112又はSA113のプログラムデータのみを1つの仮の処理対象データD19に設定し、かかるデータ復号プログラムEP2に従い仮の鍵データD18を用いて仮の処理対象データD19を復号処理することにより実使用鍵データD20を生成して記憶し、かくしてデータ復号プログラムEP2に従い実使用鍵データD20を用いて暗号化音楽データを復号処理するようにした。従って記録再生装置61では、データ復号プログラムEP2内で仮の処理対象データD19の設定に使用する複数のデータ設定使用箇所SA111乃至SA113を適宜変更して選択し、当該選択したデータ設定使用箇所SA111乃至SA113のプログラムデータを仮の処理対象データD19に設定するようにして当該仮の処理対象データD19自体を適宜変更するため、データ復号プログラムEP2が第三者に不当に取得されても、仮の処理対象データD19が特定されることをさらに確実に防止することができる。その結果、記録再生装置61では、上述した第1の実施の形態の場合よりも、第三者に対し実使用鍵データD20が漏洩することをさらに確実に防止することができ、かくして実使用鍵データD20の秘匿性を一段と向上させることができる。   In the recording / reproducing apparatus 61, the central processing unit 62 sends the key identification information to the data processing circuit 63 together with the encrypted music data to be processed, and the DSP 70 of the data processing circuit 63 that receives the key identification information decrypts the data based on the initial setting information. The entire program data of the first part FA11 in the program EP2 is set as it is as one temporary key data D18, and a plurality of data in the second part SA11 of the data decryption program EP2 is set based on the initial setting information and the key identification information. Of the data setting use locations SA111 to SA113, only one program setting use location SA111, SA112 or SA113 corresponding to the key identification information is set as one temporary processing target data D19, and according to the data decryption program EP2. Temporary processing using temporary key data D18 It generates and stores the actual use key data D20 by decoding the object data D19, was thus so as to decoding the encrypted music data using the actual use key data D20 in accordance with the data decoding program EP2. Accordingly, the recording / reproducing apparatus 61 appropriately changes and selects the plurality of data setting use locations SA111 to SA113 used for setting the provisional processing target data D19 in the data decoding program EP2, and selects the selected data setting use locations SA111 to SA111. Even if the data decryption program EP2 is illegally acquired by a third party, the temporary processing target data D19 itself is appropriately changed so that the program data of SA113 is set as the temporary processing target data D19. It is possible to more reliably prevent the target data D19 from being specified. As a result, the recording / reproducing apparatus 61 can more reliably prevent the actual use key data D20 from leaking to a third party than in the case of the first embodiment described above, and thus the actual use key. The confidentiality of the data D20 can be further improved.

さらに楽曲提供サーバ65において、中央処理ユニット66が定期的に鍵識別情報を変更してデータ処理回路67に通知し、これに応じてデータ処理回路67のコーデック処理部76が、メモリ75内の複数種類の実使用鍵データD20のうち当該鍵識別情報に対応する実使用鍵データD20を暗号化処理に用いるように設定すると共に、中央処理ユニット66が、圧縮符号化音楽データをデータ処理回路67に送出したときには、これを受けたデータ処理回路67のコーデック処理部76が、データ暗号化プログラムに従い、その時点で暗号化処理に用いるように設定している実使用鍵データD20を用いて、かかる圧縮符号化音楽データを暗号化処理することにより暗号化音楽データを生成し、当該暗号化音楽データに、その暗号化処理に用いた実使用鍵データD20の鍵識別情報を対応付けるようにした。従って楽曲提供サーバ65では、上述した第1の実施の形態によって得られる効果を得ることができる。これに加えて楽曲提供サーバ65は、圧縮符号化音楽データの暗号化処理に用いる実使用鍵データD20を適宜変更しても、当該暗号化処理に用いた実使用鍵データD20の鍵識別情報を暗号化音楽データと共に記録再生装置61に配信することで、当該記録再生装置61に対し実使用鍵データD20の変更に容易かつ的確に対応させて暗号化音楽データを復号させることができると共に、実使用鍵データD20が転送により漏洩することも防止することができる。さらに楽曲提供サーバ65は、暗号化処理に用いる実使用鍵データD20を適宜変更することで、当該実使用鍵データD20の秘匿性を一段と向上させることができる。   Further, in the music providing server 65, the central processing unit 66 periodically changes the key identification information and notifies the data processing circuit 67, and in response to this, the codec processing unit 76 of the data processing circuit 67 performs a plurality of operations in the memory 75. The actual use key data D20 corresponding to the key identification information among the types of actual use key data D20 is set to be used for the encryption process, and the central processing unit 66 sends the compression encoded music data to the data processing circuit 67. When the data is transmitted, the codec processing unit 76 of the data processing circuit 67 that has received the data uses the actual use key data D20 set to be used for the encryption processing at that time in accordance with the data encryption program. Encrypted music data is encrypted to generate encrypted music data, and the encrypted music data is encrypted. And to associate the key identification information of the actual use key data D20 used. Therefore, the music providing server 65 can obtain the effects obtained by the above-described first embodiment. In addition, even if the music providing server 65 appropriately changes the actual use key data D20 used for the encryption processing of the compression encoded music data, the music providing server 65 uses the key identification information of the actual use key data D20 used for the encryption processing. By distributing to the recording / reproducing apparatus 61 together with the encrypted music data, it is possible to cause the recording / reproducing apparatus 61 to decrypt the encrypted music data easily and accurately corresponding to the change of the actual use key data D20. It is also possible to prevent the use key data D20 from leaking due to transfer. Furthermore, the music providing server 65 can further improve the confidentiality of the actual use key data D20 by appropriately changing the actual use key data D20 used for the encryption process.

さらに記録再生装置61では、ファームフェア復号プログラムEP1及びデータ復号プログラムEP2内の第2の部分SA10及びSA11において、複数のデータ設定使用箇所SA101乃至SA103及びSA111乃至SA113を順次一部重複させるため、当該ファームフェア復号プログラムEP1及びデータ復号プログラムEP2内のデータ設定使用箇所SA101乃至SA103及びSA111乃至SA113を容易に増加させることができる。その結果、記録再生装置61では、ファームフェア復号プログラムEP1及びデータ復号プログラムEP2内のプログラムデータを有効に利用して仮の処理対象データD16及びD19の数と共に変更回数を極力多くし、当該仮の処理対象データD16及びD19を一段と特定させ難くすることができる。そして記録再生装置61では、ファームフェア復号プログラムEP1及びデータ復号プログラムEP2内で第1及び第2の部分FA10、FA11及びSA10、SA11同士も一部重複させるため、当該ファームフェア復号プログラムEP1及びデータ復号プログラムEP2内のプログラムデータを有効に利用して、仮の鍵データD15及びD18と共に、多数の仮の処理対象データD16及びD19を容易に設定可能にすることができる。   Further, in the recording / reproducing apparatus 61, in the second portions SA10 and SA11 in the firmware decryption program EP1 and the data decryption program EP2, the plurality of data setting use locations SA101 to SA103 and SA111 to SA113 are partially overlapped in order, The data setting use locations SA101 to SA103 and SA111 to SA113 in the firmware decryption program EP1 and the data decryption program EP2 can be easily increased. As a result, the recording / reproducing apparatus 61 effectively uses the program data in the firmware decryption program EP1 and the data decryption program EP2 to increase the number of changes as much as possible together with the number of provisional processing target data D16 and D19. It is possible to make it difficult to specify the processing target data D16 and D19. In the recording / reproducing apparatus 61, the firmware decoding program EP1 and the data decoding program EP1 and the data decoding program EP2 also partially overlap the first and second portions FA10, FA11 and SA10, SA11. By effectively using the program data in the program EP2, it is possible to easily set a large number of temporary processing target data D16 and D19 together with the temporary key data D15 and D18.

さらに楽曲提供サーバ65では、配信可能な音楽データを予め暗号化処理して蓄積しておくわけではなく、圧縮符号化処理して得られる圧縮符号化音楽データとして蓄積しておき、楽曲の配信が要求されたとき、当該配信要求された楽曲に対応する圧縮符号化音楽データを、その時点で暗号化処理に用いるように設定している実使用鍵データD20を用いて暗号化処理するため、配信可能な音楽データを外部から取得した時期にかかわらずに、当該音楽データを常に最新の実使用鍵データD20を用いて暗号化処理して配信することができる。その結果、楽曲提供サーバ65では、特定の実使用鍵データD20を長期間に渡って使用し続けることで当該実使用鍵データD20の安全性が低下することを未然に回避することができる。   Further, the music providing server 65 does not store the music data that can be distributed in advance by encrypting it, but stores the music data as compressed encoded music data obtained by the compression encoding process so that the music can be distributed. When requested, the compression-encoded music data corresponding to the music requested to be distributed is encrypted using the actual use key data D20 set to be used for the encryption process at that time. Regardless of the time when possible music data is acquired from the outside, the music data can always be encrypted and distributed using the latest actual use key data D20. As a result, the music providing server 65 can prevent the safety of the actual usage key data D20 from being lowered by continuing to use the specific actual usage key data D20 for a long period of time.

なお上述した第2の実施の形態においては、記録再生装置61のデータ処理回路63において、仮の処理対象データD16及びD19のみを変更可能なようにした場合について述べたが、本発明はこれに限らず、図22(A)に示すようにファームフェア復号プログラムEP1内及びデータ復号プログラムEP2内の第2の部分SA12全体のプログラムデータをそのまま1つの仮の処理対象データD24に設定するものの、当該ファームフェア復号プログラムEP1内及びデータ復号プログラムEP2内の第1の部分FA12のプログラムデータから、上述した仮の処理対象データD16及びD19の場合と同様に複数種類の仮の鍵データD25を設定可能なようにしても良い。このようにしても上述した第2の実施の形態と同様の効果を得ることができる。また図22(B)に示すように記録再生装置61のデータ処理回路63において、ファームウェア復号プログラムEP1内及びデータ復号プログラムEP2内の第1及び第2の部分FA13及びSA13双方のプログラムデータから、それぞれ上述した仮の処理対象データD16及びD19の場合と同様に複数種類の仮の鍵データD26及び複数種類の仮の処理対象データD27を設定可能なようにしても良い。このようにすれば、仮の鍵データD26及び仮の処理対象データD27の双方を変更し得る分、これらをさらに特定させ難くすることができる。そして仮の鍵データD26及び仮の処理対象データD27の双方を変更可能にする場合には、当該仮の鍵データD26及び仮の処理対象データD27同士を同時に変更しても良いし、互いに異なるタイミングで変更することもできる。さらに仮の鍵データD26及び仮の処理対象データD27の双方を変更可能にする場合には、当該仮の鍵データD26及び仮の処理対象データD27のうち一方の1つを固定的に用いた状態で他方の全てを順番に変更した後、当該一方の2つ目を固定的に用いた状態で再び他方の全てを順番に変更する等のように、複数種類の仮の鍵データD26及び仮の処理対象データD27同士の全ての組み合せを実現するようにこれらを順次変更することもできる。その結果、仮の鍵データD26及び仮の処理対象データD27同士に対し、実使用鍵データを生成するための組み合せを格段的に増やして、当該実使用鍵データを一段と漏洩させ難くすることができる。   In the above-described second embodiment, the data processing circuit 63 of the recording / reproducing apparatus 61 has been described as being able to change only the provisional processing target data D16 and D19. The program data of the entire second portion SA12 in the firmware decryption program EP1 and the data decryption program EP2 is set as it is as one temporary processing target data D24 as shown in FIG. A plurality of types of temporary key data D25 can be set from the program data of the first part FA12 in the firmware decryption program EP1 and the data decryption program EP2 as in the case of the provisional processing target data D16 and D19 described above. You may do it. Even if it does in this way, the effect similar to 2nd Embodiment mentioned above can be acquired. Further, as shown in FIG. 22B, in the data processing circuit 63 of the recording / reproducing apparatus 61, from the program data of both the first and second parts FA13 and SA13 in the firmware decoding program EP1 and the data decoding program EP2, respectively. As in the case of the provisional processing target data D16 and D19 described above, a plurality of types of provisional key data D26 and a plurality of types of provisional processing target data D27 may be settable. In this way, it is possible to make it more difficult to specify both the temporary key data D26 and the temporary processing target data D27 as much as they can be changed. When both the temporary key data D26 and the temporary processing target data D27 can be changed, the temporary key data D26 and the temporary processing target data D27 may be changed at the same time or at different timings. You can also change it. Furthermore, when both the temporary key data D26 and the temporary processing target data D27 can be changed, one of the temporary key data D26 and the temporary processing target data D27 is fixedly used. After changing all of the other in order, a plurality of types of temporary key data D26 and temporary These can be sequentially changed so as to realize all combinations of the processing target data D27. As a result, for the temporary key data D26 and the temporary processing target data D27, the number of combinations for generating the actual use key data can be dramatically increased, and the actual use key data can be further prevented from leaking. .

また上述した第2の実施の形態においては、実使用鍵データD17及びD20を定期的に変更するようにした場合について述べたが、本発明はこれに限らず、実使用鍵データD17及びD20を、例えばファームフェア復号プログラムEP1及びデータ復号プログラムEP2が外部に漏れた可能性のあるとき等のように、任意のタイミングで変更するようにしても良い。   In the above-described second embodiment, the case where the actual use key data D17 and D20 are changed periodically has been described. However, the present invention is not limited to this, and the actual use key data D17 and D20 are changed. For example, the firmware decryption program EP1 and the data decryption program EP2 may be changed at an arbitrary timing such as when there is a possibility that the firmware decryption program EP1 and the data decryption program EP2 have leaked to the outside.

さらに上述した第2の実施の形態においては、記録再生装置61のデータ処理回路63において、ファームウェア復号プログラムEP1内及びデータ復号プログラムEP2内の第1及び第2の部分FA10、FA11及びSA10、SA11のプログラムデータを仮の鍵データD15、D18及び仮の処理対象データD16、D19に設定するようにした場合について述べたが、本発明はこれに限らず、記録再生装置61のデータ処理回路63において、楽曲提供サーバ65で暗号化音楽データを生成するときの暗号化処理手法とは異なる、例えば携帯型記録再生装置に適用された所定の暗号化処理手法で暗号化処理するための暗号化プログラムを用意しておき、かかる暗号化プログラム内の第1及び第2の部分のプログラムデータを仮の鍵データ及び仮の処理対象データに設定し、当該暗号化プログラムに従い仮の鍵データを用いて仮の処理対象データを暗号化処理して実使用鍵データを生成するようにしても良い。このようにすれば、記録再生装置61では、楽曲提供サーバ65から取得した暗号化音楽データを一旦復号して圧縮符号化音楽データを生成した後、かかる暗号化プログラムに従い実使用鍵データを用いて当該圧縮符号化音楽データを暗号化処理して再び暗号化音楽データを生成することにより、外部の携帯型記録再生装置に対しかかる暗号化音楽データを転送して当該携帯型記録再生装置でも暗号化音楽データに基づく楽曲を聴かせることができる。   Further, in the second embodiment described above, in the data processing circuit 63 of the recording / reproducing apparatus 61, the first and second parts FA10, FA11 and SA10, SA11 in the firmware decoding program EP1 and the data decoding program EP2 are stored. Although the case where the program data is set to the temporary key data D15 and D18 and the temporary processing target data D16 and D19 has been described, the present invention is not limited to this, and in the data processing circuit 63 of the recording / reproducing apparatus 61, An encryption program is prepared for encryption processing by a predetermined encryption processing method applied to a portable recording / reproducing apparatus, for example, which is different from the encryption processing method used when the music providing server 65 generates encrypted music data. In addition, the program data of the first and second parts in the encryption program is used as a temporary key. Over data and set to the temporary processing target data may be a temporary processing target data by using the temporary key data in accordance with the encrypted program to produce actual use key data by encrypting. In this way, the recording / playback apparatus 61 once decrypts the encrypted music data acquired from the music providing server 65 to generate compression-encoded music data, and then uses the actual use key data according to the encryption program. By encrypting the compression-encoded music data and generating the encrypted music data again, the encrypted music data is transferred to an external portable recording / reproducing device and encrypted by the portable recording / reproducing device. You can listen to music based on music data.

さらに上述した第2の実施の形態においては、データ処理回路63において、記録再生装置61が起動する毎に実使用鍵データD17を生成するようにした場合について述べたが、本発明はこれに限らず、データ処理回路63において、実使用鍵データD17を一度生成したら、そのまま保持しておき、当該実使用鍵データD17の変更が通知されたときにのみ、かかる実使用鍵データD17を生成し直すようにしても良い。またデータ処理回路63においては、予め全ての実使用鍵データD17を生成して保持しておき、当該実使用鍵データD17の変更が通知されたとき、複数種類の実使用鍵データD17の中から新たに使用する実使用鍵データD17を選択して用いるようにしても良い。このようにすれば、データ処理回路63に対する、記録再生装置61の起動時の処理負荷を低減させることができる。   Furthermore, in the second embodiment described above, the case where the data processing circuit 63 generates the actual use key data D17 each time the recording / reproducing apparatus 61 is activated has been described. However, the present invention is not limited to this. First, once the actual use key data D17 is generated in the data processing circuit 63, it is held as it is, and only when the change of the actual use key data D17 is notified, the actual use key data D17 is regenerated. You may do it. Further, in the data processing circuit 63, all the actual use key data D17 are generated and held in advance, and when a change in the actual use key data D17 is notified, the data processing circuit 63 is selected from a plurality of types of actual use key data D17. The actually used key data D17 to be newly used may be selected and used. In this way, it is possible to reduce a processing load on the data processing circuit 63 when the recording / reproducing apparatus 61 is activated.

さらに上述した第2の実施の形態においては、データ処理回路63において、暗号化音楽データを再生する毎に実使用鍵データD20を生成するようにした場合について述べたが、本発明はこれに限らず、データ処理回路63において、予め全ての実使用鍵データD20を生成して保持しておき、暗号化音楽データを再生するときに、複数種類の実使用鍵データD20の中から対応する実使用鍵データD20を選択して用いるようにしても良い。またデータ処理回路63において、暗号化音楽データを再生する際に実使用鍵データD20を一度生成したらそのまま保持してその後も用いることができるようにし、何れの実使用鍵データD20についても一度のみ生成するようにしても良い。このようにすれば、データ処理回路63に対する、暗号化音楽データのデータ処理時の処理負荷を低減させることができる。   Furthermore, in the above-described second embodiment, the case where the data processing circuit 63 generates the actual use key data D20 each time the encrypted music data is reproduced has been described. However, the present invention is not limited to this. First, the data processing circuit 63 generates and holds all the actual use key data D20 in advance, and when reproducing the encrypted music data, the corresponding actual use among the plurality of types of actual use key data D20. The key data D20 may be selected and used. Further, in the data processing circuit 63, when the encrypted music data is reproduced, once the actual use key data D20 is generated, it is held as it is so that it can be used thereafter, and any actual use key data D20 is generated only once. You may make it do. In this way, it is possible to reduce the processing load on the data processing circuit 63 when the encrypted music data is processed.

(3)第3の実施の形態
図1との対応部分に同一符号を付して示す図23において、第3の実施の形態による記録再生システム80では、図2との対応部分に同一符号を付した図24に示すように記録再生装置81の中央処理ユニット82及びデータ処理回路83が第1の実施の形態による記録再生装置2の中央処理ユニット13及びデータ処理回路19とは異なる構成を有している。また記録再生システム80では、図9との対応部分に同一符号を付した図25に示すように、楽曲提供サーバ85の中央処理ユニット86及びデータ処理回路87が第1の実施の形態による楽曲提供サーバ3の中央処理ユニット40及びデータ処理回路45とは異なる構成を有している。
(3) Third Embodiment In FIG. 23 in which the same reference numerals are assigned to the corresponding parts to FIG. 1, in the recording / reproducing system 80 according to the third embodiment, the same reference numerals are assigned to the corresponding parts to FIG. As shown in FIG. 24, the central processing unit 82 and the data processing circuit 83 of the recording / reproducing apparatus 81 have different configurations from the central processing unit 13 and the data processing circuit 19 of the recording / reproducing apparatus 2 according to the first embodiment. is doing. Further, in the recording / reproducing system 80, as shown in FIG. 25 in which parts corresponding to those in FIG. 9 are assigned the same reference numerals, the central processing unit 86 and the data processing circuit 87 of the music providing server 85 provide the music according to the first embodiment. The central processing unit 40 and the data processing circuit 45 of the server 3 have different configurations.

この場合、楽曲提供サーバ85(図25)は、上述した第1の実施の形態による楽曲提供サーバ3と同様の機能を実現し得ることに加えて、記録再生装置81に対して楽曲試聴用の試聴用データを提供することができる。すなわち楽曲提供サーバ85の中央処理ユニット86は、外部から楽曲試聴用に音楽データの一部分(例えば、楽曲のさびの部分に対応する)が切り出されて生成された多数の試聴用データがネットワークNT経由の通信又は当該音楽データを記録した記録媒体の搬送等によって供給されると、かかる試聴用データをデータ処理回路87に送出する。   In this case, the music providing server 85 (FIG. 25) can realize the same function as that of the music providing server 3 according to the first embodiment described above, and can be used for listening to the recording / playback device 81. Audition data can be provided. That is, the central processing unit 86 of the music providing server 85 receives a large number of pieces of trial data generated by cutting out a part of music data (for example, corresponding to the rust part of the music) from the outside via the network NT. When the data is supplied by the communication or the conveyance of the recording medium on which the music data is recorded, the trial listening data is sent to the data processing circuit 87.

この場合、データ処理回路87は、上述した第1の実施の形態の場合と同様にメモリ46と、DSP構成のコーデック処理部88とをそれぞれ構成するICチップが実装された回路基板として形成されている。そしてデータ処理回路87のコーデック処理部88は、中央処理ユニット86から試聴用データが与えられると、メモリ46から圧縮符号化プログラム及び暗号化プログラム並びに実使用鍵データD6を読み出す。そしてコーデック処理部88は、圧縮符号化プログラムに従い試聴用データを圧縮符号化処理することにより圧縮符号化試聴用データを生成する。またコーデック処理部88は、暗号化プログラムに従い実使用鍵データD6を用いて圧縮符号化試聴用データを暗号化処理することにより暗号化試聴用データを生成する。このようにしてコーデック処理部88は、暗号化試聴用データを生成すると、当該生成した暗号化試聴用データを中央処理ユニット86経由でハードディスクドライブ42に送出してハードディスクに記憶する。   In this case, the data processing circuit 87 is formed as a circuit board on which an IC chip that constitutes the memory 46 and the DSP configuration codec processing unit 88 is mounted, as in the case of the first embodiment described above. Yes. The codec processing unit 88 of the data processing circuit 87 reads the compression encoding program, the encryption program, and the actual use key data D6 from the memory 46 when the trial listening data is given from the central processing unit 86. Then, the codec processing unit 88 performs compression encoding processing on the trial listening data in accordance with the compression encoding program, thereby generating compression encoded trial listening data. Further, the codec processing unit 88 generates the encrypted trial listening data by encrypting the compressed encoded trial listening data using the actual use key data D6 in accordance with the encryption program. In this way, when the codec processing unit 88 generates the encrypted trial listening data, the codec processing unit 88 sends the generated encrypted trial listening data to the hard disk drive 42 via the central processing unit 86 and stores it in the hard disk.

そして中央処理ユニット86は、記録再生装置81からユーザによる所望の楽曲の試聴要求に応じて試聴要求信号がネットワークNT経由で送信されると、かかる試聴要求信号をネットワークインタフェース48及び通信処理部49を順次介して取り込む。これにより中央処理ユニット86は、かかる試聴要求信号に応じてハードディスクドライブ42からユーザにより試聴要求された楽曲に対応する暗号化試聴用データを選択的に読み出すと共に、当該読み出した暗号化試聴用データを通信処理部49及びネットワークインタフェース48を順次介してネットワークNT経由で記録再生装置81に送信する。   When the trial request signal is transmitted from the recording / playback device 81 in response to the user's request for listening to the desired music via the network NT, the central processing unit 86 sends the trial request signal to the network interface 48 and the communication processing unit 49. Capture through sequentially. Thus, the central processing unit 86 selectively reads out the encrypted trial listening data corresponding to the music requested by the user from the hard disk drive 42 in response to the trial request signal, and reads out the read encrypted trial listening data. The data is transmitted to the recording / reproducing apparatus 81 via the network NT via the communication processing unit 49 and the network interface 48 in order.

一方、記録再生装置81(図24)は、上述した第1の実施の形態による記録再生装置2と同様の機能を実現することができる。これに加えて記録再生装置81の中央処理ユニット82は、ユーザにより操作入力部10を介して所望の楽曲を試聴要求するための操作入力信号が入力されると、これに応じて試聴要求信号を通信処理部17及びネットワークインタフェース18を順次介して楽曲提供サーバ85に送信する。その結果、中央処理ユニット82は、楽曲提供サーバ85から送信される所望の楽曲の暗号化試聴用データをネットワークインタフェース18及び通信処理部17を順次介して取り込む。これにより中央処理ユニット82は、かかる暗号化試聴用データをデータ処理回路83に送出する。   On the other hand, the recording / reproducing apparatus 81 (FIG. 24) can realize the same functions as those of the recording / reproducing apparatus 2 according to the first embodiment described above. In addition to this, the central processing unit 82 of the recording / playback apparatus 81 receives a test request signal in response to an operation input signal for requesting a test piece of a desired piece of music from the user via the operation input unit 10. It transmits to the music provision server 85 via the communication processing part 17 and the network interface 18 in order. As a result, the central processing unit 82 fetches the encrypted trial listening data of the desired music transmitted from the music providing server 85 via the network interface 18 and the communication processing unit 17 in order. As a result, the central processing unit 82 transmits the encrypted trial listening data to the data processing circuit 83.

データ処理回路83は、上述した第1の実施の形態のデータ処理回路19で、暗号化音楽データを復号処理する場合と同様に、鍵データD6を用いて暗号化試聴音楽データを復号処理して圧縮符号化試聴用データを生成する。またデータ処理回路83は、かかる圧縮符号化試聴用データを伸張処理することにより試聴用データを生成する。さらにデータ処理回路83は、かかる試聴用データを音質劣化処理し、得られた試聴用音質劣化データを音声処理部20に送出する。音声処理部20は、データ処理回路83から与えられた試聴用音質劣化データに対してデジタルアナログ変換や増幅等の音声処理を施し、得られた試聴用音質劣化信号をスピーカ21に送出する。これにより音声処理部20は、スピーカ21から試聴用音質劣化信号に基づく音質を劣化させた試聴楽曲を出力させユーザに試聴させることができる。   The data processing circuit 83 uses the key data D6 to decrypt the encrypted trial listening music data in the same manner as the data processing circuit 19 of the first embodiment described above decrypts the encrypted music data. Generate compression-encoded audition data. Further, the data processing circuit 83 generates trial listening data by decompressing the compression-coded trial listening data. Further, the data processing circuit 83 performs sound quality deterioration processing on the trial listening data, and sends the obtained listening sound quality deterioration data to the sound processing unit 20. The audio processing unit 20 performs audio processing such as digital-analog conversion and amplification on the trial sound quality deterioration data provided from the data processing circuit 83, and sends the obtained test sound quality deterioration signal to the speaker 21. As a result, the audio processing unit 20 can output a test piece music whose sound quality is deteriorated based on the test sound quality deterioration signal from the speaker 21 and allow the user to make a test sound.

ここでデータ処理回路83において実行する音質劣化処理について図26を用いて説明する。まずデータ処理回路83は、音質劣化処理に用いる実使用鍵データを生成する。またデータ処理回路83は、例えば試聴用データを順次所定単位毎に分割し、得られた個々の試聴用分割データと、実使用鍵データを構成する上位ビットから下位ビットまでの個々のビットデータとを順番に対応付ける。その結果、データ処理回路83は、各試聴用分割データのうち、実使用鍵データの「0」ビットと対応付けたものについては、当該試聴用分割データの下位2ビットの値を何ら変更しないようにする。これに対してデータ処理回路83は、各試聴用分割データのうち、実使用鍵データの「1」ビットと対応付けたものについては、当該試聴用分割データの下位2ビットの値をビット反転させる。そしてデータ処理回路83は、個々の試聴用分割データを再び元の並びを復元させるように繋ぎ合わせることにより、これら試聴用分割データを繋ぎ合わせてなる試聴用音質劣化データを生成する。このようにしてデータ処理回路83は、試聴用データを音質劣化処理することにより当該試聴用データを構成するビットデータを適宜ビット反転させて元の構成とは異なるようし、かくして試聴楽曲の音質を劣化させた試聴用音質劣化データを得ている。   Here, the sound quality deterioration process executed in the data processing circuit 83 will be described with reference to FIG. First, the data processing circuit 83 generates actual use key data used for sound quality degradation processing. Further, the data processing circuit 83 sequentially divides the trial listening data, for example, into predetermined units, and obtains the individual divided trial listening data and the individual bit data from the upper bits to the lower bits constituting the actual use key data. Are matched in order. As a result, the data processing circuit 83 does not change the value of the lower 2 bits of the trial listening divided data for each of the trial listening divided data associated with the “0” bit of the actually used key data. To. On the other hand, the data processing circuit 83 bit-inverts the value of the lower 2 bits of the divided data for trial listening for each piece of divided data for trial listening associated with the “1” bit of the actually used key data. . Then, the data processing circuit 83 connects the divided trial listening data so as to restore the original arrangement again, thereby generating trial listening sound quality deterioration data obtained by joining the divided trial listening data. In this way, the data processing circuit 83 performs a sound quality degradation process on the trial listening data so that the bit data constituting the trial listening data is appropriately bit-inverted so as to be different from the original configuration, thus improving the sound quality of the trial listening music. Deteriorated sound quality degradation data for listening is obtained.

ここで図3との対応部分に同一符号を付して示す図27において、データ処理回路83は、メモリ90と、DSP91とをそれぞれ構成するICチップが実装された回路基板として形成されている。この場合、データ処理回路83は、メモリ90に予め基本動作用のデータ処理制御プログラム等を記憶している。そしてデータ処理回路83のDSP91は、メモリ90内のデータ処理制御プログラムに従って、復号プログラムを用いた復号処理や伸張プログラムを用いた伸張処理、さらには音質劣化プログラムを用いた音質劣化処理を実行すると共に、実使用鍵データD3及びD6を生成する鍵データ生成処理等も実行する。ただし以下に示す図27のデータ処理回路83の構成については、上述した第1の実施の形態の場合と同様に、DSP91の各種機能を機能ブロックに見立てて(すなわち、データ設定部92、鍵データ生成部93、コーデック処理部94)説明する。   Here, in FIG. 27 in which the same reference numerals are assigned to the parts corresponding to those in FIG. 3, the data processing circuit 83 is formed as a circuit board on which IC chips constituting the memory 90 and the DSP 91 are mounted. In this case, the data processing circuit 83 stores a data processing control program for basic operation in the memory 90 in advance. The DSP 91 of the data processing circuit 83 executes a decoding process using the decoding program, a decompression process using the decompression program, and a sound quality degradation process using the sound quality degradation program according to the data processing control program in the memory 90. Also, key data generation processing for generating actual use key data D3 and D6 is executed. However, in the configuration of the data processing circuit 83 of FIG. 27 shown below, as in the case of the first embodiment described above, various functions of the DSP 91 are regarded as function blocks (that is, the data setting unit 92, the key data). The generation unit 93 and the codec processing unit 94) will be described.

まず記録再生装置81の製造メーカは、データ処理回路83において暗号化音楽データ及び暗号化試聴用データをそれぞれ復号処理するためのデータ復号プログラムEP2や、圧縮符号化音楽データ及び圧縮符号化試聴用データを伸張処理するための伸張プログラム、試聴用データを音質劣化処理するための音質劣化プログラム等をまとめたファームウェアを、予め所定の実使用鍵データを用いて暗号化処理することにより暗号化ファームウェアを生成している。また製造メーカは、かかる暗号化ファームウェアを記録再生装置81のROM14又はハードディスクドライブ15に記憶している。そして中央処理ユニット82は、記録再生装置81を起動させる毎に、ROM14又はハードディスクドライブ15から暗号化ファームウェアを読み出し、当該読み出した暗号化ファームウェアをデータ処理回路83に転送してメモリ90に一時記憶する。   First, the manufacturer of the recording / playback apparatus 81 uses the data processing program 83 to decrypt the encrypted music data and the encrypted trial listening data in the data processing circuit 83, and the compressed encoded music data and the compressed encoded trial data. Encrypted firmware is generated by pre-encrypting the firmware that contains the decompression program for decompressing the sound, the sound quality degradation program for processing the sound quality degradation of the audition data using the predetermined actual use key data is doing. The manufacturer stores such encrypted firmware in the ROM 14 or the hard disk drive 15 of the recording / reproducing apparatus 81. The central processing unit 82 reads the encrypted firmware from the ROM 14 or the hard disk drive 15 every time the recording / reproducing device 81 is activated, transfers the read encrypted firmware to the data processing circuit 83, and temporarily stores it in the memory 90. .

データ処理回路83のメモリ90には、データ処理制御プログラム及びファームウェア復号プログラムEP1を記憶している。そしてデータ処理回路83のデータ設定部92及び鍵データ生成部93は、上述した第1の実施の形態の場合と同様にして暗号化ファームウェアの復号処理に用いる実使用鍵データD3を生成し、当該生成した実使用鍵データD3をメモリ90に記憶する。これによりコーデック処理部94は、上述した第1の実施の形態の場合と同様にして暗号化ファームウェアを復号処理し、かくして暗号化を解いたファームウェアを得てメモリ90に記憶する。   The memory 90 of the data processing circuit 83 stores a data processing control program and a firmware decoding program EP1. Then, the data setting unit 92 and the key data generation unit 93 of the data processing circuit 83 generate the actual use key data D3 used for the decryption process of the encrypted firmware in the same manner as in the first embodiment described above, and The generated actual use key data D3 is stored in the memory 90. As a result, the codec processing unit 94 decrypts the encrypted firmware in the same manner as in the first embodiment described above, thus obtaining the decrypted firmware and storing it in the memory 90.

またデータ設定部92及び鍵データ生成部93は、ファームウェアの暗号化を解いてデータ復号プログラムEP2、データ伸張プログラム及び音質劣化プログラムを得ると、上述した第1の実施の形態の場合と同様にして暗号化音楽データ及び暗号化試聴用データの復号処理に用いる実使用鍵データD6を生成し、当該生成した実使用鍵データD6をメモリ90に記憶する。これによりコーデック処理部94は、暗号化音楽データの再生が要求されたとき、上述した第1の実施の形態の場合と同様にして暗号化音楽データを復号処理した後、得られた圧縮符号化音楽データを伸張処理することにより音楽データを生成し、これを音声処理部20に送出する。   Further, when the data setting unit 92 and the key data generation unit 93 decrypt the firmware and obtain the data decryption program EP2, the data decompression program, and the sound quality degradation program, they are the same as in the case of the first embodiment described above. The actual use key data D6 used for the decryption processing of the encrypted music data and the encrypted trial listening data is generated, and the generated actual use key data D6 is stored in the memory 90. As a result, when the reproduction of the encrypted music data is requested, the codec processing unit 94 decrypts the encrypted music data in the same manner as in the first embodiment described above, and then obtains the compression encoding obtained. Music data is generated by decompressing the music data, and is sent to the audio processing unit 20.

これに加えて図28に示すように、データ設定部92は、ファームウェアの暗号化が解かれることで、音質劣化プログラムEP10を得ると、初期設定情報に基づき、当該音質劣化プログラムEP20内の予め選定された1つの部分でなる第1の部分FA20を判別すると共に、当該第1の部分FA20と一部重複する1つの部分でなる第2の部分SA20を判別する。そしてデータ設定部92は、音質劣化プログラムEP10を形成するプログラムデータ全体のうち第1の部分FA20のプログラムデータを、当該音質劣化プログラムEP10に従って実行可能な音質劣化処理に用いる仮の鍵データD30に設定する。またデータ設定部92は、音質劣化プログラムEP10を形成するプログラムデータ全体のうち第2の部分SA20のプログラムデータを、当該音質劣化プログラムEP10に従って実行可能な音質劣化処理に用いる仮の処理対象データD31に設定する。このようにしてデータ設定部92は、音質劣化プログラムEP10を用いて設定した仮の鍵データD30及び仮の処理対象データD31を鍵データ生成部93に送出する。   In addition, as shown in FIG. 28, when the data setting unit 92 obtains the sound quality deterioration program EP10 by decrypting the firmware, the data setting unit 92 selects in advance the sound quality deterioration program EP20 based on the initial setting information. The first part FA20 composed of one part is determined, and the second part SA20 composed of one part partially overlapping with the first part FA20 is determined. Then, the data setting unit 92 sets the program data of the first portion FA20 in the entire program data forming the sound quality deterioration program EP10 as temporary key data D30 used for sound quality deterioration processing that can be executed according to the sound quality deterioration program EP10. To do. In addition, the data setting unit 92 sets the program data of the second portion SA20 in the entire program data forming the sound quality deterioration program EP10 as temporary processing target data D31 used for the sound quality deterioration process that can be executed according to the sound quality deterioration program EP10. Set. In this way, the data setting unit 92 sends the temporary key data D30 and temporary processing target data D31 set using the sound quality deterioration program EP10 to the key data generation unit 93.

鍵データ生成部93は、データ設定部92から仮の鍵データD30及び仮の処理対象データD31が与えられると、メモリ90から音質劣化プログラムEP10を読み出す。そして鍵データ生成部93は、かかる音質劣化プログラムEP10に従い図26について上述した場合と同様の手順で、仮の鍵データD30を用いて仮の処理対象データD31を音質劣化処理する。すなわち、鍵データ生成部93は、音質劣化処理として、仮の処理対象データD31を順次所定単位毎に分割し、得られた個々の仮の処理対象分割データと、仮の鍵データD30を構成する上位ビットから下位ビットまでの個々のビットデータとを順番に対応付ける。その結果、鍵データ生成部93は、各仮の処理対象分割データのうち、仮の鍵データD30の「0」ビットと対応付けたものについては、当該仮の処理対象分割データの下位2ビットの値を何ら変更しないようにする。これに対して鍵データ生成部93は、各仮の処理対象分割データのうち、仮の鍵データD30の「1」ビットと対応付けたものについては、当該仮の処理対象分割データの下位2ビットの値をビット反転させる。そして鍵データ生成部93は、個々の仮の処理対象分割データを再び元の並びを復元させるように繋ぎ合わせることにより、これら仮の処理対象分割データを繋ぎ合わせてなる実使用鍵データD32を生成する。このようにして鍵データ生成部93は、かかる実使用鍵データD32をメモリ90に送出し、かくしてメモリ90にその実使用鍵データD32を記憶する。   The key data generation unit 93 reads the sound quality deterioration program EP10 from the memory 90 when provisional key data D30 and provisional processing target data D31 are given from the data setting unit 92. Then, the key data generation unit 93 performs sound quality deterioration processing on the temporary processing target data D31 using the temporary key data D30 in the same procedure as described above with reference to FIG. 26 according to the sound quality deterioration program EP10. That is, the key data generation unit 93 sequentially divides the temporary processing target data D31 into predetermined units as sound quality deterioration processing, and configures the obtained temporary processing target divided data and temporary key data D30. The individual bit data from the upper bit to the lower bit are associated in order. As a result, the key data generation unit 93, for each piece of temporary processing target divided data, associated with the “0” bit of the temporary key data D30, the lower two bits of the temporary processing target divided data. Do not change any value. On the other hand, the key data generation unit 93, for each piece of temporary processing target divided data, associated with the “1” bit of the temporary key data D30, the lower 2 bits of the temporary processing target divided data Inverts the value of. Then, the key data generation unit 93 generates the actual use key data D32 formed by connecting the temporary processing target divided data by connecting the individual temporary processing target divided data so as to restore the original arrangement again. To do. In this way, the key data generation unit 93 sends the actual use key data D32 to the memory 90, and thus stores the actual use key data D32 in the memory 90.

この状態で中央処理ユニット82は、ユーザにより楽曲の試聴が要求され、これに応じて楽曲提供サーバ85から暗号化試聴用データを取得すると、かかる暗号化試聴用データをデータ処理回路83に転送してメモリ90に一時記憶する。この際、データ処理回路83のコーデック処理部94は、メモリ90からデータ復号プログラムEP2及び伸張プログラム並びに音質劣化プログラムを読み出すと共に、暗号化試聴用データの復号処理に用いる実使用鍵データD6及び音質劣化処理に用いる実使用鍵データD32も読み出す。そしてコーデック処理部94は、メモリ90から一時記憶された暗号化試聴用データを読み出すと共に、データ復号プログラムEP2に従い実使用鍵データD6を用いて暗号化試聴用データを復号処理することにより圧縮符号化試聴用データを生成する。またコーデック処理部94は、伸張プログラムに従い圧縮符号化試聴用データを伸張処理することにより試聴用データを生成する。さらにコーデック処理部94は、音質劣化プログラムに従い図26について上述した場合と同様の手順で、実使用鍵データD32を用いて試聴用データを所定単位の試聴用分割データ毎に音質劣化処理することにより試聴用音質劣化データを生成する。そしてコーデック処理部94は、かかる試聴用音質劣化データを音声処理部20に送出する。   In this state, the central processing unit 82 is requested to audition the music by the user, and when the encrypted trial listening data is acquired from the music providing server 85 in response to the request, the central processing unit 82 transfers the encrypted trial listening data to the data processing circuit 83. Temporarily stored in the memory 90. At this time, the codec processing unit 94 of the data processing circuit 83 reads out the data decryption program EP2, the decompression program, and the sound quality deterioration program from the memory 90, and also uses the actually used key data D6 and the sound quality deterioration used for the decryption process of the encrypted trial listening data. The actual use key data D32 used for processing is also read. The codec processing unit 94 reads out the encrypted trial listening data temporarily stored in the memory 90 and performs compression encoding by decrypting the encrypted trial listening data using the actual use key data D6 in accordance with the data decryption program EP2. Generate audition data. The codec processing unit 94 generates trial listening data by decompressing the compression-encoded trial listening data according to the decompression program. Further, the codec processing unit 94 performs sound quality deterioration processing on the trial listening data for each predetermined division of the trial listening data using the actual use key data D32 in the same procedure as described above with reference to FIG. 26 according to the sound quality deterioration program. Generate audio quality degradation data for trial listening. Then, the codec processing unit 94 sends the trial listening sound quality deterioration data to the sound processing unit 20.

このようにしてデータ処理回路83では、試聴用データを構成するビットデータを適宜ビット反転させて試聴用音質劣化データを生成することにより、当該試聴用音質劣化データに基づく試聴楽曲をスピーカ21から出力させたとき、当該試聴楽曲を元の音質とは異なる(すなわち、劣化させた)状態でユーザに試聴させることができる。   In this way, the data processing circuit 83 outputs the sampled music based on the sampled sound quality deterioration data from the speaker 21 by appropriately bit-inverting the bit data constituting the sampled data to generate the sampled sound quality deteriorated data. When this is done, the user can have the user listen to the sample music in a state different from the original sound quality (that is, deteriorated).

実際上、データ処理回路83のDSP91は、ファームウェアの暗号化を解いて音質劣化プログラムEP10を得ると、データ処理制御プログラムに従って図29に示す第5のデータ処理制御処理手順RT7を開始する。DSP91は、かかる第5のデータ処理制御処理手順RT7を開始すると、ステップSP61において初期設定情報に基づき音質劣化プログラムEP10内の第1の部分FA20を判別し、当該判別した第1の部分FA20のプログラムデータを仮の鍵データD30に設定する。またDSP91は、音質劣化プログラムEP10内の第2の部分SA20を判別し、当該判別した第2の部分SA20のプログラムデータを仮の処理対象データD31に設定して、次のステップSP62に移る。   In practice, when the DSP 91 of the data processing circuit 83 decrypts the firmware and obtains the sound quality deterioration program EP10, the DSP 91 of the data processing circuit 83 starts the fifth data processing control processing procedure RT7 shown in FIG. 29 according to the data processing control program. When starting the fifth data processing control processing procedure RT7, the DSP 91 determines the first part FA20 in the sound quality deterioration program EP10 based on the initial setting information in step SP61, and determines the program of the determined first part FA20. Data is set to temporary key data D30. Further, the DSP 91 determines the second portion SA20 in the sound quality deterioration program EP10, sets the determined program data of the second portion SA20 in the temporary processing target data D31, and moves to the next step SP62.

ステップSP62においてDSP91は、音質劣化プログラムEP10に従い仮の鍵データD30を用いて仮の処理対象データD31を音質劣化処理することにより実使用鍵データD32を生成して、次のステップSP63に移る。ステップSP63においてDSP91は、かかる実使用鍵データD32をメモリ90に記憶して、次のステップSP64に移る。そしてステップSP64においてDSP91は、暗号化試聴用データに対するデータ処理を実行するか否かを判別する。このステップSP64において肯定結果が得られると、このことはユーザにより楽曲の試聴が要求されたことを表している。すなわち、かかる肯定結果は、DSP91に対し中央処理ユニット82から暗号化試聴用データに対するデータ処理の実行開始を要求する処理開始要求が与えられると共に、データ処理回路83のメモリ90に当該中央処理ユニット82から転送された処理対象の暗号化試聴用データを一時記憶し始めたことを表している。従ってDSP91は、このとき次のステップSP65に移る。   In step SP62, the DSP 91 generates the actual use key data D32 by performing the sound quality deterioration process on the temporary processing target data D31 using the temporary key data D30 in accordance with the sound quality deterioration program EP10, and proceeds to the next step SP63. In step SP63, the DSP 91 stores the actual use key data D32 in the memory 90, and proceeds to the next step SP64. In step SP64, the DSP 91 determines whether or not to execute data processing on the encrypted trial listening data. If an affirmative result is obtained in this step SP64, this indicates that the user has requested to listen to the music. That is, as a positive result, a processing start request for requesting the DSP 91 to start execution of data processing for the encrypted trial listening data is given from the central processing unit 82 to the DSP 91, and the central processing unit 82 is stored in the memory 90 of the data processing circuit 83. This indicates that the encrypted trial listening data to be processed transferred from is temporarily stored. Therefore, the DSP 91 proceeds to the next step SP65 at this time.

そしてステップSP65においてDSP91は、データ復号プログラムEP2に従い実使用鍵データD6を用いて暗号化試聴用データを復号処理することにより圧縮符号化試聴用データを生成すると共に、伸張プログラムに従って当該圧縮符号化試聴用データを伸張処理することにより試聴用データを生成する。またDSP91は、音質劣化プログラムEP10に従い実使用鍵データD32を用いて試聴用データを音質劣化処理することにより試聴用音質劣化データを生成して、次のステップSP66に移る。そしてステップSP66においてDSP91は、データ処理回路83の起動を停止させるか否かを判別する。その結果、DSP91は、記録再生装置81が動作途中であることに伴いデータ処理回路83も動作させたままの状態にするため否定結果を得ると、ステップSP64に戻る。ところで上述のステップSP64において否定結果が得られると、このことはユーザにより未だ楽曲の試聴が要求されてはいないことを表している。従ってDSP91は、このときステップSP66に移る。このためDSP91は、この後、ステップSP66において肯定結果を得るまでの間、楽曲の試聴が要求される毎にステップSP64乃至ステップSP66の処理を循環的に繰り返すようにして音質を劣化させた試聴楽曲を試聴させる。そしてDSP91は、ステップSP66において、記録再生装置81の起動停止に伴い、データ処理回路83も起動停止することで肯定結果を得ると、次のステップSP67に移って、かかる第5のデータ処理制御処理手順RT7を終了する。このようにしてDSP91は、記録再生装置81が起動する毎にかかる第5のデータ処理制御処理手順RT7を実行する。   Then, in step SP65, the DSP 91 generates compression-encoded sample data by decrypting the encrypted sample data using the actual use key data D6 according to the data decryption program EP2, and also generates the compression-encoded sample data according to the decompression program. Audition data is generated by decompressing the data for use. Further, the DSP 91 generates sound quality deterioration data for trial listening by performing sound quality deterioration processing on the data for trial listening using the actual use key data D32 in accordance with the sound quality deterioration program EP10, and proceeds to the next step SP66. In step SP66, the DSP 91 determines whether or not to stop the data processing circuit 83 from starting. As a result, if the DSP 91 obtains a negative result in order to keep the data processing circuit 83 in operation while the recording / reproducing apparatus 81 is in operation, the DSP 91 returns to step SP64. By the way, if a negative result is obtained in the above-described step SP64, this indicates that the user has not yet requested to listen to the music. Therefore, the DSP 91 proceeds to step SP66 at this time. For this reason, the DSP 91 thereafter repeats the processing from step SP64 to step SP66 in a cyclic manner every time the sample listening is requested until a positive result is obtained in step SP66. Listen to When the DSP 91 obtains a positive result by stopping the data processing circuit 83 in response to the start / stop of the recording / reproducing device 81 in step SP66, the DSP 91 proceeds to the next step SP67 and performs the fifth data processing control process. The procedure RT7 is terminated. In this way, the DSP 91 executes the fifth data processing control processing procedure RT7 every time the recording / reproducing apparatus 81 is activated.

以上の構成において、記録再生装置81では起動時、データ処理回路83のDSP91が、メモリ90に予め記憶されたデータ処理制御プログラムに従って、初期設定情報に基づき音質劣化プログラムEP10内の第1の部分FA20のプログラムデータを仮の鍵データD30に設定すると共に、当該音質劣化プログラムEP10内の第2の部分SA20のプログラムデータを仮の処理対象データD31に設定する(ステップSP61)。そしてDSP91は、音質劣化プログラムEP10に従い仮の鍵データD30を用いて仮の処理対象データD31を音質劣化処理することにより実使用鍵データD32を生成し、当該生成した実使用鍵データD32をメモリ90に記憶する(ステップSP62及びステップSP63)。この状態でDSP91は、楽曲の試聴が要求されたとき、データ復号プログラムEP2に従い実使用鍵データD6を用いて、中央処理ユニット13から転送された処理対象の暗号化試聴用データを復号処理することにより圧縮符号化試聴用データを生成すると共に、伸張プログラムに従って当該圧縮符号化試聴用データを伸張処理することにより試聴用データを生成した後、音質劣化プログラムEP10に従い実使用鍵データD32を用いて試聴用データを音質劣化処理することにより試聴用音質劣化データを生成する(ステップSP65)。   In the above configuration, when the recording / reproducing apparatus 81 is activated, the DSP 91 of the data processing circuit 83 follows the data processing control program stored in advance in the memory 90, and the first part FA20 in the sound quality deterioration program EP10 based on the initial setting information. Is set in the temporary key data D30, and the program data of the second portion SA20 in the sound quality deterioration program EP10 is set in the temporary processing target data D31 (step SP61). The DSP 91 generates actual use key data D32 by performing sound quality deterioration processing on the temporary processing target data D31 using the temporary key data D30 according to the sound quality deterioration program EP10, and the generated actual use key data D32 is stored in the memory 90. (Step SP62 and step SP63). In this state, the DSP 91 decrypts the encrypted sample data to be processed transferred from the central processing unit 13 using the actual use key data D6 in accordance with the data decryption program EP2 when the sample music is requested to be sampled. Compressed encoded trial listening data is generated by the above, and the compressed encoded trial listening data is generated according to the decompression program to generate the audition data, and then the actual listening key data D32 is used for the trial listening according to the sound quality deterioration program EP10. The sound quality deterioration data for trial listening is generated by subjecting the sound data to sound quality deterioration processing (step SP65).

従って記録再生装置81では、音質劣化プログラムEP10内のプログラムデータ自体を、実使用鍵データD32の生成に使用する仮の鍵データD30及び仮の処理対象データD31とするため、当該音質劣化プログラムEP10が第三者に不当に取得されても、その第三者により当該仮の鍵データD30及び仮の処理対象データD31が特定されることをほぼ確実に防止することができる。また記録再生装置81では、実使用鍵データD32を生成するための元データを仮の鍵データD30及び仮の処理対象データD31の2種類のデータとしたため、第三者に対しこれら仮の鍵データD30及び仮の処理対象データD31を特定するための音質劣化プログラムEP10に対する解析処理を複雑化させることができる。そのため記録再生装置81では、音質劣化プログラムEP10が第三者に不当に取得されても、その第三者により仮の鍵データD30及び仮の処理対象データD31が特定されることを一段と確実に防止することができる。そして記録再生装置81では、このように音質劣化プログラムEP10内の仮の鍵データD30及び仮の処理対象データD31を容易には特定し難くしていると共に、当該音質劣化プログラムEP10内に実使用鍵データD32自体を埋め込んではいないため、第三者に対し実使用鍵データD32が漏洩することをほぼ確実に防止することができる。   Therefore, in the recording / reproducing apparatus 81, since the program data itself in the sound quality deterioration program EP10 is the temporary key data D30 and temporary processing target data D31 used for generating the actual use key data D32, the sound quality deterioration program EP10 Even if the third party improperly acquires the temporary key data D30 and the temporary processing target data D31, the third party can be almost certainly prevented. In the recording / reproducing apparatus 81, since the original data for generating the actual use key data D32 is two types of data, the temporary key data D30 and the temporary processing target data D31, these temporary key data are provided to a third party. Analysis processing for the sound quality deterioration program EP10 for specifying D30 and provisional processing target data D31 can be complicated. Therefore, in the recording / reproducing apparatus 81, even if the sound quality deterioration program EP10 is illegally acquired by a third party, the temporary key data D30 and the temporary processing target data D31 are further prevented from being specified by the third party. can do. In the recording / reproducing apparatus 81, the temporary key data D30 and the temporary processing target data D31 in the sound quality deterioration program EP10 are not easily specified as described above, and the actual use key is included in the sound quality deterioration program EP10. Since the data D32 itself is not embedded, the actual use key data D32 can be almost certainly prevented from leaking to a third party.

以上の構成によれば、記録再生装置81において、データ処理回路83のDSP91が、初期設定情報に基づき音質劣化プログラムEP10内の第1の部分FA20のプログラムデータを仮の鍵データD30に設定すると共に、当該音質劣化プログラムEP10内の第2の部分SA20のプログラムデータを仮の処理対象データD31に設定し、かかる音質劣化プログラムEP10に従い仮の鍵データD30を用いて仮の処理対象データD31を音質劣化処理することにより実使用鍵データD32を生成して記憶し、楽曲の試聴が要求されたとき音質劣化プログラムEP10に従い実使用鍵データD32を用いて処理対象の試聴用データを音質劣化処理するようにした。従って記録再生装置81では、音質劣化プログラムEP10内の第1及び第2の部分FA20及びSA20のプログラムデータ自体をそれぞれ仮の鍵データD30及び仮の処理対象データD31に設定し、かかる音質劣化プログラムEP10に従い仮の鍵データD30を用いて仮の処理対象データD31を音質劣化処理して実使用鍵データD32を生成するため、第三者により音質劣化プログラムEP10が不当に取得された場合でも、かかる音質劣化プログラムEP10内で仮の鍵データD30及び仮の処理対象データD31が特定されることをほぼ確実に防止することができる。その結果、記録再生装置81では、音質劣化プログラムEP10が第三者に不当に取得されても、実使用鍵データD32が漏洩することをほぼ確実に防止することができ、かくして実使用鍵データD32の秘匿性を向上させることができる   According to the above configuration, in the recording / reproducing apparatus 81, the DSP 91 of the data processing circuit 83 sets the program data of the first portion FA20 in the sound quality degradation program EP10 to the temporary key data D30 based on the initial setting information. Then, the program data of the second part SA20 in the sound quality deterioration program EP10 is set as the temporary processing target data D31, and the temporary processing target data D31 is deteriorated in sound quality using the temporary key data D30 according to the sound quality deterioration program EP10. By processing, the actual use key data D32 is generated and stored, and when trial listening to the music is requested, the trial listening data to be processed is subjected to the sound quality deterioration processing using the actual use key data D32 according to the sound quality deterioration program EP10. did. Accordingly, the recording / reproducing apparatus 81 sets the program data itself of the first and second portions FA20 and SA20 in the sound quality deterioration program EP10 as temporary key data D30 and temporary processing target data D31, respectively, and the sound quality deterioration program EP10. Therefore, even if the sound quality deterioration program EP10 is illegally acquired by a third party, the sound quality deterioration processing is performed on the temporary processing target data D31 using the temporary key data D30 to generate the actual use key data D32. It is possible to almost certainly prevent the provisional key data D30 and provisional processing target data D31 from being specified in the deterioration program EP10. As a result, the recording / reproducing apparatus 81 can almost certainly prevent the actual use key data D32 from leaking even if the sound quality deterioration program EP10 is illegally obtained by a third party, and thus the actual use key data D32. Can improve confidentiality

また記録再生装置81では、試聴用データに対する音質劣化処理を実行するための音質劣化プログラムEP10を併用して実使用鍵データD32を生成するため、データ処理回路83のメモリ90に対し、実使用鍵データD32を生成するための専用のプログラムを記憶しておく必要がなく、かくしてメモリ90の容量が増大することを回避することができる。さらに記録再生装置81では、音質劣化プログラムEP10内で仮の鍵データD30及び仮の処理対象データD31に設定するプログラムデータの第1及び第2の部分FA20及びSA20を一部重複させているため、例えば仮の鍵データD30及び仮の処理対象データD31のデータ長が比較的長い場合でも、これらを音質劣化プログラムEP10内のプログラムデータとして確実に設定することができる。   Further, in the recording / reproducing apparatus 81, the actual use key data D32 is generated in combination with the sound quality deterioration program EP10 for executing the sound quality deterioration process for the trial listening data, so that the actual use key is stored in the memory 90 of the data processing circuit 83. It is not necessary to store a dedicated program for generating the data D32, and thus it is possible to avoid an increase in the capacity of the memory 90. Further, in the recording / reproducing apparatus 81, the first and second portions FA20 and SA20 of the program data set in the temporary key data D30 and the temporary processing target data D31 are partially overlapped in the sound quality deterioration program EP10. For example, even when the temporary key data D30 and the temporary processing target data D31 are relatively long in length, they can be reliably set as program data in the sound quality deterioration program EP10.

なお上述した第3の実施の形態においては、記録再生装置81のデータ処理回路83において、試聴用データを音質劣化処理するようにした場合について述べたが、本発明はこれに限らず、楽曲提供サーバ85において音質劣化プログラムEP10に従い実使用鍵データD32を用いて、配信可能な音楽データを音質劣化処理した後、圧縮符号化処理及び暗号化処理して暗号化音楽データを生成して蓄積しておき、記録再生装置81のデータ処理回路83において、かかる暗号化音楽データをデータ処理する際、当該暗号化音楽データを復号処理及び伸張処理して音楽データを生成した後、実使用鍵データD32を用いて音楽データを、音質復元プログラムに従い実行可能な音質劣化処理とは可逆な音質復元処理することにより、音質を劣化前の状態に戻すようにしても良い。そしてかかる構成においては、楽曲提供サーバ85で実使用鍵データD32を生成し、記録再生装置81で当該実使用鍵データD32を予め保持していても良いし、これとは逆に記録再生装置81で実使用鍵データD32を生成し、楽曲提供サーバ85で当該実使用鍵データD32を予め保持していても良く、何れの構成でも、かかる処理を実現することができると共に、記録再生装置81及び楽曲提供サーバ85の双方で上述した第1の実施の形態と同様の効果を得ることができる。   In the third embodiment described above, the case where the data processing circuit 83 of the recording / playback apparatus 81 performs the sound quality degradation process on the trial listening data has been described. However, the present invention is not limited to this, and music provision is provided. The server 85 uses the actual key data D32 in accordance with the sound quality deterioration program EP10 to perform sound quality deterioration processing on the distributable music data, and then generates and stores encrypted music data by compression encoding processing and encryption processing. When the encrypted music data is processed in the data processing circuit 83 of the recording / reproducing device 81, the encrypted music data is decrypted and decompressed to generate music data, and then the actual use key data D32 is stored. The sound quality is degraded by performing reversible sound quality restoration processing that is reversible from the sound quality degradation processing that can be performed according to the sound quality restoration program. It may be returned to the state. In such a configuration, the actual use key data D32 may be generated by the music providing server 85, and the actual use key data D32 may be held in advance by the recording / reproducing device 81, or conversely, the recording / reproducing device 81. The actual use key data D32 may be generated by the music provision server 85 and the actual use key data D32 may be held in advance by the music providing server 85. In any configuration, such processing can be realized, and the recording / reproducing apparatus 81 and The same effect as that of the first embodiment described above can be obtained by both of the music providing servers 85.

また上述した第3の実施の形態においては、音質劣化プログラムEP10内で一部重複する第1及び第2の部分FA20及びSA20のプログラムデータをそれぞれ仮の鍵データD30及び仮の処理対象データD31に設定するようにした場合について述べたが、本発明はこれに限らず、記録再生装置81のデータ処理回路83において、音質劣化プログラムEP10内で重複しないそれぞれ1つの部分でなる第1及び第2の部分のプログラムデータを仮の鍵データ及び仮の処理対象データに設定するようにしても良い。また記録再生装置81のデータ処理回路83において、音質劣化プログラムEP10内で複数の部分でなる第1の部分のプログラムデータを繋げて仮の鍵データに設定し、当該音質劣化プログラムEP10内の複数の部分でなる第2の部分のプログラムデータを繋げて仮の処理対象データに設定するようにしても良い。このようにしても上述した第3の実施の形態と同様の効果を得ることができる。特に記録再生装置81では、第1及び第2の部分をそれぞれ複数の部分で形成する場合、音質劣化プログラムEP10が第三者に不当に取得されたとき、それぞれ複数の部分でなる第1及び第2の部分と共に仮の鍵データ及び仮の処理対象データをさらに特定させ難くすることができる。   In the third embodiment described above, the program data of the first and second portions FA20 and SA20, which partially overlap in the sound quality deterioration program EP10, are stored as temporary key data D30 and temporary processing target data D31, respectively. Although the case where the setting is made has been described, the present invention is not limited to this, and in the data processing circuit 83 of the recording / reproducing apparatus 81, the first and second portions each including one portion that does not overlap in the sound quality deterioration program EP10. Partial program data may be set as temporary key data and temporary processing target data. Further, in the data processing circuit 83 of the recording / reproducing apparatus 81, the program data of the first part consisting of a plurality of parts in the sound quality deterioration program EP10 are connected and set as temporary key data, and a plurality of parts in the sound quality deterioration program EP10 are set. The program data of the second part, which is a part, may be connected and set as temporary processing target data. Even if it does in this way, the same effect as a 3rd embodiment mentioned above can be acquired. In particular, in the recording / reproducing apparatus 81, when the first and second parts are each formed by a plurality of parts, when the sound quality deterioration program EP10 is illegally acquired by a third party, the first and second parts each having a plurality of parts are obtained. It is possible to further make it difficult to specify the temporary key data and the temporary processing target data together with the portion 2.

さらに上述した第3の実施の形態においては、データ処理回路83において、記録再生装置81が起動する毎に実使用鍵データD32を生成するようにした場合について述べたが、本発明はこれに限らず、データ処理回路83において、記録再生装置81が始めて起動したときにのみ実使用鍵データD32を生成し、これをメモリ90に記憶しておくことで、記録再生装置81の2回目以降の起動時には実使用鍵データD32を生成しないようにしても良い。このようにすれば、データ処理回路83に対する、記録再生装置81の起動時の処理負荷を大幅に低減させることができる。   Further, in the above-described third embodiment, the case where the data processing circuit 83 generates the actual use key data D32 each time the recording / reproducing apparatus 81 is activated has been described. However, the present invention is not limited to this. First, in the data processing circuit 83, the actual use key data D32 is generated only when the recording / reproducing device 81 is activated for the first time, and is stored in the memory 90, so that the recording / reproducing device 81 is activated for the second and subsequent times. Sometimes the actual use key data D32 may not be generated. In this way, it is possible to significantly reduce the processing load on the data processing circuit 83 when the recording / reproducing apparatus 81 is started.

(4)他の実施の形態
なお上述した第1乃至第3の実施の形態においては、本発明によるデータ処理装置を、図1乃至図29について上述した記録再生装置2、61及び81に適用するようにした場合について述べたが、本発明はこれに限らず、データ処理回路を有する楽曲提供サーバ3、65及び85やパーソナルコンピュータ、携帯電話機、PDA(Personal Digital Assistance )、ゲーム機器、コンパクトディスクプレーヤ、DVD(Digital Versatile Disc)プレーヤ、ハードディスクレコーダ、テレビジョン受像機等のように、データ処理を実行するこの他種々の構成のデータ処理装置に広く適用することができる。
(4) Other Embodiments In the first to third embodiments described above, the data processing apparatus according to the present invention is applied to the recording / reproducing apparatuses 2, 61 and 81 described above with reference to FIGS. However, the present invention is not limited to this, and the music providing servers 3, 65 and 85 having a data processing circuit, personal computers, mobile phones, PDAs (Personal Digital Assistance), game machines, and compact disc players. The present invention can be widely applied to data processing apparatuses having various configurations other than executing data processing, such as a DVD (Digital Versatile Disc) player, a hard disk recorder, and a television receiver.

また上述した第1乃至第3の実施の形態においては、本発明によるデータ可逆処理装置を、図1乃至図29について上述した楽曲提供サーバ3、65及び85に適用するようにした場合について述べたが、本発明はこれに限らず、データ処理回路を有する記録再生装置2、61及び81やパーソナルコンピュータ、携帯電話機、PDA、ゲーム機器、コンパクトディスクプレーヤ、DVDプレーヤ、ハードディスクレコーダ、テレビジョン受像機等のように、データ処理装置の実行するデータ処理とは可逆なデータ可逆処理を実行するこの他種々の構成のデータ可逆処理装置に広く適用することができる。   In the first to third embodiments described above, the case where the data reversible processing apparatus according to the present invention is applied to the music providing servers 3, 65 and 85 described above with reference to FIGS. 1 to 29 has been described. However, the present invention is not limited to this, and the recording / reproducing devices 2, 61 and 81 having a data processing circuit, personal computers, mobile phones, PDAs, game machines, compact disc players, DVD players, hard disk recorders, television receivers, etc. As described above, the present invention can be widely applied to data reversible processing devices having various configurations in addition to performing data reversible processing that is reversible with the data processing executed by the data processing device.

さらに上述した第1乃至第3の実施の形態においては、本発明によるデータ処理回路を、図1乃至図29について上述した回路基板構成のデータ処理回路19、63及び83に適用するようにした場合について述べたが、本発明はこれに限らず、映像データや写真画像データ、テキストデータ、ゲームプログラム等の種々のコンテンツデータに対し鍵データを用いて暗号化処理や復号処理等のデータ処理を実行するデータ処理回路、また鍵データを用いて電子署名を生成する署名生成処理や所定データに鍵データを付加してハッシュ値を生成する鍵付きハッシュ値生成処理等のデータ処理を実行するデータ処理回路、さらにはデータ処理装置に対し着脱可能に設けられる回路基板構成のデータ処理回路等のように、鍵データを用いたこの他種々のデータ処理を実行するデータ処理回路に広く適用することができる。   Furthermore, in the first to third embodiments described above, the data processing circuit according to the present invention is applied to the data processing circuits 19, 63 and 83 having the circuit board configuration described above with reference to FIGS. However, the present invention is not limited to this, and data processing such as encryption processing and decryption processing is executed using key data for various content data such as video data, photo image data, text data, and game programs. Data processing circuit for performing data processing such as signature generation processing for generating an electronic signature using key data and keyed hash value generation processing for generating a hash value by adding key data to predetermined data In addition, other types using key data such as a data processing circuit having a circuit board configuration that is detachably provided to the data processing device. It can be widely applied to a data processing circuit for executing the data processing.

さらに上述した第1乃至第3の実施の形態においては、本発明によるデータ可逆処理回路を、図1乃至図29について上述した回路基板構成のデータ処理回路45、67及び87に適用するようにした場合について述べたが、本発明はこれに限らず、映像データや写真画像データ、テキストデータ、ゲームプログラム等の種々のコンテンツデータに対し鍵データを用いて暗号化処理や復号処理等のデータ可逆処理を実行するデータ可逆処理回路、また鍵データを用いて電子署名を認証する認証処理や鍵データを用いて鍵付きハッシュ値から元のデータの改竄を検出するデータ改竄検出処理等のデータ可逆処理を実行するデータ可逆処理回路、さらにはデータ可逆処理装置に対し着脱可能に設けられる回路基板構成のデータ処理回路等のように、データ処理回路の実行するデータ処理とは可逆なデータ可逆処理を実行するこの他種々の構成のデータ可逆処理回路に広く適用することができる。   Further, in the first to third embodiments described above, the data reversible processing circuit according to the present invention is applied to the data processing circuits 45, 67 and 87 having the circuit board configuration described above with reference to FIGS. The present invention is not limited to this, but the present invention is not limited to this. Data reversible processing such as encryption processing and decryption processing using key data for various content data such as video data, photographic image data, text data, and game programs. A data reversible processing circuit that performs data reversal processing such as authentication processing for authenticating an electronic signature using key data and data tampering detection processing for detecting falsification of original data from a keyed hash value using key data. A data reversible processing circuit to be executed, and a data processing circuit having a circuit board configuration that is detachably attached to the data reversible processing device The data processing executed by the data processing circuit can be widely applied to the data reversible processing circuit of the other various configurations for performing lossless data lossless process.

さらに上述した第1乃至第3の実施の形態においては、本発明によるデータ処理制御プログラムを、図1乃至図29について上述したデータ処理回路19、63及び83内のメモリ30及び90に予め記憶されたデータ処理制御プログラムに適用するようにした場合について述べたが、本発明はこれに限らず、記録再生装置2、61及び81のROM14又はハードディスクドライブ15に予め記憶されたデータ処理制御プログラム等のように、この他種々のデータ処理制御プログラムを広く適用することができる。因みに記録再生装置2、61及び81、又はデータ処理回路19、63及び83に対し、データ処理制御プログラムが格納されたプログラム格納媒体をインストールするようにしても良い。   Further, in the first to third embodiments described above, the data processing control program according to the present invention is stored in advance in the memories 30 and 90 in the data processing circuits 19, 63 and 83 described above with reference to FIGS. However, the present invention is not limited to this, and the present invention is not limited to this, such as a data processing control program stored in advance in the ROM 14 or the hard disk drive 15 of the recording / reproducing devices 2, 61 and 81. As described above, various other data processing control programs can be widely applied. Incidentally, a program storage medium in which a data processing control program is stored may be installed in the recording / reproducing devices 2, 61 and 81 or the data processing circuits 19, 63 and 83.

さらに上述した第1乃至第3の実施の形態においては、本発明によるデータ可逆処理制御プログラムを、図1乃至図29について上述したデータ処理回路45、67及び87内のメモリ46及び75に予め記憶されたデータ可逆処理制御プログラムを適用するようにした場合について述べたが、本発明はこれに限らず、楽曲提供サーバ3、65及び85のROM41又はハードディスクドライブ42に予め記憶されたデータ可逆処理制御プログラム等のように、この他種々のデータ可逆処理制御プログラムを広く適用することができる。因みに楽曲提供サーバ3、65及び85、又はデータ処理回路45、67及び87に対し、データ可逆処理制御プログラムが格納されたプログラム格納媒体をインストールするようにしても良い。   Further, in the first to third embodiments described above, the data reversible processing control program according to the present invention is stored in advance in the memories 46 and 75 in the data processing circuits 45, 67 and 87 described above with reference to FIGS. However, the present invention is not limited to this, and the present invention is not limited to this, and the data reversible processing control stored in advance in the ROM 41 or the hard disk drive 42 of the music providing servers 3, 65 and 85 is described. Various other data reversible processing control programs such as programs can be widely applied. Incidentally, a program storage medium in which a data reversible processing control program is stored may be installed in the music providing servers 3, 65 and 85 or the data processing circuits 45, 67 and 87.

さらに上述した第1乃至第3の実施の形態においては、データ処理プログラムの第1の部分のプログラムデータを仮の鍵データに設定する第1のデータ設定手段として、図1乃至図29について上述したDSP31、70及び91の一部機能でなるデータ設定部32、71及び92を適用するようにした場合について述べたが、本発明はこれに限らず、データ処理プログラムの第1の部分のプログラムデータを仮の鍵データに設定するハードウェア回路構成のデータ設定回路等のように、この他種々の第1のデータ処理手段を広く適用することができる。   Further, in the first to third embodiments described above, FIGS. 1 to 29 have been described as the first data setting means for setting the program data of the first part of the data processing program as temporary key data. Although the case where the data setting units 32, 71, and 92 having the partial functions of the DSPs 31, 70, and 91 are applied has been described, the present invention is not limited to this, and the program data of the first part of the data processing program Various other first data processing means can be widely applied, such as a data setting circuit having a hardware circuit configuration for setting the key to temporary key data.

さらに上述した第1乃至第3の実施の形態においては、データ処理プログラムの第2の部分のプログラムデータを仮の処理対象データに設定する第2のデータ設定手段として、図1乃至図29について上述したDSP31、70及び91の一部機能でなるデータ設定部32、71及び92を適用するようにした場合について述べたが、本発明はこれに限らず、データ処理プログラムの第2の部分のプログラムデータを仮の処理対象データに設定するハードウェア回路構成のデータ設定回路等のように、この他種々の第2のデータ設定手段を広く適用することができる。   Further, in the first to third embodiments described above, FIGS. 1 to 29 are described as the second data setting means for setting the program data of the second part of the data processing program as temporary processing target data. The case where the data setting units 32, 71, and 92 having the partial functions of the DSPs 31, 70, and 91 are applied has been described, but the present invention is not limited to this, and the program of the second part of the data processing program Various other second data setting means can be widely applied, such as a data setting circuit having a hardware circuit configuration for setting data as temporary processing target data.

さらに上述した第1乃至第3の実施の形態においては、データ処理プログラムに従い仮の鍵データを用いて仮の処理対象データをデータ処理することにより鍵データを生成する鍵データ生成手段として、図1乃至図29について上述したDSP31、70及び91の一部機能でなる鍵データ生成部33及び93を適用するようにした場合について述べたが、本発明はこれに限らず、データ処理プログラムに従い仮の鍵データを用いて仮の処理対象データをデータ処理することにより鍵データを生成するハードウェア回路構成の鍵データ生成回路等のように、この他種々の鍵データ生成手段を広く適用することができる。   Further, in the first to third embodiments described above, as key data generating means for generating key data by data processing temporary data to be processed using temporary key data according to the data processing program, FIG. Thru | or FIG. 29, although the case where the key data generation parts 33 and 93 which consist of a part of DSP31, 70, and 91 mentioned above was applied was described, this invention is not limited to this, and it is temporary according to a data processing program. Various other key data generation means can be widely applied, such as a key data generation circuit having a hardware circuit configuration that generates key data by processing key processing target data using key data. .

さらに上述した第1乃至第3の実施の形態においては、データ処理プログラムに従い鍵データを用いて処理対象データをデータ処理するデータ処理手段として、図1乃至図29について上述したDSP31、70及び91の一部機能でなるコーデック処理部34及び94を適用するようにした場合について述べたが、本発明はこれに限らず、データ処理プログラムに従い鍵データを用いて処理対象データをデータ処理するハードウェア回路構成のコーデック処理回路等のように、この他種々のデータ処理手段を広く適用することができる。   Further, in the first to third embodiments described above, the DSPs 31, 70 and 91 described above with reference to FIGS. 1 to 29 are used as data processing means for processing data to be processed using key data in accordance with the data processing program. Although the case where the codec processing units 34 and 94 having partial functions are applied has been described, the present invention is not limited to this, and a hardware circuit that processes data to be processed using key data according to a data processing program Various other data processing means can be widely applied, such as a codec processing circuit having a configuration.

さらに上述した第1乃至第3の実施の形態においては、データ処理プログラムの第1の部分のプログラムデータを仮の鍵データとし、かつ当該データ処理プログラムの第2の部分のプログラムデータを仮の処理対象データとして、データ処理プログラムに従い仮の鍵データを用いて仮の処理対象データをデータ処理することにより生成される鍵データを用いて、入力データをデータ処理とは可逆なデータ可逆処理するデータ可逆処理手段として、図1乃至図29について上述したデータ処理回路45、67及び87内のDSP構成のコーデック処理部47、76及び88を適用するようにした場合について述べたが、本発明はこれに限らず、マイクロプロセッサやCPU構成のコーデック処理部等のように、この他種々のデータ可逆処理手段を広く適用することができる。   Further, in the first to third embodiments described above, the program data of the first part of the data processing program is used as temporary key data, and the program data of the second part of the data processing program is used as temporary processing. Data reversible that performs reversible data processing on input data, which is reversible with data processing, using key data generated by data processing of temporary processing target data using temporary key data according to a data processing program as target data The case where the DSP codec processing units 47, 76 and 88 in the data processing circuits 45, 67 and 87 described above with reference to FIGS. 1 to 29 are applied as the processing means has been described. Not limited to this, various other data reversible processing means such as a microprocessor or a codec processing unit having a CPU configuration. It can be widely applied.

本発明は、パーソナルコンピュータや音楽再生装置等のデータ処理装置に設けられたデータ処理回路に利用することができる。   The present invention can be used in a data processing circuit provided in a data processing device such as a personal computer or a music playback device.

本発明による記録再生システムの全体構成の第1の実施の形態を示す略線図である。1 is a schematic diagram showing a first embodiment of the overall configuration of a recording / reproducing system according to the present invention. 記録再生装置の回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of a recording / reproducing apparatus. データ処理回路の構成を示すブロック図である。It is a block diagram which shows the structure of a data processing circuit. 実使用鍵データの生成の説明に供する略線図である。It is an approximate line figure used for explanation of generation of actual use key data. 実使用鍵データの擬装の説明に供する略線図である。It is an approximate line figure used for explanation of impersonation of actual use key data. 復号プログラムに対する実使用鍵データの埋め込みの説明に供する略線図である。It is a basic diagram with which it uses for description of embedding actual use key data with respect to a decoding program. 第1のデータ処理制御処理手順を示すフローチャートである。It is a flowchart which shows the 1st data processing control processing procedure. 第2のデータ処理制御処理手順を示すフローチャートである。It is a flowchart which shows the 2nd data processing control processing procedure. 楽曲提供サーバの回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of a music provision server. 第1のデータ可逆処理制御処理手順を示すフローチャートである。It is a flowchart which shows the 1st data reversible process control processing procedure. 仮の鍵データ及び仮の処理対象データに対する他の設定の仕方の説明に供する略線図である。It is a basic diagram with which it uses for description of the other setting method with respect to temporary key data and temporary process target data. 第2の実施の形態による記録再生システムの全体構成を示す略線図である。It is a basic diagram which shows the whole structure of the recording / reproducing system by 2nd Embodiment. 記録再生装置の回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of a recording / reproducing apparatus. 楽曲提供サーバの回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of a music provision server. データ処理回路の構成を示すブロック図である。It is a block diagram which shows the structure of a data processing circuit. 実使用鍵データの生成の説明に供する略線図である。It is an approximate line figure used for explanation of generation of actual use key data. 仮の鍵データ及び仮の処理対象データの設定の説明に供する略線図である。It is an approximate line figure used for explanation of setting of temporary key data and temporary processing object data. 復号プログラムに対する実使用鍵データの埋め込みの説明に供する略線図である。It is a basic diagram with which it uses for description of embedding actual use key data with respect to a decoding program. 第3のデータ処理制御処理手順を示すフローチャートである。It is a flowchart which shows the 3rd data processing control processing procedure. 第4のデータ処理制御処理手順を示すフローチャートである。It is a flowchart which shows a 4th data processing control processing procedure. 第2のデータ可逆処理制御処理手順を示すフローチャートである。It is a flowchart which shows the 2nd data reversible process control processing procedure. 仮の鍵データ及び仮の処理対象データに対する他の設定の仕方の説明に供する略線図である。It is a basic diagram with which it uses for description of the other setting method with respect to temporary key data and temporary process target data. 第3の実施の形態による記録再生システムの全体構成を示す略線図である。It is a basic diagram which shows the whole structure of the recording / reproducing system by 3rd Embodiment. 記録再生装置の回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of a recording / reproducing apparatus. 楽曲提供サーバの回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of a music provision server. 音質劣化処理の説明に供する略線図である。It is a basic diagram with which it uses for description of a sound quality degradation process. データ処理回路の構成を示すブロック図である。It is a block diagram which shows the structure of a data processing circuit. 実使用鍵データの生成の説明に供する略線図である。It is an approximate line figure used for explanation of generation of actual use key data. 第5のデータ処理制御処理手順を示すフローチャートである。It is a flowchart which shows the 5th data processing control processing procedure.

符号の説明Explanation of symbols

2、61、81……記録再生装置、3、65、85……楽曲提供サーバ、19、45、63、67、83、87……データ処理回路、30、46、75、90……メモリ、31、70、91……DSP、32、71、92……データ設定部、33、93……鍵データ生成部、34、47、76、88、94……コーデック処理部、D1、D4、D10、D12、D15、D18、D25、D26、D30……仮の鍵データ、D2、D5、D11、D13、D16、D19、D24、D27、D31……仮の処理対象データ、D3、D6、D17、D20、D32……実使用鍵データ、EP1……ファームウェア復号プログラム、EP2……データ復号プログラム、EP10……音質劣化プログラム、FA1、FA2、FA3、FA4、FA10、FA11、F20……第1の部分、SA1、SA2、SA3、SA4、SA10、SA11、SA20……第2の部分、SA101、SA102、SA103、SA111、SA112、SA113……データ設定使用箇所、RT1……第1のデータ処理制御処理手順、RT2……第2のデータ処理制御処理手順、RT3……第1のデータ可逆処理制御処理手順、RT4……第3のデータ処理制御処理手順、RT5……第4のデータ処理制御処理手順、RT6……第2のデータ可逆処理制御処理手順、RT7……第5のデータ処理制御処理手順。
2, 61, 81... Recording / playback device, 3, 65, 85 .. music providing server, 19, 45, 63, 67, 83, 87... Data processing circuit, 30, 46, 75, 90. 31, 70, 91... DSP, 32, 71, 92... Data setting unit, 33, 93... Key data generation unit, 34, 47, 76, 88, 94... Codec processing unit, D1, D4, D10 , D12, D15, D18, D25, D26, D30 ... Temporary key data, D2, D5, D11, D13, D16, D19, D24, D27, D31 ... Temporary processing target data, D3, D6, D17, D20, D32 ... actual use key data, EP1 ... firmware decryption program, EP2 ... data decryption program, EP10 ... sound quality degradation program, FA1, FA2, FA3, FA4, FA1 , FA11, F20... First part, SA1, SA2, SA3, SA4, SA10, SA11, SA20... Second part, SA101, SA102, SA103, SA111, SA112, SA113... ... First data processing control processing procedure, RT2... Second data processing control processing procedure, RT3... First data reversible processing control processing procedure, RT4... Third data processing control processing procedure, RT5. ... Fourth data processing control processing procedure, RT6... Second data reversible processing control processing procedure, RT7... Fifth data processing control processing procedure.

Claims (20)

データ処理プログラムの第1の部分のプログラムデータを仮の鍵データに設定し、当該データ処理プログラムの第2の部分のプログラムデータを仮の処理対象データに設定するデータ設定ステップと、
上記データ処理プログラムに従い上記仮の鍵データを用いて上記仮の処理対象データをデータ処理することにより鍵データを生成する鍵データ生成ステップと、
上記データ処理プログラムに従い上記鍵データを用いて処理対象データを上記データ処理するデータ処理ステップと
を具えることを特徴とするデータ処理方法。
A data setting step of setting program data of the first part of the data processing program as temporary key data and setting program data of the second part of the data processing program as temporary processing target data;
A key data generation step of generating key data by data processing the temporary processing target data using the temporary key data according to the data processing program;
A data processing method comprising: a data processing step for processing the data to be processed using the key data in accordance with the data processing program.
上記データ処理プログラムは、
上記データ処理として復号処理を実行するための復号プログラムでなり、
上記データ設定ステップは、
上記復号プログラムの上記第1の部分のプログラムデータを上記仮の鍵データに設定し、当該復号プログラムの上記第2の部分のプログラムデータを上記仮の処理対象データに設定し、
上記鍵データ生成ステップは、
上記復号プログラムに従い上記仮の鍵データを用いて上記仮の処理対象データを上記復号処理することにより上記鍵データを生成し、
上記データ処理ステップは、
上記復号プログラムに従い上記鍵データを用いて上記処理対象データとしての暗号化データを上記復号処理する
ことを特徴とする請求項1に記載のデータ処理方法。
The data processing program is
It is a decryption program for executing decryption processing as the data processing,
The above data setting step
Setting the program data of the first part of the decryption program as the temporary key data, setting the program data of the second part of the decryption program as the temporary processing target data,
The key data generation step includes
The key data is generated by decrypting the temporary processing target data using the temporary key data according to the decryption program,
The data processing step is
The data processing method according to claim 1, wherein the encrypted data as the processing target data is decrypted using the key data in accordance with the decryption program.
上記データ処理プログラムは、
上記データ処理として暗号化処理を実行するための暗号化プログラムでなり、
上記データ設定ステップは、
上記暗号化プログラムの上記第1の部分のプログラムデータを上記仮の鍵データに設定し、当該暗号化プログラムの上記第2の部分のプログラムデータを上記仮の処理対象データに設定し、
上記鍵データ生成ステップは、
上記暗号化プログラムに従い上記仮の鍵データを用いて上記仮の処理対象データを上記暗号化処理することにより上記鍵データを生成し、
上記データ処理ステップは、
上記暗号化プログラムに従い上記鍵データを用いて上記処理対象データとしての暗号化対象データを上記暗号化処理する
ことを特徴とする請求項1に記載のデータ処理方法。
The data processing program is
It is an encryption program for executing encryption processing as the above data processing,
The above data setting step
The program data of the first part of the encryption program is set to the temporary key data, the program data of the second part of the encryption program is set to the temporary processing target data,
The key data generation step includes
The key data is generated by performing the encryption process on the temporary processing target data using the temporary key data according to the encryption program,
The data processing step is
The data processing method according to claim 1, wherein the encryption target data as the processing target data is encrypted using the key data in accordance with the encryption program.
上記データ設定ステップは、
上記データ処理プログラムの上記第1の部分のプログラムデータを上記仮の鍵データに設定し、当該データ処理プログラムの上記第1の部分と一部重複する上記第2の部分のプログラムデータを上記仮の処理対象データに設定する
ことを特徴とする請求項1に記載のデータ処理方法。
The above data setting step
The program data of the first part of the data processing program is set as the temporary key data, and the program data of the second part partially overlapping with the first part of the data processing program is set as the temporary data. The data processing method according to claim 1, wherein the data is set as processing target data.
上記データ設定ステップは、
上記データ処理プログラムの上記第1の部分内の複数箇所のプログラムデータのうち、当該1つの箇所のプログラムデータを上記仮の鍵データに設定し、当該データ処理プログラムの上記第2の部分のプログラムデータを上記仮の処理対象データに設定する
ことを特徴とする請求項1に記載のデータ処理方法。
The above data setting step
Of the plurality of program data in the first part of the data processing program, the program data of the one part is set as the temporary key data, and the program data of the second part of the data processing program The data processing method according to claim 1, wherein the temporary processing target data is set.
上記データ設定ステップは、
上記処理対象データの上記データ処理に用いる上記鍵データを識別する鍵識別情報に応じて、上記データ処理プログラムの上記第1の部分内の上記複数箇所のプログラムデータのうち、当該鍵識別情報に対応する上記1つの箇所のプログラムデータを上記仮の鍵データに設定する
ことを特徴とする請求項5に記載のデータ処理方法。
The above data setting step
Corresponding to the key identification information among the program data at the plurality of locations in the first part of the data processing program according to key identification information for identifying the key data used for the data processing of the processing target data. 6. The data processing method according to claim 5, wherein the program data of the one place to be set is set to the temporary key data.
上記データ設定ステップは、
上記データ処理プログラムの上記第1の部分のプログラムデータを上記仮の鍵データに設定し、当該データ処理プログラムの上記第2の部分内の複数箇所のプログラムデータのうち、当該1つの箇所のプログラムデータを上記仮の処理対象データに設定する
ことを特徴とする請求項1に記載のデータ処理方法。
The above data setting step
The program data of the first part of the data processing program is set as the temporary key data, and the program data of the one part among the plurality of program data in the second part of the data processing program The data processing method according to claim 1, wherein the temporary processing target data is set.
上記データ設定ステップは、
上記処理対象データの上記データ処理に用いる上記鍵データを識別する鍵識別情報に応じて、上記データ処理プログラムの上記第2の部分内の上記複数箇所のプログラムデータのうち、当該鍵識別情報に対応する上記1つの箇所のプログラムデータを上記仮の処理対象データに設定する
ことを特徴とする請求項7に記載のデータ処理方法。
The above data setting step
Corresponding to the key identification information among the program data in the plurality of places in the second part of the data processing program according to key identification information for identifying the key data used for the data processing of the processing target data The data processing method according to claim 7, wherein the program data of the one place to be set is set as the temporary processing target data.
データ処理プログラムの第1の部分のプログラムデータを仮の鍵データとし、かつ当該データ処理プログラムの第2の部分のプログラムデータを仮の処理対象データとして、上記データ処理プログラムに従い上記仮の鍵データを用いて上記仮の処理対象データをデータ処理することにより生成される鍵データを用いて、入力データを上記データ処理とは可逆なデータ可逆処理するデータ可逆処理ステップ
を具えることを特徴とするデータ可逆処理方法。
The temporary data of the first part of the data processing program is used as temporary key data, and the program data of the second part of the data processing program is used as temporary processing target data. Data comprising a data reversible processing step that uses key data generated by data processing of the tentative processing target data to perform input data reversible processing that is reversible with the data processing. Reversible processing method.
上記データ処理プログラムは、
上記データ処理として復号処理を実行するための復号プログラムでなり、
上記データ可逆処理ステップは、
上記復号プログラムの上記第1の部分のプログラムデータを上記仮の鍵データとし、かつ当該復号プログラムの上記第2の部分のプログラムデータを上記仮の処理対象データとして、上記復号プログラムに従い上記仮の鍵データを用いて上記仮の処理対象データを上記復号処理することにより生成される上記鍵データを用いて、上記入力データとしての暗号化対象データを上記データ可逆処理として暗号化処理する
ことを特徴とする請求項9に記載のデータ可逆処理方法。
The data processing program is
It is a decryption program for executing decryption processing as the data processing,
The data reversible processing step includes
The temporary key according to the decryption program, with the program data of the first part of the decryption program as the temporary key data and the program data of the second part of the decryption program as the temporary processing target data The encryption target data as the input data is encrypted as the data reversible process by using the key data generated by performing the decryption process on the temporary process target data using data. The data reversible processing method according to claim 9.
上記データ処理プログラムは、
上記データ処理として暗号化処理を実行するための暗号化プログラムでなり、
上記データ可逆処理ステップは、
上記暗号化プログラムの上記第1の部分のプログラムデータを上記仮の鍵データとし、かつ当該暗号化プログラムの上記第2の部分のプログラムデータを上記仮の処理対象データとして、上記暗号化プログラムに従い上記仮の鍵データを用いて上記仮の処理対象データを上記暗号化処理することにより生成される上記鍵データを用いて、上記入力データとしての暗号化データを上記データ可逆処理として復号処理する
ことを特徴とする請求項9に記載のデータ可逆処理方法。
The data processing program is
It is an encryption program for executing encryption processing as the above data processing,
The data reversible processing step includes
The program data of the first part of the encryption program is used as the temporary key data, and the program data of the second part of the encryption program is used as the temporary processing target data according to the encryption program. Decrypting the encrypted data as the input data as the data reversible process using the key data generated by performing the encryption process on the temporary process target data using the temporary key data. The data reversible processing method according to claim 9, wherein the data is reversible.
上記データ可逆処理ステップは、
上記データ処理プログラムの上記第1の部分のプログラムデータを上記仮の鍵データとし、かつ当該データ処理プログラムの上記第1の部分と一部重複する上記第2の部分のプログラムデータを上記仮の処理対象データとして、上記データ処理プログラムに従い上記仮の鍵データを用いて上記仮の処理対象データを上記データ処理することにより生成される上記鍵データを用いて、上記入力データを上記データ可逆処理する
ことを特徴とする請求項9に記載のデータ可逆処理方法。
The data reversible processing step includes
The program data of the first part of the data processing program is used as the temporary key data, and the program data of the second part that partially overlaps the first part of the data processing program is used as the temporary process. Using the key data generated by subjecting the temporary processing target data to the data processing using the temporary key data according to the data processing program as the target data, and reversibly processing the input data. The data reversible processing method according to claim 9.
上記データ可逆処理ステップは、
上記データ処理プログラムの上記第1の部分内の複数箇所のプログラムデータのうち、当該1つの箇所のプログラムデータを上記仮の鍵データとし、かつ当該データ処理プログラムの上記第2の部分のプログラムデータを上記仮の処理対象データとして、上記データ処理プログラムに従い上記仮の鍵データを用いて上記仮の処理対象データを上記データ処理することにより生成される上記鍵データを用いて、上記入力データを上記データ可逆処理する
ことを特徴とする請求項9に記載のデータ可逆処理方法。
The data reversible processing step includes
Of the plurality of program data in the first part of the data processing program, the program data of the one part is used as the temporary key data, and the program data of the second part of the data processing program is used. As the temporary processing target data, the key data generated by data processing the temporary processing target data using the temporary key data according to the data processing program, the input data is converted to the data The data reversible processing method according to claim 9, wherein reversible processing is performed.
上記データ可逆処理ステップは、
上記データ処理プログラムの上記第1の部分のプログラムデータを上記仮の鍵データとし、かつ当該データ処理プログラムの上記第2の部分内の複数箇所のプログラムデータのうち、当該1つの箇所のプログラムデータを上記仮の処理対象データとして、上記データ処理プログラムに従い上記仮の鍵データを用いて上記仮の処理対象データを上記データ処理することにより生成される上記鍵データを用いて、上記入力データを上記データ可逆処理する
ことを特徴とする請求項9に記載のデータ可逆処理方法。
The data reversible processing step includes
The program data of the first part of the data processing program is used as the temporary key data, and the program data of the one part among the program data of a plurality of parts in the second part of the data processing program is used. As the temporary processing target data, the key data generated by data processing the temporary processing target data using the temporary key data according to the data processing program, the input data is converted to the data The data reversible processing method according to claim 9, wherein reversible processing is performed.
データ処理プログラムの第1の部分のプログラムデータを仮の鍵データに設定する第1のデータ設定手段と、上記データ処理プログラムの第2の部分のプログラムデータを仮の処理対象データに設定する第2のデータ設定手段と、上記データ処理プログラムに従い上記仮の鍵データを用いて上記仮の処理対象データをデータ処理することにより鍵データを生成する鍵データ生成手段と、上記データ処理プログラムに従い上記鍵データを用いて処理対象データを上記データ処理するデータ処理手段とを有するデータ処理回路
を具えることを特徴とするデータ処理装置。
First data setting means for setting program data of the first portion of the data processing program as temporary key data, and second of setting program data of the second portion of the data processing program as temporary processing target data Data setting means, key data generating means for generating key data by data processing the temporary processing target data using the temporary key data according to the data processing program, and the key data according to the data processing program A data processing apparatus comprising: a data processing circuit having a data processing means for processing the data to be processed using the data processing unit.
データ処理プログラムの第1の部分のプログラムデータを仮の鍵データとし、かつ当該データ処理プログラムの第2の部分のプログラムデータを仮の処理対象データとして、上記データ処理プログラムに従い上記仮の鍵データを用いて上記仮の処理対象データをデータ処理することにより生成される鍵データを用いて、入力データを上記データ処理とは可逆なデータ可逆処理するデータ可逆処理手段を有するデータ可逆処理回路
を具えることを特徴とするデータ可逆処理装置。
The temporary data of the first part of the data processing program is used as temporary key data, and the program data of the second part of the data processing program is used as temporary processing target data. A data reversible processing circuit having a data reversible processing means for performing reversible data reversal on the input data using the key data generated by processing the temporary processing target data using the data; A data reversible processing apparatus.
データ処理プログラムの第1の部分のプログラムデータを仮の鍵データに設定する第1のデータ設定手段と、
上記データ処理プログラムの第2の部分のプログラムデータを仮の処理対象データに設定する第2のデータ設定手段と、
上記データ処理プログラムに従い上記仮の鍵データを用いて上記仮の処理対象データをデータ処理することにより鍵データを生成する鍵データ生成手段と、
上記データ処理プログラムに従い上記鍵データを用いて処理対象データを上記データ処理するデータ処理手段と
を具えることを特徴とするデータ処理回路。
First data setting means for setting the program data of the first part of the data processing program as temporary key data;
Second data setting means for setting the program data of the second part of the data processing program as temporary processing target data;
Key data generating means for generating key data by data processing the temporary processing target data using the temporary key data in accordance with the data processing program;
A data processing circuit comprising: data processing means for processing the data to be processed using the key data in accordance with the data processing program.
データ処理プログラムの第1の部分のプログラムデータを仮の鍵データとし、かつ当該データ処理プログラムの第2の部分のプログラムデータを仮の処理対象データとして、上記データ処理プログラムに従い上記仮の鍵データを用いて上記仮の処理対象データをデータ処理することにより生成される鍵データを用いて、入力データを上記データ処理とは可逆なデータ可逆処理するデータ可逆処理手段
を具えることを特徴とするデータ可逆処理回路。
The temporary data of the first part of the data processing program is used as temporary key data, and the program data of the second part of the data processing program is used as temporary processing target data. Data comprising: a data reversible processing means for performing reversible data reversal on the input data using the key data generated by processing the temporary processing target data using the data Reversible processing circuit.
データ処理回路に対して、
データ処理プログラムの第1の部分のプログラムデータを仮の鍵データに設定し、当該データ処理プログラムの第2の部分のプログラムデータを仮の処理対象データに設定するデータ設定ステップと、
上記データ処理プログラムに従い上記仮の鍵データを用いて上記仮の処理対象データをデータ処理することにより鍵データを生成する鍵データ生成ステップと、
上記データ処理プログラムに従い上記鍵データを用いて処理対象データを上記データ処理するデータ処理ステップと
を実行させるためのデータ処理制御プログラム。
For data processing circuit
A data setting step of setting program data of the first part of the data processing program as temporary key data and setting program data of the second part of the data processing program as temporary processing target data;
A key data generation step of generating key data by data processing the temporary processing target data using the temporary key data according to the data processing program;
A data processing control program for executing the data processing step for processing the data to be processed using the key data according to the data processing program.
データ可逆処理回路に対して、
データ処理プログラムの第1の部分のプログラムデータを仮の鍵データとし、かつ当該データ処理プログラムの第2の部分のプログラムデータを仮の処理対象データとして、上記データ処理プログラムに従い上記仮の鍵データを用いて上記仮の処理対象データをデータ処理することにより生成される鍵データを用いて、入力データを上記データ処理とは可逆なデータ可逆処理するデータ可逆処理ステップ
を実行させるためのデータ可逆処理制御プログラム。
For data reversible processing circuit
The temporary data of the first part of the data processing program is used as temporary key data, and the program data of the second part of the data processing program is used as temporary processing target data. Data reversible processing control for executing a data reversible processing step of performing reversible data reversible on the input data using the key data generated by processing the temporary processing target data using the data program.
JP2005051084A 2005-02-25 2005-02-25 Data processing method Pending JP2006238154A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005051084A JP2006238154A (en) 2005-02-25 2005-02-25 Data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005051084A JP2006238154A (en) 2005-02-25 2005-02-25 Data processing method

Publications (1)

Publication Number Publication Date
JP2006238154A true JP2006238154A (en) 2006-09-07

Family

ID=37045304

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005051084A Pending JP2006238154A (en) 2005-02-25 2005-02-25 Data processing method

Country Status (1)

Country Link
JP (1) JP2006238154A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010529718A (en) * 2007-05-22 2010-08-26 イルデト・ビー・ヴイ Data security
CN113659993A (en) * 2021-08-17 2021-11-16 深圳市康立生物医疗有限公司 Immune batch data processing method and device, terminal and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000122861A (en) * 1998-10-19 2000-04-28 Nec Corp Illegal alteration prevention system for data or the like and enciphering device used with the system
JP2000322254A (en) * 1999-05-07 2000-11-24 Sega Enterp Ltd Electronic device and security check method
JP2003244119A (en) * 2002-01-28 2003-08-29 Internatl Business Mach Corp <Ibm> Recording method and system of data, recording device, reading method and system of data, counting method and system, feeding method and system of cipher key, and program
JP2004178312A (en) * 2002-11-27 2004-06-24 Fujitsu Ltd Program for creating access key for file random split
JP2004309737A (en) * 2003-04-07 2004-11-04 Easy Systems Japan Kk Decoding key protection program and decoding key protection method
JP2005018725A (en) * 2002-08-01 2005-01-20 Matsushita Electric Ind Co Ltd Device and method for decoding and arranging encrypted data in execution memory space
JP2005275694A (en) * 2004-03-24 2005-10-06 Hitachi Software Eng Co Ltd Method and protection system for protecting program from internal analysis

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000122861A (en) * 1998-10-19 2000-04-28 Nec Corp Illegal alteration prevention system for data or the like and enciphering device used with the system
JP2000322254A (en) * 1999-05-07 2000-11-24 Sega Enterp Ltd Electronic device and security check method
JP2003244119A (en) * 2002-01-28 2003-08-29 Internatl Business Mach Corp <Ibm> Recording method and system of data, recording device, reading method and system of data, counting method and system, feeding method and system of cipher key, and program
JP2005018725A (en) * 2002-08-01 2005-01-20 Matsushita Electric Ind Co Ltd Device and method for decoding and arranging encrypted data in execution memory space
JP2004178312A (en) * 2002-11-27 2004-06-24 Fujitsu Ltd Program for creating access key for file random split
JP2004309737A (en) * 2003-04-07 2004-11-04 Easy Systems Japan Kk Decoding key protection program and decoding key protection method
JP2005275694A (en) * 2004-03-24 2005-10-06 Hitachi Software Eng Co Ltd Method and protection system for protecting program from internal analysis

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010529718A (en) * 2007-05-22 2010-08-26 イルデト・ビー・ヴイ Data security
US9025765B2 (en) 2007-05-22 2015-05-05 Irdeto B.V. Data security
CN113659993A (en) * 2021-08-17 2021-11-16 深圳市康立生物医疗有限公司 Immune batch data processing method and device, terminal and readable storage medium

Similar Documents

Publication Publication Date Title
JP4719145B2 (en) Recording apparatus, recording medium, and content protection system
KR101229522B1 (en) Efficient low power retrieval techniques of media data from non-volatile memory
JP2007079876A (en) Signal processor, signal processing method and signal processing program
JP4585460B2 (en) Storage device, system, and method for preventing simultaneous use of different contents derived from same content at multiple locations
MXPA05006129A (en) Data processing apparatus, data processing method, program, program recording medium, data recording medium, and data structure.
US20040131183A1 (en) Data recording apparatus and recording method
JP2006053703A (en) Storage control system, and method
JP2006238154A (en) Data processing method
JP2003044361A (en) Data storage/reproduction system, data storage device, data reproducing device, data storage/reproducing method, program and medium
JP2003016723A (en) Equipment controlling method, data transfer device and recording medium
JP2006209689A (en) Data processing circuit
JP4449892B2 (en) Information processing apparatus, information processing method, recording apparatus, recording method, recording medium, and program
JP2002304461A (en) Information processing device and method, storage medium, and program
JP3722646B2 (en) Method for embedding watermark information in data and program recording medium
JP2006209686A (en) Signal processing circuit and content control unit
JP2006059261A (en) Memory card and reproducer
US7467305B2 (en) Method of and system for recording and reproducing information data
JP2006512804A (en) How to process analog signals
JP4791971B2 (en) Data reproduction method and data processing apparatus
JP4770348B2 (en) Data processing apparatus, data processing method, and data processing control program
JP4000547B2 (en) Information transmission method, information recording method and apparatus thereof
JP2007005928A (en) Reproducer, reproduction method and program
JP2006244539A (en) Data-processing circuit
JP2007079728A (en) Recording method, recorder and file switch recording program
JP2007226917A (en) Device equipped with data restoration function

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070910

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101014

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110224