AU2007203641A8 - Data processing apparatus and data processing method - Google Patents
Data processing apparatus and data processing method Download PDFInfo
- Publication number
- AU2007203641A8 AU2007203641A8 AU2007203641A AU2007203641A AU2007203641A8 AU 2007203641 A8 AU2007203641 A8 AU 2007203641A8 AU 2007203641 A AU2007203641 A AU 2007203641A AU 2007203641 A AU2007203641 A AU 2007203641A AU 2007203641 A8 AU2007203641 A8 AU 2007203641A8
- Authority
- AU
- Australia
- Prior art keywords
- data
- processing
- contents
- key
- encryption
- 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.)
- Abandoned
Links
Landscapes
- Storage Device Security (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Description
S&F Ref: 529688D4
AUSTRALIA
PATENTS ACT 1990 COMPLETE SPECIFICATION FOR A STANDARD PATENT Name and Address of Applicants: Actual Inventor(s): Address for Service: Invention Title: Sony Corporation, of 7-35, Kitashinagawa 6-chome Shinagawa-ku, Tokyo, 141-0001, Japan Sony Computer Entertainment Inc., of 1-1, Akasaka 7chome Minato-ku, Tokyo, 107, Japan Tomoyuki Asano Yoshihito Ishibashi Taizo Shirai Toru Akishita Masaharu Yoshimori Makoto Tanaka Spruson Ferguson St Martins Tower Level 31 Market Street Sydney NSW 2000 (CCN 3710000177) Data processing apparatus and data processing method The following statement is a full description of this invention, including the best method of performing it known to me/us:- 5845c(897289_1)
DESCRIPTION
DATA PROCESSING APPARATUS AND DATA PROCESSING METHOD Technical Field )The present invention relates to a data processing apparatus, a data processing method, and more particularly, to a method and S apparatus for verifying that data constituting a data content are valid, that is, checking whether or not the data have been tampered, as well as a method for imparting verification values, and also to an apparatus and a method capable of enhancing 0 security by generating individual keys necessary for encryption processing using master keys corresponding to their respective individual keys. Moreover the present invention provides a configuration that eliminates illegal usage of contents data or more specifically, relates to an apparatus and a method capable of identifying illegal reproduction devices and eliminate illegal use of contents. Furthermore, the present invention relates to an apparatus and a method capable of easily setting contents only available to the data processing apparatus using contents data and contents data also available to other data processing apparatuses 26 based on information specific to the data processing apparatus, etc. Still further, the present invention relates to a method, apparatus and verification value assignment method for verifying 1 the validity of data configuring data contents, that is, verifying the presence or absence of tampering.
Furthermore, the present invention relates to a data processing apparatus, a content data generating method, and a data S processing method that realizes a content data configuration enabling to provide and utilize content data under a high security management in a configuration in which data including at least any S one of voice information, image information and program data is applied encryption processing, the data is provided to a content user together with various kinds of header information, and the content user performs reproduction, execution, or storing processing in a recording device.
Still further, the present invention relates to a data processing apparatus, a data processing method and a content data generating method for providing a configuration for efficiently executing reproduction processing in the case in which data contents are compressed voice data, image data or the like, and more specifically for enabling to have a configuration of the content data in which compressed data and an expansion processing program are combined, retrieve and extract an applicable expansion processing program based on header information of compressed data contents in which an applied expansion processing program is stored as header information to execute reproduction processing.
Further yet, the present invention relates a configuration and method for reproducing various contents such as sounds, images, 2 games, or programs which are available through recording media such as DVDs or CDs or wire or radio communication means such as O CATV, the Internet, or satellite communication, in a recording and reproducing device owned by a user and storing the contents in an exclusive recording device, for example, a memory card, a hard disk, or a CD-R, realizing a configuration for imposing use limitations desired by a content distributor when a content stored in the recording device is used, and providing security such that the distributed content will not be illegally used by a third person other than regular users.
Background Art DESCRIPTION OF THE RELATED ART Various data such as game programs, sound data, image data, or documenting programs (these are hereafter referred to as "contents") are now distributed via a network such as the Internet or via distributable storage media such as DVDs or CDs. These distributed contents can be stored in a recording device such as a memory card or a hard disk which is attached to a recording and reproducing apparatus such as a Personal Computer (PC) or a game apparatus that is owned by a user so that once stored, the contents can be reproduced from the storage media.
Main components of a memory card used in a conventional information apparatus such as a video game apparatus or a PC include a connection means for controlling operations, a connector 3 for connection to a slot connected to the connection means and formed in the information apparatus, a non-volatile memory connected to the control means for storing data, and others. The non-volatile memory provided in the memory card comprises an S EEPROM, a flash memory, or the like.
Various contents such as data or programs that are stored in the memory card are invoked from the non-volatile memory in (Ni response to a user's command from an information apparatus main body such as a game apparatus or a PC which is used as a S reproduction apparatus or to a user's command provided via a connected input means, and are reproduced from the information apparatus main body or from a display, speakers, or the like which are connected thereto.
Many software contents such as game programs, music data, or image data generally have their distribution rights held by their creators or sellers. Thus, in distributing these contents, a configuration is generally used which places specified limitations on the usage; that is, the use of software is permitted only for regular users so as to prevent unauthorized copying or the like; that is, security is taken into consideration.
One method for realizing limitations on the use by a user is a process for encrypting a distributed content. This process comprises a means for distributing various contents such as sound data, image data, or game programs which are encrypted, for example, via the Internet and decrypting a distributed encrypted 4 OJJ content only for people confirmed to be regular users, the means corresponding to a configuration for imparting a decryption key.
DEncrypted data can be returned to available decrypted data (plain text) obtained by a decryption process based on a 1- S predetermined procedure. Such a data encrypting and decrypting method that uses an encryption key for an information encrypting process while using a decryption key for such a decryption process S is conventionally known.
There are various types of aspects of data encrypting and decrypting methods using an encryption key and a decryption key; an example is what is called a common key cryptosystem. The common key cryptosystem uses a common encryption key used for a data encrypting process and a common decryption key used for a data decrypting process and imparts these common keys used for the encryption and decryption processes, to regular users while excluding data accesses by illegal users that have no key. A representative example of this cryptosystem is the DES (Data Encryption Standard).
The encryption and decryption keys used for the encryption and decryption processes are obtained, for example, by applying a one-way function such as a hash function based on a password or the like. The one-way function makes it difficult to determine its input from its output. For example, a password decided by a user is used as an input to apply a one-way function so as to generate an encryption and a decryption keys based on an output 5 S from the function. Determining from the thus obtained encryption and decryption keys, the password, which is the original data for 0 the keys, is substantially impossible.
In addition, a method called a "public key cryptosystem" uses INO different algorithms for a process based on an encryption key used Sfor encryption and for a process based on a decryption key used for decryption. The public key cryptosystem uses a public key available to unspecified users so that an encrypted document for a particular individual is decrypted using a public key issued by this particular user. The document encrypted with the public key can only be decrypted with a secret key corresponding to the public key used for the decryption process. Since the secret key is owned by the individual that has issued the public key, the document encrypted with the public key can be decrypted only by individuals having the secret key. A representative public key cryptosystem is the RSA (Rivest-Shamir-Adleman) encryption.
The use of such a cryptosystem enables encrypted contents to be decrypted only for regular users. A conventional content distributing configuration employing such a cryptosystem will be described in brief with reference to Fig. i.
Fig. 1 shows an example of a configuration in which a reproduction means 10 such as a PC (Personal Computer) or a game apparatus reproduces a program, sound or video data, or the like (content) obtained from a data providing means such as a DVD, a CD 29 30, or the Internet 40 and wherein data obtained from the DVD, CD 6 Internet 40, or the like are stored in a storage means 20 such as a floppy disk, a memory card, a hard disk, or the like.
The content such as a program or sound or video data are provided to a user having the reproduction means 10. A regular S user obtains an encryption data as well as key data that are their encryption and decryption keys.
The reproduction means 10 has a CPU 12 to reproduce input data by means of a reproduction process section 14. The reproduction process section 14 decrypts encrypted data to reproduce a provided program and the content such as sound or image data.
The regular user saves the content such as the program and data to a storage means 20 in order to use the provided program again. The reproduction means 10 has a saving process section 13 for executing this content saving process. The saving process section 13 encrypts and saves the data in order to prevent the data stored in the storage means 20 from being illegally used.
A content encrypting key is used to encrypt the content. The saving process section 13 uses the content encrypting key to 2o encrypt the content and then stores the encrypted content in a storage section 21 of the storage means 20 such as a FD (Floppy Disk), a memory card, or a hard disk.
To obtain and reproduce the stored content from the storage means 20, the user obtains encrypted data from the storage means X 20 and causes the reproduction process section 14 of the 7 o reproduction means 10 to execute the decryption process using a content decrypting key, that is, the decryption key in order to obtain and reproduce decrypted data from the encrypted data.
According to the conventional example of configuration shown in Fig. 1, the stored content is encrypted in the storage means such as a floppy disk or memory card and thus cannot be read externally. When, however, this floppy disk is to be reproduced Cl by means of a reproduction means of another information apparatus such as PC or game apparatus, the reproduction is impossible unless the reproduction means has the same content key, that is, the same decryption key for decrypting the encrypted content.
Accordingly, to implement a form available to a plurality of information apparatuses, a common decryption key must be provided to users.
The use of a common content encrypting key, however, means that there will be a higher possibility of disorderly distributing the encryption process key to users not having a regular license.
Consequently, the illegal use of the content by users not having the regular license cannot be prevented, and it will be difficult zo to exclude the illegal use in PCs, game apparatuses, or the like which do not have the regular license.
In case that key information leeks from one of the apparatuses, the use of common content encrypting key and decryption key can cause damage to the whole system which utilizes Z9 the keys 8 Furthermore, in an environment using a common key as described above, it is possible to easily copy, for example, a content created on a certain PC and saved to a storage means such as a memory card or floppy disk, to another floppy disk.
S Consequently, a use form using the copied floppy disk instead of the original content data will be possible, so that a large number of copied content data available to information apparatuses such as game apparatuses or PCs may be created or tampered.
A method is conventionally used which contain a verifying integrity check value in content data for checking the validity of the data, that is, whether or not the data have been tampered and which then causes a recording and reproducing device to collate a integrity check value generated based on the data to be verified with the integrity check value contained in the content data to verify the data.
The integrity check value for the data contents, however, is generally generated for the entire data, and collating the integrity check value generated for the entire data requires a integrity check value to be generated for the entire data to be checked. If, for example, a integrity check value ICV is to be determined using a Message Authentication Code (MAC) generated in a DES-CBC mode, the DES CBC process must be executed on the entire data. The amount of such calculations increases linearly with the data length, thereby disadvantageously reducing processing 2I efficiency.
9 Description of the Invention The present invention solves above problems in a conventional art and is to provide, as a first object, a data processing apparatus and method and a data verifying value imparting method, S which efficiently confirm the validity of data and efficiently execute a download process for a recording device executed after the verification, a reproduction process executed after the verification, and other processes, as well as a program providing medium for use in this apparatus and these methods.
Furthermore, as techniques for limiting the use of contents data to authorized users, various kinds of encryption processing are available such as data encryption, data decryption, data verification, signature processing. However, executing these kinds of encryption processing requires common secret information, Sfor example, key information applied to encryption and decryption of contents data or an authentication key used for authentication to be shared between two apparatuses, that is, apparatuses between which contents data is transferred or apparatuses between which authentication processing is executed.
Therefore, in the case where key data, which is shared secret information, is leaked from either of the two apparatuses, the contents encryption data using the shared key information can also be decrypted by a third party who has no license, thus allowing illegal use of contents. The same is true for the case where an 10 authentication key is leaked, which will lead to establish authentication for an apparatus with no license. Leakage of keys, therefore, has consequences threatening the entire system.
The present invention is intended to solve these problems.
S The second object of the invention is to provide a data processing apparatus, data processing system and data processing method with enhanced security in encryption processing. The data processing apparatus of the present invention does not store individual keys necessary to execute encryption processing such as data encryption, /6 data decryption, data verification, authentication processing and signature processing in a storage section, stores master keys to generate these individual keys in the storage section instead and allows an encryption processing section to generate necessary individual keys based on the master keys and identification data of the apparatus or data.
Furthermore, it is possible to maintain a certain degree of security by supplying contents data encrypted. However, in the case where various encryption keys stored in memory are read through illegal reading of memory, key data, etc. is leaked and Scopied on a recorder/reproducer without any authorized license, contents may be illegally used using the copied key information.
It is the third object of the present invention to provide a data processing apparatus, data processing method and contents data generation method in a configuration capable of excluding Ssuch illegal reproducers, that is, a configuration identifying 11 to illegal reproducers and not allowing the identified reproducers to execute processing such as reproduction and downloading of contents data.
Furthermore, techniques for limiting the use of contents data to authorized users include encryption processing using predetermined encryption keys, for example, signature processing.
However, conventional encryption processing using signature (1 generally has a signature key common to all entities using contents in a system and such a signature key allows different 'Q apparatuses to use common contents, which involves a problem of leading to illegal copies of contents.
It is possible to store contents encrypted using a unique password, etc., but the password may be stolen. It is also possible to decrypt a same encrypted contents data by entering a /6 same password through different reproducers, but it is difficult for a conventional security configuration to implement a system that can identify a reproducer to allow only the reproducer to use the contents.
The present invention has been implemented to solve the above Sproblems of the prior arts and it is the fourth object of the present invention to provide a data processing apparatus and data processing method capable of allowing only a specific data processing apparatus to reproduce contents according to contents utilization restrictions by making it possible to selectively use 3< an apparatus-specific key, which is specific to a data processing 12 U apparatus and a system common key, which is common to other data processing apparatuses.
Furthermore, here is encryption processing of content data as a method of limiting utilization of content data to authorized users. However, there are various kinds of content data such as voice information, image information and program data, and there are various contents in cases such as a case in which all content data is required to be encrypted and a case in which a part requiring encryption processing and a part not requiring encryption processing are mixed.
Applying encryption processing uniformly to such various contents may generate unnecessary decryption processing in reproduction processing of the contents, or may generate unfavorable situations in terms of processing efficiency and processing speed. For example, for data such as music data to which real time reproduction is essential, it is desirable to have a content data structure that can be applied decryption processing in high processing speed.
The present invention solves such problems. It is the fifth Sobject of the present invention to provide a data processing apparatus, a content data generating method and a data processing method that enables to apply to a content various data structures corresponding to types of content data, various different data formats corresponding to the content, and enables generation 13 and processing of content data that has high security and easy to be utilized in reproduction, execution and the like.
Furthermore, voice data, image data and the like that are decrypted are outputted to AV output section to be reproduced.
Nowadays, often times, many of contents are compressed and stored in a storage medium or distributed. It is therefore necessary to expand the compressed data before reproducing. For example, if voice data is MP-3 compressed, the voice data is decrypted by a MP3 decoder to be output. And if content data is image data which is MP-3 compressed, the voice data is expanded by a MPEG2 decoder to be output.
However, as there are various kinds of compression processing and expansion processing programs, even if compressed data is provided from a content provider via a medium or a network, it is impossible to reproduce the data with a reproducing apparatus that does not have a compatible expansion program.
It is the sixth object of the present invention to provide a configuration for efficiently executing reproduction processing of compressed data, that is, a data processing apparatus, a data 0 processing method and a content data generating method for efficiently executing reproduction processing in the case in which contents are compressed voice data, image data or the like.
The foregoing objects and other objects of the invention have been achieved by the provision of a data processing apparatus and Sa data processing method.
14 OJJ A first aspect of the present invention is: a data processing apparatus for processing content data provided by a recording or communication medium, characterized in that said apparatus comprises: a cryptography process section for executing a o cryptography process on the content data; and a control section for executing control for the cryptography process section, and the cryptography process section: is configured to generate CI partial integrity check values as integrity check values for a partial data set containing one or more partial data obtained by a 0 content data-constituting section into a plurality of parts, collate the generated integrity check values to verify the partial data, generates an intermediate integrity check value based on a partial integrity check value set data string containing at least one or more of the partial integrity check values, and use the generated intermediate integrity check value to verify the entirety of the plurality of partial data sets corresponding to the plurality of partial integrity check values constituting the partial integrity check value set.
Further, one embodiment of the data processing apparatus 7 according to the present is characterized in that the partial integrity check value is generated by means of a cryptography process with a partial-check-value-generating key applied thereto, using partial data to be checked, as a message, the intermediate integrity check value is generated by means of a cryptography process with an general-check-value-generating key applied thereto, 15 using a partial integrity check value set data string to be checked, as a message, and the cryptography process section is configured to store the partial integrity check value-generating value and the general integrity check value-generating key.
Further, one embodiment of the data processing apparatus according to the present invention is characterized in that the cryptography process has plural types of partial-check-value- S generating key corresponding to generated partial integrity check values.
Further, one embodiment of the data processing apparatus according to the present invention is characterized in that the cryptography process is a DES cryptography process, and the cryptography process section is configured to execute the DES cryptography process.
Further, one embodiment of the data processing apparatus according to the present invention is characterized in that the partial integrity check value is a message authentication code (MAC) generated in a DES-CBC mode using partial data to be checked, as a message, the intermediate value is a message authentication S code (MAC) generated in a DES-CBC mode using a partial integrity check value set data string to be checked, as a message, and the cryptography process section is configured to execute the cryptography process in the DES-CBS mode.
Further, one embodiment of the data processing apparatus 4( according to the present invention is characterized in that in the 16 DES-CBC mode-based cryptography process configuration of the cryptography process section, Triple DES is applied only in part of a message string to be processed.
Further, one embodiment of the data processing apparatus f according to the present invention is characterized in that the q data processing apparatus has a signature key, and the S cryptography process section is configured to apply a value generated from the intermediate value by means of the signature key-applied cryptography process as a collation value for data '0 verification.
Further, one embodiment of the data processing apparatus according to the present invention is characterized in that the data processing apparatus has a plurality of different signature keys as signature keys, and the cryptography process section is configured to apply one of the plurality of different signature keys which is selected depending on a localization of the content data, to the cryptography process for the intermediate integrity check value to obtain the collation value for data verification.
Further, one embodiment of the data processing apparatus l according to the present invention is characterized in that the data processing apparatus has a common signature key common to all entities of a system for executing a data verifying process and an apparatus-specific signature key specific to each apparatus that executes a data verifying process.
17 Further, one embodiment of the data processing apparatus according to the present invention is characterized in that the partial integrity check value contains one or more header section integrity check values generated for intra-header-section data partly constituting data and one or more content integrity check values generated for content block data partly constituting the data, and the cryptography process is configured to generate one or more header section integrity check values for a partial data set in the intra-header-section data to execute a collation Sprocess, generate one or more content integrity check values for a partial data set in the intra-content-section data to execute a collation process, and further generate a general integrity check value based on all the header section integrity check values and the content integrity check values generated, to execute a collation process in order to verify the data.
Further, one embodiment of the data processing apparatus according to the present invention is characterized in that the partial integrity check value contains one or more header section integrity check values generated for intra-header-section data Spartly constituting data, and the cryptography process is configured to generate one or more header section integrity check values for a partial data set in the intra-header-section data to execute a collation process and further generate a general integrity check value based on the one or more header section Sintegrity check values generated and on content block data 18 constituting part of the data, to execute a collation process in order to verify the data.
Further, one embodiment of the data processing apparatus according to the present invention is characterized by further Scomprising a recording device for storing data validated by the cryptography process section.
Further, one embodiment of the data processing apparatus according to the present invention is characterized in that the control section is configured so that if in the process executed by the cryptography process section to collate the partial integrity check value, the collation is not established, and the control section suspends the process for storing data in the recording device.
Further, one embodiment of the data processing apparatus Saccording to the present invention is characterized by further comprising a reproduction process section for reproducing data validated by the cryptography process section.
Further, one embodiment of the data processing apparatus according to the present invention is characterized in that if in the process executed by the cryptography process section to collate the partial integrity check value, the collation is not established, and the control section suspends the reproduction process in the reproduction process section.
Further, one embodiment of the data processing apparatus p( according to the present invention is characterized by comprising 19 control means for collating only the header section integrity check values in the data during the process executed by the cryptography process section to collate the partial integrity check values and transmitting data for which collation of the header section integrity check values has been established, to the reproduction process section for reproduction.
SMoreover, a second aspect of the present invention is a data Cl processing apparatus for processing content data provided by a recording or communication medium, characterized in that said apparatus comprises: a cryptography process section for executing a cryptography process on the content data; and a control section for executing control for the cryptography process section, and the cryptography process section: is configured to generate, if data to be verified are encrypted, integrity check values for the 4< data to be verified by means of a signature data-applied cryptography process from data on arithmetic operation results obtained by executing an arithmetic operation process on decrypted data obtained by executing a decryption process on the encrypted data.
Further, one embodiment of the data processing apparatus according to the present invention is characterized in that the arithmetic operation process comprises performing an exclusive-OR operation on decrypted data every predetermined bytes, the decrypted data being obtained by decrypting the encrypted data.
20 Moreover, a third embodiment of the present invention is a data processing method for processing content data provided by a recording or communication medium, the method being characterized in that said method: generates partial integrity check values as Sintegrity check values for a partial data set containing one or more partial data obtained by a content data constituting section into a plurality of parts, and collates the generated integrity check values to verify the partial data, and generates an intermediate integrity check value based on a partial integrity check value set data string containing at least one or more of the partial integrity check values, and uses the generated intermediate integrity check value to verify the entirety of the plurality of partial data sets corresponding to the plurality of partial integrity check values constituting the partial integrity check value set.
Further, one embodiment of the data processing method according to the present invention is characterized in that the partial integrity check value is generated by means of a cryptography process with a partial-check-value-generating key applied thereto, using partial data to be checked, as a message, and the intermediate integrity check value is generated by means of a cryptography process with an general-check-value-generating key applied thereto, using a partial integrity check value set data string to be checked, as a message.
21 U Further, one embodiment of the data processing method according to the present invention is characterized in that the partial integrity check value is generated by applying different types of partial-check-value-generating keys corresponding to Sgenerated partial integrity check values.
Further, one embodiment of the data processing method according to the present invention is characterized in that the cryptography process is a DES cryptography process.
Further, one embodiment of the data processing method /i according to the present invention is characterized in that the partial integrity check value is a message authentication code (MAC) generated in a DES-CBC mode using partial data to be checked, as a message, and the intermediate value is a message authentication code (MAC) generated in a DES-CBC mode using a /f partial integrity check value set data string to be checked, as a message.
Further, one embodiment of the data processing method according to the present invention is characterized in that a value generated from the intermediate value by means of a Ssignature key-applied cryptography process is applied as a collation value for data verification.
Further, one embodiment of the data processing method according to the present invention is characterized in that different signature keys are applied to the cryptography process for the intermediate integrity check value depending on a 22 localization of the content data, to obtain the collation value for data verification.
Further, one embodiment of the data processing method according to the present invention is characterized in that a S common signature key common to all entities of a system for executing a data verifying process or an apparatus-specific signature key specific to each apparatus that executes a data verifying process is selected and used as the signature key depending on the localization of the content data.
'Further, one embodiment of the data processing method according to the present invention is characterized in that the partial integrity check value contains one or more header section integrity check values generated for intra-header-section data partly constituting data and one or more content integrity check Svalues generated for intra-content-section data partly constituting the data, and a data verifying process generates one or more header section integrity check values for a partial data set in the intra-header-section data to execute a collation process; generates one or more content integrity check values for a partial data set in the intra-content-section data to execute a collation process; and further generates a general integrity check value based on all the header section integrity check values and the content integrity check values generated, to execute a collation process in order to verify the data.
23 JFurther, one embodiment of the data processing method according to the present invention is characterized in that the partial integrity check value contains one or more header section integrity check values generated for intra-header-section data 9 partly constituting data, the data verifying process comprises generating one or more header section integrity check values for a partial data set in the intra-header-section data to execute a S collation process; and further generating a general integrity check value based on the one or more header section integrity 1 check values generated and on content block data constituting part of the data, to execute a collation process in order to verify the data.
Further, one embodiment of the data processing method according to the present invention is characterized by further 'K comprising a process for storing, after data verification, storing validated data.
Further, one embodiment of the data processing method according to the present invention is characterized in that if in the process for collating the partial integrity check value, the collation is not established, control is executed such as to suspend the process for storing data in the recording device.
Further, one embodiment of the data processing method according to the present invention is characterized by further comprising a data reproduction process for reproducing data after 04 the data verification.
24 Further, one embodiment of the data processing method according to the present invention is characterized in that if in the process for collating the partial integrity check value, the collation is not established, control is executed such as to f suspend the reproduction process executed in the reproduction c- process section.
C Further, one embodiment of the data processing method according to the present invention is characterized in that said method collates only the header section integrity check values in the data during the process for collating the partial integrity check values and transmits data for which collation of the header section integrity check values has been established, to the reproduction process section for reproduction.
Moreover, a fourth aspect of the present invention is a data processing method for processing content data provided by a recording or communication medium, the method being characterized in that said method: if data to be verified are encrypted, executes an arithmetic operation process on decrypted data obtained by decrypting the encrypted data, executes a signature I key-applied cryptography process on data on arithmetic operation results obtained by the arithmetic operation, to generate integrity check values for the data to be verified.
Further, one embodiment of the data processing method according to the present invention is characterized in that the arithmetic operation process comprises performing an exclusive-OR 25 operation on decrypted data every predetermined bytes, the decrypted data being obtained by decrypting the encrypted data.
Moreover, a fifth aspect of the present invention is a data verifying value imparting method for a data verifying process, S characterized in that said method: imparts partial integrity check values as integrity check values for a partial data set containing one or more partial data obtained by a content data constituting S section into a plurality of parts, and imparts to data to verified, an intermediate integrity check value used to verify a partial integrity check value set data string containing at least one or more of the partial integrity check values.
Further, one embodiment of the data verifying value imparting method according to the present invention is characterized in that the partial integrity check value is generated by means of a Scryptography process with a partial-check-value-generating key applied thereto, using partial data to be checked, as a message, and the intermediate integrity check value is generated by means of a cryptography process with an general-check-value-generating key applied thereto, using a partial integrity check value set data string to be checked, as a message.
Further, one embodiment of the data verifying value imparting method according to the present invention is characterized in that the partial integrity check value is generated by applying different types of partial-check-value-generating keys 1if corresponding to generated partial integrity check values.
26 Further, one embodiment of the data verifying value imparting method according to the present invention is characterized in that the cryptography process is a DES cryptography process.
Further, one embodiment of the data verifying value imparting method according to the present invention is characterized in that the partial integrity check value is a message authentication code (MAC) generated in a DES-CBC mode using partial data to be checked, as a message, and the intermediate value is a message authentication code (MAC) generated in a DES-CBC mode using a partial integrity check value set data string to be checked, as a message.
Further, one embodiment of the data verifying value imparting method according to the present invention is characterized in that a value generated from the intermediate value by means of a signature key-applied cryptography process is applied as a collation value for data verification.
Further, one embodiment of the data verifying value imparting method according to the present invention is characterized in that different signature keys are applied to the cryptography process Sfor the intermediate integrity check value depending on a localization of the content data, to obtain the collation value for data verification.
Further, one embodiment of the data verifying value imparting method according to the present invention is characterized in that Sa common signature key common to all entities of a system for 27 jD executing a data verifying process or an apparatus-specific signature key specific to each apparatus that executes a data verifying process is selected and used as the signature key depending on the localization of the content data.
SFurther, one embodiment of the data verifying value imparting method according to the present invention is characterized in that the partial integrity check value contains one or more header section integrity check values for in intra-header-section data partly constituting data and one or more content integrity check values for intra-content-section data partly constituting the data, and the method is set so that a general integrity check value is generated for all the header section integrity check values and the content integrity check values, to verify the data.
Further, one embodiment of the data verifying value imparting method according to the present invention is characterized in that the partial integrity check value contains one or more header section integrity check values for intra-header-section data partly constituting data, and the method is set so that a general integrity check value is generated for the one or more header section integrity check values and content block data partly constituting the data, to verify the data.
Moreover, a sixth aspect of the present invention is a program providing medium for providing a computer program for causing a data verifying process to be executed on a computer 9 system to verify that data are valid, the program providing medium 28
CA
being characterized in that the computer program comprises steps of: executing a collation process using partial integrity check values generated as integrity check values for a partial data set containing one or more partial data obtained by dividing data a plurality of parts, and using an intermediate integrity check value based on a partial integrity check value set obtained by combining a plurality of the partial integrity check values together, to verify the entirety of a plurality of partial data sets corresponding to the plurality of partial integrity check Svalues constituting the partial integrity check value set.
A seventh aspect of the present invention is a data processing apparatus including encryption processing section that executes one encryption processing of at least one of data encryption, data decryption, data verification, authentication processing and signature processing and a storage section that stores master keys to generate keys used for the encryption processing, characterized in that the encryption processing section is configured to generate individual keys necessary to execute the encryption processing based on the master keys and Sidentification data of the apparatus or data subject to encryption p processing.
According to another embodiment of the data processing apparatus of the present invention, the data processing apparatus is a data processing apparatus that performs encryption processing on transfer data via a recoding medium or communication medium, 29 characterized in that the storage section stores a distribution key generation master key MKdis for generating a distribution key Kdis used for encryption processing of the transfer data and the encryption processing section executes encryption processing based S on the distribution key generation master key MKdis stored in the storage section and a data identifier, which is identification data of the transfer data and generates the transfer data S distribution key Kdis.
Furthermore, according to another embodiment of the data processing apparatus of the present invention, the data processing apparatus is a data processing apparatus that performs authentication processing of an externally connected apparatus to/from which data is transferred, characterized in that the storage section stores an authentication key generation master key SMKake for generating an authentication key Kake of the externally connected apparatus and the encryption processing section executes encryption processing based on the authentication key generation master key MKake stored in the storage section and an identifier of the externally connected apparatus, which is identification Sdata of the externally connected apparatus and generates the authentication key Kake of the externally connected apparatus.
Furthermore, according to another embodiment of the data processing apparatus of the present invention, the data processing apparatus is a data processing apparatus that performs signature y processing on data, characterized in that the storage section 30 S stores a signature key generation master key MKdev for generating a data processing apparatus signature key Kdev of the data processing apparatus and the encryption processing section executes encryption processing based on the signature key generation master key MKdev stored in the storage section and an identifier of the data processing apparatus, which is identification data of the data processing apparatus and generates the data processing apparatus signature key Kdev of the data processing apparatus.
Furthermore, according to another embodiment of the data processing apparatus of the present invention, individual key generation processing that generates an individual key necessary to execute encryption processing based on the master key and identification data of the apparatus or data subject to encryption processing is encryption processing that uses at least part of identification data of the apparatus or data subject to encryption processing as a message and applies the master key as the encryption key.
Furthermore, according to another embodiment of the data Sprocessing apparatus of the present invention, the encryption processing is encryption processing using a DES algorithm.
Furthermore, an eighth aspect of the present invention is a data processing system configured by a plurality of data processing apparatuses, characterized in that each of the plurality of data processing apparatuses has a common master key 31 0J to generate a key used for encryption processing of at least one of data encryption, data decryption data verification, authentication processing and signature processing and each of the plurality of data processing apparatuses generates a common individual key necessary to execute the encryption processing based on the master key and identification data of the apparatus or data subject to encryption processing.
(1 Furthermore, according to another embodiment of the data processing system of the present invention, the plurality of data processing apparatuses is configured by a contents data providing apparatus that supplies contents data and a contents data utilization apparatus that utilizes the contents data, both the contents data providing apparatus and contents data utilization apparatus have a distribution key generation master key to Sgenerate a contents data distribution key used for encryption processing of circulation contents data between the contents data providing apparatus and contents data utilization apparatus, the contents data providing apparatus generates a contents data distribution key based on the distribution key generation master Skey and contents identifier, which is an identifier of supplied contents data and executes encryption processing on the contents data, and the contents data utilization apparatus generates a contents data distribution key based on the distribution key generation master key and contents identifier, which is an 32 identifier of supplied contents data and executes decryption t processing on the contents data.
Furthermore, according to another embodiment of the data processing system of the present invention, the contents data t providing apparatus has a plurality of different distribution key generation master keys to generate a plurality of different contents data distribution keys, generates a plurality of different contents data distribution keys based on the plurality of distribution key generation master keys and the contents identifier, executes encryption processing using the plurality of distribution keys generated and generates encryption contents data of a plurality of types, and the contents data utilization apparatus has at least one distribution key generation master key of the plurality of different distribution key generation master '0 keys owned by the contents data providing apparatus and makes decodable only encryption contents data by a distribution key generated using the same distribution key generation master key as the distribution key generation master key owned by the own apparatus.
Furthermore, according to another embodiment of the data processing system of the present invention, each of said plurality of data processing apparatuses stores a same contents key generation master key to generate a contents key applied to contents data encryption processing, data processing apparatus A, Swhich is one of the plurality of data processing apparatuses, 33 J stores contents data encrypted by a contents key generated based on the contents key generation master key and the apparatus identifier of the data processing apparatus A in a storage medium, different data processing apparatus B generates a contents key S based on the same contents key generation master key and the apparatus identifier of the data processing apparatus A and executes decryption processing on the encrypted contents data S stored by said data processing apparatus A in said storage medium based on said contents key generated.
Furthermore, according to another embodiment of the data processing system of the present invention, the plurality of data processing apparatuses is configured by a host device and a slave device subject to authentication processing by the host device, both the host device and slave device have an authentication key generation master applied to authentication processing between the host device and slave device, the slave device generates an authentication key based on the authentication key generation master key and slave device identifier, which is the identifier of the slave device and stores in memory in the slave device, and the host device generates an authentication key based on the authentication key generation master key and slave device identifier, which is the identifier of the slave device and executes authentication processing.
Furthermore, a ninth aspect of the present invention is a ,4 data processing method that executes encryption processing of at 34 S least one of data encryption, data decryption, data verification, authentication processing and signature processing, including a key generating step of generating individual keys necessary to execute the encryption processing based on master keys to generate the keys used for the encryption processing and identification data of the apparatus or data subject to encryption processing and S an encryption processing step of executing encryption processing based on the key generated in the key generating step.
Furthermore, according to another embodiment of the data '1 processing method of the present invention, data processing executed by the data processing method is encryption processing on transfer data via a storage medium or communication medium, the key generating step is a distribution key generating step of executing encryption processing based on a distribution key 4 generation master key MKdis for generating a distribution key Kdis used for encryption processing of transfer data and a data identifier, which is identification data of the transfer data, and generating distribution key Kdis of the transfer data, and the encryption processing step is a step of executing encryption Sprocessing on transfer data based on the distribution key Kdis generated in the distribution key generating step.
Furthermore, according to another embodiment of the data processing method of the present invention, the data processing executed by the data processing method is authentication ,j processing of an externally connected apparatus to/from which data 35 O is transferred, the key generating step is an authentication key generating step of executing encryption processing based on an authentication key generation master key MKake for generating an authentication key Kake of the externally connected apparatus and an externally connected apparatus identifier, which is identification data of the externally connected apparatus, and generating the authentication key Kake of the externally connected (1 apparatus, and the encryption processing step is a step of executing authentication processing of the externally connected /f apparatus based on the authentication key Kake generated in the authentication key generation step.
Furthermore, according to another embodiment of the data processing method of the present invention, data processing executed by the data processing apparatus is signature processing on data, the key generating step is a signature key generating step of executing encryption processing based on a signature key generation master key MKdev for generating a data processing apparatus signature key Kdev of the data processing apparatus and a data processing apparatus identifier, which is identification data of the data processing apparatus and generating the data processing apparatus signature key Kdev of the data processing apparatus, and the encryption processing step is a step of executing signature processing on data based on the signature key Kdev generated in the signature key generating step.
36 1 Furthermore, according to another embodiment of the data
Z
processing method of the present invention, the key generating step is encryption processing that uses at least part of data identification of the apparatus or data subject to encryption Sprocessing as a message and applies the master key as the encryption key.
Furthermore, according to another embodiment of the data processing method of the present invention, the encryption processing is encryption processing using a DES algorithm.
Furthermore, a tenth aspect of the present invention is a data processing method in a data processing system comprising a contents data providing apparatus that supplies contents data and a contents data utilization apparatus that utilizes the contents data, characterized in that the contents data providing apparatus Sgenerates a contents data distribution key based on a distribution key generation master key for generating a contents data distribution key used for encryption processing on contents data and a contents identifier, which is the identifier of the provided contents data and executes encryption processing on the contents data, and the contents data utilization apparatus generates a contents data distribution key based on the distribution key generation master key and a contents identifier, which is the identifier of the provided contents data and executes decryption processing on the contents data.
37 J Furthermore, according to another embodiment of the data processing method according to the present invention, the contents data providing apparatus has a plurality of different distribution key generation master keys to generate a plurality of different contents data distribution keys, generates a plurality of different contents data distribution keys based on the plurality of distribution key generation master keys and the contents S identifier, executes encryption processing using the plurality of distribution keys generated and generates encryption contents data of a plurality of types, and the contents data utilization apparatus has at least one distribution key generation master key of the plurality of different distribution key generation master keys owned by the contents data providing apparatus and decrypts only encryption contents data by a distribution key generated Susing the same distribution key generation master key as the distribution key generation master key owned by the own apparatus.
Furthermore, an eleventh aspect of the present invention is a data processing method in a data processing system comprising a step of storing, by data processing apparatus A, which is one of the plurality of data processing apparatuses, in a storage medium contents data encrypted using a contents key generated based on a contents key generation master key to generate a contents key used for encryption processing of contents data and the apparatus identifier of the data processing apparatus A, a step of q" generating the same contents key as the contents key by different 38 data processing apparatus B based on the same the contents key generation master key as that of the data processing apparatus A and the apparatus identifier of the data processing apparatus A, and a step of decrypting the contents data stored in the storage medium using the contents key generated by said data processing apparatus B.
Furthermore, a twelfth aspect of the present invention is a data processing method in a data processing system comprising a host device, and a slave device subject to authentication processing by the host device, characterized in that the slave device generates an authentication key based on an authentication key generation master key to generate an authentication key used for authentication processing between the host device and slave device and a slave device identifier, which is the identifier of the slave device and stores the authentication key generated in memory in said slave device, and the host device generates an authentication key based on the authentication key generation master key and slave device identifier, which is the identifier of the slave device and executes authentication processing.
Furthermore, a thirteenth aspect of the present invention is a program providing medium that supplies a computer program to execute encryption processing of at least one of data encryption, data decryption, data verification, authentication processing and signature processing on a computer system, the computer program comprising a key generating step of generating individual keys 39 Jj necessary to execute the encryption processing based on the master key to generate the key used for the encryption processing and identification data of the apparatus or data subject to encryption processing, and an encryption processing step of executing encryption processing based on the keys generated in the key generating step.
A fourteenth aspect of the present invention is a data processing apparatus that processes contents data supplied from a storage medium or communication medium, characterized by comprising a storage section that stores data processing apparatus identifiers, a list verification section that extracts an illegal device list included in the contents data and executes collation between entries of the list and the data processing apparatus identifiers stored in the storage section, and a control section that stops executing processing of at least either one of reproduction of the contents data or processing of storage in a recording device when the result of the collation processing in the collation processing section shows that the illegal device list includes information that matches the data processing Sidentifiers.
According to another embodiment of the data processing apparatus of the present invention, the list verification section comprises an encryption processing section that executes encryption processing on the contents data, and the encryption Sprocessing section verifies the presence or absence of tampering 40 in the illegal device list based on check values of the illegal device list included in the contents data and executes the collation processing only when the verification proves no tampering.
j Furthermore, another embodiment of the data processing apparatus of the present invention further comprises an illegal device list check value generation key, characterized in that the encryption processing section executes encryption processing applying the illegal device list check value generation key to illegal device list configuration data to be verified, generates illegal device list check values, executes collation between the illegal device list check values and the illegal device list check values included in the contents data and thereby verifies the presence or absence of tampering in the illegal device list.
Furthermore, according to another embodiment of the data processing apparatus of the present invention, the list verification section comprises an encryption processing section that executes encryption processing on the contents data, the encryption processing section executes decryption processing of a the encrypted illegal device list included in the contents data and executes the collation processing on the illegal device list resulting from the decryption processing.
Furthermore, according to another embodiment of the data processing apparatus of the present invention, the list verification section comprises an encryption processing section 41 that executes mutual authentication processing with a recording device to/from which contents data is transferred, the list verification section extracts the illegal device list included in the contents data and executes collation with the data processing D apparatus identifiers stored in the storage section on condition S that authentication with the recording device has been established S through mutual authentication processing executed by the C encryption processing section.
A fifteenth aspect of the present invention is a data processing method that processes contents data supplied from a storage medium or communication medium, comprising a list extracting step of extracting an illegal device list included in the content data, a collation processing step of executing collation between entries included in the list extracted in the list extracting step and the data processing apparatus identifiers stored in a storage section in the data processing apparatus, and a step of stopping execution of processing of at least either one of reproduction of the contents data or processing of storage in the recording device when the result of the collation Sprocessing in the collation processing step shows that the illegal device list includes information that matches the data processing identifiers.
Furthermore, according to another embodiment of the data processing method of the present invention, the data processing method further comprises a verification step of verifying the 42 presence or absence of tampering in the illegal device list based on check values of the illegal device list included in the contents data, and the collation processing step executes collation processing only when the verification step proves no Stampering.
Furthermore, according to another embodiment of the data processing method of the present invention, the verification step comprises a step of executing encryption processing applying an illegal device list check value generation key to illegal device list configuration data to be verified and generating illegal device list check values, and a step of executing collation between the illegal device list check values generated and the illegal device list check values included in the contents data and thereby verifying the presence or absence of tampering in the illegal device list.
Furthermore, another embodiment of the data processing method of the present invention further comprises a decrypting step of executing decrypting processing on the encrypted illegal device list included in the contents data and the collation processing j step executes the collation processing on the illegal device list resulting from the decrypting step.
Furthermore, another embodiment of the data processing method of the present invention further comprises a mutual authentication processing step of executing mutual authentication processing with a recording device to/from which contents data is transferred, and 43 U the collation processing step executes collation processing on condition that authentication with the recording device has been established through mutual authentication processing executed by the mutual authentication processing step.
A sixteenth aspect of the present invention is a contents data generation method that generates contents data supplied from a storage medium or communication medium to a plurality of recorders/reproducers, characterized in that an illegal device list whose component data comprises identifiers of 'f recorders/reproducers, which will be excluded from the use of the contents data is stored as the header information of the contents data.
Furthermore, according to another embodiment of the contents data generation method of the present invention, the illegal device list check values for a tampering check of the illegal device list are also stored as the header information of the contents data.
Furthermore, according to another embodiment of the contents data generation method of the present invention, the illegal Sdevice list is encrypted and stored in the header information of the contents data.
Furthermore, a seventeenth aspect of the present invention is a program supply medium that supplies a computer program that allows a computer system to execute processing of contents data Ssupplied from a storage medium or communication medium, 44 I characterized in that the computer program comprises a list extracting step of extracting an illegal device list included in the contents data, a collation processing step of executing collation between entries included in the list extracted in the S list extracting step and the data processing apparatus identifiers stored in a storage section in the data processing apparatus, and a step of stopping execution of processing of either one of reproduction of the contents data or processing of storage in a recording device when the result of the collation processing in /2 the collation processing step shows that the illegal device list includes information that matches the data processing identifiers.
An eighteenth aspect of the present invention is a data processing apparatus that processes contents data supplied via a recording medium or communication medium, comprising an encryption processing section that executes encryption processing on the contents data, a control section that executes control over the encryption processing section, a system common key used for encryption processing in the encryption processing section, which is common to other data processing apparatuses using the contents Sdata, and at least one of an apparatus-specific key, which is specific to the data processing apparatus used for encryption processing in the encryption processing section or an apparatusspecific identifier to generate the apparatus-specific key, characterized in that the encryption processing section is Sconfigured to perform encryption processing by applying either one 45 of the system common key or the apparatus-specific key according to the utilization mode of the contents data.
Furthermore, in another embodiment of the data processing apparatus of the present invention, the encryption processing section executes encryption processing by applying either one of the system common key or the apparatus-specific key according to utilization restriction information included in the contents data.
Furthermore, another embodiment of the data processing apparatus of the present invention further comprises a recording device for recording contents data, characterized in that the encryption processing section, when imposed with a utilization restriction that the contents data should be used only for the own data processing apparatus, generates data to be stored in the recording device by executing encryption processing using the apparatus-specific key for the contents data, and in the case where the contents data is also made available to an apparatus other than the own data processing apparatus, data to be stored in the recording device is generated by executing encryption processing using the system common key on the contents data.
Furthermore, another embodiment of the data processing apparatus of the present invention comprises a signature key Kdev specific to the data processing apparatus and a system signature key Ksys common to a plurality of data processing apparatuses, characterized in that the encryption processing section, when the Scontents data is stored in the recording device imposed with a 46 S utilization restriction that the contents data should be used only for the own data processing apparatus, generates an apparatusspecific check value through encryption processing applying the apparatus-specific signature key Kdev to the contents data and, )r when the contents data is stored in the recording device with the contents data also made available to an apparatus other than the own data processing apparatus, generates an overall check value through encryption processing applying the system signature key Ksys to the contents data, and the control section performs /i control of storing either one of the apparatus-specific check value generated by the encryption processing section or the overall check value together with the contents data in the recording device.
Furthermore, another embodiment of the data processing /4 apparatus of the present invention comprises a signature key Kdev specific to the data processing apparatus and a system signature key Ksys common to a plurality of data processing apparatuses, characterized in that the encryption processing section, when contents data imposed with a utilization restriction that the 0 contents data should be used only for the own data processing apparatus is reproduced, generates an apparatus-specific check value applying the apparatus-specific signature key Kdev to the contents data and executes collation processing on the apparatusspecific check value generated and, when contents data also made available to an apparatus other than the own data processing 47 apparatus is reproduced, generates an overall check value through encryption processing applying the system signature key Ksys to the contents data and performs collation processing on the overall check value generated, and the control section generates S reproducible decrypted data by continuing processing of contents data by the encryption processing section only when collation with the apparatus-specific check value is established or when S collation with the overall check value is established.
Furthermore, another embodiment of the data processing Sapparatus of the present invention comprises a recording data processing apparatus signature key master key MKdev and data processing apparatus identifier IDdev, characterized in that the encryption processing section generates a signature key Kdev as the data processing apparatus specific key through encryption processing based on the recording data processing apparatus signature key master key MKdev and the data processing apparatus identifier IDdev.
Furthermore, in another embodiment of the data processing apparatus of the present invention, the encryption processing section generates the signature key Kdev through DES encryption processing applying the recording data processing apparatus signature key master key MKdev to the data processing apparatus identifier IDdev.
Furthermore, in another embodiment of the data processing Sapparatus of the present invention, the encryption processing 48 section generates an intermediate integrity check value by executing encryption processing on the contents data and executes encryption processing applying the data processing apparatus specific key or system common key on the intermediate integrity check value.
Furthermore, in another embodiment of the data processing apparatus of the present invention, the encryption processing section generates a partial integrity check value through encryption processing on a partial data set containing at least Sone partial data item obtained by dividing the contents data into a plurality of parts and generates an intermediate integrity check value through encryption processing on a partial integrity check value set data string containing the partial integrity check value generated.
A nineteenth aspect of the present invention is a data processing method that processes contents data supplied via a recording medium or communication medium, characterized by selecting either one of an encryption processing system common key common to other data processing apparatuses using the contents ff6 data or an apparatus-specific key, which is specific to the data processing apparatus according to the utilization mode of the contents data, and executing encryption processing by applying the selected encryption processing key to the contents data.
Furthermore, another embodiment of the data processing method Sof the present invention is characterized in that the encryption 49 to processing key selecting step is a step of selecting according to utilization restriction information contained in the contents data.
Furthermore, another embodiment of the data processing method of the present invention is characterized in that the processing of storing contents data in the recording device, when imposed Cwith a utilization restriction that the contents data should be used only for the own data processing apparatus, generates data to (1 be stored in the recording device by executing encryption processing applying the apparatus-specific key to the contents data, and in the case where the contents data is also made available to an apparatus other than the own data processing apparatus, data to be stored in the recording device is generated by executing encryption processing using the system common key on the contents data.
Furthermore, another embodiment of the data processing method of the present invention is characterized in that when the contents data is stored in the recording device imposed with a utilization restriction that the contents data should be used only for the own data processing apparatus, the processing of recording Scontents data in the recording device generates an apparatusspecific check value through encryption processing applying the apparatus-specific signature key Kdev to the contents data and, when the contents data is stored in the recording device with the contents data also made available to an apparatus other than the own data processing apparatus, generates an overall check value 50 through encryption processing applying the system signature key Ksys to the contents data, and either one of the apparatusspecific check value generated or the overall check value is stored together with the contents data in the recording device.
D b/ Furthermore, another embodiment of the data processing method O of the present invention is characterized in that when contents S data imposed with a utilization restriction that the contents data should be used only for the own data processing apparatus is reproduced, the contents data reproducing processing generates an apparatus-specific check value through encryption processing applying the apparatus-specific signature key Kdev to the contents data and executes collation processing on the apparatus-specific check value generated and, when contents data imposed with a utilization restriction that the contents data is also made /f available to an apparatus other than the own data processing apparatus is reproduced, generates an overall check value through encryption processing applying the system signature key Ksys to the contents data and performs collation processing on the overall check value generated, and contents data is reproduced only when collation with the apparatus-specific check value is established or when collation with the overall check value is established.
Furthermore, another embodiment of the data processing method of the present invention further comprises a step of generating a signature key Kdev as the data processing apparatus specific key Sthrough encryption processing based on data processing apparatus 51 signature key master key MKdev and the data processing apparatus identifier IDdev.
Furthermore, another embodiment of the data processing method of the present invention is characterized in that the signature Skey Kdev generating step is a step of generating the signature key Kdev through DES encryption processing applying the data processing apparatus signature key master key MKdev to the data processing apparatus identifier IDdev.
Furthermore, another embodiment of the data processing method Sof the present invention further comprises a step of generating an intermediate integrity check value by executing encryption processing on the contents data, characterized by executing encryption processing applying the data processing apparatus specific key or system common key to the intermediate integrity check value.
Furthermore, another embodiment of the data processing method of the present invention is characterized by further generating a partial integrity check value through encryption processing on a partial data set containing at least one partial data item Sobtained by dividing the contents data into a plurality of parts and generating an intermediate integrity check value through encryption processing on a partial integrity check value set data string containing the partial integrity check value generated.
A twentieth aspect of the present invention is a program Ssupply medium that supplies a computer program allowing a computer 52 system to execute data processing that processes contents data supplied via a recording medium or communication medium, and the computer program comprises the steps of selecting either encryption processing key, an encryption processing system common key common to other data processing apparatuses using the contents data or an apparatus-specific key, which is specific to the data processing apparatus according to the utilization mode of the contents data, and executing encryption processing applying the selected encryption processing key to the contents data.
A twenty first aspect of the present invention is a data processing apparatus that processes contents data supplied via a recording medium or communication medium, comprising an encryption processing section that executes encryption processing on the contents data, and a control section that executes control over 'the encryption processing section, characterized in that the encryption processing section is configured to generate a contents check value in units of contents block data to be verified included in the data, execute collation on the contents check value generated and thereby execute verification processing on the validity of each contents block data in the data.
Furthermore, another embodiment of the data processing apparatus of the present invention comprises a contents check value generation key and characterized in that the encryption processing section generates a contents intermediate value based on contents block data to be verified and generate a contents 53 O check value by executing encryption processing applying the contents check value generation key to the contents intermediate value.
Furthermore, another embodiment of the data processing f apparatus of the present invention is characterized in that when the contents block data to be verified is encrypted, the encryption processing section generates a contents intermediate (1 value by executing predetermined operation processing on an entire decrypted statement obtained through decryption processing of the contents block data in units of a predetermined number of bytes, and when the contents block data to be verified is not encrypted, generates a contents intermediate value by executing predetermined operation processing on the entire contents block data in units of a predetermined number of bytes.
SFurthermore, another embodiment of the data processing apparatus of the present invention is characterized in that the predetermined operation processing applied in the intermediate integrity check value generation processing by the encryption processing section is an exclusive-OR operation.
Furthermore, another embodiment of the data processing apparatus of the present invention is characterized in that the encryption processing section has an encryption processing configuration in CBC mode and the decryption processing applied to the content intermediate value generation processing when the 54 contents block data to be verified is decryption processing in CBC mode.
Furthermore, another embodiment of the data processing apparatus of the present invention is characterized in that the Sencryption processing configuration in CBC mode of the encryption processing section is a configuration in which common key encryption processing is applied a plurality of times only to part of a message string to be processed.
Furthermore, another embodiment of the data processing /6 apparatus of the present invention is characterized in.that when the contents block data contains a plurality of parts and some parts included in the contents block data are to be verified, the encryption processing section generates a contents check value based on the parts to be verified, executes collation processing on the contents check value generated and thereby executes verification processing on the validity in units of content block data in the data.
Furthermore, another embodiment of the data processing apparatus of the present invention is characterized in that when the contents block data contains a plurality of parts and it is one part that needs to be verified, the encryption processing section generates a contents check value by executing encryption processing applying the contents check value generation key to a value obtained by carrying out an exclusive-OR in units of a predetermined number of bytes on the entire decrypted statement 55 I obtained by decryption processing of parts to be verified in the case where the parts to be verified is encrypted, and generates a contents check value by executing encryption processing applying the contents check value generation key to a value obtained by Scarrying out an exclusive-OR in units of a predetermined number of bytes on the entire part to be verified in the case where the parts to be verified is not encrypted.
Furthermore, another embodiment of the data processing apparatus of the present invention is characterized in that when Sthe contents block data contains a plurality of parts and it is a plurality of parts that needs to be verified, the encryption processing section uses, as a contents check value, the result obtained by executing encryption processing applying the contents check value generation key to link data of a parts check value Sobtained by executing encryption processing applying a contents check value generation key to each part.
Furthermore, another embodiment of the data processing apparatus of the present invention is characterized in that the encryption processing section further comprises a recording device for storing contents data containing contents block data whose validity has been verified.
Furthermore, another embodiment of the data processing apparatus of the present invention is characterized in that when collation is not established in the collation processing on a 56 L) contents check value in the encryption processing section, the control section stops storage in the recording device.
Furthermore, another embodiment of the data processing apparatus of the present invention is characterized in that the t encryption processing section further comprises a reproduction processing section for reproducing data whose validity has been verified.
Furthermore, another embodiment of the data processing apparatus of the present invention is characterized in that when 9 collation is not established in the collation processing on a contents check value in the encryption processing section, the control section stops reproduction processing in the reproduction processing section.
A twenty second aspect of the present invention is a data 9- processing method that processes contents data supplied via a recording medium or communication medium, characterized by generating a contents check value in units of contents block data to be verified included in the data, executing collation on the contents check value generated and thereby executing verification Sprocessing on the validity in units of contents block data in the data.
Furthermore, another embodiment of the data processing method of the present invention is characterized by generating a contents intermediate value based on contents block data to be verified and 3,_4 generating a contents check value by executing encryption 57 to processing applying the contents check value generation key to the contents intermediate value generated.
Furthermore, another embodiment of the data processing method of the present invention is characterized by generating, when the k contents block data to be verified is encrypted, a contents intermediate value by executing predetermined operation processing on an entire decrypted statement obtained through decryption (1 processing of the contents block data in units of a predetermined number of bytes, and generating, when the contents block data to be verified is not encrypted, a contents intermediate value by executing predetermined operation processing on the entire contents block data in units of a predetermined number of bytes.
Furthermore, another embodiment of the data processing method of the present invention is characterized in that the Spredetermined operation processing applied in the intermediate integrity check value generation processing is an exclusive-OR operation.
Furthermore, another embodiment of the data processing method of the present invention is characterized in that in the contents intermediate value generation processing, the decryption processing applied to the content intermediate value generation processing when the contents block data to be verified is encrypted is decryption processing in CBC mode.
Furthermore, another embodiment of the data processing method of the present invention is characterized in that in the 58 decryption processing configuration in CBC mode, common key encryption processing is applied a plurality of times only to part of a message string to be processed.
Furthermore, another embodiment of the data processing method of the present invention is characterized by generating, when the contents block data contains a plurality of parts and some parts included in the contents block data are to be verified, a contents check value based on the parts to be verified, executing collation processing on the contents check value generated and thereby executing verification processing on the validity in units of content block data in the data.
Furthermore, another embodiment of the data processing method of the present invention is characterized by generating when the contents block data contains a plurality of parts and it is one Spart that needs to be verified, a contents check value by executing encryption processing applying the contents check value generation key to a value obtained by carrying out an exclusive-OR in units of a predetermined number of bytes on the entire decrypted statement obtained by decryption processing of parts to be verified in the case where the parts to be verified is encrypted, and generating a contents check value by executing encryption processing applying the contents check value generation key to a value obtained by carrying out an exclusive-OR in units of a predetermined number of bytes on the entire part to be 59 verified in the case where the part to be verified is not encrypted.
Furthermore, another embodiment of the data processing method of the present invention is characterized by using, when the contents block data contains a plurality of parts and it is a plurality of parts that needs to be verified, as a contents check value, the result obtained by executing encryption processing further applying the contents check value generation key to link data of a parts check value obtained by executing encryption /16 processing applying the contents check value generation key to each part.
Furthermore, another embodiment of the data processing method of the present invention further comprises a step of storing contents data containing contents block data whose validity has been verified.
Furthermore, another embodiment of the data processing method of the present invention is characterized in that when collation is not established in the collation processing on a contents check value, the control section stops storage in the recording device.
Furthermore, another embodiment of the data processing method of the present invention further comprises a step of reproducing data whose validity has been verified.
Furthermore, another embodiment of the data processing method of the present invention is characterized by stopping reproduction 60 processing when collation is not established in the collation processing on a contents check value.
A twenty third aspect of the present invention is a contents data verification value assignment method for contents data verification processing, characterized by generating a contents check value in units of contents block data to be verified included in the data, assigning the contents check value generated to contents data containing the contents block data to be verified.
Furthermore, another embodiment of the contents data verification value assignment method of the present invention is characterized in that the contents check value is generated through encryption processing applying the contents check value generation key using the contents block data to be checked as a message.
Furthermore, another embodiment of the contents data verification value assignment method of the present invention is characterized in that the contents check value is generated by generating a contents intermediate value based on the contents block data to be verified and executing encryption processing Sapplying the contents check value generation key to the contents intermediate value.
Furthermore, another embodiment of the contents data verification value assignment method of the present invention is characterized in that the contents check value is generated by 61 executing encryption processing in CBC mode on the contents block data to be verified.
Furthermore, another embodiment of the contents data verification value assignment method of the present invention is characterized in that the encryption processing configuration in CBC mode is a configuration in which common key encryption processing is applied a plurality of times only to part of a (Ni message string to be processed.
Furthermore, another embodiment of the contents data f verification value assignment method of the present invention is characterized by generating, when the contents block data contains a plurality of parts and some parts included in the contents block data are to be verified, a contents check value based on the parts to be verified and assigning the contents check value generated to Scontents data containing the content block data to be verified.
Furthermore, another embodiment of the contents data verification value assignment method of the present invention is characterized by generating, when the contents block data contains a plurality of parts and it is one part that needs to be verified, Sa contents check value by executing encryption processing applying the contents check value generation key to a value obtained by carrying out an exclusive-OR in units of a predetermined number of bytes on the entire decrypted statement obtained by decryption processing of parts to be verified in the case where the parts to Sbe verified is encrypted, generating a contents check value by 62 executing encryption processing applying the contents check value generation key to a value obtained by carrying out an exclusive-OR in units of a predetermined number of bytes on the entire part to be verified in the case where the parts to be verified is not S encrypted and assigning the contents check value generated to the contents data containing the contents block data to be verified.
Furthermore, another embodiment of the contents data verification value assignment method of the present invention is characterized by using, when the contents block data contains a Splurality of parts and it is a plurality of parts that needs to be verified, as a contents check value, the result obtained by executing encryption processing further applying the contents check value generation key to link data of a parts check value obtained by executing encryption processing applying the contents check value generation key to each part and assigning the contents check value generated to contents data containing the contents block data to be verified.
A twenty fourth aspect of the present invention is a program supply medium that supplies a computer program to execute data processing on contents data supplied via a recording medium or communication medium, with the computer program comprising a step of generating a contents check value in units of contents block data to be verified included in the data, and a step of executing collation processing on the contents check value generated and 63 L thereby executing verification processing on the validity in units of contents block data in the data.
O A twenty fifth aspect of the present invention is a data processing apparatus for executing processing for generating f storing data with respect to a recording device of content data, which has a plurality of content blocks in which at least a part of the blocks are encrypted and a header section storing CI information on the contents blocks, which is characterized in that in the case in which content data to be an object of storage Sin the recording device is structured by data stored in the header section, which is an encryption key data Kdis[Kcon] that is an encryption key Kcon of the content block applied encryption processing by an encryption key Kdis, the data processing apparatus has a structure for executing processing for taking out the encryption key data Kdis[Kcon] from the header section and executing decryption processing to generate decryption data Kcon, generating a new encryption key data Kstr[Kcon] that is applied encryption processing by an encryption key Kstr and storing the new encryption key data Kstr[Kcon] in the lie header section of the content data, and applying a different encryption key Kstr to the generated decryption data Kcon to execute encryption processing.
A twenty sixth aspect of the present invention is a data processing apparatus for executing processing for generating jl- storing data with respect to a recording device of content data, 64 which has a plurality of content blocks in which at least a part of the blocks are encrypted and a header section storing O information on the contents blocks, which is characterized in that: in the case in which the content block included in content O data to be an object of storage with respect to the recording Sdevice is composed of contents encrypted by an encryption key Kblc and encryption key data Kcon[Kblc] that is encrypted by the (1 encryption key Kcon, and has a structure in which encryption key data Kdis[Kcon] that is the encryption key Kcon applied encryption processing by an encryption key Kdis is stored in the header section, the data processing apparatus has a structure for executing processing for taking out the encryption key data Kdis[Kcon] from the header section and executing decryption processing to generate decryption data Kcon, generating an g/ encryption key data Kstr[Kcon] that is applied encryption processing by an encryption key Kstr and storing the encryption key data Kstr[Kcon] in the header section of the content data, and applying a different encryption key Kstr to the generated decryption data Kcon to execute encryption processing.
In addition, a twenty seventh aspect of the present invention is a data processing apparatus for executing processing for generating storing data with respect to a recording device of content data, which has a plurality of content blocks in which at least a part of the blocks are encrypted and a header section 1/ storing information on the contents blocks, characterized in that: 65 in the case in which the content block included in content data to be an object of storage with respect to the recording device is composed of contents encrypted by an encryption key Kblc and encryption key data Kdis[Kblc] that is encrypted by the encryption key Kdis, the data processing apparatus has a structure for executing processing for taking out the encryption key data Kdis[Kblc] from the content block section and executing decryption processing of the encryption key Kblc to generate decryption data Kblc, generating an encryption key data Kstr[Kblc] that is applied encryption processing by an encryption key Kstr and storing the encryption key data Kstr[Kblc] in a contents block section, and applying a different encryption key Kstr to the generated decryption data Kblc to execute encryption processing.
In addition, a twenty eighth aspect of the present invention is a content data generating method for generating content data, which comprises: coupling a plurality of content blocks composed of data including at least any one of voice information, image information and program data; applying encryption processing to at least a part of content blocks included in the plurality of O content blocks by an encryption key Kcon; generating encryption key data Kdis[Kcon] that is the encryption key Kcon applied encryption processing by an encryption key Kdis and storing the encryption key Kdis in a header section of the content data; and generating content data including the plurality of content blocks _q<W and the header section.
66- In addition, an embodiment of the content data generating method of the present invention is characterized by further comprising processing for generating block information storing S information including identification information of content data, S data length of content data, usage policy information including data types of content data, data length of the content block, and presence or absence of encryption processing, and storing the block information in the header section.
In addition, an embodiment of the content data generating method of the present invention is characterized in that the content data generating method comprises processing for further generating a part check value based on a part of information composing the header section and storing the part check value in the header section, and further generating a total check value based on the part check value and storing the total check value in the header section.
In addition, an embodiment of the content data generating method of the present invention is characterized in that the generation processing of the part check value and the generation Sprocessing of the total check value applies and executes a DES encryption processing algorithm with data to be an object of check as a message and a check value generating key as an encryption key.
In addition, an embodiment of the content data generating method of the present invention is characterized in that the content data generating method further applies encryption 67 processing to the block information by the encryption key Kbit, and stores the encryption key data Kdis[Kbit] that is the encryption key Kbit generated by the encryption key Kdis in the header section.
In addition, an embodiment of the content data generating method of the present invention is characterized in that each block of the plurality of blocks in the content block is generated as a common fixed data length.
In addition, an embodiment of the content data generating method of the present invention is characterized in that each block of the plurality of blocks in the content block is generated with a structure in which an encryption data section and a nonencryption section are arranged regularly.
A twenty ninth aspect of the present invention is the content data generating method for generating content data which comprises: coupling a plurality of content blocks including at least any one of voice information, image information and program data; composing at least a part of the plurality of content blocks by an encryption data section that is data including at least any Sone of voice information, image information and program data by an encryption key Kblc, and a set of encryption key data Kcon[Kblc] that is the encryption key Kblc of the encryption data section applied encryption processing by an encryption key Kcon; generating encryption key data Kdis[Kcon] that is the encryption key Kcon applied encryption processing by an encryption key Kdis 68 and storing the generated the encryption key data Kdis[Kcon] in a header of the content data; and generating content data including a plurality of content blocks and a header section.
A thirtieth aspect of the present invention is the content O data generating method for generating content data which S comprises: coupling a plurality of content blocks including at O least any one of voice information, image information and program data; composing at least a part of the plurality of content blocks by an encryption data section that is data including at least one of voice information, image information and program data by an encryption key Kblc, and a set of encryption key data Kdis[Kblc] that is the encryption key Kblc of the encryption data section applied encryption processing by an encryption key Kdis; and generating content data including a plurality of content blocks and a header section.
A thirty first aspect of the present invention is a data processing method for executing processing for storing in a recording device content data having a plurality of content blocks in which at least a part of blocks are encrypted, and a header in which information on the content blocks is stored, which comprises: in the case in which content data to be an object of storage in the recording device is structured by data stored in the header section, which is an encryption key data Kdis[Kcon] that is an encryption key Kcon of the content block applied encryption processing by an encryption key Kdis, taking out the 69encryption key data Kdis[Kcon] from the header section and executing decryption processing to generate decryption data Kcon; 0 generating a new encryption key data Kstr[Kcon] that is applied encryption processing by an encryption key Kstr by applying a O different encryption key Kstr to the generated decryption data Kcon to execute encryption processing; and storing the generated encryption key data Kstr[Kcon] in a header section of the content (Ni data, and storing the header section in the recording device together with the plurality of content blocks.
9 A thirty second aspect of the present invention is a data processing method for executing processing for storing in a recording device content data having a plurality of content blocks in which at least a part of blocks are encrypted, and a header in which information on the content blocks is stored, which Scomprises: in the case in which the content block included in content data to be an object of storage with respect to the recording device is composed of contents encrypted by an encryption key Kblc and encryption key data Kcon[Kblc] that is encrypted by the encryption key Kcon, and has a structure in which Ae encryption key data Kdis[Kcon] that is the encryption key Kcon applied encryption processing by an encryption key Kdis is stored in the header section, taking out the encryption key data Kdis[Kcon] from the header section and executing decryption processing to generate decryption data Kcon; generating a new d/ encryption key data Kstr[Kcon] that is applied encryption 70 processing by an encryption key Kstr by applying a different encryption key Kstr to the generated decryption data Kcon to execute decryption processing; and storing the generated encryption key data Kstr[Kcon] in a header section of the content Sdata, and storing the header section in the recording device together with the plurality of content blocks.
A thirty third aspect of the present invention is a data processing method for executing processing for storing in a recording device content data having a plurality of content blocks in which at least a part of blocks are encrypted, and a header in which information on the content blocks is stored, which comprises: in the case in which the content block included in content data to be an object of storage with respect to the recording device is composed of contents encrypted by an encryption key Kblc and encryption key data Kdis[Kblc] that is dJ encrypted by the encryption key Kdis, taking out the encryption key data Kdis[Kblc] from the content block section and executing decryption processing of the encryption key Kblc to generate decryption data Kblc; generating an encryption key data Kstr[Kblc] that is applied encryption processing by an encryption key Kstr by applying a different encryption key Kstr to the generated decryption data Kblc to execute decryption processing; and storing the generated encryption key data Kstr[Kblc] in a content block section, and storing the content block section in the recording device together with the plurality of content blocks.
71 OJ A thirty fourth aspect of the present invention is a program providing medium for providing a computer program causing O generation processing of storing data with respect to a recording device of content data, which has a plurality of content blocks in S~ which at least a part of the blocks are encrypted and a header Ssection storing information on the contents blocks, to be executed on a computer system, which is characterized in that: the computer (1 program comprises: in the case in which content data to be an object of storage in the recording device is structured by data stored in the header section, which is an encryption key data Kdis[Kcon] that is an encryption key Kcon of the content block applied encryption processing by an encryption key Kdis, a step of taking out the encryption key data Kdis[Kcon] from the header section and executing decryption processing to generate decryption data Kcon; generating a new encryption key data Kstr[Kcon] that is applied encryption processing by an encryption key Kstr by applying a different encryption key Kstr to the generated decryption data Kcon to execute decryption processing; and storing the generated encryption key data Kstr[Kcon] in a header section of the content data.
A thirty fifth aspect of the present invention is a data processing apparatus for performing reproduction processing of content data provided by a storage medium or a communication medium, which is characterized by comprising: a content data Sanalyzing section for executing content data analysis of content 72 data including compressed contents and an expansion processing program of the compressed contents, and executing extraction processing of the compressed contents and the expansion processing program from the content data; and an expansion processing section S for executing expansion processing of the content data included in the content data using an expansion processing program included in the content data obtained as a result of the analysis of the (Ni content data analyzing section.
In addition, in one embodiment of the data processing apparatus of the present invention, the data processing apparatus is characterized by further comprising: a data storing section for storing the compressed contents that are extracted by the content data analyzing section; and a program storing section for storing the expansion processing program extracted by the content data r analyzing section, and characterized in that the expansion processing section has a configuration for executing expansion processing with respect to the compressed contents stored in the data storing section by applying the expansion processing program stored in the program storing section to the compressed contents.
SIn addition, in one embodiment of the data processing apparatus of the present invention, the data processing apparatus is characterized in that the contents data analyzing section has a configuration for obtaining a configuration information of content data based on header information included in the content data and performing analysis of the content data.
73 In addition, in one embodiment of the data processing apparatus of the present invention, the data processing apparatus is characterized in that reproduction priority information of the compressed contents is included in the header information and, if Sthere are a plurality of compressed contents that is objects of expansion processing in the expansion processing section, the expansion processing section has a configuration for sequentially S executing content expansion processing in accordance with the priority based on the priority information in the header information obtained in the content data analyzing section.
In addition, in one embodiment of the data processing apparatus of the present invention, the data processing apparatus is characterized by further comprising: displaying means for displaying information of the compressed contents that are objects of expansion processing; and inputting means for inputting reproduction contents identification data selected from the content information displayed on the displaying means, and characterized in that the expansion processing section has a configuration for executing expansion processing of the compressed contents corresponding to the identification data based on the reproduction contents identification data inputted from the inputting means.
In addition, a thirty sixth aspect of the present invention is a data processing apparatus for performing reproduction processing of content data provided by a storage medium or a 74 communication medium, which is characterized by comprising: a content data analyzing section for receiving content data including either compressed contents or expansion processing program, distinguishing whether the content data has the S compressed contents or the expansion processing program from header information included in the received content data and, at the same time, if the content data has the compressed contents, obtaining a type of a compressing processing program applied to the compressed contents from the header information of the content 9( data, and if the content data has the expansion processing program, obtaining a type of the expansion processing program from the header information of the content data; an expansion processing section for executing expansion processing of the compressed contents, characterized in that the expansion processing section has a configuration for selecting an expansion processing program applicable to the type of the compression processing program of the compressed contents analyzed by the content data analyzing section based on the type of the expansion processing program analyzed by the content data analyzing section, and executing Y expansion processing by the selected expansion processing program.
In addition, in one embodiment of the data processing apparatus of the present invention, the data processing apparatus is characterized by further comprising: a data storing section for storing the compressed contents that are extracted by the content data analyzing section; and a program storing section for storing 75 U the expansion processing program extracted by the content data analyzing section, and characterized in that the expansion processing section has a configuration for executing expansion processing with respect to the compressed contents stored in the S data storing section by applying the expansion processing program stored in the program storing section to the compressed contents.
In addition, in one embodiment of the data processing apparatus of the present invention, the data processing apparatus is characterized in that reproduction priority information of the if compressed contents is included in the header information and, if there are a plurality of compressed contents that is objects of expansion processing, content expansion processing in the expansion processing section has a configuration for sequentially executing content expansion processing in accordance with the if priority based on the priority information in the header information obtained in the content data analyzing section.
In addition, in one embodiment of the data processing apparatus of the present invention, the data processing apparatus is characterized by further comprising retrieving means for g'd retrieving an expansion processing program, and characterized in that the retrieving means has a configuration for retrieving an expansion processing program applicable to a type of the compression processing program of the compressed contents analyzed by the content data analyzing section with program storing means 76 accessible by the data processing apparatus as an object of retrieval.
In addition, in one embodiment of the data processing apparatus of the present invention, the data processing apparatus
S
is characterized by further comprising: displaying means for displaying information of the compressed contents that are objects of expansion processing; and inputting means for inputting reproduction contents identification data selected from the content information displayed on the displaying means, and characterized in that the expansion processing section has a configuration for executing expansion processing of the compressed contents corresponding to the identification data based on the reproduction contents identification data inputted from the inputting means.
In addition, a thirty seventh aspect of the present invention is a data processing method for performing reproduction processing of content data provided by a storage medium or a communication medium, which is characterized by comprising: a content data analyzing step of executing content data analysis of content data Z including compressed contents and an expansion processing program of the compressed contents, and executing extraction processing of the compressed contents and the expansion processing program from the content data; and an expansion processing step of executing expansion processing of the content data included in the content Sdata using an expansion processing program included in the content 77 data obtained as a result of the analysis of the content data analyzing section.
In addition, in one embodiment of the data processing method of the present invention, the data processing method is characterized by further comprising: a data storing step of storing the compressed contents that are extracted by the content data analyzing section; and a program storing step of storing the CI expansion processing program extracted by the content data analyzing section, and characterized in that the expansion le processing section has a configuration for executing expansion processing with respect to the compressed contents stored in the data storing step by applying the expansion processing program stored in the program storing step to the compressed contents.
In addition, in one embodiment of the data processing method of the present invention, the data processing method is characterized in that the contents data analyzing step obtains a configuration information of content data based on header information included in the content data and performs analysis of the content data.
In addition, in one embodiment of the data processing method of the present invention, the data processing method is characterized in that reproduction priority information of the compressed contents is included in the header information and, if there are a plurality of compressed contents that is objects of expansion processing in the expansion processing section, the 78
;Z
expansion processing step sequentially executes content expansion processing in accordance with the priority based on the priority information in the header information obtained in the content data analyzing step.
In addition, in one embodiment of the data processing method of the present invention, the data processing method is characterized by further comprising: displaying step of displaying CI information of the compressed contents that are objects of expansion processing on displaying means; and inputting step of /1 inputting reproduction contents identification data selected from the content information displayed on the displaying means, and characterized in that the expansion processing step executes expansion processing of the compressed contents corresponding to the identification data based on the reproduction contents /4 identification data inputted from the inputting step.
In addition, a thirty eighth aspect of the present invention is a data processing method for performing reproduction processing of content data provided by a storage medium or a communication medium, which is characterized by comprising: a content data analyzing step'of receiving content data including either compressed contents or expansion processing program, distinguishing whether the content data has the compressed contents or the expansion processing program from header information included in the received content data and, at the same time, if the content data has the compressed contents, obtaining a 79 type of a compressing processing program applied to the compressed contents from the header information of the content data, and if the content data has the expansion processing program, obtaining a type of the expansion processing program from the header Sinformation of the content data; a selecting step of selecting an expansion processing program applicable to the type of the compression processing program of the compressed contents analyzed in the content data analyzing step based on the type of the expansion processing program analyzed in the content data /9 analyzing step; and an expansion processing step of executing expansion processing by the expansion processing program selected in the selecting step.
In addition, in one embodiment of the data processing method of the present invention, the data processing method is characterized by further comprising: a data storing step of storing the compressed contents that are extracted by the content data analyzing section; and a program storing step of storing the expansion processing program extracted by the content data analyzing section, and characterized in that the expansion ,g processing step executes expansion processing with respect to the compressed contents stored in the data storing step by applying the expansion processing program stored in the program storing step to the compressed contents.
In addition, in one embodiment of the data processing method 'l of the present invention, the data processing method is 80 characterized in that reproduction priority information of the compressed contents is included in the header information and, if there are a plurality of compressed contents that is objects of expansion processing, the content expansion processing step Ssequentially executes content expansion processing in accordance with the priority based on the priority information in the header information obtained in the content data analyzing step.
In addition, in one embodiment of the data processing method of the present invention, the data processing method is characterized by comprising a retrieving step of retrieving an expansion processing program, and characterized in that the retrieving step retrieves an expansion processing program applicable to a type of the compression processing program of the compressed contents analyzed in the content data analyzing step /4 with program storing means accessible by the data processing apparatus as an object of retrieval.
In addition, in one embodiment of the data processing method of the present invention, the data processing method is characterized by further comprising: a displaying step of c displaying information of the compressed contents that are objects of expansion processing; and an inputting step of inputting reproduction contents identification data selected from the content information displayed on the displaying means, and characterized in that the expansion processing step executes Sexpansion processing of the compressed contents corresponding to 81 the identification data based on the reproduction contents identification data inputted from the inputting means.
0 In addition, a thirty ninth aspect of the present invention is a content data generating method for performing generation .O processing of content data provided by a storage medium or a Scommunication medium, which is characterized by generating content data in which compressed contents and an expansion processing (Ni program of the compressed contents are combined.
In addition, in one embodiment of the content data generating 1O method of the present invention, the content data generating method is characterized in that a configuration information of the content data is added as header information of the content data.
In addition, in one embodiment of the content data generating method of the present invention, the content data generating (i method is characterized in that reproduction priority information of contents included in the content data as header information of the content data.
In addition, a fortieth aspect of the present invention is a content data generating method for performing generation 7j processing of content data provided by a storage medium or a communication medium, which is characterized in that content data is generated in which a type of content data for identifying whether the content data has compressed contents or an expansion processing program is added as header information; if the content Sdata has compressed contents, a type of a compression processing 82 S program applied to the compressed contents is added as header information; and if the content data has an expansion processing program, a type of an expansion processing program is added as header information.
In addition, in one embodiment of the content data generating method of the present invention, the content data generating method is characterized in that reproduction priority information Cl of contents included in the content data is added as header information of the content data.
SIn addition, a forty first aspect of the present invention is a program providing medium for providing a computer program that causes a computer system to execute reproduction processing of content data provided by a storage medium or a communication medium, which is characterized by comprising: a content data Sanalyzing step of executing content data analysis of content data including compressed contents and an expansion processing program of the compressed contents, and executing extraction processing of the compressed contents and the expansion processing program from the content data; and an expansion processing step of executing S expansion processing of the content data included in the content data using an expansion processing program included in the content data obtained as a result of the analysis of the content data analyzing section.
The program providing medium in accordance with the present invention is, for example, a medium for providing a computer 83 I program in a computer readable form to a general purpose computer system that can execute various program codes. A form of the medium is a storage medium such as a CD, an FD or an MO, or a transmission medium such as a network, and is not specifically j^ limited.
Such a program providing medium defines a structural or functional cooperative relationship between a computer program and a providing medium for realizing a predetermined function of the computer program on a computer system. In other words, a cooperative operation is shown on the computer system by installing the computer program in the computer system via the providing medium, and operational effects similar to other aspects of the present invention can be obtained.
Other objects, features, and advantages of the present Sinvention will be seen from the detailed explanation based on the embodiment and attached drawings of the present invention described later.
As described above, according to the data processing apparatus and method and data-verifying-value-imparting method of Sthe present invention, partial integrity check values generated as integrity check values for a partial data set containing one or more partial data obtained by dividing content data into a plurality of pieces are used for a collation process to verify the partial data, and a partial-integrity-check-value -verifying integrity check values used to verify a partial integrity check 84 S value set comprising a combination of a plurality of partial integrity check values are used for a collation process to verify the entirety of a plurality of partial data sets corresponding to a plurality of partial integrity check values constituting a partial integrity check value set. Consequently, compared to a configuration for imparting a single integrity check value to the entire content data, partial verification is achieved and the entire verification process is efficient due to the use of the partial integrity check values.
Further, according to the data processing apparatus and method and data-verifying-value-imparting method of the present invention, the verification process can be executed depending on how content data are used, for example, whether the data are to be downloaded or reproduced; for example, a verification process for a data portion that is unlikely to be tampered can be omitted.
Therefore, efficient verification is achieved depending on how data are used.
Furthermore, the data processing apparatus and data processing method of the present invention are configured in such a way that individual keys necessary to execute encryption processing such as data encryption, data decryption, data verification, authentication processing and signature processing are not stored in a storage section, master keys to generate these individual keys are stored in the storage section instead, the encryption processing section of the data processing apparatus 85 extracts the master keys corresponding to these individual keys such as encryption keys and authentication keys from the storage section as required, executes encryption processing applying a DES algorithm, etc. based on the extracted master keys and Sidentification data of the apparatus or data and generates individual keys such as an encryption key and authentication key, and therefore the present invention eliminates the possibility of the individual keys themselves leaking from the storage section and enhances the security of an encryption processing system because acquiring the individual keys will require a plurality of information pieces such as information of both individual key generation algorithm and master keys, identification data of the apparatus or data. Moreover, even if an individual key is leaked for some reasons, the range of damage is limited to the range of Sthe individual key, which will not lead to collapse of the entire system.
Furthermore, the data processing apparatus, data processing system and data processing method of the present invention is configured in such a way that individual keys are sequentially generated based on the identification data of the apparatus or data, which eliminates the need to maintain the list of keys applied to individual apparatuses in a control apparatus, facilitating system control as well as enhancing the security.
Furthermore, according to the data processing apparatus, data S- processing method and contents data generation method of the 86 present invention, illegal device identification data information is stored in contents data, collation between an illegal device list and the recorder/reproducer identifier of the recorder/reproducer attempting to use the contents is executed j' prior to the use of the contents by the recorder/reproducer, and in the case where the collation result shows that some entries of the illegal device list match the recorder/reproducer identifier, the subsequent processing, for example, contents data decryption, downloading or reproduction processing, etc. is stopped, thus making it possible to prevent a reproducer, etc. that has illegally acquired a key from illegally using contents.
Furthermore, the data processing apparatus, data processing method and contents data generation method of the present invention adopt a configuration allowing the contents data to Sinclude check values together for the illegal device list in the content data, making it possible to prevent tampering of the list itself and provide a contents data utilization configuration with enhanced security.
Furthermore, the data processing apparatus and data 9 processing method of the present invention allows a data processing apparatus such as a recorder/reproducer and PC to store an apparatus-specific key, which is specific to the data processing apparatus and a system common key, which is common to other data processing apparatuses using contents data, making it 4^ possible to process contents according to contents utilization 87 J restrictions. The data processing apparatus selectively uses these two keys according to contents utilization restrictions.
For example, in the case where the contents are only available to the data processing apparatus, the key specific to the data 4' processing apparatus is used, while in the case where the contents are also available to other systems, a check value for the contents data is generated and collation processing is performed S using the system common key. It is possible to decrypt and reproduce the encrypted data only when the collation is established, thus allowing processing according to contents utilization restrictions such as contents only available to the data processing apparatus or contents commonly available to the system, etc.
Furthermore, the data processing apparatus, data processing method and contents data verification value assignment method of the present invention is configured to generate a contents check value in units of contents block data, execute collation processing on the contents check value generated, generate a contents intermediate value based on the contents block data to be Sverified and generate a contents check value through encryption processing applying a contents check value generation key, thus allowing efficient verification compared to conventional processing on entire data.
Furthermore, the data processing apparatus, data processing Smethod and contents data verification value assignment method of 88 the present invention allows verification in contents block units and simplified verification processing according to download processing and reproduction processing, etc. providing efficient verification according to the mode of use.
Furthermore, since the data processing apparatus, the content data generating method, and the data processing method of the present invention is made to have the configuration that is provided with the plurality of content blocks in the content data and enables encryption processing for a unit of each content block, and also have the configuration in which the key used for content encryption is further encrypted and stored in the header section, even if, for example, a plurality of content blocks exist and blocks requiring encryption processing and blocks not requiring encryption processing are mixed, it becomes possible to have an arbitrary data structure that couples each block.
In addition, according to the data processing apparatus, the data processing system, and the data processing method of the present invention, by making the configuration of the content block to be a regular configuration, for example, a configuration 4C having a uniform data length, or a configuration in which the encryption block and the non-encryption (plaintext) block are alternately disposed, decryption processing and the like of the content block can be promptly executed, and encryption content data suitable for processing corresponding to contents of the 89 J content data, for example, reproduction and the like of music data can be provided.
SFurthermore, the data processing apparatus, the data processing method and the content data generating method can J" efficiently execute reproduction processing in the case in which contents are compressed voice data, image data or the like. That is, by making a configuration of content data to be one in which S compressed data and an expansion processing program are combined, expansion processing, to which an expansion processing program incidental to compressed content data is applied, is made possible in the reproduction processing apparatus, and a situation in which the expansion processing program does not exist in the reproduction processing apparatus and reproduction cannot be performed can be avoided.
Moreover, according to the data processing apparatus, the data processing method and the content data generating means, since a configuration of content data has a configuration in which the reproduction processing apparatus determines the expansion processing program applicable to the compressed content data based Son the header information, and the reproduction processing apparatus further retrieves a program applicable from accessible recording media or the like and executes expansion processing by making content data to be a combination of compressed data and the header section storing the type of the compression processing Sprogram, or, if the contents has the expansion processing program, 90 a combination of the expansion processing program and the header storing the type of the program, program retrieving processing does not need to be executed by a user, and efficient reproduction processing becomes possible.
Brief Description of the Drawings Fig. 1 is a view showing the configuration of a conventional data processing system.
Fig. 2 is a view showing the configuration of a data processing apparatus to which the present invention is applied.
0Fig. 3 is a view showing the configuration of a data processing apparatus to which the present invention is applied.
Fig. 4 is a view showing a data format of content data on a medium or a communication path.
Fig. 5 is a view showing a usage policy contained in a header of content data.
Fig. 6 is a view showing block information contained in a header of content data.
Fig. 7 is a view showing an electronic signature generating method using the DES.
Fig. 8 is a view showing an electronic signature generating method using the Triple DES.
Fig. 9 is a view useful in explaining the aspect of the Triple DES.
91 )Fig. 10 is a view showing an electronic signature generating method partly using the Triple DES.
Fig. 11 is a view showing a process flow of electronic signature generation.
Fig. 12 is a view showing a process flow of electronic signature generation.
Fig. 13 is a view useful in explaining a mutual authentication process sequence using a symmetrical cryptography technique.
Fig. 14 is a view useful in explaining a public key certificate.
Fig. 15 is a view useful in explaining a mutual authentication process sequence using an asymmetrical cryptography technique.
Fig. 16 is a view showing a process flow of an encryption process using elliptic curve cryptography.
Fig. 17 is a view showing a process flow of a decryption process using elliptic curve cryptography.
Fig. 18 is a view showing how data are held on a recording Sand reproducing device.
Fig. 19 is a view showing how data are held on a recording device.
Fig. 20 is a view showing a process flow of mutual authentication between the recording and reproducing device and the recording device.
92 W Fig. 21 is a view showing the relationship between a master key of the recording and reproducing device and a corresponding master key of the recording device.
Fig. 22 is a view showing a process flow of a content <O download process.
SFig. 23 is a view useful in explaining a method for generating an integrity check value A: ICVa.
Fig. 24 is a view useful in explaining a method for generating an integrity check value B: ICVb.
Fig. 25 is a view useful in explaining a method for generating a total integrity check value and an integrity check value unique to the recording and reproducing device.
Fig. 26 is a view showing a format of content data stored in the recording device (localization field 0).
Fig. 27 is a view showing a format of content data stored in the recording device (localization field i).
Fig. 28 is a view showing a process flow of a content reproduction process.
Fig. 29 is a view useful in explaining a method by which the
S
recording device executes commands.
Fig. 30 is a view useful in explaining a method by which the recording device executes commands in a content storage process.
Fig. 31 is a view useful in explaining a method by which the recording device executes commands in a content reproduction process.
93
CA)
Fig. 32 is a view useful in explaining the configuration of content data format type 0.
Fig. 33 is a view useful in explaining the configuration of content data format type i.
f Fig. 34 is a view useful in explaining the configuration of content data format type 2.
Fig. 35 is a view useful in explaining the configuration of content data format type 3.
Fig. 36 is a view useful in explaining a method for /0 generating a content integrity check value IDVi for the format type 0.
Fig. 37 is a view useful in explaining a method for generating a content integrity check value IDVi for the format type i.
Fig. 38 is a view useful in explaining a total integrity check value and an integrity check value unique to the recording and reproducing device for the format types 2 and 3.
Fig. 39 is a view showing a process for downloading a conter of the format type 0 or i.
Fig. 40 is a view showing a process for downloading a conter of the format type 2.
Fig. 41 is a view showing a process for downloading a conter of the format type 3.
Fig. 42 is a view showing a process for reproducing a conter of the format type 0.
a a a a It It It it z"
VY
94 1" Fig. 43 is a view showing a process for reproducing a content of the format type 1.
Fig. 44 is a view showing a process for reproducing a content of the format type 2.
5/ Fig. 45 is a view showing a process for reproducing a content c- of the format type 3.
O Fig. 46 is a view useful in explaining a method by which a content generator and a content verifier generate integrity check values and execute verification using them.
Fig. 47 is a view useful in explaining a method by which the content generator and the content verifier generate integrity check values and execute verification using them.
Fig. 48 is a view useful in explaining a method by which the content generator and the content verifier generate integrity check values and execute verification using them.
Fig. 49 is a view useful in explaining a method for individually generating various keys using master keys.
Fig. 50 is a view (example 1) showing an example of a process executed by a content provider and a user in conjunction with the t method for individually generating various keys using master keys.
Fig. 51 is a view (example 2) showing an example of a process executed by the content provider and the user in conjunction with the method for individually generating various keys using master keys.
95 Fig. 52 is a view useful in explaining a configuration for executing localization using different master keys.
Fig. 53 is a view (example 3) showing an example of a process executed by the content provider and the user in conjunction with the method for individually generating various keys using master keys.
Fig. 54 is a view (example 4) showing an example of a process executed by the content provider and the user in conjunction with the method for individually generating various keys using master /9 keys.
Fig. 55 is a view (example 5) showing an example of a process executed by the content provider and the user in conjunction with the method for individually generating various keys using master keys.
Fig. 56 is a view showing a flow of a process for storing a cryptography key with the Triple DES applied thereto, using the Single DES algorithm.
Fig. 57 is a view showing a content reproduction process flow (example 1) based on priority.
Fig. 58 is a view showing a content reproduction process flow (example 2) based on priority.
Fig. 59 is a view showing a content reproduction process flow (example 3) based on priority.
96 Fig. 60 is a view useful in explaining a configuration for executing a process for decrypting (decompressing) compressed data during the content reproduction process.
Fig.
a content Fig.
example 1 Fig.
a content Fig.
example 2 Fig.
a content Fig.
/i example 3 Fig.
a content Fig.
example 4 Fig.
61 is a view showing an example of the configuration of (example 1) 62 is a view showing a reproduction process flow in the of the configuration of the content.
63 is a view showing an example of the configuration of (example 2) 64 is a view showing a reproduction process flow in the of the configuration of the content.
65 is a view showing an example of the configuration of (example 3) 66 is a view showing a reproduction process flow in the of the configuration of the content.
67 is a view showing an example of the configuration of (example 4) 68 is a view showing a reproduction process flow in the of the configuration of the content.
69 is a view useful in explaining a process for generating and storing save data.
Fig. 70 is a view showing a process flow for an example (example 1) of the process for storing save data.
97 )Fig. 71 is a view showing the configuration of a data managing file (example 1) used during a process for storing and reproducing save data.
Fig. 72 is a view showing a process flow for an example S(example 1) of the process for reproducing save data.
Fig. 73 is a view showing a process flow for an example (example 2) of the process for storing save data.
Fig. 74 is a view showing a process flow for an example (example 2) of the process for reproducing save data.
Fig. 75 is a view showing a process flow for an example (example 3) of the process for storing save data.
Fig. 76 is a view showing the configuration of a data managing file (example 2) used during the process for storing and reproducing save data.
Fig. 77 is a view showing a process flow for an example (example 3) of the process for reproducing save data.
Fig. 78 is a view showing a process flow for an example (example 4) of the process for storing save data.
Fig. 79 is a view showing a process flow for an example S(example 4) of the process for reproducing save data.
Fig. 80 is a view showing a process flow for an example (example 5) of the process for storing save data.
Fig. 81 is a view showing the configuration of a data managing file (example 3) used during the process for storing and reproducing save data.
98 SFig. 82 is a view showing a process flow for an example (example 5) of the process for reproducing save data.
Fig. 83 is a view showing a process flow for an example (example 6) of the process for storing save data.
K Fig. 84 is a view showing the configuration of a data managing file (example 4) used during the process for storing and reproducing save data.
Fig. 85 is a view showing a process flow for an example (example 6) of the process for reproducing save data.
Fig. 86 is a view useful in explaining a configuration for excluding invalid content users (revocation) Fig. 87 is a view showing a flow of a process (example 1) for excluding invalid content users (revocation) Fig. 88 is a view showing a flow of a process (example 2) for 'e excluding invalid content users (revocation) Fig. 89 is a view useful in explaining the configuration of the security chip (example 1) Fig. 90 is a view showing a process flow for a method for manufacturing a security chip.
SFig. 91 is a view useful in explaining the configuration of the security chip (example 2).
Fig. 92 is a view showing a flow of a process for writing data in the security chip (example 2).
Fig. 93 is a view showing a flow of a process for checking 2 j written data in the security chip (example 2).
99 Description of the Embodiments The embodiments of the present invention will be described below. The description will proceed in the order of the following items: Configuration of Data Processing apparatus Content Data Format Outline of Cryptography Processes Applicable to Present Data Processing Apparatus Configuration of Data Stored in Recording and Reproducing 1/ Apparatus Configuration of Data Stored in Recording Device Mutual Authentication Process between Recording and Reproducing Device and Recording Device Outline of Mutual Authentication Process Switching to Key Block during Mutual Authentication Process for Downloading from Recording and Reproducing Device to Recording Device Process Executed by Recording and Reproducing Device to Reproduce Information from Recording Device Key Exchanging Process after Mutual Authentication Plural Content Data Formats and Download and Reproduction Processes Corresponding to Each Format (11) Aspect of Process Executed by Content Provider to Generate Check Values (ICV) 100o (12) Cryptography Process Key Generating Configuration Based on Master Key O (13) Controlling Cryptography Intensity in Cryptography Process (14) Program Activating Process Based on Activation Priority in d f Handling Policy in Content Data Content Configuration and Reproduction (Decompression) Process (1 (16) Process for Generating and storing Saved Data in Recording Device and Reproducing the Same therefrom S(17) Configuration for Excluding (Revoking) Illegal Apparatuses (18) Secure Chip Configuration and Manufacturing Method therefor Configuration of Data Processing Apparatus Fig. 2 shows a block diagram showing the general configuration of one embodiment of a data processing apparatus according to the present invention. Main components of the data processing apparatus are a recording and reproducing device 300 and a recording device 400.
The recording and reproducing device 300 comprises, for example, a personal computer a game apparatus, or the like.
SThe recording and reproducing device 300 has a control section 301 for carrying out unifying control including the control of communication between the recording and reproducing device 300 and the recording device 400 during a cryptography process in the recording and reproducing device 300, a recording and reproducing 101 0 device cryptography process section 302 responsible for the whole cryptography process, a recording device cQntroller 303 for 0 executing an authentication process with the recording device 400 connected to the recording and reproducing device to read and S write data, a read section 304 for at least reading data from a medium 500 such as a DVD, and a communication section 305 for transmitting and receiving data to and from the exterior, as (Ni shown in Fig. 2.
The recording and reproducing device 300 downloads and Sreproduces content data to and from the recording device 400 controlled by the control section 301. The recording device 400 is a storage medium that can preferably be installed in and removed from the recording and reproducing device 300, for example, a memory card, and has an external memory 402 comprising a non- /volatile memory such as an EEPROM or a flash memory, a hard disk, or a RAM with batteries.
The recording and reproducing device 300 has a read section 304 as an interface to which content data stored in the storage medium shown at the left end of Fig. 2, that is, a DVD, a CD, an SFD, or an HDD can be input, and a communication section 305 as an interface to which content data distributed from a network such as the Internet can be input, in order to receive an input of a content from the exterior.
The recording and reproducing device 300 has a cryptography Sprocess section 302 to execute an authentication process, an 102 encryption and a decryption processes, a data verification process, and other processes in downloading content data externally input via the read section 304 or the communication section 305, to the recording device 400 or reproducing and executing content data from the recording device 400. The cryptography process section 302 comprises a control section 306 for controlling the entire cryptography process section 302, an internal memory 307 holding information such as keys for the cryptography process and which has been processed so as to prevent data from being externally read out therefrom easily, and an encryption/decryption section 308 for executing the encryption and decryption processes, generating and verifying authentication data, generating random numbers, etc.
The control section 301 transmits an initialization command to the recording device 400 via the recording device controller 303 when, for example, the recording device 400 is installed in the recording and reproducing device 300, or execute a mediation process for various processes such as a mutual authentication between the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 and the encryption/decryption section 406 of the recording device cryptography process section 401, a integrity check value collating process, and encryption and decryption processes. Each of these processes will be described in detail in the latter part.
103 0The cryptography process section 302 executes the authentication process, the encryption and decryption processes, the data verifying process, and other processes, as previously described, and has the cryptography process control section 306, the internal memory 307, and the encryption/decryption section 308.
The cryptography process control section 306 executes control of the whole cryptography process such as the authentication process and the encryption/decryption processes executed by the recording and reproducing device 300, for example, processes of setting an authentication completion flag when the authentication process executed between the recording and reproducing device 300 and the recording device 400 has completed, commanding the execution of various processes executed in the encryption/decryption section 308 of the recording and reproducing /4 section cryptography process section 302, for example, a download process and a process for generating integrity check values for reproduced content data, and commanding the execution of a process for generating various key data.
The internal memory 307 stores key data, identification data, f' and other data required for various processes such as the mutual authentication process, the integrity check value collating process, and the encryption and decryption processes which are executed in the recording and reproducing device 300, as described later in detail.
104 The encryption/decryption section 308 uses key data and the like stored in the internal memory 307 to execute the authentication process, the encryption and decryption processes, the generation and verification of predetermined integrity check S values or electronic signatures, the verification of data, the generation of random numbers, etc. in downloading externally input content data to the recording device 400 or reproducing and executing content data stored in the recording device 400.
In this case, the internal memory 307 of the recording and reproducing device cryptography process section 302 holds important information such as cryptography keys and must thus be configured so as not to have its data externally read out easily.
Thus, the cryptography process section is configured as a tamper resistant memory characterized to restrain external invalid reads in that it comprises a semiconductor chip that essentially rejects external accesses and has a multilayer structure, an internal memory sandwiched between dummy layers of aluminum or the like or arranged in the lowest layer, and a narrow range of operating voltages and/or frequencies. This configuration will be described Jj later in detail.
In addition to these cryptography process functions, the recording and reproducing device 300 comprises a main Central Processing Unit (CPU) 106, a RAM (Random Access Memory) 107, a ROM (Read Only Memory) 108, an AV process section 109, an input 105interface 110, a PIO (Parallel I/O) interface 111, and a SIO (Serial I/O) interface 112.
The main Central Processing Unit (CPU) 106, the RAM (Random Access Memory) 107, and the ROM (Read Only Memory) 108 are a J component functioning as a control system for the main body of the recording and reproducing device 300, and principally functions as a reproduction process section for reproducing data decrypted by the recording and reproducing device cryptography process section 302. For example, the main Central Processing Unit (CPU) 106 executes control for the reproduction and execution of contents, such as output of content data read out from the recording device and then decrypted, to the AV process section 109 under the control of the control section 301.
The RAM 107 is used as a main storage memory for various i processes executed by the CPU 106 and as a working area for these processes. The ROM 108 stores a basic program for starting up an OS or the like activated by the CPU 106, and other data.
The AV process section 109 has a data compression and decompression process mechanism, specifically, an MPEG2 decoder, San ATRAC decoder, an MP3 decoder, or the like, to execute processes for data outputs to a data output apparatus such as a display or speakers (not shown) attached or connected to the recording and reproducing device main body.
The input interface 110 outputs input data from various f connected input means such as a controller, a keyboard, and a 106 mouse, to the main CPU 106. The main CPU 106 executes a process in accordance with a command issued by a user via the controller, based on a game program being executed or the like.
The PIO (Parallel I/O) interface 111 and the SIO (Serial I/O) interface 112 are used as storage devices for a memory card or a game cartridge and as a connection interface to a portable electronic device or the like.
The main CPU 106 also executes control in storing as saved data, setting data or the like for a game being executed or the /6 like. During this process, stored data are transferred to the control section 301, which causes the cryptography process section 302 to execute a cryptography process for the saved data as required and then stores the encrypted data in the recording device 400. These cryptography processes will be described later in detail.
The recording device 400 is a storage medium that can preferably be installed in and removed from the recording and reproducing device 300, and comprises, for example, a memory card.
The recording device 400 has the cryptography process section 401 and the external memory 402.
The recording device cryptography process section 401 executes the mutual authentication process, encryption and decryption processes, data verification process, and other processes between the recording and reproducing device 300 and the q< recording device 400 in downloading content data from the 107 recording and reproducing device 300 or reproducing content data from the recording device 400 to the recording and reproducing device 300, and has a control section, an internal memory, an encryption/decryption section, and others similarly to the cryptography process section of the recording and reproducing device 300. The details will be shown in Fig. 3. The external memory 402 comprises a non-volatile memory comprising a flash memory such as an EEPROM, a hard disk, or a RAM with batteries, or the like, to store encrypted content data or the like.
Fig. 3 is a view schematically showing the configuration of data input from a medium 500 and a communication means 600 that are data providing means from which the data processing apparatus according to the present invention receives data, and focusing on the configurations of the recording and reproducing device 300 f receiving an input of a content from the content providing means 500 or 600 and of arrangements for the cryptography process in the recording device 400.
The medium 500 is, for example, an optical disk medium, a magnetic disk medium, a magnetic tape medium, a semiconductor medium, or the like. The communication means 600 is capable of data communication such as Internet, cable, or satellite communication.
In Fig. 3, the recording and reproducing device 300 verifies data input by the medium 500 or the communication means 600, that 108 is, a content meeting a predetermined format as shown in Fig. 3, and stored the verified content in the recording device 400.
As shown in the sections of the medium 500 and communication means 600 in Fig. 3, the content data has the following components: Content ID: content ID as an identifier for content data.
Usage policy: a usage policy containing constituent information of content data, for example, the sizes of a header section and a content section constituting the content data, a format version, a content type indicating whether the content is a program or data, a localization field indicating whether the content can be used only in an apparatus that has downloaded the content or also in other apparatuses.
Block information table: block information table comprising Sthe number of content blocks, a block size, an encryption flag indicating the presence of encryption, and others.
Key data: key data comprising an encryption key for encrypting the above described block information table, a content key for encrypting a content block, or the like.
Content bloc: content block comprising program data, music or image data, or other data to be actually reproduced.
The content data will be explained later in further detail with reference to Fig. 4 and subsequent figures.
The content data are encrypted by the content key (hereafter Sreferred to as the "Knon") and then provided to the recording and 109 reproducing device 300 from the medium 500 or the communication means 600. The content can be stored in the external memory of the recording device 400 via the recording and reproducing device 300.
Cc
C
C
(N
i 7/ For example, the recording device 400 uses a key (hereafter S referred to as a "storage key" (Kstr)) unique thereto stored in the internal memory 405 thereof to encrypt the content contained in the content data, the block information table contained in the content data as header information, information on various keys le such as the content key Kcon before storing these data in the external memory 402. To download the content data from the recording and reproducing device 300 to the recording device 400 or allow the recording and reproducing device 300 to reproduce the content data stored in the recording device 400, predetermined procedures such as a mutual authentication process between the apparatuses and content data encrypting and decrypting processes are required. These processes will be explained later in detail.
The recording device 400 has the cryptography process section 401 and the external memory 402, and the cryptography process O section 401 has a control section 403, a communication section 404, the internal memory 405, an encryption/decryption section 406, and an external memory control section 407.
The recording device 400 is responsible for the whole cryptography process, controls the external memory 402, and ,4i comprises the recording device cryptography process section 401 110 for interpreting a command from the recording and reproducing device 300 and executing a process, and the external memory 402 holding contents or the like.
The recording device cryptography process section 401 has the control section 403 for controlling the entire recording device cryptography process section 401, the communication section 404 for transmitting and receiving data to and from the recording and reproducing device 300, the internal memory 405 holding information such as keys for the cryptography process and which Shas been processed so as to prevent data from being externally read out therefrom easily, the encryption/decryption section 406 for executing the encryption and decryption processes, generating and verifying authentication data, generating random numbers, etc, and the external memory control section 407 for reading and writing data from and to the external memory 402.
The control section 403 executes control of the whole cryptography process such as the authentication process and the encryption/decryption processes executed by the recording device 400, for example, processes of setting an authentication o completion flag when the authentication process executed between the recording and reproducing device 300 and the recording device 400 has completed, commanding the execution of various processes executed in the encryption/decryption section 406 of the cryptography process section 401, for example, a download process m and a process for generating integrity check values for reproduced 111 content data, and commanding the execution of a process for <generating various key data.
The internal memory 405 comprises a memory having a plurality of blocks to store a plurality of sets of key data, identification D data, or other data which are required for various processes such as the mutual authentication process, integrity check value S collating process, and encryption and decryption process which are executed by the recording device 400, as described later in detail.
The internal memory 405 of the recording device cryptography Sprocess section 401, like the internal memory 307 of the recording and reproducing device cryptography process section 302 previously described, holds important information such as cryptography keys and must thus be configured so as not to have its data externally read out easily. Thus, the cryptography process section 401 of the recording and reproducing device 400 is characterized to restrain external invalid reads in that it comprises a semiconductor chip that essentially rejects external accesses and has a multilayer structure, an internal memory sandwiched between dummy layers of aluminum or the like or arranged in the lowest layer, and a narrow range of operating voltages and/or frequencies.
In this regard, the recording and reproducing device cryptography process section 302 may be software configured so as to prevent secret information for keys from leaking easily to the exterior.
The encryption/decryption section 406 uses key data or the Slike stored in the internal memory 405 to execute the data 112 S verifying process, the encryption and decryption processes, the generation and verification of predetermined integrity check values or electronic signatures, the generation of random numbers, etc. in downloading content data from the recording and reproducing device 300, reproducing content data stored in the external memory 402 of the recording device 400, or executing mutual authentication between the recording and reproducing device S 300 and the recording device 400.
The communication section 404 is connected to the recording device controlled 303 of the recording and reproducing device 300 to download or reproduce content data or communicate transfer data between the recording and reproducing device 300 and the recording device 400 during the mutual authentication process according to the control of the control section 301 of the recording and /o reproducing device 300, or the control of the control section 403 of the recording device 400.
Content Data Format Next, by using Fig. 4 to Fig. 6, the data format of data stored in the medium 500 of the system according to the present Sinvention or communicated on the data communication means 600 will be explained.
The configuration shown in Fig. 4 shows the format of the entire content data, the configuration shown in Fig. 5 shows details of the "usage policy" partly constituting the header 113 section of the content data, and the configuration shown in Fig. 6 shows details of the "block information table" partly constituting the header section of the content.
A representative example of the data format applied to the f system according to the present invention will be explained, but different types of data formats such as formats corresponding to game programs and formats suitable for real-time processing of S music data or the like can be used for the present system. The aspects of these formats will be described later in further detail, Sin Plural Content Data Formats and Download and Reproduction Processes Corresponding to Each Format".
In the data format shown in Fig. 4, items shown in gray indicate encrypted data, items enclosed by double frames indicate tamper check data, and the other items shown in white indicate plain text data that are not encrypted. Encryption keys of the encryption section are shown on the left of the frames. In the example shown in Fig. 4, some of the blocks (content block data) of the content section contain encrypted data, while the others contain non-encrypted data. This form varies depending on the Scontent data, and all the content block data contained in the data may be encrypted.
As shown in Fig. 4, the data format is divided into the header section and the content section, and the header section comprises a content ID, a usage policy, an integrity check value A 04- (hereafter referred to as "ICVa"), a block information table key 114 (hereafter referred to as "Kbit"), a content key Kcon, a block information table (hereafter referred to as an integrity check value B (ICVb), and a total integrity check value (ICVt), and the content section comprises a plurality of content blocks $f (for example, encrypted and non-encrypted contents).
In this case, the individual information indicates a content ID for identifying a content. The usage policy comprises a header length indicating the size of the header section, a content length indicating the size of the content section, a format version indicating version information for the format, a format type indicating the type of the format, a content type indicating the type of the content, that is, whether it is a program or data, an operation priority indicating a priority for activation if the content type is a program, a localization field indicating whether Sthe content downloaded in accordance with this format can be used only in an apparatus that has downloaded the content or also in other similar apparatuses, a copy permission indicating whether the content downloaded in accordance with this format can be copied from the apparatus that has downloaded the content to Sanother similar apparatus, a move permission indicating whether the content downloaded in accordance with this format can be moved from the apparatus that has downloaded the content to another similar apparatus, an encryption algorithm indicating an algorithm used to encrypt content blocks in the content section, an encryption mode indicating a method for operating the algorithm 115 used to encrypt the content in the content section, and an integrity check method indicating a method for generating integrity check values, as shown in detail in Fig. The above described data items recorded in the usage policy are only exemplary and various usage policy information can be recorded depending on the aspect of corresponding content data.
The identifier as described later in detail in, for example, "(17) Configuration for Excluding (Revoking) Illegal Apparatuses". It is also possible to make a configuration so as to exclude the use of content caused by the illegal apparatus by recording the content of an illegal recording and reproducing apparatus as data and by checking the time of starting the use.
The integrity check value A ICVa is used to verify that the content ID or the usage policy has not been tampered. It i functions as a check value for partial data instead of the entire content data, that is, as a partial integrity check value. The data block information table key Kbit is used to encrypt a block information table, and the content key Kcon is used to encrypt content blocks. The block information table key Kbit and the content key Kcon are encrypted with a distribution key (hereafter referred to as "Kdis") on the medium 500 and the communication means 600.
Fig. 6 shows the block information table in detail. The block information table in Fig. 6 comprises data all encrypted with the block information table key Kbit as seen in Fig. 4. The block 116 information table comprises a block number indicating the number of content blocks and information on N content blocks, as shown in Fig. 6. The content block information table comprises a block length, an encryption flag indicating whether or not the block ash Sbeen encrypted, an ICV flag indicating whether or not integrity check values must be calculated, and a content integrity check value (ICVi) The content integrity check value is used to verify that each content block has not been tampered. A specific example of a Smethod for generating a content integrity check value will be explained later in Plural Content Data Formats and Download and Reproduction Processes Corresponding to Each Format". The block information table key Kbit used to encrypt the block information table is further encrypted with the distribution key Kdis.
The data format in Fig. 4 will be continuously described. The integrity check value B ICVb is used to verify that the block information table key Kbit, the content key Kcon, and the block information table have not been tampered. It functions as a check value for partial data instead of the entire content data, that is, as a partial integrity check value. The total integrity check value ICVt is used to verify the integrity check values ICVa and ICVb, integrity check values ICVi for each content block (if this has been set), partial integrity check values thereof, or all the data to be checked have not been tampered.
117 U In Fig. 6, the block length, the encryption flag, and the ICV flag can be arbitrarily set, but certain rules may be established.
For example, encrypted- and plain-text areas may be repeated over a fixed length, all the content data may be encrypted, or the Sblock information table BIT may be compressed. Additionally, to allow different content keys Kcon to be used for different content blocks, the content key Kcon may be contained in the content block instead of the header section. Examples of the content data format will be described in further detail in Plural Content SData Formats and Download and Reproduction Processes Corresponding to Each Format".
Outline of Cryptography Processes Applicable to Present Data Processing Apparatus Next, the aspects of various cryptography processes /4 applicable to the data processing apparatus according to the present invention will be explained. The description of the cryptography processes shown in Outline of Cryptography Processes Applicable to Present Data Processing Apparatus" correspond to an outline of the aspect of a cryptography process Son which are based various processes executed by the present data processing apparatus which will be specifically described later, for example, authentication process between recording and reproducing device and recording device", download process for device for loading contents", and process for reproducing 118 content stored in recording device". Specific processes executed by the recording and reproducing device 300 and the recording device 400 will be each described in detail in the item and subsequent items.
An outline of the cryptography process applicable to the data processing apparatus will be described in the following order: Message Authentication Based on Common Key Cryptosystem Electronic Signature Based on Public Key Cryptosystem Verification of Electronic Signature Based on Public Key Cryptosystem Mutual Authentication Based on Common Key Cryptosystem Public Key Certificate Mutual Authentication Based on Public Key Cryptosystem Encryption Process Using Ecliptic Curve Cryptography 1 Decryption Process Using Ecliptic Curve Cryptography Random Number Generating Process Message Authentication Based on Common Key Cryptosystem First, a process for generating tamper detecting data using a common key cryptography method will be explained. The tamper c' detecting data are added to data to be detected for tamper in order to check for tamper and authenticate a creator.
For example, the integrity check values A and B and total integrity check value in the data structure described in Fig. 4 which are enclosed by double frames, the content check value 119 OJJ stored in each block in the block information table shown in Fig.
6, and the like are generated as the tamper detecting data.
D Here, the use of the DES, which is a common key cryptosystem, S will be explained as an example of a method for generating and 1- S processing electronic signature data. In addition to the DES, the D present invention may use, for example, the FEAL (Fast D Encipherment Algorithm or the AES (Advance Encryption Standard) next-term standard cryptography) as a similar process based on a common key cryptosystem.
A method for generating an electronic signature using a general DES will be explained with reference to Fig. 7. First, before generating an electronic signature, a message to which the electronic signature is to be added is divided into sets of 8 bytes (the pieces of the divided message are hereafter referred to as "Ml, M2, An initial value (hereafter referred to as and the M1 are exclusive-ORed (the result is referred to as Next, the Il is input to a DES encrypting section, which encrypts it using a key (hereafter referred to as (the output is referred to as Subsequently, the El and the M2 o are exclusive-ORed, and the output 12 is input to the DES encrypting section, which encrypts it using the key K1 (the output is referred to as This process is repeated to encrypt all the messages obtained by means of the division. The final output EN is an electronic signature. This value is generally called a ZY "MAC (Message Authentication Code)" used to check a message for 120- S tamper. In addition, such a system for chaining encrypted texts is called a "CBC (Cipher Block Chaining) mode" The MAC value output in the example of generation shown in Fig. 7 can be used as the integrity check value A or B or total \O 5 integrity check value in the data structure shown in Fig. 4 which Sis enclosed by double frames and the content check value ICV1 to ICVN stored in each block in the block information table shown in C Fig. 6. In verifying the MAC value, a verifier generates it using a method similar to that used to originally generate it, and the verification is determined to be successful if the same value is obtained.
Moreover, in the example shown in Fig. 7, the initial value IV is exclusive-ORed with the first 8-byte message Ml, but the initial value IV may be zero and not exclusive-ORed.
Fig. 8 shows the configuration of a method for generating the MAC value which has improved security compared to the MAC value generating method shown in Fig. 7. Fig. 8 shows an example where instead of the Single DES in Fig. 7, the Triple DES is used to generate the MAC value.
2L Figs. 9A and 9B show an example of a detailed configuration of each of the Triple DES component shown in Fig. 8. There are two different aspects of the configuration of the Triple DES as shown in Fig. 9. Fig. 9(a) shows an example using two cryptography keys where processing is carried out in the order of L- an encryption process with a key 1, a decryption process with a 121 AQ key 2, and an encryption process with the key 1. The two types of keys are used in the order of KI, K2, and KI. Fig. 9(b) shows an example using three cryptography keys where processing is carried out in the order of an encryption process with the key i, an encryption process with the key 2, and an encryption process with a key 3. The three types of keys are used in the order of KI, K2, Ki and K3. The plurality of processes are thus continuously executed to improve security intensity compared to the Single DES. The Tripled DES configuration, however, has the disadvantage of requiring an amount of processing time three times as large as that for the Single DES.
Fig. 10 shows an example of a MAC value generating configuration obtained by improving the Triple DES configuration described in Figs. 8 and 9. In Fig. 10, the encryption process for each of the messages from beginning to end of a message string to which a signature is to be added is based on the Single DES, while only the encryption process for the last message is based on the Triple DES configuration shown in Fig. 9(a) The configuration shown in Fig. 10 reduces the time required cz to generate the MAC value for the message down to a value almost equal to the time required for the MAC value generating process based on the Single DES, with security improved compared to the MAC value based on the Single DES. Moreover, the Triple DES configuration for the last message may be as shown in Fig. 9(b).
2- Electronic Signature Based on Public Key Cryptosystem 122 J The method for generating electronic signature data if the common key encryption system is used as the encryption system has been described, but a method for generating electronic signature data if a common key cryptosystem is used as the encryption system will be described with reference to Fig. 11. The process shown in Fig. 11 corresponds to a process flow of generation of electronic signature data using the Elliptic Curve Digital Signature Algorithm (EC-DSA), IEEE P1363/D3. An example using the Elliptic Curve Cryptography (hereafter referred as "ECC") as public key Scryptography will be explained. In addition to the elliptic curve cryptography, the data processing apparatus according to the present invention may use, for example, the RSA (Rivest, Shamir, Adleman; ANSI X9.31) cryptography, which is a similar public cryptosystem.
Each step in Fig. 11 will be described. At step Sl, the following definitions are set: reference symbol p denotes a characteristic, a and b denote coefficients of an elliptic curve (elliptic curve: y 2 x 3 ax G denotes a base point on the elliptic curve, r denotes the digit of the G, and Ks denotes a ?o secret key (0 Ks At step S2, a hash value for the message M is calculated to obtain f Hash(M) Then, a method for determining a hash value using a hash function will be explained. The hash function receives a message as an input, compresses it into data of a predetermined bit length, 2 and outputs the compressed data as a hash value. The hash value 123 is characterized in that it is difficult to predict an input from a hash value (output), in that when one bit of data input to the hash function changes, many bits of the hash value change, and in that it is difficult to find different input data with the same hash value. The hash function may be MD4, MD5, or SHA-1, or DES- CBC similar to that described in Fig. 7 or other figures. In this case, the MAC (corresponding to the integrity check value ICV), which is the final output value, is the hash value.
Subsequently, at step S3, a random number u (0 u r) is o generated, and at step S4, the base point is multiplied by u to obtain coordinates V (Xv, Yv) An addition and a multiplication by two on the elliptic curve are defined as follows: If P=(Xa, Ya),Q=(Xb, Yb),R=(Xc, YC)=P+Q.
When P Q (addition), Xc=% 2 -Xa-Xb Yc=Xx(Xa-Xc)-Ya X= (Yb-Ya)/ (Xb-Xa) When P=Q (multiplication by two), Xc=X 2 -2Xa zo Yc=kx (Xa-Xc)-Ya X=(3(Xa) 2 (1) These are used to multiply the point G by u (although the calculation speed is low, the most easy-to-understand calculation 124 method is shown below. G, 2xG, 4xG, is calculated, the u is binary-expanded, and corresponding 2' x G (value obtained by multiplying G by 2 i times) is added to bits of 1 (i denotes a bit position as counted from an LSB) At step S5, c=Xvmod r is calculated, and at step S6, is determined whether the result is zero. If the result is not zero, then at step S7, d=[(f+cKs)/u]mod r is calculated, and at step S8, it is determined whether d is zero. If the d is not zero, then at step 39, the c and d are output as electronic signature data.
When r is assumed to denote the length of 160 bits, the electronic signature data have a length of 320 bits.
If the c is 0 at step S6, the process returns to step S3 to regenerate a new random number. Similarly, if the d is 0 at step 38, the process also returns to step S3 to regenerate a new random number.
Verification of Electronic Signature Based on Public Kay Cryptosystem Next, a method for verifying an electronic signature using the public key cryptosystem will be described with reference to Zo Fig. 12. At step S11, the following definitions are set: reference symbol M denotes a message, reference symbol p denotes a characteristic, reference symbols a and b denote elliptic curve coefficients (elliptic curve: y 2 x 3 ax reference symbol G denotes a base point on the elliptic curve, reference symbol r denotes the digit of G, and reference symbols G and Ks x G denote 125o public keys (0 Ks At step S12, it is verified that the electronic signature data c and d meet 0 c r and 0 d r.
O If the data meet these conditions, then at step S13, a hash value for the message M is calculated to obtain f Hash Next, at O step S14, h 1/d mod r is calculated, and at step S15, hi fh mod r and h2 ch mod r are calculated.
At step S16, the already calculated hi and h2 are used to CI calculate P (Xp, Yp) hi x G h2 -Ks x G. An electronicsignature verifier knows the public keys G and Ks x G and can thus io calculate a scalar multiplication of a point on the elliptic curve similarly as step S4 in Fig. 11. Then, at step S17, it is determined whether the P is a point at infinity, and if not, the process proceeds to step S18 (the determination of whether the P is a point at infinity can actually be made at step S16. That is, when P Y) and Q are added together, the X cannot be calculated, indicating that P Q is a point at infinity). At step S18, Xp mod r is calculated and compared with the electronic signature data c. Finally, if these values are equal, the process proceeds to step S19 to determine that the electronic signature is 2o correct.
If it is determined that the electronic signature is correct, the data have not been tampered and that a person holding the secret key corresponding to the public keys has generated the electronic signature.
126 1- SIf the signature data c or d do not meet 0 c r or 0 d r at step S12, the process proceeds to step S20. Additionally, if the P is a point at infinity at step S17, the process also proceeds to step S20. Further, if the value of Xp mod r does not equal the signature data c at step S18, the process proceeds to C step O If it is determined at step S20 that the signature to be incorrect, this indicates that the received data have been tampered or have not been generated by the person holding the secret key corresponding to the public keys.
Mutual Authentication Based on Common Key Cryptosystem Next, a mutual authentication method using a common key cryptosystem will be explained with reference to Fig. 13. In this figure, the common key cryptosystem is the DES, but any common key S cryptosystem similar to that previously described may be used. In Fig. 13, B first generates a 64-bit random number Rb and transmits the Rb and its own ID ID(b) to A. On receiving the data, the A generates a new 64-bit random number Ra, encrypts the data in the DES CBC mode in the order of the Ra, Rb, and ID(b) using a key Kab, 2o and returns them to the B. According to the DES CBC mode process configuration shown in Fig. 7, the Ra, Rb, and ID(b) correspond to M1, M2, and M3, and outputs El, E2, and E3 are encrypted texts when an initial value: IV 0.
On receiving the data, the B decrypts the received data with -9 the key Kab. To decrypt the received data, the encrypted test El 127 is first decrypted with the key Kab to obtain the random number Ra.
Then, the encrypted test E2 is decrypted with the key Kab, and the result and the El are exclusive-ORed to obtain the Rb. Finally, the encrypted test E3 is decrypted with the key Kab, and the result and the E2 are exclusive-ORed to obtain the ID(b). Of the Ra, Rb, and ID(b) thus obtained, the Rb and ID(b) are checked for equality to those transmitted by the B. If they are successfully verified, the B authenticates the A.
Then, the B generates a session key (hereafter referred to as t o "Kses") used after the authentication (this is generated using a random number). The Rb, Ra, and Kses are encrypted in the DES CBC mode in this order using the key Kab and then returned to the A.
On receiving the data, the A decrypts the received data with the key Kab. The method for decrypting the received data is Ssimilar to that executed by the B, so detailed description thereof is omitted. Of the Rb, Ra, and Kses thus obtained, the Rb and Ra are checked for equality to those transmitted by the A. If they are successfully verified, the A authenticates the B. After the A and B have authenticated each other, the session key Kses is used Lo as a common key for secret communication after the authentication.
If illegality or inequality is found during the verification of the received data, the mutual authentication is considered to have failed and the process is aborted.
Public Key Certificate 128 Next, the public key certificate will be explained with reference to Fig. 14. The public key certificate is issued by a Certificate Authority (CA) for the public key cryptosystem. When a user submits his or her own ID, a public key, and others to the r certificate authority, it adds information such as its own ID and valid term to the data submitted by the user and further adds its signature thereto to generate a public key certificate.
The public key certificate shown in Fig. 14 contains the version number of the certificate, the sequential number of the certificate allotted to the certificate user by the certificate authority, an algorithm and parameters used for the electronic signature, the name of the certificate authority, the valid term of the certificate, the name (user ID) of the certificate user, and the public key and electronic signature of the certificate user.
The electronic signature is data generated by applying the hash function to the entirety of the version number of the certificate, the sequential number of the certificate allotted to the certificate user by the certificate authority, the algorithm and parameter used for the electronic signature, the name of the certificate authority, the valid term of the certificate, the name of the certificate user, and the public key of the certificate user, to generate a hash value, and then using the secret key of the certificate authority for this value. For example, the 129 J process flow described in Fig. 11 is applied to the generation of the electronic signature.
D The certificate authority issues the public key certificate S shown in Fig. 14, updates a public key certificate for which the 1- S valid term has expired, and creates, manages, and distributes an D illegal user list to exclude users who has committed an injustice D (this is called "revocation"). It also generates public and secret keys as required.
On the other hand, to use this public key certificate, the user uses the public key of the certificate authority held by itself to verify the electronic signature on the public key certificate, and after the electronic signature has been successfully verified, it takes the public key out from the public key certificate and uses it. Thus, all users who use the public key certificate must hold a common public key of the certificate authority. The method for verifying the electronic authority has been described in Fig. 12, so detailed description thereof is omitted.
Mutual Authentication Based on Public Key Cryptosystem 2o Next, a method for mutual authentication using a 160-bit elliptic curve cryptography, which is a public key cryptography, will be described with reference to Fig. 15. In this figure, the public key cryptosystem is the ECC, but any similar public key cryptosystem may be used as previously described. In addition, 2s the key size is not limited to 160 bits. In Fig. 15, the B first 130 generates and transmits the 64-bit random number Rb to the A. On receiving the data, the A generates a new 64-bit random number Ra and a random number Ak smaller than the characteristic p. It then multiplies a base point G by Ak to determine a point Av Ak x G, generates an electronic signature A. Sig for the Ra, Rb, and Av (X and Y coordinates), and returns these data to the B together with the A's public key certificate. In this case, since the Ra and Rb each contain 64 bits and the X and Y coordinates of the Av each contain 160 bits, the electronic signature is for the total of 448 S bits. The method for generating the electronic signature has been described in Fig. 11, so detailed description thereof is omitted.
The public key certificate has also been explained in Fig. 14, so detailed description thereof is omitted.
On receiving the A's public key certificate, Ra, Rb, Av, and electronic signature A. Sig, the B verifies that the Rb transmitted by the A matches that generated by the B. If they are determined to match, the B verifies the electronic signature in the A's public key certificate using the public key of the certificate authority, and takes out the A's public key. The 2o verification of the public key certificate has been explained with reference to Fig. 14, so detailed description thereof is omitted.
The B then uses the A's public key obtained to verify the electronic signature A. Sig. The method for verifying the electronic signature has been explained in Fig. 12, so detailed 131 description thereof is omitted. Once the electronic signature has been successfully verified, the B authenticates the A.
Next, the B generates a new random number Bk smaller than the characteristic p. It then multiplies the base point G by Bk to determine a point By Bk x G, generates an electronic signature B.
Sig for the Rb, Ra, and By (X and Y coordinates), and returns these data to the A together with the B's public key certificate.
On receiving the B's public key certificate, Rb, Ra, Av, and electronic signature B. Sig, the A verifies that the Ra io transmitted by the B matches that generated by the A. If they are determined to match, the A verifies the electronic signature in the B's public key certificate using the public key of the certificate authority, and takes out the B's public key. The A then uses the B's public key obtained to verify the electronic signature B. Sig. Once the electronic signature has been successfully verified, the A authenticates the B.
If both the A and B have successfully authenticated each other, the B calculates Bk x Av (since the Bk is a random number but the Av is a point on the elliptic curve, the point on the Zo elliptic curve must be subjected to scalar multiplication), and the A calculates Ak x By so that lower 64 bits of each of the X coordinates of these points are used as the session key for subsequent communication (if the common key cryptography uses a 64-bit key length). Of course, the session key may be generated Ls from the Y coordinates, or the lower 64 bits may not be used. In 132 secret communication after the mutual authentication, not only M transmitted data are encrypted with the session key but an electronic signature may be added thereto.
If illegality or inequality is found during the verification 5 of the electronic signature or received data, the mutual Cl authentication is considered to have failed and the process is aborted.
Encryption Process Using Elliptic Curve Cryptography Next, encryption using elliptic curve cryptography will be Ioc explained with reference to Fig. 16. At step S21, the following definitions are set: reference symbols Mx and My denote messages, reference symbol p denotes a characteristic, reference symbols a and b denote elliptic curve coefficients (elliptic curve: y 2 x 3 ax reference symbol G denotes a base point on the elliptic (s curve, reference symbol r denotes the digit of G, and reference symbols G and Ks x G denote public keys (0 Ks At step S22, the random number u is generated so that 0 u r. At step S23, coordinates V are calculated by multiplying the public key Ks x G by the u. The scalar multiplication on the elliptic curve has Zo been explained at step S4 in Fig. 11, and description thereof is thus omitted. At step S24, the X coordinate of the V is multiplied by the Mx and then divided by the p to determine a remainder XO. At step S25, the Y coordinate of the V is multiplied by the My and then divided by the p to determine a 2s- remainder YO. If the length of the message is smaller than the 133 number of the bits, the My comprises a random number, and the decryption section discards it. At step S26, u x G is calculated and at step S27, an encrypted text u x G, (XO, YO) is obtained.
Decryption Process Using Elliptic Curve Cryptography Next, decryption using the elliptic curve cryptograhy will be described with reference to Fig. 17. At step S31, the following definitions are set: reference symbols u x G and (XO, YO) denote encrypted text data, reference symbol p denotes a characteristic, reference symbols a and b denote elliptic curve coefficients lo (elliptic curve: y 2 x 3 ax reference symbol G denotes a base point on the elliptic curve, reference symbol r denotes the digit of G, and reference symbol Ks denotes a secret key (0 Ks At step S32, the encrypted data u x G are multiplied by a value corresponding to the secret key Ks to determine coordinates is V (Xv, Yv). At step S33, the X coordinate of (XO, YO) is taken out from the encrypted data and Xl XO Xv mod p is calculated.
At step S34, the Y coordinate is taken out and Yl YO Yv mod p is calculated. At step S35, Xl is determined to be Mx and Y1 is determined to be My to obtain a message. At this point, if the My 2o is not used for the message, Y1 is discarded.
In this manner, when the secret key is Ks, the public key is G, and Ks x G is calculated, the key used for encryption and the key used for decryption may be different.
134 Another known example of the public key cryptography is the RSA, but detailed description thereof is omitted (details thereof are described in PKCS #1 Version 2).
Random Number Generating Process Next, a method for generating a random number will be explained. Known random-number generating methods include an intrinsic random-number generating method that amplifies thermal noise to generate a random number from the resulting A/D output and a pseudo random-number generating method that combines 1o together a plurality of linear circuits such as M sequences. A method is also known which uses common key cryptography such as the DES. In this example, the pseudo random-number generating method using the DES will be described (ANSI X9.17 base).
First, the value of 64 bits (for a smaller number of bits, is higher bits are set to 0) obtained from data such as time is defined as D, key information used for the Triple-DES is defined as Kr, and a seed for generating a random number is defined as S.
Then, the random number R is calculated as follows: I=Triple-DES(Kr, D) (2-1) I=Triple-DES(Kr, SI) (2-2) I=Triple-DES(Kr, RI) (2-3) In this case, Triple-DES() is a function that uses a first argument as cryptography key information and that encrypts the 135 o value of a second argument based on the Triple-DES. The operation is an exclusive OR executed every 64 bits. The last value S is updated as a new seed.
If random numbers are continuously generated, Equations (2-2) and are repeated.
SThe aspects of various cryptography processes applicable to the data processing apparatus according to the present invention Cl have been described. Next, specific processes executed in the present data processing apparatus will be described in detail.
1o Configuration of Data Stored in Recording and Reproducing Device Fig. 18 is a view useful in explaining the contents of data held in the internal memory 307 configured in the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 shown in Fig. 3.
As shown in Fig. 18, the internal memory 307 stores the following keys and data: MKake: recording device authenticating master key for generating an authentication and key exchange key (hereafter Zo referred to as "Kake") required for a mutual authentication process executed between the recording and reproducing device 300 and recording device 400 (see Fig. 3) IVake: initial value for the recording device authenticating key.
136- MKdis: master key for a distribution key for generating a distribution key Kdis.
IVdis: distribution-key-generating initial value.
Kicva: integrity-check-value-A-generating key for generating the integrity check value ICVa.
Kicvb: integrity-check-value-B-generating key for generating the integrity check value ICVb.
Kicvc: content-integrity-check-value-generating key for generating the integrity check value ICVi (i=l to N) for each io content block.
Kicvt: total-integrity check value-generating key for generating the total integrity check value ICVt.
Ksys: system signature key used to add a common signature or ICV to a distribution system.
is Kdev: recording and reproducing device signature key that varies depending on recording and reproducing device and that is used by the recording and reproducing device to add a signature or
ICV.
IVmem: initial value that is used for a cryptography process zo for mutual authentication, or the like. This is shared by the recording device.
These keys and data are stored in the internal memory 307 configured in the recording and reproducing device cryptography process section 302.
137 Configuration of Data Stored in Recording Device Fig. 19 is a view showing how data are held on the recording device. In this figure, the internal memory 405 is divided into a plurality of (in this example, N) blocks each storing the following keys and data: IDmen: recording device identification information that is unique to the recording device.
Kake: authentication key that is used for mutual authentication with the recording and reproducing device 300.
Io IVmem: initial value that is used for a cryptography process for mutual authentication, or the like.
Kstr: storage key that is a cryptography key for the block information table and other content data.
Kr: random number generating key.
S: seed.
These data are each held in the corresponding block. An external memory 402 holds a plurality of (in this example, M) content data; it holds the data described in Fig. 4 as shown, for example, in Fig. 26 or 27. The difference in configuration Zo between Figs. 26 and 27 will be described later.
Mutual Authentication Process between recording and reproducing device and recording device Outline of Mutual Authentication Process 138 Fig. 20 is a flow chart showing a procedure for an authentication between the recording and reproducing device 300 and the recording device 400. At step S41, the user inserted the recording device 400 into the recording and reproducing device 300.
s If, however, the recording device 400 is capable of communication in a non-contact manner, it need not be inserted thereinto.
When the recording device 400 is set in the recording and reproducing device 300, a recording device detecting means (not shown) in the recording and reproducing device 300 shown in Fig. 3 1o notifies the control section 301 that the recording device 400 has been installed. Then at step S42, the control section 301 of the recording and reproducing device 300 transmits an initialization command to the recording device 400 via the recording device controller 303. On receiving the command, the recording device 400 causes the control section 403 of the recording device cryptography process section 401 to receive the command via the communication section 404 and clear an authentication completion flag if it has been set. That is, unauthenticated state is set.
Then at step S43, the control section 301 of the recording Zo and reproducing device 300 transmits an initialization command to the recording and reproducing device cryptographyprocess section 302. At this point, it also transmits a recording device insertion port number. When the recording device insertion port number is transmitted, even if a plurality of recording devices 400 are connected to the recording and reproducing device 300, the 139 recording and reproducing device 300 can simultaneously execute authentication with these recording devices 400 and transmit and receive data thereto and therefrom.
On receiving the initialization command, the recording and reproducing device cryptography process section 302 of the S recording and reproducing device 300 causes the control section 306 thereof to clear the authentication complete flag corresponding to the recording device insertion port number if it has been set. That is, the unauthenticated state is set.
1o Then at step S44, the control section 301 of the recording and reproducing device 300 specifies a key block number used by the recording device cryptography process section 401 of the recording device 400. Details of the key block number will be described later. At step S45, the control section 301 of the recording and reproducing device 300 reads out the recording device identification information IDmem stored in the specified key block in the internal memory 405 of the recording device 400.
At step S46, the control section 301 of the recording and reproducing device 300 transmits the recording device 2o identification information IDmem to the recording and reproducing device cryptography process section 302 to generate the authentication key Kake based on the recording device identification information IDmem. The authentication key Kake is generated, for example, as follows: 140 Kake=DES (MKake, ITDmemIVake) (3) SIn this case, the MKake denotes the master key for the recording device authentication key used to generate the O authentication key Kake required for the mutual authentication process executed between the recording and reproducing device 300 and the recording device 400 (see Fig. the master key being stored in the internal memory 307 of the recording and reproducing device 300 as described above. Additionally, the IDmem denotes the recording device identification information unique to the to recording device 400. Furthermore, the IVake denotes the initial key for the recording device authentication key. In addition, in the above equation, the DES() denotes a function that uses a first argument as cryptography key and that encrypts the value of a second argument based on the DES. The operation 0 denotes an 'r exclusive OR executed every 64 bits.
If, for example, the DES configuration shown in Fig. 7 or 8 is applied, the message M shown in Figs. 7 and 8 corresponds to the recording device identification information: IDmem, the key K1 corresponds to the master key for the device authentication key: 2o MKake, the initial value IV corresponds to the value: IVake, and the output obtained is the authentication key Kake.
Then at step S47, the mutual authentication process and the process for generating the session key Kses are carried out. The mutual authentication is executed between the 141 encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 and the encryption/decryption section 406 of the recording device cryptography process section 401; the control section 301 of the recording and reproducing device 300 mediates therebetween.
The mutual authentication process can be executed as previously described in Fig. 13. In the configuration shown in Fig. 13, the A and B correspond to the recording and reproducing device 300 and the recording device 400, respectively. First, the io recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 generates the random number Rb and transmits the Rb and the recording and reproducing device identification information IDdev, which is its own ID, to the recording device cryptography process section 401 of the 17 recording device 400. The recording and reproducing device identification information IDdev is an identifier unique to a reproducing device stored in a memory section configured in the recording and reproducing device 300. The recording and reproducing device identification information IDdev may be Zo recorded in the internal memory of the recording and reproducing device cryptography process section 302.
On receiving the radom number Rb and the recording and reproducing device identification information IDdev, the recording device cryptography process section 401 of the recording device 2T 400 generates a new 64-bit random number Ra, encrypts the data in 142 the DES CBC mode in the order of the Ra, Rb, and recording and reproducing device identification information IDdev using the authentication key Kake, and returns them to the recording and reproducing device cryptography process section 302 of the g recording and reproducing device 300. For example, according to the DES CBC mode process configuration shown in Fig. 7, the Ra, Rb, S and IDdev correspond to the Ml, M2, and M3, respectively, and when the initial value IV=IVmem, the outputs El, E2, and E3 are encrypted texts.
0 On receiving the encrypted texts El, E2, and E3, the recording and reproducing device cryptography process section 302 of the recording and reproducing-device -3-00-decrypts--the--rece-ved data with the authentication key Kake. To decrypt the received data, the encrypted text El is first decrypted with the key Kake and the result and the IVmem are exclusive-ORed to obtain the random number Ra. Then, the encrypted text E2 is decrypted with the key Kake, and the result and the El are exclusive-ORed to obtain the Rb. Finally, the encrypted text E3 is decrypted with the key Kake, and the result and the E2 are exclusive-ORed to Zo obtain the recording and reproducing device identification information IDdev. Of the Ra, Rb, and recording and reproducing device identification information IDdev thus obtained, the Rb and recording and reproducing device identification information IDdev are checked for equality to those transmitted by the recording and 26- reproducing device 300. If they are successfully verified, the 143 recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 authenticates the recording device 400.
Then, the recording and reproducing device cryptography section 302 of the recording and reproducing device 300 generates a session key (hereafter referred to as "Kses") used after the authentication (this is generated using a random number) The Rb, Ra, and Kses are encrypted in the DES CBC mode in this order using the key Kake and the initial value IVmem and then io returned to the recording device cryptography process section 401 of the recording device 400.
On receiving the data, the recording device cryptography process section 401 of the recording device 400 decrypts the received data with the key Kake. The method for decrypting the i received data is similar to that executed by the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300, so detailed description thereof is omitted. Of the Ra, Rb, and Kses thus obtained, the Rb and Ra are checked for equality to those transmitted by the 2o recording device 400. If they are successfully verified, the recording device cryptography process section 401 of the recording device 400 authenticates the recording and reproducing device 300.
After these devices have authenticated each other, the session key Kses is used as a common key for secret communication after the authentication.
144 If illegality or inequality is found during the verification of the received data, the mutual authentication is considered to have failed and the process is aborted.
If the mutual authentication has been successful, the process proceeds from step S48 to step S49 where the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 holds the session key Kses and where the authentication complete flag is set, indicating that the mutual authentication has been completed. Additionally, if o the mutual authentication has failed, the process proceeds to step the session key Kses is discarded and the authentication complete flag is cleared. If the flag has already been cleared, the clearing process is not necessarily required.
If the recording device 400 is removed from the recording s device insertion port, the recording device detecting means in the recording and reproducing device 300 notifies the control section 301 of the recording and reproducing device 300 that the recording device 400 has been removed. In response to this, the control section 301 of the recording and reproducing device 300 commands zo the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 to clear the authentication complete flag corresponding to the recording device insertion port number. In response to this, the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 clears the authentication 145 complete flag corresponding to the recording device insertion port number.
The example has been described where the mutual authentication process is executed in accordance with the s- procedure shown in Fig. 13, but the present invention is not limited to the above described example of authentication process but the process may be executed, for example, in accordance with the above described mutual authentication procedure in Fig. Alternatively, in the procedure shown in Fig. 13, the A in Fig. 13 io may be set as the recording and reproducing device 300, the B may be set as the recording device 400, and the ID that the B: recording device 400 first delivers to the A: recording and reproducing device 300 may be set as the recording device identification information in the key block in the recording t- device. Various processes are applicable to the authentication process procedure executed in the present invention, and the present invention is not limited to the above described authentication process.
Switching Key Block during Mutual Authentication zo The mutual authentication process in the data processing apparatus according to the present invention is partly characterized in that the authentication process is executed by configuring a plurality of (for example, N) key blocks on the recording device 400 side and allowing the recording and as- reproducing device 300 to specify one of them (step S44 in the 146 process flow in Fig. 20). As previously described in Fig. 19, the internal memory 405 configured in the cryptography process section 401 of the recording device 400 has a plurality of key blocks formed therein which store various different data such as key data and ID information. The mutual authentication process executed between the recording and reproducing device 300 and the recording device 400 as described in Fig. 20 is carried out on one of the plurality of key blocks of the recording device 400 in Fig. 19.
Conventional configurations for executing a mutual io authentication process between a recording medium and a reproducing device therefor generally use a common authentication key for the mutual authentication. Thus, when the authentication key is to be changed for each product destination (country) or each product, key data required for authentication processes for i the recording and reproducing device side and the recording device side must be changed on both devices. Accordingly, key data required for an authentication process stored in a newly sold recording and reproducing device do not correspond to key data required for an authentication process stored in a previously sold 2o recording and reproducing device, so the new recording and reproducing device cannot access an old version of recording device. On contrary, a similar situation occurs in the relationship between a new version of recording device and the old version of recording and reproducing device.
147 SIn the data processing apparatus according to the present invention, key blocks are stored in the recording device 400 as a plurality of different key sets as shown in Fig. 19. The recording and reproducing device has a key block to be applied to the authentication process, that is, a specified key block set, for example, for each product destination (country), product, device type, version, or application. This set information is (Ni stored in the memory section of the recording and reproducing device, for example, the internal memory 307 in Fig. 3 or other 1o storage elements of the recording and reproducing device 300, and is accessed by the control section 301 in Fig. 3 during the authentication process to specify a key block in accordance therewith.
The master key Mkake for the recording device authentication s- key in the internal memory 307 of the recording and reproducing device 300 is set in accordance with settings for a specified key block and can correspond only to that specified key block; it does not establish mutual authentication with any key blocks other than the specified one.
2o As is seen in Fig. 19, the internal memory 405 of the recording device 400 has N key blocks (1 to N) set which each store recording device identification information, an authentication key, an initial value, a storage key, a randomnumber generating key, and a seed; each key block stores at least authenticating key data as data varying depending on the block.
148 In this manner, the key data configuration of the key block in the recording device 400 varies depending on the block. Thus, for example, a key block with which a certain recording and reproducing device A can execute the authentication process using the master key MKake for the recording device authentication key stored in the internal memory can be set as a key block No. 1, and a key block with which a recording and reproducing device B with a different specification can execute the authentication process can be set as another key block, for example, a key block No. 2.
o Although described later in detail, when a content is stored in the external memory 402 of the recording device 400, the storage key Kstr stored in each key block is used to encrypt and store the content. More specifically, the storage key is used to encrypt a content key for encrypting a content block.
As shown in Fig. 19, the storage key is configured as a key that varies depending on the block. Thus, a content stored in a memory of a recording device is prevented from being shared by two different recording and reproducing devices set to specify different key blocks. That is, differently set recording and reproducing devices can each use only the contents stored in a recording device that is compatible with its settings.
Data that can be made common to each key block can be made so, while, for example, only the authenticating key data and the storage key data may vary depending on the key block.
149 )In a specific example where key blocks comprising a plurality of different key data are configured in the recording device, for example, different key block numbers to be specified are set for different types of recording and reproducing device 300 (an Sinstalled type, a portable type, and the like), or different specified key blocks are set for different applications.
Furthermore, different key blocks may be set for different territories; for example, the key block No. 1 is specified for recording and reproducing devices sold in Japan, and the key block (0 No. 2 is specified for recording and reproducing devices sold in the U.S. With such a configuration, a content that is used in different territories and that is stored in each recording device with a different storage key cannot be used in a recording and reproducing device with different key settings even if a recording device such as a memory card is transferred from the U.S. to Japan or vice versa, thereby preventing the illegal or disorderly distribution of the content stored in the memory. Specifically, this serves to exclude a state where a content key Kcon encrypted with different storage keys Kstr can be mutually used in two different countries.
Moreover, at least one of the key blocks 1 to N in the internal memory 405 of the recording device 400 shown in Fig. 19, for example, the No. N key block may be shared by any recording and reproducing device 300.
150 For example, when the key block No. N and the master key MKake for the recording device authentication key, which is capable of authentication, are stored in all apparatuses, contents can be distributed irrespective of the type of the recording and Sreproducing device 300, the type of the application, or the destined country. For example, an encrypted content stored in a memory card with the storage key stored in the key block No. N can be used in any apparatuses. For example, music data or the like can be decrypted and reproduced from a memory card by encrypting io the data with the storage key in a shared key block, storing them in the memory card, and setting the memory card in, for example, a portable sound reproducing device storing the master key MKake for the recording device authentication key, which is also shared.
Fig. 21 shows an example of the usage of the recording device 1- of the present data processing apparatus, which has a plurality of key blocks. A recording and reproducing device 2101 is a product sold in Japan and has a master key that establishes an authentication process with the key blocks No. 1 and No. 4 in the recording device. A recording and reproducing device 2102 is a product sold in the U.S. and has a master key that establishes an authentication process with the key blocks No. 2 and No. 4 in the recording device. A recording and reproducing device 2103 is a product sold in the EU and has a master key that establishes an authentication process with the key blocks No. 3 and No. 4 in the recording device.
151 For example, the recording and reproducing device 2101 establishes authentication with the key block 1 or 4 in the recording device A 2104 to store, in the external memory, contents encrypted via the storage key stored in that key block. The Srecording and reproducing device 2102 establishes authentication with the key block 2 or 4 in the recording device B 2105 to store, in the external memory, contents encrypted via the storage key stored in that key block. The recording and reproducing device 2103 establishes authentication with the key block 3 or 4 in the Srecording device C 2106 to store, in the external memory, contents encrypted via the storage key stored in that key block. Then, if the recording device A 2104 is installed in the recording and reproducing device 2102 or 2103, a content encrypted with the storage key in the key block 1 is unavailable because authentication is not established between the recording and reproducing device 2102 or 2103 and the key block 1. On the other hand, a content encrypted with the storage key in the key block 4 is available because authentication is established between the recording and reproducing device 2102 or 2103 and the key block 4.
As described above, in the data processing apparatus according to the present invention, the key blocks comprising the plurality of different key sets are configured in the recording device, while the recording and reproducing device stores the master key enabling authentication for a particular key block, 152 S thereby enabling the setting of restrictions on the use of contents depending on different use form.
Moreover, a plurality of key blocks, for example, 1 to k may be specified in one recording and reproducing device, while a plurality of key blocks p and q may be specified in the other recording and reproducing devices. Additionally, a plurality of sharable key blocks may be provided.
Process for Downloading from Recording and Reproducing Device to Recording Device 4 Next, a process for downloading a content from the recording and reproducing device 300 to the external memory of the recording device 400 in the present data processing apparatus will be explained.
Fig. 22 is a flow chart useful in explaining a procedure for downloading a content from the recording and reproducing device 300 to the recording device 400. In this figure, the above described mutual authentication process is assumed to have been completed between the recording and reproducing device 300 and the recording device 400.
At step S51, the control section 301 of the recording and reproducing device 300 uses the read section 304 to read data of a predetermined format out from the medium 500 storing contents or uses the communication section 305 to receive data from the communication means 600 in accordance with a predetermined format.
153 Then, the control section 301 of the recording and reproducing device 300 transmits the header section (see Fig. 4) of the data to the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300.
SNext, at step S52, the control section 306 of the recording and reproducing device cryptography process section 302, which has received the header at step S51, causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to calculate the integrity check value A. The to integrity check value A is calculated in accordance with the ICV calculation method described in Fig. 7, using as a key the integrity-check-value-A-generating key Kicva stored in the internal memory 307 of the recording and reproducing device cryptography process section 302 and using the content ID and the w usage policy as a message, as shown in Fig. 23. The initial value may be IV 0 or may be the integrity-check-value-A-generating initial value IVa may be used which is stored in the internal memory 307 of the recording and reproducing device cryptography process section 302. Finally, the integrity check value A and the Z check value: ICVa stored in the header are compared together, and if they are equal, the process proceeds to step S53.
As previously described in Fig. 4, the check value A, ICVa is used to verify that the content ID and the usage policy have not been tampered. If the integrity check value A calculated in accordance with the ICV calculation method described in Fig. 7, 154 Susing as a key the integrity-check-value-A-generating key Kicva stored in the internal memory 307 of the recording and reproducing O device cryptography process section 302 and using the content ID and the usage policy as a message, equals the check value: ICVa k\ s stored in the header, it is determined that the content ID and the Susage policy have not been tampered.
Next, at step S53, the control section 306 of the recording
C
and reproducing device cryptography process section 302 causes the encryption/decryption section 308 of the recording and reproducing jo device cryptography process section 302 to generate the distribution key Kdis. The distribution key Kdis is generated, for example, as follows: Kdis=DES (MKdis, Content IDIVdis) (4) In this case, the MKdis denotes the master key for the distribution key for generating the distribution key Kdis, the master key being stored in the internal memory of the recording and reproducing device 300 as described above. In addition, the content ID is identification information for the header section of content data, and the IVdis denotes the initial value for the Zo distribution key. Additionally, in the above equation, the DES() denotes a function that uses a first argument as cryptography key and that encrypts the value of a second argument. The operation denotes an exclusive OR executed every 64 bits.
155 SAt step S54, the control section 306 of the recording and reproducing device cryptography process section 302 uses the O encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 as well as the O 5- distribution key Kdis generated at step S53, to decrypt the block Sinformation table key Kbit and content key Knon (see Fig. 4) c-I Sstored in the header section of the data obtained from the medium Ci 500 via the read section 304 or received from the communication means 600 via the communication section 305. As shown in Fig. 4, vi the block information table key Kbit and the content key Knon are encrypted beforehand with the distribution key Kdis on the medium such as a DVD or CD or on a communication path such as the Internet.
Further, at step S55, the control section 306 of the Is recording and reproducing device cryptography process section 302 uses the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to decrypt the block information table (BIT) with the block information table key Kbit decrypted at step S54. The block information table (BIT) as 2C shown in Fig. 4 is encrypted beforehand with the block information table key Kbit on the medium such as the DVD or CD or the communication path such as the Internet.
Further, at step S56, the control section 306 of the recording and reproducing device cryptography process section 302 Z6 divides the block information table key Kbit, the content key Kcon, 156 and the block information table (BIT) into 8-byte pieces, which are all exclusive-ORed (any operation such as an addition or subtraction may be used). Next, the control section 306 of the recording and reproducing device cryptography process section 302 Scauses the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to calculate the integrity check value B (ICVb). The integrity check value B is generated by using as a key the integrity-check-value-Bgenerating key Kicvb stored in the internal memory 307 of the 1o recording and reproducing device cryptography process section 302, to decrypt the previously calculated exclusive-ORed value based on the DES, as shown in Fig. 24. Finally, the integrity check value B and the ICVb in the header are compared together, and if they are equal, the process proceeds to step S57.
I- As previously described in Fig. 4, the check value B, ICVb is used to verify that the block information table key Kbit, the content key Kcon, and the block information table (BIT) have not been tampered. If the integrity check value B generated by using as a key the integrity-check-value-B-generating key Kicvb stored in the internal memory 307 of the recording and reproducing device cryptography process section 302, dividing the block information table key Kbit, the content key Kcon, and the block information table (BIT) into 8-byte pieces, exclusive-Oring these data, and encrypting the exclusive-ORed data based on the DES, equals the check value: ICVb stored in the header, it is determined that the 157 block information table key Kbit, the content key Kcon, and the block information table have not been tampered.
At step S57, the control section 306 of the recording and reproducing 'device cryptography process section 302 causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to calculate an intermediate integrity check value. The intermediate value is calculated in accordance with the ICV calculation method described in Fig. 7, using as a key the total-integrity-check-value (o generating key Kicvt stored in the internal memory 307 of the recording and reproducing device cryptography process section 302 and using the integrity check values A and B and all the held content integrity check values as a message. The initial value may be IV=O or the total-integrity-check-value-generating initial value IVt may be used which is stored in the internal memory 307 of the recording and reproducing device cryptography process section 302. Additionally, the intermediate integrity check value generated is stored in the recording and reproducing device ,cryptography process section 302 of the recording and reproducing 2.D device 300 as required.
This intermediate integrity check value is generated using the integrity check values A and B and all the content integrity check values as a message, and data verified by each of these integrity check values may be verified by collating them with the Ls intermediate integrity check value. In this embodiment, however, 158 a plurality of different integrity check values, that is, total integrity check values ICVt and the check value ICVdev unique to the recording and reproducing device 300 can be separately generated based on the intermediate integrity check value so that process for verifying the absence of tamper which process is executed for shared data for the entire system and the verification process for identifying occupied data occupied only by each recording and reproducing device 300 after the download process can be distinguishably executed. These integrity check lo values will be described later.
The control section 306 of the recording and reproducing device cryptography process section 302 causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to calculate the total 1- integrity check value ICVt. The total integrity check value ICVt is generated by using as a key a system signature key Ksys stored in the internal memory 307 of the recording and reproducing device cryptography process section 302, to decrypt the intermediate integrity check value based on the DES. Finally, the total /o integrity check value ICVt generated and the ICVt in the header stored at step S51 are compared together, and if they are equal, the process proceeds to step S58. The system signature key Ksys is common to a plurality of recording and reproducing devices, that is, the entire system executing the process of recording and Z reproducing certain data.
159 As previously described in Fig. 4, the total integrity check value ICVt is used to verify that all of the integrity check values ICVa and ICVb and the integrity check value for each content block have not been tampered. Thus, if the total integrity check value generated by means of the above described process equals the integrity check value: ICVt, stored in the Header it is determined that all of the integrity check values ICVa and ICVb and the integrity check value for each content block have not been tampered.
io Then at step S58, the control section 301 of the recording and reproducing device 300 takes content block information out from the block information table (BIT) and checks whether any content block is to be verified. If any content block is to be verified, the content integrity check value has been stored in the L- block information in the header.
If any content block is to be verified, the control section 301 reads this content block out from the medium 500 by using the read section 304 of the recording and reproducing device 300 or received from communicating means 600 by using the communication Zo section 305 of the recording and reproducing device 300, and transmits the content block to the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300. On receiving the content block, the control section 306 of the recording and reproducing device z cryptography process section 302 causes the encryption/decryption 160 section 308 of the recording and reproducing device cryptography process section 302 to calculate the content intermediate value.
The content intermediate value is generated by using the content key Kcon decrypted at step S54 to decrypt an input content block in the DES CBC mode, separating the resulting data into 8byte pieces, and exclusive-ORing all these pieces (any operation such as an addition or subtraction may be used) Then, the control section 306 of the recording and reproducing device cryptography process section 302 causes the 1o encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to calculate the content integrity check value. The content integrity check value is generated by using as a key the content-integrity-check-valuegenerating key Kicvc stored in the internal memory 307 of the (s recording and reproducing device cryptography process section 302, to decrypt the content intermediate value based on the DES. Then, the control section 306 of the recording and reproducing device cryptography process section 302 compares this content integrity check value with the ICV in the content block received from the i control section 301 of the recording and reproducing device 300 at step S51, and passes the result to the control section 301 of the recording and reproducing device 300. On receiving the result and if the verification has been successful, the control section 301 of the recording and reproducing device 300 takes out the next content block to be verified and causes the recording and 161 reproducing device cryptography process section 302 of the recording and reproducing device 300 to verify this content block.
Similar verification processes are repeated until all the content blocks are verified. The initial value may be IV=0 or the content-integrity-check-value-generating initial value IVc may be used which is stored in the internal memory 307 of the recording and reproducing device cryptography process section 302, if the header generating side uses the same settings. Additionally, all the checked content integrity check values are held in the io recording and reproducing device cryptography process section 302 of the recording and reproducing device 300. Furthermore, the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 monitors the order in which the content blocks are verified to consider the i authentication to have failed if the order is incorrect or if it is caused to verify the same content block twice or more. If all the content blocks have been successfully verified, the process proceeds to step S59.
Then at step S59, the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to encrypt the block information table key Kbit and content key Kcon decrypted at step S54, using the session key Kses made sharable during the mutual authentication. The control section 162 301 of the recording and reproducing device 300 reads the block information table key Kbit and content key Kcon from the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300, the block information table g- key Kbit and content key Kcon being decrypted using the session key Kses. The control section 301 then transmits these data to the recording device 400 via the recording device controller 303 of the recording and reproducing device 300.
Then at step S60, on receiving the block information table 1o key Kbit and content key Kcon transmitted from the recording and reproducing device 300, the recording device 400 causes the encryption/decryption section 406 of the recording device cryptography process section 401 to decrypt the received data using the session key Kses made sharable during the mutual is authentication and to reencrypt the decrypted data with the storage key Kstr unique to the recording device which is stored in the internal memory 405 of the recording device cryptography process 401. Finally, the control section 301 of the recording and reproducing device 300 reads the block information key Kbit and the content key Kcon out from the recording device 400 via the recording device controller 303 of the recording and reproducing device 300, the block information key Kbit and the content key Kcon being reencrypted with the storage key Kstr. These are then substituted with the block information key Kbit and content key Kcon encrypted with the distribution key Kdis.
163 SAt step S61, the control section 301 of the recording and reproducing device 300 takes the localization field out from the usage policy in the header section of the data to determine whether the downloaded content can be used only in this recording and reproducing device 300 (in this case, the localization field is set to 1) or also by other similar recording and reproducing devices 300 (in this case, the localization field is set to 0) If the result of the determination shows that the localization field is set to 1, the process proceeds to step S62.
t At step S62, the control section 301 of the recording and reproducing device 300 causes the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 to calculate the integrity check value unique to the recording and reproducing device. The integrity check value (9 unique to the recording and reproducing device is generated by using as a key a recording and reproducing device signature key Kdev stored in the internal memory 307 of the recording and reproducing device cryptography process section 302, to decrypt the intermediate integrity check value based on the DES, the Zo intermediate integrity check value being held at step S58. The calculated integrity check value ICVdev unique to the recording and reproducing device substitutes for the total integrity check value ICVt.
As previously described, the system signature key Ksys is used to add a common signature or ICV to the distribution system, 164 and the recording and reproducing device signature key Kdev varies depending on the recording and reproducing device and is used by the recording and reproducing device to add a signature or ICV.
That is, data signed with the system signature key Ksys are Ssuccessfully checked by a system (recording and reproducing device) having the same system signature key, that is, such data have the same total integrity check value ICVt so as to be sharable. If, however, data are signed with the recording and reproducing device signature key Kdev, since this signature key is (0o unique to the recording and reproducing device, the data signed with the recording and reproducing device signature key Kdev, that is, the data stored in a recording device after the signing cannot be reproduced if an attempt is made to reproduce them after this recording device has been inserted in another recording and reproducing device; that is, an error occurs due to the unequal integrity check values ICVdev unique to the recording and reproducing device.
Thus, in the data processing apparatus according to the present invention, the setting of the localization field enables 2o contents to be arbitrarily set so as to be shared throughout the entire system or used only by particular recording and reproducing devices.
At step S63, the control section 301 of the recording and reproducing device 300 stores the content in the external memory 402 of the recording device 400.
165 Fig. 26 is a view showing how the content is stored in the recording device if the localization field is set to 0. Fig. 27 is a view showing how the content is stored in the recording device if the localization field is set to i. Only the difference F between Figs. 26 and 4 is whether the content block information key Kbit and the content key Kcon are encrypted with the distribution key Kdis or the storage key Kstr. The different between Figs. 27 and 26 is that the integrity check value calculated from the intermediate integrity check value is toc encrypted with the system signature key Ksys in Fig. 26, whereas it is encrypted with the recording and reproducing device signature key Kdev unique to the recording and reproducing device in Fig. 27.
In the process flow in Fig. 22, if the verification of the integrity check value A has failed at step S52, if the verification of the integrity check value B has failed at step S56, if the verification of the total integrity check value ICVt has failed at step S57, or if the verification of the content block content integrity check value has failed at step S58, then the process proceeds to step S64 to provide a predetermined error display.
In addition, if the localization field is 0 at step S61, the process skips step S62 to advance to step S63.
166 ;Z Process Executed by Recording and Reproducing Device to Reproduce Information Stored in Recording Device O Next, a process executed by the recording and reproducing device 300 to reproduce content information stored in the external O 5 memory 402 of the recording device 400.
SFig. 28 is a flow chart useful in explaining a procedure executed by the recording and reproducing device 300 to read a content out from the recording device 400 and use it. In Fig. 28, the mutual authentication is assumed to have been completed io between the recording and reproducing device 300 and the recording device 400.
At step S71, the control section 301 of the recording and reproducing device 300 uses the recording device controller 303 to read the content out from the external memory 402 of the recording device 400. The control section 301 of the recording and reproducing device 300 then transmits the header section of the data to the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300. Step S72 is similar to step S52 described in Process for Downloading 2o from Recording and Reproducing Device to Recording Device"; at this step, the control section 306 of the recording and reproducing device cryptography process section 302, which has received the header, causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to calculate the integrity check value A. The 167 integrity check value A is calculated in accordance with an ICV calculation method similar to that described in Fig. 7, using as a key the integrity-check-value-A-generating key Kicva stored in the internal memory 307 of the recording and reproducing device Scryptography process section 302 and using the content ID and the usage policy as a message, as shown in the previously described Fig. 23.
As previously described, the check value A, ICVa is used to verify that the content ID and the usage policy have not been tampered. If the integrity check value A calculated in accordance with the ICV calculation method described in Fig. 7, using as a key the integrity-check-value-A-generating key Kicva stored in the internal memory 307 of the recording and reproducing device cryptography process section 302 and using the content ID and the usage policy as a message, equals the check value: ICVa stored in the header, it is determined that the content ID and usage policy stored in the recording device 400 have not been tampered.
Then at step S73, the control section 301 of the recording and reproducing device 300 takes the block information table key Kbit and the content key Kcon out from the read-out header section and then transmits them to the recording device 400 via the recording device controller 303 of the recording and reproducing device 300. On receiving the block information table key Kbit and the content key Kcon transmitted from the recording and reproducing device 300, the recording device 400 causes the 168 encryption/decryption section 406 of the recording device cryptography process section 401 to decrypt the received data with the storage key Kstr unique to the recording device which is stored in the internal memory 405 of the recording device cryptography process 401 and to then reencrypt the decrypted data using the session key Kses made sharable during the mutual authentication. Then, the control section 301 of the recording and reproducing device 300 reads the block information key Kbit and the content key Kcon out from the recording device 400 via the to recording device controller 303 of the recording and reproducing device 300, the block information key Kbit and the content key Kcon being reencrypted with the session key Kses from the recording device 400.
Then at step S74, the control section 301 of the recording and reproducing device 300 transmits the received block information key Kbit and content key Kcon to the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300, the block information key Kbit and content key Kcon being reencrypted with the session key Kses.
On receiving the block information key Kbit and content key Kcon reencrypted with the session key Kses, the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 causes the z2- encryption/decryption section 308 of the recording and reproducing 169 device cryptography process section 302 to decrypt the block information key Kbit and content key Kcon encrypted with the session key Kses, using the session key Kses made sharable during the mutual authentication. The recording and reproducing device c cryptography process section 302 then causes the encryption/decryption section 308 to decrypt the block information table received at step S71, using the decrypted block information table key Kbit.
The recording and reproducing device cryptography process io section 302 of the recording and reproducing device 300 substitutes the decrypted block information table key Kbit, content key Kcon, and block information table BIT with those received at step S71 for retention. In addition, the control section 301 of the recording and reproducing device 300 reads the Is- decrypted block information table BIT out from the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300.
At step S75 is similar to step S56 described in Process for Downloading from Recording and Reproducing Device to Recording 2zo Device". The control section 306 of the recording and reproducing device cryptography process section 302 divides the block information table key Kbit, content key Kcon, and block information table (BIT) read out from the recording device 400, into 8-byte pieces and then exclusive-ORs all of them. The control section 306 of the recording and reproducing device 170cryptography process section 302 then causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to calculate the integrity check value B(ICVb). The integrity check value B is generated by using as a key the integrity-check-value-B-generating key Kicvb stored in the internal memory 307 of the recording and reproducing device cryptography process section 302, to encrypt the previously calculated exclusive-ORed value based on the DES, as shown in the previously described Fig. 24. Finally, the check value B and the to ICVb in the header are compared together, and if they are equal, the process proceeds to step S76.
As previously described, the check value B, ICVb is used to verify that the block information table key Kbit, the content key Kcon, and the block information table have not been tampered. If the integrity check value B generated by using as a key the integrity-check-value-B-generating key Kicvb stored in the internal memory 307 of the recording and reproducing device cryptography process section 302, dividing the block information table key Kbit, the content key Kcon, and the block information az table (BIT) read from the recording device 400 into 8-byte pieces, exclusive-Oring these data, and encrypting the exclusive-ORed data based on the DES, equals the check value: ICVb stored in the header of the data read out from the recording device 400, it is determined that the block information table key Kbit, the content 2- key Kcon, and the block information table have not been tampered.
171 )At step S76, the control section 306 of the recording and reproducing device cryptography process section 302 causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to calculate the Sintermediate integrity check value. The intermediate value is calculated in accordance with the ICV calculation method described in Fig. 7 or the like, using as a key the total-integrity-checkvalue-generating key Kicvt stored in the internal memory 307 of the recording and reproducing device cryptography process section to 302 and using the integrity check values A and B and all the held content integrity check values as a message. The initial value may be IV=0 or the total-integrity-check-value-generating initial value IVt may be used which is stored in the internal memory 307 of the recording and reproducing device cryptography process is- section 302. Additionally, the intermediate integrity check value generated is stored in the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 as required.
Then at step S77, the control section 301 of the recording 2o and reproducing device 300 takes the localization field out from the usage policy contained in the header section of the data read out from the external memory 402 of the recording device 400, to determine whether the downloaded content can be used only in this recording and reproducing device 300 (in this case, the 2- localization field is set to 1) or also by other similar recording 172 and reproducing devices 300 (in this case, the localization field is set to If the result of the determination shows that the localization field is set to i, that is, it is set such that the downloaded content can be used only in this recording and reproducing device 300, the process proceeds to step S80. If the localization is set to 0, that is, it is set such that the content can also be used by other similar recording and reproducing device 300, then the process proceeds to step S78. Step S77 may be processed by the cryptography process section 302.
io At step S78, the total integrity check value ICVt is calculated in the same manner as step S58 described in Process for Downloading from Recording and Reproducing Device to Recording Device". That is, the control section 306 of the recording and reproducing device cryptography process section 302 causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to calculate the total integrity check value ICVt. The total integrity check value ICVt is generated by using as a key a system signature key Ksys stored in the internal memory 307 of the recording and ZC reproducing device cryptography process section 302, to encrypt the intermediate integrity check value based on the DES, as shown in the previously described Fig. The, the process proceeds to step S79 to compare the total integrity check value ICVt generated at step S78 with the ICVt in 173 the header stored at step S71. If the values are equal, the process proceeds to step S82.
As previously described, the total integrity check value ICVt is used to verify that the integrity check values ICVa and ICVb g and all the content block integrity check values have not been tampered. Thus, if the total integrity check value generated by means of the above described process equals the integrity check value: ICVt stored in the header, it is determined that the integrity check values ICVa and ICVb and all the content block io integrity check values have not been tampered in the data stored in the recording device 400.
If the result of the determination at step S77 shows that the localization field is set such that the downloaded content can be used only in this recording and reproducing device 300, that is, it is set to 1, the process proceeds to step At step S80, the control section 306 of the recording and reproducing device cryptography process section 302 causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to calculate the integrity zo check value ICVdev unique to the recording and reproducing device.
The integrity check value ICVdev unique to the recording and reproducing device is generated, as shown in the previously described Fig. 25, by using as a key a recording and reproducing device signature key Kdev unique to the recording and reproducing 2g device stored in the internal memory 307 of the recording and 174 reproducing device cryptography process section 302, to encrypt the intermediate integrity check value based on the DES, the intermediate integrity check value being held at step S58. At step S81, the check value ICVdev unique to the recording and reproducing device calculated at step 380 is compared with the ICVdev stored at step S71, and if they are equal, the process proceeds to step S82.
Thus, data signed with the same system signature key Ksys are successfully checked by a system (recording and reproducing to device) having the same system signature key, that is, such data have the same total integrity check value ICVt so as to be sharable. If, however, data are signed with the recording and reproducing device signature key Kdev, since this signature key is unique to the recording and reproducing device, the data signed with the recording and reproducing device signature key Kdev, that is, the data stored in a recording device after the signing cannot be reproduced if an attempt is made to reproduce them after this recording device has been inserted in another recording and reproducing device; that is, an error occurs due to a mismatch in zo the integrity check value ICVdev unique to the recording and reproducing device. Accordingly, the setting of the localization field enables contents to be arbitrarily set so as to be shared throughout the entire system or used only by particular recording and reproducing devices.
175 JAt step S82, the control section 301 of the recording and reproducing device 300 takes content block information out from the block information table (BIT) read out at step S74 and checks whether any content block is to be encrypted. If any content block is to be encrypted, the control section 301 reads this content block out from the external memory 402 of the recording device 400 via the recording device controller 303 of the recording and reproducing device 300 and then transmits the content block to the recording and reproducing device cryptography 1 process section 302 of the recording and reproducing device 300.
On receiving the content block, the control section 306 of the recording and reproducing device cryptography process section 302 causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to decrypt the content, while causing the encryption/decryption section 308 to calculate the content integrity check value at step S83 if the content block is to be verified.
Step 383 is similar to step S58 described in Process for Downloading from Recording and Reproducing Device to Recording 2o Device". The control section 301 of the recording and reproducing device 300 takes content block information out from the block information table (BIT) and determines from the stored content integrity check value whether any content block is to be verified.
If any content block is to be verified, the control section 301 receives this content block from the external memory 402 of the 176 recording device 400 and transmits it to the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300. On receiving the content block, the control section 306 of the recording and reproducing device cryptography process section 302 causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to calculate the content intermediate value.
The content intermediate value is generated by using the i( content key Kcon decrypted at step S74 to decrypt the input content block in the DES CBC mode, separating the resulting data into 8-byte pieces, and exclusive-ORing all these pieces.
Then, the control section 306 of the recording and reproducing device cryptography process section 302 causes the i encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to calculate the content integrity check value. The content integrity check value is generated by using as a key the content-integrity-check-valuegenerating key Kicvc stored in the internal memory 307 of the 2o recording and reproducing device cryptography process section 302, to encrypt the content intermediate value based on the DES. Then, the control section 306 of the recording and reproducing device cryptography process section 302 compares this content integrity check value with the ICY in the content block received from the S control section 301 of the recording and reproducing device 300 at 177 step S71, and passes the result to the control section 301 of the recording and reproducing device 300. On receiving the result and if the verification has been successful, the control section 301 of the recording and reproducing device 300 takes out the next Scontent block to be verified and causes the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 to verify this content block.
Similar verification processes are repeated until all the content blocks are verified. The initial value may be IV=0 or the Scontent-integrity-check-value-generating initial value IVc may be used which is stored in the internal memory 307 of the recording and reproducing device cryptography process section 302.
Additionally, all the checked content integrity check values are held in the recording and reproducing device cryptography process i section 302 of the recording and reproducing device 300.
Furthermore, the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 monitors the order in which the content blocks are verified to consider the authentication to have failed if the order is incorrect or if it is caused to verify the same content block twice or more.
The control section 301 of the recording and reproducing device 300 receives the result of the comparison of the content integrity check value (if no content block is to be verified, all 2~ the results of comparisons will be successful), and if the 178 S verification has been successful, it takes the decrypted content from the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300. It then takes out next content block to be verified and causes the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 to decrypt this content block. Similar verification processes are repeated until all the content blocks are decrypted.
At step S83, if the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 determines after the verification process that the content integrity check values are not equal, it considers the verification to have failed and avoids decrypting the remaining contents. In addition, the recording and reproducing device Scryptography process section 302 of the recording and reproducing device 300 monitors the order in which the content blocks are decrypted to consider the decryption to have failed if the order is incorrect or if it is caused to decrypt the same content block twice or more.
If the verification of the integrity check value A has failed at step S72, if the verification of the integrity check value B has failed at step S75, if the verification of the total integrity check value ICVt has failed at step S79, if the verification of the integrity check value ICVdev unique to the recording and reproducing device has failed at step S81, or if the verification 179 of the content block content integrity check value has failed at step S81, then the process proceeds to step S84 to provide a predetermined error display.
As described above, not only important data or content can be encrypted, concealed, or checked for tamper when the content is downloaded or used, but even if data on a recording medium are simply copied to another recording medium, the content can be prevented from being correctly decrypted because the block information table key Kbit for decrypting the block information io table BIT and the content key Kcon for decrypting the content are stored with the storage key Kstr unique to the recording medium.
More specifically, for example, at step S74 in Fig. 28, the another recording device cannot decrypt the data correctly because each recording device decrypts data encrypted with a different I- storage key Kstr.
Key Exchanging Process after Mutual Authentication The data processing apparatus according to the present invention is partly characterized in that the recording device 400 can be used only after the above described mutual authentication zo process between the recording and reproducing device 300 and the recording device 400 and in that the use form of the recording device is limited.
For example, to prevent a user from generating a recording device such as a memory card in which a content is stored by means 180 of illegal copying or the like and setting this recording device in a recording and reproducing-device for use, the mutual authentication process is executed between the recording and reproducing device 300 and the recording device 400 and (encrypted) contents can be transferred between the recording and reproducing device 300 and the recording device 400 only if they have been mutually authenticated.
To achieve the above restrictive process, according to the present data processing apparatus, all the processes in the to cryptography process section 401 of the recording device 400 are executed based on preset command strings. That is, the recording device has such a command process configuration that it sequentially obtains commands from a register based on command numbers. Fig. 29 is a view useful in explaining the command t- process configuration of the recording device.
As shown in Fig. 29, between the recording and reproducing device 300 having he recording and reproducing device cryptography process section 302 and the recording device 400 having the recording device cryptography process section 401, command numbers 2o are output from the recording device controller 303 to the communication section (including a reception register) 404 of the recording device 400 under the control of the control section 301 of the recording and reproducing device 300.
The recording device 400 has a command number managing section 2201 (2901?) in the control section 403 in the 181 cryptography process section 401. The command number managing section 2901 holds a command register 2902 to store command strings corresponding to command numbers output from the recording and reproducing device 300. In the command strings, command numbers 0 to y are sequentially associated with execution commands, as shown in the right of Fig. 29. The command number managing section 2901 monitors command numbers output from the recording and reproducing device 300 to take corresponding commands out from a command register 2902 for execution.
In command sequences stored in the command register 2902, a command string for an authentication process sequence is associated with the leading command numbers 0 to k, as shown in the right of Fig. 29. Furthermore, command numbers p to s following the command string for the authentication process sequence are associated with a decryption, key exchange, and encryption process command sequence 1, and the following command numbers u to y are associated with a decryption, key exchange, and encryption process command sequence 2.
As previously described for the authentication process flow 2, in Fig. 20, when the recording device 400 is installed in the recording and reproducing device 300, the control section 301 of the recording and reproducing device 300 transmits an initialization command to the recording device 400 via the recording device controller 303. On receiving the command, the z- recording device 400 causes the control section 403 of the 182 recording device cryptography process section 401 to receive the command via the communication section 404 and clear an authentication flag 2903. That is, unauthenticated state is set.
Alternatively, in such a case that power is supplied from the recording and reproducing device 300 to the recording device 400, the unauthenticated state may be set on power-on.
Then, the control section 301 of the recording and reproducing device 300 transmits an initialization command to the recording and reproducing device cryptography process section 302.
io At this point, it also transmits a recording device insertion port number. When the recording device insertion port number is transmitted, even if a plurality of recording devices 400 are connected to the recording and reproducing device 300, the recording and reproducing device 300 can simultaneously execute 1- authentication with these recording devices 400 and transmit and receive data thereto and therefrom.
On receiving the initialization command, the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 causes the control section 2o thereof to clear the authentication flag 2904 corresponding to the recording device insertion port number. That is, the unauthenticated state is set.
Once this initialization process has been completed, the control section 301 of the recording and reproducing device 300 sequentially outputs command numbers via the recording device 183 controller 303 in an ascending order starting with the command number O. The command number managing section 2901 of the recording device 400 monitors the command numbers input from the recording and reproducing device 300 to ascertain that they are r s sequentially input starting with the command number O, and obtains S the corresponding commands from the command register 2902 to execute various processes such as the authentication process. If the input command numbers are not in a specified order, an error occurs and a command number acceptance value is reset to an ID initial state, that is, an executable command number is reset at 0.
In the command sequences stored in the command register 2902 as shown in Fig. 29, the command numbers are imparted so as to carry out the authentication process first, and following this process sequence, decryption the key exchange, and encryption i- process sequence is stored.
A specific example of the decryption the key exchange, and the encryption process sequence will be explained with reference to Figs. 30 and 31.
Fig. 30 shows part of the process executed in downloading a 1o content from the recording and reproducing device 300 to the recording device 400 as previously described in Fig. 22.
Specifically, this process is executed between steps 59 and 60 in Fig. 22.
In Fig. 30, at step 33001, the recording device receives data 2s (ex. the block information table Kbit and the content key Kcon) 184 encrypted with the session key Kses, from the recording and reproducing device. Thereafter, the command strings p to s shown in the above described Fig. 29 are started. The command strings p to s are started after the authentication process commands 0 to k Shave been completed to cause authentication flags 2903 and 2904 shown in Fig. 29 to be set to indicate the completion. This is ensured by the command number managing section 2901 by accepting the command numbers only in the ascending order starting with 0.
At step S3002, the recording device stores in the register to the data (ex. the block information table Kbit and the content key Kcon) received from the recording and reproducing device and encrypted with the session key Kses.
At step S3003, a process is executed which takes the data (ex.
the block information table Kbit and the content key Kcon) encrypted with the session key Kses, out from the register and decrypts them with the session key Kses.
At step S3004, a process is executed which encrypts the data (ex. the block information table Kbit and the content key Kcon) decrypted with the session key Kses, using the storage key Kstr.
zc The above process steps 3002 to 3004 correspond to processes included in the command numbers p to s in the command register previously described in Fig. 29. These processes are sequentially executed by the recording device cryptography process section 401 in accordance with the command numbers p to s received by the 185 command number managing section 2901 of the recording device 400 from the recording and reproducing device 300.
0 At the next step S3005, the data (ex. the block information table Kbit and the content key Kcon) encrypted with the storage key Kstr are stored in the external memory of the recording device.
At this step, the recording and reproducing device 300 may read the data encrypted with the storage key Kstr, out from the recording device cryptography process section 401 and then store them in the external memory 402 of the recording device 400.
The above described steps S3002 to S3004 constitute an uninterruptible continuously-executed execution sequence; even if, for example, the recording and reproducing device 300 issues a data read command at the end of the decryption process at step S3003, since this read command differs from the command numbers p to s set in the command register 2902 in the ascending order, the command number managing section 2901 does not accept execution of the read. Accordingly, the decrypted data resulting from the key exchange in the recording device 400 cannot be read out by an external device, for example, the recording and reproducing device 300, thereby preventing key data or contents from being illegally read out.
Fig. 31 shows part of the content reproducing process previously described in Fig. 28 in which a content is read out from the recording device 400 and reproduced by the recording and 186 reproducing device 300. Specifically, this process is executed at step S73 in Fig. 28.
In Fig. 31, at step S3101, the data (ex. the block information table Kbit and the content key Kcon) encrypted with the storage key Kstr are read out from the external memory 402 of the recording device 400.
At step S3102, the data (ex. the block information table Kbit and the content key Kcon) read out from the memory of the recording device and encrypted with the storage key Kstr are iO stored in the register. At this step, the recording and reproducing device 300 may read the data encrypted with the storage key Kstr, out from the external memory 402 of the recording device 400 and then store them in the register of the recording device 400.
is At step S3103, the data (ex. the block information table Kbit and the content key Kcon) encrypted with the storage key Kstr are taken out from the register and decrypted with the storage key Kstr.
At step S3104, the data (ex. the block information table Kbit 7- and the content key Kcon) decrypted with the storage key Kstr are encrypted with the session key Kses.
The above process steps 3102 to 3104 correspond to processes included in the command numbers u to y in the command register previously described in Fig. 29. These processes are sequentially executed by the recording device cryptography process section 406 187 OL) in accordance with the command numbers u to y received by the command number managing section 2901 of the recording device from O the recording and reproducing device 300.
At the next step S3105, the data (ex. the block information \O table Kbit and the content key Kcon) encrypted with the session key Kses are transmitted from the recording device to the recording and reproducing device.
(1 The above described steps S3102 to S3104 constitute an uninterruptible continuously-executed execution sequence; even if, (o for example, the recording and reproducing device 300 issues a data read command at the end of the decryption process at step S3103, since this read command differs from the command numbers u to y set in the command register 2902 in the ascending order, the command number managing section 2901 does not accept execution of i- the read. Accordingly, the decrypted data resulting from the key exchange in the recording device 400 cannot be read out by an external device, for example, the recording and reproducing device 300, thereby preventing key data or contents from being illegally read out.
2o For the process shown in Figs. 30 and 31, the example is shown where the block information table key Kbit and the content key Kcon are decrypted and encrypted by means of key exchange, but these command sequences stored in the command register 2902 shown in Fig. 29 may include decryption and encryption processes LS involving key exchanges for the content itself. The object to be 188 decrypted or encrypted by means of key exchanges is not limited to the above described example.
The key exchange process after the mutual authentication in the present data processing apparatus has been described. Thus, the key exchange process in the present data processing apparatus can be carried out only after the authentication process between the recording and reproducing device and the recording device has been completed. Further, decrypted data can be prevented from being externally accessed during the key exchange process, thereby io ensuring the improved security of contents and key data.
Plural Content Data Formats and Download and Reproduction Processes Corresponding to Each Format In the above described embodiment, for example, the data format for the medium 500 or communication means 600 shown in Fig.
3 is of the type shown in Fig. 4. The data format for the medium 500 or the communication means 600 is not limited to the one shown in Fig. 4 but preferably depends on the content, that is, whether the content is music, image data, a program such as a game, or the like. A plurality of data formats as well as processes for 2o downloading and reproducing data from and to the recording device 400 will be explained.
Figs. 32 to 35 show four different data formats. A data format used on the medium 500 or the communication means 600 shown in Fig. 3 is shown in the left of each figure, while a data format 189 used in storing data in the external memory 402 of the recording device 400 is shown in the right of each figure. An outline of the data formats shown in Figs. 32 to 35 will first be provided, and the contents of each data in each format and differences among data in each format will be explained.
Fig. 32 shows a format type 0, which is of the same type as that shown as an example in the above description. The format type 0 is characterized in that the entire data are divided into N data blocks each having an arbitrary size, that is, blocks 1 to N, Ic each of which is arbitrarily encrypted so that data can be configured by mixing together encrypted blocks and non-encrypted blocks, that is, plain text blocks. The blocks are encrypted with the content key Kcon, which is encrypted with the distribution key Kdis on the medium or with the storage key Kstr stored in the ij internal memory of the recording device when it is stored in the recording device. The block information key Kbit is also encrypted with the distribution key Kdis on the medium or with the storage key Kstr stored in the internal memory of the recording device when it is stored in the recording device. These key 2b exchanges are carried out in accordance with the process described in Key Exchange Process after Mutual Authentication".
Fig. 33 shows a format type i, in which the entire data are divided into N data blocks, that is, blocks 1 to N, as in the format type 0 but which differs from the format type 0 in that the 1S N blocks are all of the same size. The aspect of the process for 190encrypting blocks with the content key Kcon is similar to that in the format type 0. Additionally, as in the above described format type 0, the content key Kcon and the block information table key Kbit are encrypted with the distribution key Kdis on the medium or with the storage key Kstr stored in the internal memory of the recording device when it is stored in the recording device.
Unlike the format type 0, the format type 1 has a fixed block configuration to simplify configuration data such as data length for each block, thereby enabling a memory size for block (D information to be reduced compared to the format type 0.
In the example of configuration in Fig. 33, each block comprises a set of an encrypted part and a non-encrypted (plain text) part. If the length and configuration of the block are thus regular, each block length or configuration need not be checked (t during the decryption process or the like, thereby enabling efficient decryption and encryption processes. In the format 1, the parts constituting each block, that is, the encrypted part and the non-encrypted (plain text) part can each be defined as an object to be checked, so that the content integrity check value zo ICVi is defined for a block containing a part that must be checked.
Fig. 34 shows a format type 2, which is characterized in that the data are divided into N data blocks all having the same size, that is, blocks 1 to N, each of which is encrypted with an individual block key Kblc. Each block key Kblc is encrypted with the content key Kcon, which is encrypted with the distribution key 191 Kdis on the medium or with the storage key Kstr stored in the internal memory of the recording device when it is stored in the recording device. The block information table key Kbit is also encrypted with the distribution key Kdis on the medium or with the storage key Kstr stored in the internal memory of the recording device when it is stored in the recording device.
Fig. 35 shows a format type 3, which is characterized in that the data are divided into N data blocks all having the same size, that is, blocks 1 to N, each of which is encrypted with an ID individual block key Kblc, as in the format type 2, and in that each block key Kblc is encrypted with the distribution key Kdis on the medium or with the storage key Kstr on the recording device, without the use of the content key. No content key Kcon is present on the medium or on the device. The block information table key Kbit is encrypted with the distribution key Kdis on the medium or with the storage key Kstr stored in the internal memory of the recording device when it is stored in the recording device.
Next, the contents of the data in the above format types 0 to 3 will be described. As previously described, the data are roughly divided into two, that is, the header section and the content section. The header section contains the content ID, the usage policy, the integrity check values A and B, the total integrity check value, the block information table key, the content key, and the block information table.
192 The usage policy stores the data length of a content, its header length, its format type (formats 0 to 3 described below), a content type indicating whether the content is a program or data, a localization flag that determines whether the content can be used only by a particular recording and reproducing device as described in the section relating to the processes for downloading and reproducing a content to and from the recording device, a permission flag for a content copying or moving process, and various localization and process information for the content such io as a content encryption algorithm and a mode.
The integrity check value A: ICVa is used to check the content ID and the usage policy and generated using, for example, the method described in the above described Fig. 23.
The block information table key Kbit is used to encrypt block information table and is encrypted with the distribution key Kdis on the medium or with the storage key Kstr stored in the internal memory of the recording device when it is stored in the recording device, as previously described.
The content key Kcon is used to encrypt a content. For the 1c format types 0 and 1, it is encrypted with the distribution key Kdis on the medium or with the storage key Kstr stored in the internal memory of the recording device when it is stored in the recording device, similarly to the block information table key Kbit. For the format type 2, the content key Kcon is also used to encrypt the block key Kblc configured for each content block.
193 S Additionally, for the format type 3, no content key Kcon is present.
The block information table describes information on the individual blocks and stores the size of each block and a flag OD indicating whether the block has been encrypted, that is, C information indicating whether or not the block is to be checked S (ICV). If the block is to be checked, the block integrity check C value ICVi (the integrity check value for the block i) is defined and stored in the table. This block information table is Io encrypted with the block information table key Kbit.
If the block has been encrypted, the block integrity check value, that is, the content integrity check value ICVi is generated by exclusive-ORing the entire plain text (decrypted text) every 8 bytes and then encrypting the obtained value with I- the content-integrity-check-value-generating key Kicvc stored in the internal memory 307 of the recording and reproducing device 300. Additionally, if the block has not been encrypted, the block integrity check value is generated by sequentially inputting the entire block data (plain text) to a tamper-check-value-generating Zo function shown in Fig. 36 (DES-CBC-MAC using the contentintegrity-check-value-generating key Kicvc) in such a manner that 8 bytes are input each time. Fig. 36 shows an example of a configuration for generating the content block integrity check value ICVi. Each message M constitutes each set of 8 bytes of decrypted text data or plain text data.
194 u For the format type 1, if at least one of the parts in the block is data to be processed with the integrity check value ICVi, that is, a part to be checked, the content integrity check value ICVi is defined for that block. An integrity check value P-ICVij OD s for a part j of a block i is generated by exclusive ORing the C entire plain text (decrypted text) every 8 bytes and then S encrypting the obtained data with the content-integrity-check- S value-generating value Kicvc. In addition, if a part j has not bee encrypted, the integrity check value P-ICVij is generated by to sequentially inputting the entire block data (plain text) to the tamper-check-value-generating function shown in Fig. 36 (DES-CBC- MAC using the content-integrity-check-value-generating key Kicvc) in such a manner that 8 bytes are input each time.
Further, if the block i contains one part having [ICV flag subject of ICV] indicating that it is to be checked, the integrity check value P-ICVij generated using the above method is directly used as the block integrity check value ICVi. If the block i contains a plurality of parts having [ICV flag subject of ICV] indicating that they are to be checked, the integrity check value 2o P-ICVij is generated by connecting a plurality of parts integrity check values P-ICVij together in accordance with part numbers to obtain data and sequentially inputting the entire data (plain data) to the temper-check-value-generating function shown in Fig.
37 (DES-CBC-MAC using the content-integrity-check-value-generating key Kicvc) in such a manner that 8 bytes are input each time. Fig.
195 37 shows an example of configuration for generating the content block content integrity check value ICVi.
O The block integrity check value ICVi is not defined for the format types 2 or 3.
O 5 The integrity check value B:ICVb is used to check the block information table key, the content key, and the entire block information table and generated using, for example, the method (1 described in the previously described Fig. 24.
The total integrity check value ICVt is used to check the io entirety of the previously described integrity check values A: ICVa and B: ICVb and the integrity check value ICVi contained in each block of the content to be checked and is generated by applying the system signature key Ksys to the intermediate integrity check value generated from each integrity check value such as the integrity check value A: ICVa to execute the encryption process as described in the previously described Fig.
For the format types 2 and 3, the total integrity check value ICVt is generated by applying the system signature key Ksys to the 2" intermediate integrity check value generated by connecting the previously described integrity check values A: ICVa and B: ICVb to the content data, that is, the entire content data between the block key in block 1 and the final block, to execute the encryption process. Fig. 38 shows an example of configuration for 196- ;Z generating the total integrity check value ICVt for the format types 2 and 3.
The unique integrity check value ICVdev is substituted with the total integrity check value ICVt if the previously described localization flag is set to i, that is, indicates that the content C. can be used only by a particular recording and reproducing device.
For the format types 0 and i, the unique integrity check value ICVdev is generated to check the previously described integrity check values A: ICVa and B: ICVb and the integrity check value io ICVi contained in each block of the content to be checked.
Specifically, the unique integrity check value ICVdev is generated by applying the recording and reproducing device signature key Kdev to the intermediate integrity check value generated from the integrity check values such as the integrity check value A: ICVa, rs as explained in the previously described Fig. 25 or 38.
Next, processes for downloading a content of each of the format types 0 to 3 from the recording and reproducing device 300 to the recording device 400 and processes executed by the recording and reproducing device 300 to reproduce a content of 2o each of the format types 0 to 3 from the recording device 400 will be described with reference to the flow charts in Figs. 39 to 44.
First, the process for downloading a content of the format type 0 or 1 will be explained with reference to Fig. 39.
The process shown in Fig. 39 is started, for example, by 2 installing the recording device 400 into the recording and 197 reproducing device 300 shown in Fig. 3. At step S101, authentication is executed between the recording and reproducing device and the recording device, and this step is carried out in accordance with the authentication process flow previously described in Fig. If the authentication process at step S101 has been completed to set the authentication flag, then at step S 102, the recording and reproducing device 300 reads data of a predetermined format from the medium 500 via the read section 304, the medium 500 io storing content data, or uses the communication section 305 to receive data from the communication means 600 in accordance with a predetermined format. Then, the control section 301 of the recording and reproducing device 300 transmits the header section of the data to the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300.
Next, at step S103, the control section 306 of the recording and reproducing device cryptography process section 302 causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to calculate the integrity io check value A. The integrity check value A is calculated in accordance with the ICV calculation method described in Fig. 7, using as a key the integrity-check-value-A-generating key Kicva stored in the internal memory 307 of the recording and reproducing device cryptography process section 302 and using the content ID and the usage policy as a message, as shown in Fig. 23. Then at 198step S104, the integrity check value A and the check value: ICVa stored in the header are compared together, and if they are equal, the process proceeds to step S105.
As previously described, the check value A, ICVa is used to 6 verify that the content ID and the usage policy have not been tampered. If the integrity check value A calculated, for example, in accordance with the ICV calculation, using as a key the integrity-check-value-A-generating key Kicva stored in the internal memory 307 of the recording and reproducing device (o cryptography process section 302 and using the content ID and the usage policy as a message, equals the check value: ICVa stored in the header, it is determined that the content ID and the usage policy have not been tampered.
Next, at step 3105, the control section 306 of the recording and reproducing device cryptography process section 302 causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to obtain or generate the distribution key Kdis. The distribution key Kdis is generated using, for example, the master key MKdis for the distribution key, 2o as in step S53 in the previously described Fig. 22.
Then at step S106, the control section 306 of the recording and reproducing device cryptography process section 302 uses the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 as well as the generated distribution key Kdis, to decrypt the block information table key 199 Kbit and content key Knon stored in the header section of the data obtained from the medium 500 via the read section 304 or received from the communication means 600 via the communication section 305.
Further, at step S107, the control section 306 of the recording and reproducing device cryptography process section 302 uses the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to decrypt the block information table with the decrypted block information table key Kbit.
to Further, at step S108, the control section 306 of the recording and reproducing device cryptography process section 302 calculates the integrity check value B (ICVb') from the block information table key Kbit, the content key Kcon, and the block information table (BIT). The integrity check value B is generated, as shown in Fig. 24, by using as a key the integrity-check-value- B-generating key Kicvb stored in the internal memory 307 of the recording and reproducing device cryptography process section 302, to decrypt an exclusive-ORed value based on the DES, the exclusive-ORed value comprising the block information table key 2o Kbit, the content key Kcon, and the block information table (BIT).
Then at step S109, the integrity check value B and the ICVb in the header are compared together, and if they are equal, the process proceeds to step S110.
As previously described, the check value B, ICVb is used to 2S verify that the block information table key Kbit, the content key 200 Kcon, and the block information table have not been tampered. If the integrity check value B generated by using as a key the integrity-check-value-B-generating key Kicvb stored in the internal memory 307 of the recording and reproducing device s cryptography process section 302, dividing the block information table key Kbit, the content key Kcon, and the block information table (BIT) into 8-byte pieces, exclusive-Oring these data, and encrypting the exclusive-ORed data based on the DES, equals the check value: ICVb stored in the header, it is determined that the (o block information table key Kbit, the content key Kcon, and the block information table have not been tampered.
At step S110, the control section 306 of the recording and reproducing device cryptography process section 302 causes the encryption/decryption section 308 of the recording and reproducing s- device cryptography process section 302 to calculate the intermediate integrity check value. The intermediate value is calculated in accordance with the ICV calculation method described in Fig. 7 or the like, using as a key the total-integrity-checkvalue-generating key Kicvt stored in the internal memory 307 of Z, the recording and reproducing device cryptography process section 302 and using the integrity check values A and B and all the held content integrity check values as a message. The intermediate integrity check value generated is stored in the recording and reproducing device cryptography process section 302 of the 2s recording and reproducing device 300 as required.
201 Next, at step Sill, the control section 306 of the recording and reproducing device cryptography process section 302 causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to calculate the total integrity check value ICVt'. As shown in Fig. 25, the total integrity check value ICVt is generated by using as a key a system signature key Ksys stored in the internal memory 307 of the recording and reproducing device cryptography process section 302, to encrypt the intermediate integrity check value based on the DES.
jo Then at step 3112, the total integrity check value ICVt generated and the ICVt' in the header stored at step S112 are compared together, and if they are equal, the process proceeds to step S113.
As previously described in Fig. 4, the total integrity check value ICVt is used to verify that all of the integrity check 1s- values ICVa and ICVb and the integrity check value for each content block have not been tampered. Thus, if the total integrity check value generated by means of the above described process equals the integrity check value: ICVt stored in the Header, it is determined that all of the integrity check values ICVa and ICVb and the integrity check value for each content block have not been tampered.
Then at step S113, the control section 301 of the recording and reproducing device 300 takes content block information out from the block information table (BIT) and checks whether any content block is to be verified. If any content block is to be 202 verified, the content integrity check value has been stored in the block information in the header.
If any content block is to be verified, then at step S114, the control section 301 reads this content block out from the medium 500 using the read section 304 of the recording and reproducing device 300 or received from the communicating means 600 by using the communication section 305 of the recording and reproducing device 300, and transmits the content block to the recording and reproducing device cryptography process section 302 (D of the recording and reproducing device 300. On receiving the content block, the control section 306 of the recording and reproducing device cryptography process section 302 causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to calculate the content integrity check value ICVi'.
If the block has been encrypted, the content integrity check value ICVi is generated by decrypting the input content block in the DES CBC mode using the content key Kcon, exclusive-ORing all of the decrypted text every 8 bytes, and then encrypting the 2o generated content intermediate value with the content-integritycheck-value-generating key Kicvc stored in the internal memory 307 of the recording and reproducing device 300. Additionally, if the block has not been encrypted, the content integrity check value is generated by sequentially inputting the entire block data (plain text) to the tamper-check-value-generating function shown in Fig.
203 36 (DES-CBC-MAC using the content-integrity-check-value-generating key Kicvc) in such a manner that 8 bytes are input each time.
Then at step S115, the control section 306 of the recording and reproducing device cryptography process section 302 compares this content integrity check value with the ICV in the content block received from the control section 301 of the recording and reproducing device 300 at step S102, and passes the result to the control section 301 of the recording and reproducing device 300.
On receiving the result and if the verification has been io successful, the control section 301 of the recording and reproducing device 300 takes out the next content block to be verified and causes the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 to verify this content block. Similar verification 1- processes are repeated until all the content blocks are verified (step Si16) In this regard, if the check values are not equal at any of steps 104, 109, 112, and 115, an error occurs to end the download process.
Then at step S117, the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to encrypt the block information key Kbit and content key Kcon 2- decrypted at step S106, using the session key Kses made sharable 204 during the mutual authentication. The control section 301 of the recording and reproducing device 300 reads the block information table key Kbit and the content key Kcon out from the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 and then transmits them to the recording device 400 via the recording device controller 303 of the recording and reproducing device 300.
Then at step S118, on receiving the block information table key Kbit and the content key Kcon transmitted from the recording 0 and reproducing device 300, the recording device 400 causes the encryption/decryption section 406 of the recording device cryptography process section 401 to decrypt the received data with the session key Kses made sharable during the mutual authentication and to then reencrypt the decrypted data using the iJ storage key Kstr unique to the recording device which is stored in the internal memory 405 of the recording device cryptography process 401. Then, the control section 301 of the recording and reproducing device 300 reads the block information key Kbit and the content key Kcon out from the recording device 400 via the o recording device controller 303 of the recording and reproducing device 300, the block information key Kbit and the content key Kcon being reencrypted with the storage key Kstr. That is, the block information table key Kbit encrypted with the distribution key Kdis is exchanged with the content key Kcon.
205 OJJ Then at step S119, the control section 301 of the recording and reproducing device 300 takes the localization field out from O the usage policy in the header section of the data, to determine whether the downloaded content can be used only in this recording O g and reproducing device 300. If the localization field is set to i, Sthe downloaded content can be used only by the recording and reproducing device 300, if the localization field is set to 0, the (1 downloaded content can also be used by other similar recording and reproducing devices 300. If the result of the determination shows to that the localization field is set to 1, the process proceeds to step S120.
At step S120, the control section 301 of the recording and reproducing device 300 causes the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 to calculate the integrity check value unique to the recording and reproducing device. The integrity check value unique to the recording and reproducing device is generated by using as a key a recording and reproducing device signature key Kdev stored in the internal memory 307 of the recording and zo reproducing device cryptography process section 302, to encrypt the intermediate integrity check value based on the DES, the intermediate integrity check value being generated at step S110.
The calculated integrity check value ICVdev unique to the recording and reproducing device substitutes for the total integrity check value ICVt.
206 As previously described, the system signature key Ksys is used to add a common signature or ICV to the distribution system, and the recording and reproducing device signature key Kdev varies depending on the recording and reproducing device and is used by the recording and reproducing device to add a signature or ICV.
That is, data signed with the system signature key Ksys are successfully checked by a system (recording and reproducing device) having the same system signature key, that is, such data have the same total integrity check value ICVt so as to be io sharable. If, however, data are signed with the recording and reproducing device signature key Kdev, since this signature key is unique to the recording and reproducing device, the data signed with the recording and reproducing device signature key Kdev, that is, the data stored in a recording device after the signing cannot t be reproduced if an attempt is made to reproduce them after this recording device has been inserted in another recording and reproducing device; that is, an error occurs due to the unequal integrity check values ICVdev unique to the recording and reproducing device. In the data processing apparatus according to 2o the present invention, the setting of the localization field enables contents to be arbitrarily set so as to be shared throughout the entire system or used only by particular recording and reproducing devices.
Next, at step S121, the control section 301 of the recording IT- and reproducing device 300 causes the recording and reproducing 207 S device cryptography process section 302 to form a storage data format. As previously described, one of the three format types 0 to 3 is set in the usage policy (see Fig. 5) in the header so that data are formed in accordance with the storage format in the right Sof one of the previously described Figs. 32 to 35 depending on the set type. The flow shown in Fig. 39 is for the format 0 or i, so that the data are formed into one of the formats in Figs. 32 and 33.
Once the storage data format has been completed at step S121, 1o the control section 301 of the recording and reproducing device 300 stores the content in the external memory 402 of the recording device 400 at step S122.
How the process for downloading content data of the format type 0 or 1 is carried out has been described.
i The process for downloading content data of the format type 2 will be explained with reference to Fig. 40. Differences from the above described process for downloading data of the format type 0 or 1 will be focused on.
Steps S101 to S109 are similar to the above described process for downloading data of the format type 0 or i, so description thereof is omitted.
Since the format type 2 has no content integrity check value ICVi defined therefor as previously described, the block information table contains no content integrity check value ICVi.
The intermediate integrity check value in the format type 2 is 208 generated by applying the system signature key Ksys to the intermediate integrity check value generated by connecting the integrity check values A and B to the entire content data between the leading data of the first block (the block key in the block 1) and the final block, to execute the encryption process.
Thus, in the process for downloading data of the format type 2, the content data are read out at step S151, and the intermediate integrity check value is generated based on the integrity check values A and B and the read-out content data at to step S152. In this regard, the content data are not decrypted even if they have been encrypted.
For the format type 2, the processes for decrypting the block data and collating the content integrity check values are omitted contrary to the previously described process for the format type 0 Is- or 1, thereby increasing the processing speed.
The processing at step S111 and subsequent steps is similar to that for the format type 0 or 1, so description thereof is omitted.
How the process for downloading content data of the format type 2 is carried out has been described. As described above, the process for downloading data of the format type 2 omits the processes for decrypting the block data and collating the content integrity check values contrary to the process for the format type 0 or 1, thereby increasing the processing speed; this format is 209 S thus suitable for processing of music data or the like which must be executed in real time.
Next, the process for downloading content data of format type 3 will be described with reference to Fig. 41. The following description will focus on differences from the above described download process for the format types 0, 1, and 2.
Steps S101 to S105 are similar to those of the above described download process for the format types 0, i, and 2.
The process for the format type 3 essentially has many to characteristics in common with that for the format type 2, but differs therefrom in that the format type 3 has no content key in that the block key Kblc is stored in the recording device after encryption with the storage key Kstr.
The following description will focus on the differences between the download process for the format type 3 and that for the format type 2. With the format type 3, at step S161, following step S105, the block information table key is decrypted.
The control section 306 of the recording and reproducing device cryptography process section 302 uses the encryption/decryption 2o section 308 of the recording and reproducing device cryptography process section 302 as well as the distribution key Kdis generated at step S105 to decrypt the block information table key Kbit stored in the header section of the data obtained from the medium 500 via the read section 304 or received from the communication L- means 600 via the communication section 305. With the format type 210 3, data contains no content key Kcon, so that the process for decrypting the content key Kcon is not executed.
At the next step S107, the block information table key Kbit decrypted at step S161 is used to decrypt the block information table, and at step S162, the control section 306 of the recording and reproducing device cryptography process section 302 generates integrity check value B(ICVb') from the block information table key Kbit and block information table (BIT). The integrity check value B is generated by using as a key the integrity-check-value- 1o B-generating key Kicvb stored in the internal memory 307 of the recording and reproducing device cryptography process section 302, to encrypt the exclusive-ORed value comprising the block information table key Kbit and block information table (BIT), based on the DES. Next, at step S109, the integrity check value B and the ICVb in the header are compared together, and if they are equal, the process proceeds to step S151.
With the format type 3, the check value B, ICVb functions to verify that the block information table key Kbit and the block information table have not been tampered. If the integrity check zo value B generated equals the check value: ICVb stored in the header, it is determined that the block information table key Kbit and the block information table have not been tampered.
Steps S151 to S112 are similar to those of the process for the format type 2, and description thereof is omitted.
211 At step S163, the block key Kblc contained in the content data read out at step S151 is decrypted with the distribution key Kdis generated at step S105.
Then at step S164, the recording and reproducing device y cryptography process section 302 of the recording and reproducing device 300 causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to encrypt the block information key Kbit decrypted at step S161 and the block key Kblock decrypted at step S163, using the session Co key Kses made sharable during the mutual authentication. The control section 301 of the recording and reproducing device 300 reads the block information table key Kbit and the block key Kblc out from the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 and then transmits these data to the recording device 400 via the recording device controller 303 of the recording and reproducing device 300.
Then at step S165, on receiving the blockinformation table key Kbit and the block key Kblc transmitted from the recording and reproducing device 300, the recording device 400 causes the a 0 encryption/decryption section 406 of the recording device cryptography process section 401 to decrypt the received data with the session key Kses made sharable during the mutual authentication and to then reencrypt the decrypted data using the storage key Kstr unique to the recording device which is stored in 2- the internal memory 405 of the recording device cryptography 212 process 401. The control section 301 of the recording and reproducing device 300 reads the block information table key Kbit and the block key Kblc reencryted by a storage key Kstr from the recording device 400 via the recording device controller of the recording and reproducing device 300. That is, the block information table key Kbit and block key Kblc initially encrypted with the distribution key Kdis are replaced with the block information table key Kbit and block key Kblc reencrypted with the storage key Kstr.
o The subsequent steps S119 to S122 are similar to those for the format types 0, 1, and 2, so description thereof is omitted.
The aspect of the process for downloading content data of the format type 3 has been described. As described above, the download process for the format type 3 omits the decryption of the block data and the process for collating the content integrity check value as for the format type 2, thereby enabling prompt processing; the format type 3 is thus suitable for processing data such as music data which requires real-tile processing. In addition, since the range within which the encrypted content is 2o protected is localized by the block key Kblc, advanced security is achieved compared to the format type 2.
Next, processes for reproducing data of each of the format types 0 to 3 from the recording device 400 of the recording and reproducing device 300 will be explained with reference to the Z- flow charts in Figs. 42 to 213 First, a process for reproducing a content of the format type 0 will be explained with reference to Fig. 42.
Step S201 corresponds to an authentication process between the recording and reproducing device and the recording device and Sis executed in accordance with the authentication process flow previously described in Fig. Once the authentication process at step S201 has been completed to set the authentication flag, at step S202, the recording and reproducing device 300 reads the header of data of a io predetermined format out from the recording device 400 and transmits it to the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300.
Then at step S203, the control section 306 of the recording and reproducing device cryptography process section 302 causes the 1 encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to calculate the integrity check value A. The integrity check value A is calculated using as a key the integrity-check-value-A-generating key Kicva stored in the internal memory 307 of the recording and reproducing device 2o cryptography process section 302 and using the content ID and the usage policy as a message, as shown in the previously described Fig. 23. Then, the integrity check value A and the check value: ICVa stored in the header are compared together at step S204, and if they are equal, the process proceeds to step S205.
214 The check value A, ICVa is used to verify that the content ID and the usage policy have not been tampered. If the calculated integrity check value A equals the check value: ICVa stored in the header, it is determined that the content ID and the usage policy have not been tampered.
Then at step 3205, the control section 301 of the recording and reproducing device 300 takes out, from the read-out header section, the block information table key Kbit and content key Kcon encrypted with the storage key Kstr unique to the recording device and then transmits them to the recording device 400 via the recording device controller 303 of the recording and reproducing device 300.
On receiving the block information table key Kbit and the content key Kcon transmitted from the recording and reproducing t- device 300, the recording device 400 causes the encryption/decryption section 406 of the recording device cryptography process section 401 to decrypt the received data with the storage key Kstr unique to the recording device which is stored in the internal memory 405 of the recording device zo cryptography process and to then reencrypt the decrypted data using the session key Kses made sharable during the mutual authentication. This process is as previously described in detail in Key Exchange Process after Mutual Authentication.
At step 3206, the control section 301 of the recording and 2- reproducing device 300 receives the block information table key 215 Kbit and content key Kcon reencrypted with the session key Kses, from the recording device 400 via the recording device controller 303 of the recording and reproducing device 300.
Then at step S207, the control section 301 of the recording and reproducing device 300 transmits the received block information table key Kbit and content key Kcon which are reencrypted with the session key Kses, to the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300. On receiving the block 1o information table key Kbit and content key Kcon reencrypted with the session key Kses the content block, the cryptography process section 302 of the recording and reproducing device 300 causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to decrypt these keys Kbit j- and Kcon with the session key Kses made sharable during the mutual authentication.
Further at step S208, the decrypted block information table key Kbit is used to decrypt the block information read out at step S202. The recording and reproducing device cryptography process w2 section 302 of the recording and reproducing device 300 replaces the decrypted block information table key Kbit, content key Kcon, and block information table BIT with the block information table key Kbit, content key Kcon, and block information table BIT contained in the header read out at step S202, to hold the latter.
2s Additionally, the control section 301 of the recording and 216 reproducing device 300 reads the decrypted block information table BIT out from the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300.
Further, at step S209, the control section 306 of the recording and reproducing device cryptography process section 302 generates the integrity check value B(ICVb') from the block information table key Kbit, the content key Kcon, and the block information table (BIT). The integrity check value B is generated, as shown in Fig. 24, by using as a key the integrity-check-valueto B-generating key Kicvb stored in the internal memory 307 of the recording and reproducing device cryptography process section 302, to decrypt the exclusive-ORed value comprising the block information table key Kbit, the content key Kcon, and the block information table (BIT), based on the DES. Then at step S210, the integrity check value B and the ICVb in the header are compared together, and if they are equal, the process proceeds to step S211.
The check value B, ICVb is used to verify that the block information table key Kbit, the content key Kcon, and the block information table have not been tampered. If the integrity check 2o value B generated equals the check value: ICVb stored in the header, it is determined that the block information table key Kbit, the content key Kcon, and the block information table stored in the recording device 400 have not been tampered.
At step S211, the control section 306 of the recording and Lz.> reproducing device cryptography process section 302 causes the 217 encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to calculate the intermediate integrity check value. The intermediate value is calculated in accordance with the ICV calculation method described Sin Fig. 7, using as a key the total-integrity-check-value generating key Kicvt stored in the internal memory 307 of the recording and reproducing device cryptography process section 302 and using the integrity check values A and B in the verified header and all the content integrity check values in the block cD information table as a message as shown in Fig. 25. In this regard, the intermediate integrity check value generated is stored in the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 as required.
is Next, at step S212, the control section 301 of the recording and reproducing device 300 takes the localization field out from the usage policy contained in the header section of the data read from the external memory 402 of the recording device 400 to determine whether the content to be reproduced can be used only by 2io this recording and reproducing device 300 (in this case, the localization field is set to 1) or also by other similar recording and reproducing devices 300 (in this case, the localization field is set to If the result of the determination shows that the localization field is set to i, that is, the reproduced content 9r can be used only by this recording and reproducing device 300, the 218 process proceeds to step S213. If the localization field is set to 0, that is, the reproduced content can also be used by other similar recording and reproducing devices 300, the process proceeds to step S215. The processing at step S211 may be executed by the cryptography process section 302.
At step S213, the control section 301 of the recording and reproducing device 300 causes the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 to calculate the integrity check value ICVdev' unique 1c to the recording and reproducing device. The integrity check value ICVdev' unique to the recording and reproducing device is generated, as shown in Fig. 25, by using as a key a recording and reproducing device signature key Kdev stored in the internal memory 307 of the recording and reproducing device cryptography process section 302, to decrypt the intermediate integrity check value based on the DES, the intermediate integrity check value being held at step S58.
Then at step S214, the integrity check value ICVdev' unique to the recording and reproducing device calculated at step S213 1o and the ICVdev in the header read out at step S202 are compared together, and if they are equal, the process proceeds to step S217.
On the other hand, at step S215, the control section 306 of the recording and reproducing device cryptography process section 302 causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to 219 calculate the total integrity check value ICVt. The total integrity check value ICVt' is generated by using as a key the system signature key Ksys stored in the internal memory 307 of the recording and reproducing device cryptography process section 302, r to decrypt the intermediate integrity check value based on the DES, as shown in Fig. 25. Then at step S216, the total integrity check value ICVt' generated and the ICVt in the header are compared together, and if they are equal, the process proceeds to step S217.
The total integrity check value ICVt and the integrity check to value ICVdev unique to the recording and reproducing device are used to verify that all of the integrity check values ICVa and ICVb and the integrity check value for each content block have not been tampered. Thus, if the total integrity check value generated by means of the above described process equals the integrity check value: ICVt or ICVdev stored in the header, it is determined that all of the integrity check values for each content block have not been tampered.
Next, at step S217, the control section 301 of the recording and reproducing device 300 reads the block data out from the 2zc, recording device 400. Furthermore, at step S218, it is determined whether or not the data have been encrypted, and if the data have been encrypted, the cryptography process section 302 of the recording and reproducing device 300 decrypts the block data. If the data have not been encrypted, the process skips step S219 and advances to step S220.
220 Then at step S220, the control section 301 of the recording and reproducing device 300 checks whether any content block is to be verified, based on the content block information table in the block information table (BIT). If any content block is to be verified, the content integrity check value has been stored in the block information in the header. In this case, the content integrity check value ICVi for this content block is calculated at step S221. If no content block is to be verified, the process skips steps S221 and S222 to advance to step S223.
o 1 If the block has been encrypted as previously described in Fig. 36, the content integrity check value ICVi' is generated by decrypting the input content block with the content key Kcon in the DES CBC mode, exclusive-ORing all of the result every 8 bytes to generate the content intermediate value, and then encrypting i- the obtained value with the content-integrity-check-valuegenerating key Kicvc stored in the internal memory 307 of the recording and reproducing device 300. Additionally, if the block has not been encrypted, the content integrity check value is generated by sequentially inputting the entire data (plain text) bo to the tamper-check-value-generating function shown in Fig. 36 (DES-CBC-MAC using the content-integrity-check-value-generating key Kicvc) in such a manner that 8 bytes are input each time.
At step S222, the control section 306 of the recording and reproducing device cryptography process section 302 compares the 2L generated content integrity check value ICVi' with the ICVi stored 221 in the content block received from the recording device 400 at step S202, and passes the result to the control section 301 of the recording and reproducing device 300. On receiving the result and if the verification has been successful, the content plain data for execution (reproduction) on the RAM of the recording and reproducing device system at step S223. The control section 301 of the recording and reproducing device 300 takes out the next content block to be verified and causes the recording and reproducing device cryptography process section 302 of the Srecording and reproducing device 300 to verify this content block.
Similar verification processes and RAM storage processes are repeated until all the content blocks are verified (step S224) If the check values do not match at any of steps S204, S210, S214, S216, and 3222, an error occurs to end the reproduction process.
When it is determined at step S224 that all the blocks have been read out, the process proceeds to step S225 to start executing and reproducing the content (program or data) The aspect of the process for reproducing content data of the 2o format type 0 has been explained.
Next, the process for downloading content data of the format type 1 will be explained with reference to Fig. 43. The following description will focus on differences from the above described download process for the format type 0.
222 The processing from steps S201 to S217 is similar to that in the above described download process for the format type 0, so description thereof is omitted.
For the format type 1, at step S231, encrypted parts are r decrypted to generate a part ICV. Further at step S232, the block ICVi' is generated. As previously described, with the format type 1, if at least one of the parts in a block contains data to be verified with the integrity check value ICVi, the content integrity check value ICVi is defined for this block. If the part aI j has been encrypted, an integrity check value P-ICVij for a part j of a block i is generated by exclusive-ORing the entire plain text (decrypted text) every 8 bytes and decrypting the obtained value with the content-integrity-check-value-generating key Kicvc.
Additionally, if the part j has not been encrypted, the integrity nr check value P-ICVij is generated by sequentially inputting the entire data (plain text) to the tamper-check-value-generating function shown in Fig. 36 (DES-CBC-MAC using the contentintegrity-check-value-generating key Kicvc) in such a manner that 8 bytes are input each time.
Further, if the block i contains only one part having [ICV flag subject of ICV] indicating that it is to be checked, the integrity check value P-ICVij generated using the above method is directly used as the block integrity check value ICVi. If the block i contains a plurality of parts having [ICV flag subject Z7 of ICV] indicating that they are to be checked, the integrity 223 check value P-ICVij is generated by connecting a plurality of parts integrity check values P-ICVij together in accordance with part numbers to obtain data and sequentially inputting the entire data (plain text) to the tamper-check-value-generating function j shown in Fig. 36 (DES-CBC-MAC using the content-integrity-checkvalue-generating key Kicvc) in such a manner that 8 bytes are input each time. This is the same as explained in Fig. 37.
For the format type i, the content integrity check value generated by means of the above described procedure undergoes ic comparison at step S222. Processing at the next step S223 and the subsequent steps is similar to that for the format type 0, so description thereof is omitted.
Next, the process for reproducing content data of the format type 2 will be explained with reference to Fig. 44. The following 1y description will focus on differences from the above described reproduction processes for the format types 0 and 2.
Steps S201 to S210 is similar to that in the above described reproduction processes for the format types 0 and i, so description thereof is omitted.
L For the format type 2, the processing at steps S211 to S216, which is executed for the format types 0 and 1, is not executed.
In addition, the format type 2 has no content integrity check value, so that verification of the content integrity check value, which is executed for the format types 0 and 1, is not executed.
224 In the data reproduction process for the format type 2, after step S210 for verifying the integrity check value B, the process proceeds to step S217 where the block data are read out under the control of the control section 301 of the recording and reproducing device 300. Further, at step S241, the cryptography process section 306 of the recording and reproducing device 300 decrypts the block key Kblc contained in the block data. The block key Kblc stored in the recording device 400 has been encrypted with the content key Kcon as shown in Fig. 34 and is io thus decrypted with the content key Kcon decrypted at the previous step S207.
Then at step S242, the block key Kblc decrypted at step S241 is used to decrypt the block data. Furthermore, at step S243, the content (program or data) is executed and reproduced. The i- processing from steps S217 to S243 is repeated for all the blocks.
When it is determined at step S244 that all the blocks have been read out, the reproduction process is ended.
As described above, the process for the format type 2 omits the process for verifying the integrity check value such as the 2c) total integrity check value. It thus provides a configuration suitable for executing the decryption process at a high speed and a format suitable for processing data such as music data which requires real-time processing.
Next, the process for reproducing content data of format type 3 will be described with reference to Fig. 45. The following 225 description will focus on differences from the above described reproduction process for the format types 0, 1, and 2.
The process for the format type 3 essentially has many characteristics in common with that for the format type 2, but y differs therefrom in that, as described in Fig. 35, the format type 3 has no content key in that the block key Kblc is stored in the recording device after encryption with the storage key Kstr.
Between steps S201 and S210, processing at steps S251, S252, S253, and S254 is configured to omit the use of the content key to contrary to the corresponding processing for the formats 0, 1, and 2.
At step S251, the control section 301 of the recording and reproducing device 300 takes out, from the read-out header, the block information table key Kbit encrypted with the storage key 1' Kstr unique to the recording device and then transmits this key to the recording device 400 via the recording device controller 303 of the recording and reproducing device 300.
On receiving the block information table key Kbit transmitted from the recording and reproducing device 300, the recording Zc; device 400 causes the encryption/decryption section 406 of the recording device cryptography process section 401 to decrypt the received data with the storage key Kstr unique to the recording device which is stored in the internal memory 405 of the recording device cryptography process section 401 and to then reencrypt the Zr decrypted data using the session key Kses made sharable during the 226 0 mutual authentication. This process is as previously described in detail in Key Exchange Process after Mutual Authentication.
At step S252, the control section 301 of the recording and reproducing device 300 receives the block information table key O T Kbit reencrypted with the session key Kses, from the recording C device 400 via the recording device controller 303 of the recording and reproducing device 300.
Then at step S253, the control section 301 of the recording and reproducing device 300 transmits the received block (o information table key Kbit reencrypted with the session key Kses, to the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300. On receiving the block information table key Kbit reencrypted with the session key Kses the content block, the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to decrypt this block information table key Kbit with the session key Kses made sharable 2o during the mutual authentication.
Further at step S208, the decrypted block information table key Kbit is used to decrypt the block information read out at step S202. The recording and reproducing device cryptography process section 302 of the recording and reproducing device 300 replaces 2- the decrypted block information table key Kbit and block 227 information table BIT with the block information table key Kbit and block information table BIT contained in the header read out at step S202, to hold the latter. Additionally, the control section 301 of the recording and reproducing device 300 reads the decrypted block information table BIT out from the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300.
Further, at step S254, the control section 306 of the recording and reproducing device cryptography process section 302 (o generates the integrity check value B(ICVb') from the block information table key Kbit and the block information table (BIT) The integrity check value B is generated, as shown in Fig. 24, by using as a key the integrity-check-value-B-generating key Kicvb stored in the internal memory 307 of the recording and reproducing device cryptography process section 302, to decrypt the exclusive- ORed value comprising the block information table key Kbit and the block information table (BIT), based on the DES. Then at step S210, the integrity check value B and the ICVb in the header are compared together, and if they are equal, the process proceeds to 2C step S211.
With the format type 3, the block key is further encrypted with the storage key when stored in the recording device, thereby requiring the recording device 400 to execute a decryption processes with the storage key and the session key Kses and also e requiring the recording and reproducing device 300 to execute a 228 decryption process with the session key. This series of steps correspond to the process steps shown as steps S255 and S256.
At step S255, the control section 301 of the recording and reproducing device 300 takes out, from the read-out header, the Sblock key Kblc encrypted with the storage key Kstr unique to the recording device which has been read out at step S217 and then transmits this key to the recording device 400 via the recording device controller 303 of the recording and reproducing device 300.
On receiving the block key Kblc transmitted from the o recording and reproducing device 300, the recording device 400 causes the encryption/decryption section 406 of the recording device cryptography process section 401 to decrypt the received data with the storage key Kstr unique to the recording device which is stored in the internal memory 405 of the recording device cryptography process section 401 and to then reencrypt the decrypted data using the session key Kses made sharable during the mutual authentication. This process is as previously described in detail in Key Exchange Process after Mutual Authentication.
At step S256, the control section 301 of the recording and Z& reproducing device 300 receives the block key Kblc reencrypted with the session key Kses, from the recording device 400 via the recording device controller 303 of the recording and reproducing device 300.
229 IThen, at step S257, the cryptography process section 306 of the recording and reproducing device 300 decrypts the block key Kblc using the session key Kses.
Then at step S242, the block key Kblc decrypted at step 3257 5 is used to decrypt the block data. Furthermore, at step S243, the S content (program or data) is executed and reproduced. The processing from steps S217 to S243 is repeated for all the blocks.
When it is determined at step S244 that all the blocks have been read out, the reproduction process is ended.
The process for reproducing a content of the format type 3 has been described. The format type 3 is similar to the format type 2 in that the process for verifying the total integrity check value is omitted, but provides a processing configuration with a higher security level due to the inclusion of the process for Sexchanging the block key.
(11) Process Executed by Content Provider to Generate Integrity Check Value (ICV) In the above described embodiments, the verification processes with the various integrity check values ICV are executed Zc during downloading or reproduction of a content. Aspects of the process for generating the integrity check values ICV and the verification process will be described below.
First, each of the integrity check value explained in the embodiments will be described in brief. The following integrity 230 S check values ICV are used in the data processing apparatus according to the present invention.
Integrity check value A, ICVa: integrity check value for verifying that the content ID and usage policy in the content data have not been tampered.
Integrity check value B, ICVb: integrity check value for verifying that the block information table key Kbit, the content key Kcon, and the block information table have not been tampered.
Content integrity check value ICVi: integrity check value for to verifying that each content block of the content has not been tampered.
Total integrity check value ICVt: integrity check value for verifying that the integrity check value ICVa, the integrity check value ICVb, and all the integrity check values for the content blocks have not been tampered.
Integrity check value ICVdev unique to the recording and reproducing device: integrity check value that is replaced with the total integrity check value ICVt if the localization flag is set to 1, that is, the content can be used only by a particular 2m recording and reproducing device and that is generated as an integrity check value for the previously described integrity check value A: ICVa, integrity check value B: ICVb, and integrity check value ICVi contained in each block of the content to be checked.
231 Depending on the format, not the check value for each content block but the content itself is checked by the integrity check values ICVt and ICVdev.
Each of the above integrity check value is used in the data processing apparatus according to the present invention. Of these integrity check values, the integrity check values A and B, the total integrity check value, and the content integrity check value are generated by a content provider for providing content data or a content manager based on data to be verified, as shown, for ,o example, in Figs. 32 to 35 and 6 and are stored in the data together with the content before being provided to a user of the recording and reproducing device 300. When downloading or reproducing the content to or from the recording device, the user of the recording and reproducing device, that is, the content user generates verifying ICVs based on each data to be verified, to compare them with the stored ICVs. Additionally, the integrity check value ICVdev unique to the reproducing device is replaced with the total integrity check value ICVt and then stored in the recording device if it is shown that the content can be used only Zr by this recording and reproducing device.
In the above described embodiments, the processes for generating the integrity check values are principally based on the DES-CBC. The present invention, however, is not limited to the above described method but includes various ICV-generating and L verifying process aspects. In particular, for the relationship 232 between the content provider or manager and the content user, the following various ICV-generating and -verifying process configurations are possible.
Figs. 46 to 48 are views useful in explaining a generation process executed by a generator of the integrity check value ICV and a verification process executed by a verifier.
Fig. 46 shows a configuration wherein, for example, an ICV generator who is a content provider or manager executes the process for generating the ICV based on the DES-CBC as described io in the above embodiments and then provides the generated ICV to a recording and reproducing device user, that is, a verifier together with the content. In this case, for the verification process, the recording and reproducing device user, that is, the verifier requires, for example, the keys stored in the internal memory 307 shown in Fig. 18, for generating the corresponding integrity check values. The verifier (recording and reproducing device user) who is the content user uses the integrity-checkvalue-generating key stored in the internal memory 307 to apply the DES-CBC to data to be verified in order to generate the integrity check values and then compares these values with stored integrity check values. In this case, each integrity-check-valuegenerating key is configured so as to be secretly shared by the ICV creator and the verifier.
Fig. 47 shows a configuration wherein the ICV creator who is Z the content provider or manager generates ICVs using a digital 233 signature of a public key cryptosystem and then provides the generated ICVs to the content user, that is, the verifier together with the content and wherein the content user, that is, the verifier stores the public key of the ICV creator and uses this key to verify the ICVs. In this case, the public key of the ICV creator which is held by the content user (recording and reproducing device user), that is, the verifier need not be secret, resulting in easier management. This aspect is thus suitable for ICV generation and management executed at a high security io management level, for example, that executed in one entity.
In Fig. 48, the ICV creator who is the content provider or manager generates ICVs using a digital signature of a public key cryptosystem, then provides the generated ICVs to the content user, that is, the verifier together with the content, further stores a public key used by the verifier for verification, in a public key certificate (see, for example, Fig. 14), and then provides this key to the recording and reproducing device user, that is, the verifier. With a plurality of ICV creators, each creator has a key managing center create data (a public key certificate) for 2.o certifying the validity of the public key.
The content user who is the ICV verifier has a public key of the key managing center. The verifier verifies the public key certificate using the public key of the key managing center, and takes out the public key of the ICV creator stored in the public 2 key certificate if its validity has been ascertained. The 234 verifier further verifies the ICVs using the taken-out public key of the ICV creator.
This method is an aspect useful if a plurality of ICV creators are present and if a center for managing these creators has an established management system.
(12) Configuration for Generating Cryptography Process Keys Based on Master Keys A configuration for generating various cryptography process keys based on the master keys, which configuration is io characteristic of the present data processing system, will be described below.
As previously described with reference to Fig. 18, the internal memory of the recording and reproducing device 300 in the present data processing apparatus stores the various master keys, each of which is used, for example, to generate the authentication key Kate (see Equation 3) or the distribution key Kdis (see Equation 4) When cryptography communication, mutual authentication, MAC generation, verification, or the like is carried out between two 2c entities, that is, the content provider and the content provider, or the recording and reproducing device 300 and the recording device 400 in the present data processing apparatus, these entities conventionally hold secret information common to them, for example, key information. Additionally, when the above 235 process is carried out between one and many entities, for example, one content provider and many content users, or one recording and reproducing device and many recording media, these entities conventionally store and hold secret information common to all the entities, that is, secret information common to many content users or many recording media, or one content provider individually manages and uses secret information (ex. key) for each of many content users.
With the one-to-many relationship as described above, however, to the configuration owning secret information (key) shared by all the entities is disadvantageous in that leakage of the secret from one entity affects all the other entities using the same secret information (ex. key). In addition, when one manager, for example, a content provider individually manages and uses secret 1 information for each content user, a list is required which serves to identify all the users and which associates this identification data with unique secret information (ex. keys), thereby advantageously increasing list maintaining and managing burdens in proportion to the number of users.
The data processing apparatus according to the present invention has solved such a conventional problem with the sharing of secret information between entities using a configuration for holding the master keys and generating various individual keys therefrom. This configuration will be described below.
236 In the data processing apparatus according to the present invention, if different individual keys are required for various cryptography processes, authentication processes, and the like between recording devices, media storing contents, or recording Sand reproducing devices, these individual keys are generated using individual information such as identifier data (ID) unique to the devices or media and an individual-key generating method previously determined in the recording and reproducing device 300.
With this configuration, if any individual key generated should be (o identified, damage to the entire system can be precluded by preventing the corresponding master key from leaking. In addition, the configuration for generating the keys from the master keys eliminates the needs for the association list.
A specific example of configuration will be described with reference to the drawings. Fig. 49 is a view useful in explaining the configuration for generating various keys using the various master keys held by the recording and reproducing device 300. The medium 500 and the communication means 600 in Fig. 49 input contents as in the already described embodiments. The content is Zo encrypted by the content key Kcon, which is in turn encrypted by the distribution key Kdis.
For example, if the recording and reproducing device 300 attempts to take a content out from the medium 500 or the communication means 600 and download it to the recording device 400, the recording and reproducing device 300 must obtain the 237 distribution key Kdis that has encrypted the content key as previously described in Figs. 2 and 39 to 41. Although the key Kdis can be directly obtained from the medium 500 or the communication means 600 or the recording and reproducing device S300 can obtain and store it in its memory beforehand, the configuration for distributing such a key to many users may be subjected to leakage, which may affect the entire system, as described above.
The data processing system according to the present invention lo is configured to generate the distribution key Kdis by applying a master key MKdis for the distribution key stored in the memory of the recording and reproducing device 300 as well as a process based on the content ID, that is, Kdis DES (MKdis, content ID), as shown in the lower part of Fig. 49. In a content distributing configuration between a content provider providing contents from the medium 500 or the communication means 600 and the recording and reproducing device 300, which is a content user, despite a large number of content providers, this configuration enables advanced security to be maintained without the need to distribute Z7c the individual distribution keys Kdis via the medium, the communication means, or the like or to store them in each recording and reproducing device 300.
Next, the generation of the authentication key Kakae will be explained. In downloading a content from the recording and reproducing device 300 to the recording medium 400 as previously 238 described in Figs. 22 and 39 to 41 or causing the recording and reproducing device 300 to execute and reproduce a content stored in the recording medium 400 as described in Figs. 42 to 45, the recording and reproducing device 300 and the recording medium 400 must execute the mutual authentication process (see Fig. As described in Fig. 20, this authentication process requires the recording and reproducing device 300 to have the authentication key Kake. Although the recording and reproducing device 300 can obtain the authentication key directly from, for 1o example, the recording medium 400 or can obtain and store it in its memory beforehand, the configuration for distributing such a key to many users may be subjected to leakage, which may affect the entire system, as in the above described configuration for the distribution key.
1 The data processing system according to the present invention is configured to obtain the authentication key Kake by applying a master key MKake for the distribution key stored in the memory of the recording and reproducing device 300 as well as a process based on the recording device ID: IDmem, that is, Kake DES io (MKake, IDmem), as shown in the lower part of Fig. 49.
Further, in downloading a content from the recording and reproducing device 300 to the recording medium 400 as previously described in Figs. 22 and 39 to 41 or causing the recording and reproducing device 300 to execute and reproduce a content stored Sin the recording medium 400 as described in Fig. 28, Figs. 42 to 239 a configuration similar to that for the distribution or authentication key described above can be used for the recording and reproducing device signature key Kdev required to generate the integrity check value ICVdev unique to the recording and Sreproducing device if the content can be used only by a particular recording and reproducing device. In the above described embodiments, the recording and reproducing device signature key Kdev is stored in the internal memory, but if the master key Mkdev for the recording and reproducing device signature key is stored t in the memory whereas the recording and reproducing device signature key Kdev is not stored therein and if the recording and reproducing device signature key Kdev is obtained by means of Kdes DES (MKdev, IDdev) based on the recording and reproducing device identifier: IDdev and the master key MKdev for the recording and reproducing device signature key, as required, as shown in the lower part of Fig. 49, then it advantageously becomes unnecessary for each apparatus to have the recording and reproducing device signature key Kdev.
In this manner, the data processing apparatus according to 2o the present invention is configured to sequentially generate from the master keys and each ID, information such as a key which is required for the cryptography information process between two entities such as the provider and the recording and reproducing device or the recording and reproducing device and the recording device. Consequently, even if the key information leaks from each 240 entity, the range of damage incurred by the individual keys is further limited, and it also becomes unnecessary to manage key lists for the individual entities as described above.
A plurality of examples of processes relating to this configuration will be explained by showing a flow. Fig. 50 shows examples of a process executed by the content producer or manager to decrypt a content or the like using a master key and a process executed by a user device, for example, the recording and reproducing device 300 in the above described embodiment to Io decrypt the encrypted data using the master key.
At step S501, a content producer or manager imparts an identifier (content identifier) to a content. At step S502, the content producer or manager generates a key for encrypting a content or the like based on its owned master key and a content ID.
i- At this step, if the distribution key Kdis is to be generated, it is generated based on the above described Kdis DES (MKdis, medium ID). Then at step S503, the content producer or manager uses a key (for example, the distribution key Kdis) to encrypt part or all of the content stored in the medium. The content z2 producer supplies the content encrypted through these steps, via the medium such as a DVD, the communication means, or the like.
On the other hand, at step S504, a user device such as the recording and reproducing device 300 reads the content ID from the content data received via the medium such as a DVD, the 2- communication means, or the like. Then at step S505, the user 241 device generates a key applied to decryption of the encrypted content based on the read-out medium ID and its owned master key.
If the distribution key Kdis is to be obtained, this generation process corresponds to, for example, the distribution key Kdis DES (MKdis, medium ID). At step S506, the user device uses this key to decrypt the content, and at step S507, uses, that is, reproduces the decrypted content or execute the program.
In this example, as shown in the lower part of Fig. 50, both the content producer or manager and the user device have the o master key (for example, the distribution-key-generating master key MKdis) to sequentially generate the distribution key required to encrypt or decrypt the content based on their owned master key and each ID (medium ID).
With this system, if the distribution key leaks to a third ly person, the third person can decrypt that content, but contents stored in other media with different content IDs can be prevented from decryption, thereby minimizing the adverse effects of the leakage of one content key on the entire system. Additionally, this system does not require the user device, that is, the recording and reproducing device to hold a key associating list for each medium.
An example where the content producer or manager holds a plurality of master keys to execute a process depending on a content distribution destination with reference to Fig. 52.
242 Step S511 executed by the content producer or manager comprises imparting an identifier (content ID) to the content.
Step S512 comprises selecting one of a plurality of master keys (for example, a plurality of distribution-key-generating master 9 keys MKdis) held by the content producer or manager. Although described in further detail with reference to Fig. 52, this selection process comprises setting an applied master key beforehand for each of the countries to which content users belong, each apparatus type, or each apparatus version and executing the io master keys in accordance with the settings.
Then at step S513, the content producer or manager generates an encryption key based on the master key selected at step S512 and the content ID determined at step S511. If, for example, the distribution key Kdis is to be generated, it is generated based on kT the above described Kdis DES (MKdis, medium ID). Then at step 3514, the content producer or manager uses a key (for example, the distribution key Kdisi) to encrypt part or all of the content stored in the medium. At step S515, the content producer distributes the encrypted content via the medium such as a DVD, 2o the communication means, or the like, using a distribution unit comprising the content ID, the master-key-generating information used, and the encrypted content.
On the other hand, at step S516, for example, the user device such as a recording and reproducing device 300 determines whether 2s or not its holds the master key corresponding the master key ID in 243 the content data distributed by the medium such as a DVD or by the communication means. If it does not have the master key corresponding to the master key ID in the content data, the distributed content cannot be used by this user device and the t process is ended.
If the user device has the master key corresponding to the master key ID in the content data, then at step S517, it reads the content ID out from the content data received via the medium, the communication means, or the like. Then at step S518, Lhe user lo device generates a key applied to decryption of the encrypted content based on the read-out content ID and its held master key.
This process is a distribution-key Kdisi DES (Mkdisi, contents ID) if it intends to get a distribution key Kdisi. At step S519 contents are decrypted by means of the key. At step 3520 i' decrypted contents are used, that is, reproduction or program is performed.
In this example, as shown in the lower part of Fig. 51, the content producer or manager has a master key set comprising a plurality of master keys, for example, distribution-key-generating Lc. master keys MKdis 1 to n. On the other hand, the user device has one master key, for example, one distribution-key-generating master key KKdisi so that it can decrypt the content only when the content producer or manager has used the key KKdisi for the encryption.
244 Fig. 52 shows an example where master keys varying depending on the country is applied, as a specific example of the aspect shown in the flow in Fig. 51. The content provider has master keys MKl to n, of which the key MKl is used to generate keys for Sencrypting contents distributed to user devices for Japan. For example, an encryption key K1 is generated from a content ID and the key MKl and then user to encrypt a content. The master keys MK1 to n are further set such that the key MK2 is used to generate keys for encrypting contents distributed to user devices for the jo and the key MK3 is used to generate keys for encrypting contents distributed to user devices for the EU (Europe) On the other hand, for user devices for Japan, specifically, recording and reproducing devices such as PCs or game apparatuses which are sold in Japan, the master key MKl is stored in their internal memories, for user devices for the the master key MK2 is stored in their internal memories, and for user devices for the EU, the master key MK3 is stored in their internal memories.
With this configuration, the content provider selectively uses one of the master keys MKl to n depending on user devices i-o that can use a content, in order to encrypt the content to be distributed to the user devices. For example, to allow the content to be used only by the user devices for Japan, the master key K1 generated using the master key MKl is used to encrypt the content. This encrypted content can be decrypted using the master 2T key MKl stored in the user devices for Japan, that is, allows a 245 decryption key to be generated, whereas the key K1 cannot be obtained from the master keys MK2 and MK3 stored in the user devices for the U.S. and Et, respectively, thereby preventing the encrypted content from being decrypted.
this manner, the content provider can selectively use a plurality of master keys to set localization for various contents.
Fig. 52 shows an example where the different master keys are used for the different countries to which the user devices belong, but various use forms are possible; for example, the master key can be io switched depending on the type of the user device or its version, as described above.
Next, Fig. 53 shows an example of a process where an identifier unique to a medium, that is, a medium ID and a master key are combined together. Here, the medium refers to, for iT example, DVDs or CDs in which contents are stored. The medium ID may be unique to individual media, the titles of contents such as movies, or individual medium manufacturing lots. In this manner, medium IDs may be assigned in various manners.
At step S52, a medium producer or manager determines an identifier (medium identifier) for a medium. At step S522, the medium producer or manager generates a key for encrypting a content stored in the medium based on its owned master key and a medium ID. At this step, if, for example, the distribution key Kdis is to be generated, it is generated based on the above is described Kdis DES (MKdis, medium ID). Then at step S523, the 246 medium producer or manager uses a key (for example, the distribution key Kdis) to encrypt part or all of the content stored in the medium. The medium producer supplies the medium storing the content encrypted through these steps.
T On the other hand, at step S524, a user device such as the recording and reproducing device 300 reads the medium ID from the supplied medium. Then at step S525, the user device generates a key applied to decryption of the encrypted content based on the read-out medium ID and its owned master key. If the distribution it key Kdis is to be obtained, this generation process corresponds to, for example, the distribution key Kdis DES (MKdis, medium ID).
At step S526, the user device uses this key to decrypt the content, and at step S527, uses, that is, reproduces the decrypted content or execute the program.
i In this example, as shown in the lower part of Fig. 53, both the medium producer or manager and the user device have the master key (for example, the distribution-key-generating master key MKdis) to sequentially generate the distribution key required to encrypt or decrypt the content based on their owned master key and 2D each ID (medium ID) With this system, if any medium key leaks to a third person, the third person can decrypt the content in the medium, but contents stored in other media with different medium IDs can be prevented from decryption, thereby minimizing the adverse effects of the leakage of one medium key on the entire system.
247 Additionally, this system does not require the user device, that is, the recording and reproducing device to hold a key associating list for each medium. Further, the size of a content encrypted with one medium key is limited to a capacity that can be stored within that medium, so that there is a slim possibility that the content reaches the amount of information required to attack the encrypted text, thereby reducing the possibility of decrypting the encrypted text.
Next, Fig. 54 shows an example of a process where an (o identifier unique to the recording and reproducing device, that is, a recording and reproducing device ID and a master key are combined together.
At step S531, a recording and reproducing device user generates a key for encrypting a content or the like based on a Smaster key and a recording and reproducing device ID stored, for example, in the internal memory of the recording and reproducing device. If, for example, the content key Kcon is to be obtained, this generation process corresponds to Kcon DES (MKcon, recording and reproducing device ID). Then at step S532, the user Suses a key (form example, the distribution key Kcon) to decrypt the content. At step S533, the user stores the encrypted content in the recording and reproducing device such as a hard disk.
On the other hand, when the recording and reproducing device user that has stored the content requests the stored data to be recovered, a system manager for managing the recording and 248 reproducing device reads a recording and reproducing device ID from the recording and reproducing device. Then at step S535, the system manager generates a key applied to recovery of the encrypted content based on the read-out recording and reproducing device ID and its owned master key. If the content key Kcon is to be obtained, this generation process corresponds to, for example, the content key Kcon DES (MKcon, recording and reproducing device ID). At step S536, the user device uses this key to decrypt the content.
o In this example, as shown in the lower part of Fig. 54, both the recording and reproducing device user and the system manager have the master key (for example, the content-key-generating master key MKcon) to sequentially generate the distribution key required to encrypt or decrypt the content based on their owned i> master key and each ID (recording and reproducing device ID) With this system, if the content key leaks to a third person, the third person can decrypt that content, but contents stored in other media with different recording and reproducing device IDs can be prevented from decryption, thereby minimizing the adverse io effects of the leakage of one content key on the entire system.
Additionally, this system does not require the system manager or the user device to hold a key associating list for each medium.
Fig. 55 shows a configuration wherein an authentication key used for a mutual authentication process between a slave device, for example, the recording and reproducing device such as a memory 249 card and a host device, for example, the recording and reproducing device is generated based on a master key. Although in the previously described authentication process (see Fig. 20), the authentication key is stored in the internal memory of the slave Sdevice in advance, it can be generated during the authentication process based on the master key as shown in Fig. For example, at step S541, the slave device that is the recording device generates, as an initialization process before starting the authentication process, the authentication key Kake Io for use in the mutual authentication process based on the master key and slave device ID stored in the internal memory of the slave device that is the recording device. The authentication key is generated based on Kake DES (MKake, slave device ID). Then at step S542, the generated authentication key is stored in the Smemory.
On the other hand, at step S543, the host device such as the recording and reproducing device reads a slave device ID out from the installed recording device, that is, the slave device via the communication means. Then at step S544, the host device generates Zo a authentication key applied to a mutual authentication process based on the read-out slave device ID and its owned authentication-key-generating master key. This generation process corresponds to, for example, the authentication key Kake DES (MKake, slave device ID). At step S545, this authentication key 2 is used to execute the authentication process.
250 In this example, as shown in the lower part of Fig. 55, both the slave device and the master device have the master key, that is, the authentication-key-generating master key MKake to sequentially generate the distribution key required for the Sauthentication process based on their owned master key and the slave device ID.
With this system, if the authentication key leaks to a third person, this authentication key is effective only on the corresponding slave device and authentication is not established o with other slave devices, thereby minimizing the adverse effects of the leakage of the key.
As described above, the data processing apparatus according to the present invention is configured so that the information such as the key which is required for the procedure for the i1 cryptography information process between the two entities such as the content provider and the recording and reproducing device, or the recording and reproducing device and the recording device.
Thus, even if the key information leaks from each entity, the range of damage incurred by the individual keys is further limited, and it also becomes unnecessary to manage key lists for the individual entities as described above.
(13) Control of Cryptography Intensity in Cryptography Process In the above described embodiments, the cryptography process between the recording and reproducing device 300 and the recording 251 device 400 is principally described in conjunction with the example using the cryptography process based on the single DES configuration described with reference to Fig. 7. The encryption process method applied to the present data processing apparatus is c- not limited to the above described Single DES, but any encryption method may be employed depending on a required security state.
For example, the Triple DES method configured as shown in the previously described Figs. 8 to 10 is applicable. For example, both the cryptography process section 302 of the recording and ro reproducing device 300 and the cryptography process section 401 of the recording device 400 shown in Fig. 3 can be configured so as to execute the Triple DES method so that a process can be executed which corresponds to the cryptography process based on the Triple DES method described in Figs. 8 to The content provider, however, may give top priority to processing speed dependent on the content to use a 64-bit content key Kcon based on the Single DES method, or gives top priority to security to use a 128- or 192-bit content key Kcon based on the Triple DES method. Accordingly, it is not preferable to configure 2o the cryptography process section 302 of the recording and reproducing device 300 and the cryptography process section 401 of the recording device 400 so as to accommodate only one of the Triple and Single DES methods. Therefore, the cryptography process section 302 of the recording and reproducing device 300 lI and the cryptography process section 401 of the recording device 252 400 are desirably configured so as to accommodate both the Triple and Single DES methods.
However, to configure the cryptography process section 302 of the recording and reproducing device 300 and the cryptography process section 401 of the recording device 400 so as to execute both the Triple and Single DES methods, different circuits and logics must be configured for these cryptography process sections.
For example, to allow the recording device 400 to execute a process corresponding to the Triple DES, a command set for the io Triple DES must be stored in the command register shown in the above Fig. 29. This may complicate the process section configured in the recording device 400.
Thus, for the present data processing apparatus, a configuration is proposed wherein the logic of the cryptography Ir process section 401 of the recording device 400 is configured to accommodate the Single DES, while executing a process corresponding to the Triple DES process to store data (keys, contents, or the like) encrypted based on the Triple DES method in the external memory 402 of the recording device.
2C For example, in the example for the data format type 0 shown in Fig. 32, when content data are downloaded from the recording and reproducing device 300 to the recording device 400, the authentication process is executed at step S101 in the previously described Fig. 39 showing the flow of downloading data of the format type 0, and the session key Kses is generated. Further, at 253 step S117, the cryptography process section 302 of the recording and reproducing device 300 encrypts the content key Kcon with the session key Kses and transmits the encrypted key to the recording device 400 via the communication means. At step S118, the cryptography process section 403 of the recording device 400, which has received the encrypted key, decrypts the content key Kcon with the session key Kses, further encrypts it with the storage key Kstr, and transmits the resulting key to the cryptography process section 302 of the recording and reproducing io device 300. The recording and reproducing device 300 subsequently forms a data format (step S121) and transmits formatted data to the recording device 400, and the recording device 400 stores the received data in the external memory 402.
If the cryptography process executed by the cryptography ty process section 401 of the recording device 400 between steps S117 and S118 of the above process is configured to selectively execute either the Single or Triple DES method, the cryptography process section works whether the content provider provides content data using the content key Kcon in accordance with the Triple DES or _o the Single DES.
Fig. 56 shows a flow useful in explaining a configuration for executing the cryptography process method in accordance with the Triple DES method, using both the cryptography process section 302 of the recording and reproducing device 300 and the cryptography 17 process section 401 of the recording device 400. Fig. 56 shows an 254 example of a process for encrypting the content key Kcon with the storage key Kstr which process is executed in downloading content data from the recording and reproducing device 300 to the recording device 400, wherein the content key Kcon is based on the Triple DES method. Here, the example of the process for the content key Kcon is shown, but other keys or other data such as contents can be similarly processed.
The Triple DES method uses two or three keys in such a manner that a 64-bit key is used for the Single DES, while a 128- or 192- ,o bit key is used for the Triple DES, as previously described in Figs. 8 to 10. These three content keys Kcon are referred to as Kconl, Kcon2, and (Kcon3). The Kcon3 is shown in the parentheses because it may not be used.
The process in Fig. 56 will be explained. At step S301, the mutual authentication process is carried out between the recording and reproducing device 300 and the recording device 400. This mutual authentication process step is executed during the process in the previously described Fig. 20. During this authentication process, the session key Kses is generated.
Lo Once the authentication process at step S301 has been completed, the integrity check values ICV including the integrity check values A and B, the content integrity check value, and the total integrity check value are collated.
When all the check values (ICV) have been collated and it has z2 been determined that no data have been tampered, the process 255 proceeds to step S303 where the control section 306 of the recording and reproducing device cryptography process section 302 O of the recording and reproducing device 300 uses the encryption/decryption section 308 of the recording and reproducing F device cryptography process section 302 as well as the previously Sobtained or generated distribution key Kdis, to decrypt the content Kcon stored in the header section of the data obtained CI from the medium 500 or received from the communication means 600 via the communication section 305. The content key in this case ,e is a triple DES type key, such as content keys Kconl, Kcon2, and (Kcon3) Then at step S304, the control section 306 of the recording and reproducing device cryptography process section 302 causes the encryption/decryption section 308 of the recording and reproducing i device cryptography process section 302 to encrypt only the content key Kconl of the content keys Kconl, Kcon2, and (Kcon3) decrypted at step S303, using the session key Kses made sharable during the mutual authentication.
The control section 301 of the recording and reproducing 2o device 300 reads data containing the content key Kconl encrypted with the session key Kses, out from the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300. The control section 301 then transmits these data to the recording device 400 via the recording device z- controller 303 of the recording and reproducing device 300.
256 Then at step S305, on receiving the content key Kconl transmitted from the recording and reproducing device 300, the recording device 400 causes the encryption/decryption section 406 of the recording device cryptography process section 401 to decrypt the received content key Kconl using the session key Kses made sharable during the mutual authentication. Further at step S306, the recording device 400 causes the encryption/decryption section 406 to reencrypt the decrypted content key with the storage key Kstr unique to the recording device which is stored in the internal memory 405 of the recording device cryptography process, and then transmits the reencrypted key to the recording and reproducing device 300 via the communication section 404.
Then at step S307, the control section 306 of the recording and reproducing device cryptography process section 302 causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to encrypt only the content key Kcon2 of the content keys Kconl, Kcon2, and (Kcon3) decrypted at step S303, using the session key Kses made sharable during the mutual authentication.
The control section 301 of the recording and reproducing device 300 reads data containing the content key Kcon2 encrypted with the session key Kses, out from the recording and reproducing device cryptography process section 302 of the recording and reproducing device 300. The control section 301 then transmits 257 o these data to the recording device 400 via the recording device controller 303 of the recording and reproducing device 300.
Then at step 3308, on receiving the content key Kcon2 transmitted from the recording and reproducing device 300, the recording device 400 causes the encryption/decryption section 406 of the recording device cryptography process section 401 to decrypt the received content key Kcon2 using the session key Kses C- made sharable during the mutual authentication. Further at step S309, the recording device 400 causes the encryption/decryption section 406 to reencrypt the decrypted content key with the storage key Kstr unique to the recording device which is stored in the internal memory 405 of the recording device cryptography process section 401, and then transmits the reencrypted key to the recording and reproducing device 300 via the communication section 404.
Then at step 3310, the control section 306 of the recording and reproducing device cryptography process section 302 causes the encryption/decryption section 308 of the recording and reproducing device cryptography process section 302 to encrypt only the content key Kcon3 of the content keys Kconl, Kcon2, and (Kcon3) decrypted at step S303, using the session key Kses made sharable during the mutual authentication.
The control section 301 of the recording and reproducing device 300 reads data containing the content key Kcon3 encrypted S with the session key Kses, out from the recording and reproducing 258 device cryptography process section 302 of the recording and reproducing device 300. The control section 301 then transmits these data to the recording device 400 via the recording device controller 303 of the recording and reproducing device 300.
Then at step S311, on receiving the content key Kcon3 transmitted from the recording and reproducing device 300, the recording device 400 causes the encryption/decryption section 406 of the recording device cryptography process section 401 to decrypt the received content key Kcon3 using the session key Kses made sharable during the mutual authentication. Further at step S312, the recording device 400 causes the encryption/decryption section 406 to reencrypt the decrypted content key with the storage key Kstr unique to the recording device which is stored in the internal memory 405 of the recording device cryptography process, and then transmits the reencrypted key to the recording and reproducing device 300 via the communication section 404.
Then at step S313, the cryptography process section of the recording and reproducing device forms the various data formats described in Figs. 32 to 35 and transmits them to the recording device 400.
Finally, at step S314, the recording device 400 stores the received formatted data in the external memory 402. These format data contain the content keys Kconl, Kcon2, and (Kcon3) encrypted with the storage key Kstr.
259 This process enables the content keys stored in the recording device 400 to be stored as keys based on the Triple DES cryptosystem. If only two content keys Kconl and Kcon2 are used, the processing from steps S310 to S312 is omitted.
As described above, the recording device 400 can store the keys with the Triple DES applied thereto in the memory by repeating processing of the same aspect, that is, the process steps at steps S305 and S306 plural times with only the target changed. If the Single DES is applied to the content keys Kcon, step S305 and S306 may be executed to carry out the formatting process at step S313 before storing the keys in the memory. Such a configuration may store commands for executing the processing at steps S305 and S306 in the command register in the previously described Fig. 29 and execute this processing one to three times depending on the aspect of the key, that is, whether the key is based on the Triple or Single DES method. Accordingly, the processes based on both the Triple and Single DES methods can be executed without containing the Triple DES process method in the process logic of the recording device 400. In this regard, the cryptosystem may be recorded in the usage policy in the header section of the content data so as to be determined by referencing the usage policy.
(14) Program Activation Process Based on Activation Priority in Usage Policy in Content Data 260 As understood from the content data configurations in the previously described Figs. 4 to 6, the usage policy stored in the header section of the content data used in the present data processing apparatus contains the content type and the activation t priority. With a plurality of accessible content data recorded in various recording media such as the recording device 400, a DVD, a CD, a hard disk, or a game cartridge, the recording and reproducing device 300 in the present data processing apparatus determines the order in which these contents are activated, in accordance with the activation priority.
The recording and reproducing device 300 executes the mutual authentication with various recording devices such as each recording device DVD device, CD drive device, and hard disk drive device and then executes the program in the content data with the top priority in accordance with the priority in the content data.
The "Program Activation Process Based on Activation Priority in Usage Policy in Content Data" will be explained below.
The above description of the present data processing apparatus focuses on the process executed if the recording and LO reproducing device 300 reproduces and executes content data from the one recording device 400. However, the recording and reproducing device 300 is generally configured so as to access, in addition to the recording device 400,a DVD, a CD, and a hard disk via the read section 304 as well as recording media such as a JG9 memory card and a game cartridge which are connected via the 261 t PI0111 or SI0112. In Fig. 2, only one read section 304 is described in order to avoid complicating the drawing, the O recording and reproducing device 300 can have different recording media, for example, a DVD, a CD, a floppy disk, and a hard disk O installed therein in parallel.
The recording and reproducing device 300 can access a Splurality of recording media, each of which store content data.
Cl Content data supplied by an external content provider such as a CD are stored in the medium in the data configuration shown in the previously described Fig. 4 or in each recording medium such as a memory card in the content data configuration shown in Figs. 26 or 27 if the data are taken out from the medium or downloaded via the communication means. Furthermore, specifically, the content data are stored on the medium and the recording device in different formats depending on the format type thereof, as shown in Figs. 32 to 35. In either case, the usage policy in the header of the content data contains the content type and the activation priority.
A process executed by the recording and reproducing device to activate a content if a plurality of content data are accessible .o will be explained in accordance with the flow.
Fig. 57 shows a process flow showing an example of a process where there a plurality of contents that can be activated.
At step S611, recording devices that are accessible to the recording and reproducing device 300 are authenticated. The dL accessible recording devices include a memory card, a DVD device, 262 a CD drive, a hard disc device, and a game cartridge or the like which is connected, for example, via the PI0111 or SI0112. Each O recording device is authenticated under the control of the control section 301 shown in Fig. 2, for example, in accordance with the O procedure previously explained in Fig. SNext, at step S612, programs that can be activated are detected from the content data stored in the memory of the (1 successfully authenticated recording device. Specifically, this is executed as a process of extracting contents for which the content type contained in the usage policy of the content data indicates a program.
Then at step 3613, the priority of the program that can be activated and which has been extracted at step S612 is determined.
Specifically, this corresponds to a process of comparing the priorities contained in the usage policies in the headers of the plurality of content data that can be activated in step S612, to select the top priority.
Then at step S614, the selected program is activated. If the plurality of programs that can be activated have the same priority, S default priorities are set for the recording devices so that the content program stored in the device with the top priority is executed.
Fig. 58 shows an example of a process where identifiers are set for a plurality of recording devices so that the authentication and the retrieval of a content program are 263 o sequentially executed for the recording devices with the identifiers, that is, a process for a plurality of contents that can be activated.
At step S621, recording devices installed in the recording and reproducing device 300 are authenticated. A plurality of recording device 400 are sequentially imparted with identifiers 1 to n.
C-i At step S622, it is determined whether or not the authentication at step S621 has been successful, and if so, the process proceeds to step S623 where programs that can be activated are retrieved from the recording media of the recording devices If the authentication has failed, the process proceeds to step S627 where it is determined whether or not there is a new recording device from which a content can be retrieved. Without such a recording device, the process is ended, and otherwise the process advances to step S628 to update the recording device identifier i and repeat step S621 and the subsequent authentication process steps.
At step S623, programs that can be activated are detected from the content data stored in the recording devices (i) Specifically, this is executed as a process of extracting contents for which the content type contained in the usage policy of the content data indicates a program.
At step S624, it is determined whether or not the contents of S which the content type is a program have been extracted. If such 264 contents have been extracted, one of the extracted programs which has the top priority is selected at step 3626, and the selected program is executed at step S626.
If it is determined at step S624 that no content of which the content type is a program has been extracted, the process proceeds to step S627 to determine whether or not there is a new recording device from which a content can be retrieved. Without such a CI recording device, the process is ended, and otherwise, the process proceeds to step S628 to update the recording device identifier i and repeat step S621 and the subsequent authentication process steps.
Fig. 59 shows a process flow showing an example of a process for a plurality of contents that can be activated. At step S651, recording devices that are accessible to the recording and reproducing device 300 are authenticated. Accessible DVD device, CD drive, hard disc device, and game cartridge or the like are authenticated. Each recording device is authenticated under the control of the control section 301 shown in Fig. 2, for example, in accordance with the procedure previously explained in Fig. 0 Next, at step S652, programs that can be activated are detected from the content data stored in the memory of the successfully authenticated recording device. Specifically, this is executed as a process of extracting contents for which the content type contained in the usage policy of the content data S indicates a program.
265 to Then at step S653, information such as the name of the program that can be activated and which has been extracted at step S652 is displayed on a display means. Although the display means is not shown in Fig. 2, AV output data are output to the display means (not shown). User provided information such as a program Cname for each content data is stored in the content ID of the S content data so that program information such as a program name C' for each authenticated content data is output to the output means via the control section 301 under the control of the main CPU 106 shown in Fig. 2.
Then at step S654, the main CPU 106 receives the user's program selection input from the input means such as the input interface, controller, mouse, or keyboard shown in Fig. 2 via the interface 110, and at step S655, executes the user selected program in accordance with the selection input.
As described above, in the data processing apparatus according to the present invention, the program activation priority is stored in the usage policy in the header of the content data so that the recording and reproducing device 300 0 activates programs in accordance with this priority or the display means displays activated program information from which the user selects a desired program. This configuration eliminates the need for the user to retrieve programs to save the amount of time and labor required for the activation. Additionally, the programs G that can be activated are activated after all the recording 266 devices have been authenticated or are shown to be such programs, thereby eliminating the complicatedness of the process such as the need to validate a program after selection.
Content Configuring and Reproducing (Decompressing) Process In the data processing apparatus according to the present invention, the recording and reproducing device 300 downloads a content from the medium 500 or the communication means 600 or reproduces data from the recording device 400, as described above.
The above description focuses on the processing of encrypted data associated with the downloading or reproduction of a content.
The control section 301 of the recording and reproducing device 300 in Fig. 3 generally controls the authentication, encryption, and decryption processes associated with the downloading or reproduction of content data from the device 500 such as a DVD which provides content data, the communication means 600, or the recording device.
Reproducible contents resulting from these processes are, for example, sound or image data or the like. Decrypted data from the control section 301 are placed under the control of the main CPU shown in Fig. 2 and output to the AV output section depending on the sound or image data or like. If, however, the content is, for example, sound data that have been MP3-compressed, an MP3 decoder in the AV output section shown in Fig. 2 decrypts and outputs the 267 o sound data. In addition, if the content data are images that have been MPEG2-compressed, an MP2 decoder in the AV output section O decompresses and outputs the image data. In this manner, the data contained in the content data may have or have not been compressed (encoded), and are output after being processed depending on the O content.
0 However, due to various types of compression and 0 C- decompression process programs, even if the content provider provides compressed data, these data cannot be reproduced without a corresponding decompression process executing program.
Thus, the present invention discloses a data processing apparatus wherein compressed data and a decryption (decompression) process program therefor are stored in a data content or link information for the compressed data and the decryption (decompression) process program therefor is stored as header information in the content data.
Fig. 60 is a view obtained by simplifying elements from the general view of data processing shown in Fig. 2 which relate to this configuration. The recording and reproducing device 300 S receives various contents from the device 500 such as a DVD or a CD, the communication means 600, or the recording device 400 such as a memory card which stores contents. These contents include various data such as sound data, still images, animated image data, and program data which have or have not been encrypted or v2 compressed.
268 u If the received content has been encrypted, the decryption process is executed using a method such as that described above and based on the control of the control section 301 and the cryptography process by the cryptography process section 302. The O decrypted data are transferred to the AV process section 109 under the control of the CPU 106, where the data are stored in a memory 3090 of the AV process section 109. Then, a content analysis section 3091 analyzes the configuration of the content. If, for example, a data decompressing program is stored in the content, it is stored in a program storage section 3093. If, the content contains sound or image data or the like, these data are stored in a data storage section 3092. A decompression process section 3094 uses a decompression process program such as MP3 which is stored in the program storage section, to decompress compressed data stored in the data storage section 3092. The data are then output to speakers 3001 or a monitor 3002.
Next, some examples of configurations of data received by the AV process section 109 via the control section 301 and of relevant processes will be explained. Here, sound data will be shown as an example of a content, and a content with the MP3 applied thereto will be described as a representative compression program. This configuration, however, is applicable to image data as well as sound data, and not only the MP3 decompression process program but also other various such programs for MPEG2 or MPEG4 can be applied S thereto.
269o0 Fig. 61 shows an example of the configuration of a content.
This figure shows music data 6102 compressed by means of the MP3 3 and a MP3 decryption (decompression) process program 6101, which are integrated together into one content. Such contents are each o stored in the medium 500 or the recording device 400 and S distributed from the communication means 600, as a single content.
j If these contents have been encrypted as previously described, the recording and reproducing device 300 uses the cryptography process section 303 to decrypt the content and then transfers it to the AV process section 109.
The content analysis section 3091 of the AV process section 109 analyzes the received content, takes a sound data decompression program (MP3 decoder) section out from the content, comprising a sound data decompression program (MP3 decoder) section and a compressed sound data section, and stores it in the program storage section 3093 while storing the compressed sound data in the data storage section 3092. The content analysis section 3091 may receive information such as a content name or content configuration information in addition to the content, or analyze the content based on identification data such as a data name or other data such as a data length or a data configuration which are all contained in the content. Then, a compression and decompression process section 3094 decompresses the MP3compressed sound data stored in the data storage section 3092 in accordance with the sound data decompression program (MP3 decoder) 270 stored in the program storage section 3093. The AV process section 109 then outputs the decompressed sound data to the O speakers 3001.
Fig. 62 shows a flow showing an example of a process for NO reproducing data of the content configuration in Fig. 61. At step S671, a data name stored in the memory 3090 of the AV process section 109, for example, information such as the title of music S present if the content is sound data is taken out from the information received separately from the content or from data in the content, and is then displayed on the monitor 3002. At step S672, the user's selection is received from one of the various input means such as the switches and the keyboard via the input interface 110, and a reproduction process command based on user input data is then output to the AV process section 109 under the control of the CPU 106. At step S673, the AV process section 109 extract and decompress data selected by the user.
Next, Fig. 63 shows an example of a configuration wherein a content contains either the compressed sound data or the decompression process program and also contains content QO information indicating what the content contains, as header information for each content.
As shown in Fig. 63, if the content is a program 6202, the content contains as header information 6201 content identification information indicating that this is a program and that the type of program is to be MP3-decompressed. On the other hand, if sound 271 data 6204 are contained as a content, the content information in the header 6203 indicates that the data have been MP3-compressed.
This header information can be configured by selecting only information required for reproduction from the data contained in the usage policy (see Fig. 5) in the above described content data configuration shown, for example, in Fig. 4 and adding this information to the content transferred to the AV process section 109. Specifically, identification values for usage policy data required for the cryptography process section 302 and for data required for the AV process section 109 during the reproduction process are added to each constituent data of the "usage policy" shown in Fig. 5, and only data indicating that these identification values are required for the AV process section 109 are extracted as header information.
On receiving each content shown in Fig. 63, the content analysis section 3091 of the AV process section 109 stores, in accordance with the header information, a program content in the program storage section 3093 if the content is a program or in the data storage section 3092 if the content is data. Thereafter, the compression and decompression section 3094 takes the data out from the data storage section and decompresses them in accordance with the MP3 program stored in the program storage section 3093 before outputting the decompressed data. If the program storage section 3093 has the same program already stored therein, the program storage process may be omitted.
272 t oFig. 64 shows a flow showing an example of process for reproducing data of the content configuration in Fig. 63. At step O S675, a data name stored in the memory 3090 of the AV process section 109, for example, information such as the title of music present if the content is sound data is taken out from the O information received separately from the content or from the o header in the content, and is then displayed on the monitor 3002.
0 At step S676, the user's selection is received from one of the various input means such as the switches and the keyboard via the input interface 110.
Then at step S677, a data reproducing program (for example, the MP3) corresponding to the user selection is retrieved. The maximum range of this program retrieval is preferably set as the possible access range of the recording and reproducing device 300, and for example, the media 500, communication means 600, and recording device 400 shown in Fig. 60 are included in the retrieval range.
Only the content passed to the AV process section 109 is the data section, while the program content may be stored in another Lo recording medium in the recording and reproducing device 300 or provided by the content provider via the medium such as a DVD or a CD. Accordingly, the retrieval range is set as the possible access range of the recording and reproducing device 300. When a reproduction program is found as a result of the retrieval, a OUG reproduction process command based on the user input data is 273 o output to the AV process section 109 under the control of the CPU 106. At step S679, the AV process section 109 extracts and D decompress data depending on the user's selection. In another embodiment, the program retrieval is executed before step S675 so Z that only the data in which the program has been detected are D displayed at step S675.
D Next, Fig. 65 shows an example of a configuration wherein a D1 content contains compressed sound data 6303 and decompressed process program 6302 and further contains a content reproduction priority as header information 6301 therefor. This is an example of the above content configuration in Fig. 61 with the reproduction priority added thereto as header information. As in the above described section Program Activating Process Based on Activation Priority in Usage Policy in Content Data", the order of reproduction is determined based on a reproduction priority set among contents received by the AV process section 109.
Fig. 66 shows a flow showing an example of a process for reproducing data of the content configuration in Fig. 65. At step S681, data stored in the memory 3090 of the AV process section 109, that is, data information for data to be reproduced is set in a retrieval list. The retrieval list is set using some areas of the memory in the AV process section 109. Then at step 3682, the content analysis section 3091 of the AV process section 109 selects data of top priority, and at step S683, reproduces the .9 selected data.
274 Next, Fig. 67 shows an example of a configuration wherein a content comprises a combination of header information and program data 6402 or header information 6403 and compressed data 6404 and wherein a reproduction priority is added only to the header 6403 of the data content.
Fig. 68 shows a flow showing an example of a process for reproducing data of the content configuration in Fig. 67. At step S691, data stored in the memory 3090 of the AV process section 109, that is, data information for data to be reproduced is set in a retrieval list. The retrieval list is set using some areas of the memory in the AV process section 109. Then at step S692, the content analysis section 3091 of the AV process section 109 selects data of top priority.
Then at step S693, a data reproducing program (for example, the MP3) corresponding to the user selection is retrieved. As in the process in the flow in Fig. 64, the maximum range of this program retrieval is preferably set as the possible access range of the recording and reproducing device 300, and for example, the media 500, communication means 600, and recording device 400 shown in Fig. 60 are included in the retrieval range.
When a reproduction program is found as a result of the retrieval (Yes at step 3694), the selected data are decompressed and reproduced using the program obtained as a result of the retrieval.
275 o On the other hand, if no program is found as a result of the retrieval (Yes at step S694), the process proceeds to step S696 to delete those of the remaining data contained in the retrieval list set at step S691 that must be reproduced using the same program.
This is because it is apparent that a new attempt to retrieve a reproduction program from these data fails. Furthermore, when it is determined whether or not the retrieval list is empty and if the list is determined not to be empty, the process returns to step S692 to extract data of the next highest priority to execute the program retrieving process.
Thus, according to this configuration, if the compressed content is constructed with its decryption (decompression) program or comprises only data obtained by compressing the content or only the decompression process program, since it has the header information indicating what compressed data the content is or what process the content executes, the process section (for example, the AV process section) receiving the content uses the decompression process program attached to the compressed data in order to execute the decompression and reproduction process or S retrieves the decompression and reproduction program based on the header information in the compressed data to execute the decompression and reproduction process in accordance with the program obtained as a result of the retrieval. This eliminates the needs for processes executed by the user such as the selection S and retrieval of the data decompressing program to reduce burdens 276 on the user, thereby enabling efficient data reproduction.
Moreover, the configuration having the reproduction priority in the header enables the reproduction order to be automatically set to allow the user to omit the operation of setting the reproduction order.
In the above described embodiments, the MP3 is taken as an example of a decompression process program for compressed sound data contents and sound compressed data, but this configuration is also applicable to contents containing compressed data or a decompression process program for compressed image data and provides similar effects in this case.
(16) Generation of Save Data and Storage and Reproduction of the Same in and from Recording Device If, for example, the content executed in the recording and reproducing device 300 is a game program or the like and if the game program is to be resumed a predetermined period of time after suspension, the state of the game and the like at the time of the suspension are saved, that is, stored in the recording device so as to be read out on resumption to enable the game to be continued.
In conventional recording and reproducing devices for game apparatuses, personal computers, or the like, a save data preservation configuration is provided with such a configuration as to preserve save data in a recording medium such as a memory card, a floppy disk, a game cartridge, or a hard disk which can be 277 o built into the recording and reproducing device or externally attached thereto. In particular, however, these recording and reproducing devices have no configuration for maintaining the security of the save data and carry out the save process using, for example, specifications common to a game application program.
0 Thus, for example, save data saved using a recording and reproducing device A may be used or rewritten by another game 9- program; little attention has been paid to the security of the save data.
The data processing apparatus according to the present invention provides a configuration that can maintain the security of save data. For example, save data for a certain game program are encrypted based on information used only by this game program before being stored in the recording device. Alternatively, the save data are encrypted based on information unique to the recording and reproducing device before being stored in the recording device. These methods enables the usage of the save data to be limited to particular apparatuses or programs to maintain the security of the data. "Generation of Save Data and 0 Storage and Reproduction of the Same in and from Recording Device" in the present data processing apparatus will be explained below.
Fig. 69 is a block diagram useful in explaining a save data storage process in the present data processing apparatus. A content from the medium 500 such as a DVD or CD or the S communication means 600 is provided to the recording and 278 OJJ reproducing device 300. The provided content has been encrypted with the content key Kcon, which is a key unique to the content as D described above, and the recording and reproducing device 300 obtains the content key in accordance with the process described 1- S in the above described section Process for Downloading from D Recording and Reproducing Device to Recording device" (see Fig.
D 22), to decrypt the encrypted content and then stores it in the recording device 400. The following description is directed to a process executed by the recording and reproducing device 300 to decrypt a content program from the medium or the communication means, reproduce and execute this program, and then store the obtained save data in one of the various recording devices 400A, 400B, and 400B such as external or built-in memory card and hard disk for reproduction, or to download a content in the recording device 400A, reproduce and execute the content from the recording device 400A, and store the resulting save data in a processing and recording device 400 for storing the save data in any one of the various recording devices 400A, 400B, and 400B such as external or built-in memory card and hard disk for reproduction and zb reproducing the save data.
The recording and reproducing device 300 has the recording and reproducing device identifier IDdev, the system signature key Ksys, which is a signature key shared throughout the system, the recording and reproducing device signature key Kdev, which is .t unique to individual recording and reproducing devices, and the 279 master keys for generating various individual keys, as previously described. The master keys are used to generate, for example, the distribution key Kdis or the authentication key Kake, as described in detail in Configuration for Generating Cryptography O Process Keys Based on Master Keys". Here, the type of the master key is not particularly limited but a key representing the master keys of the recording and reproducing device 300 is denoted by MKx.
C- Fig. 69 shows an example of the cryptography key Ksav for save data in the lower part thereof. The save data cryptography key Ksav is used for the encryption process executed to store save data in one of the various recording device 400A to C and for the decryption process executed to reproduce these data therefrom.
The processes for storing and reproducing save data will be explained with reference to Fig. 70 and subsequent figures.
Fig. 70 is a flow chart of a process of storing save data in one of the recording device 400A to C using either the content unique key or the system common key. The process in each flow is executed by the recording and reproducing device 300, and the recording device 400 storing the save data in each flow may be any S of the external recording devices 400A to C and is not limited to a particular one.
At step S701, the recording and reproducing device 300 reads out the content ID, for example, the game ID. This ID is the data contained in the identification information in the content data shown in the previously described Figs. 4, 26, 27, and 32 to 280 OJ On receiving a command for storage of save data via the interface 110 shown in Fig. 2, the main CPU 106 commands the control section O 301 to read the content ID.
The control section 301 takes the identification information O out from the header in the content data via the read section if O the execution program is a content from a DVD, a CD-ROM, or the o like which is executed via the read section 304, or takes it out 0 Cl via the recording device controller 303 if the execution program is a content stored in the recording device 400. If the recording and reproducing device 300 is executing the content program and the content ID has already been stored in a RAM or anther accessible recording medium in the recording and reproducing device, the identification information contained in the loaded data may be used without executing a new read process.
Then at step S702, the process is changed depending on whether or not the program is to be localized. The program localization is used to set whether or not a limitation is added which allows save data to be used only by this program; to allow the save data to be used only by this program, "Program Localization" is set to "Yes", and to prevent the usage of the data from being limited to this program, "Program Localization" is set to This may be arbitrarily set by the user or may be set and stored in the content program by the content producer, and the set localization is stored in one of the recording devices 11 400A to C of Fig. 69 as a data managing file.
281 t1o Fig. 71 shows an example of the data managing file. The data managing file is generated as a table containing entries including er, 3 data numbers, content IDs, recording and reproducing device IDs, and program localization. The content ID is identification data for a content program for which save data are saved. The 0 er, 3 recording and reproducing device ID indicates a recording and ?1 reproducing device that has stored the save data, and an example j thereof is [IDdev] shown in Fig. 69. The program localization is set to "Yes" in order to allow the save data to be used only by this program or to "No" in order to prevent the usage of the data from being limited to this program. The program localization may be arbitrarily set by the user using the content program or may be set and stored in the content program by the content producer.
Referring back to Fig. 70, the flow will be continuously explained. If the program localization is set to "Yes" at step S702, the process proceeds to step S703. At step 703, the key unique to the content, for example, the content key Kcon is read out from the content data and used as the save data cryptography key Ksav, or the save data cryptography key Ksav is generated based on the content unique key.
On the other hand, if the program localization is set to "No" at step S702, the process proceeds to step S707. At step 707, the system common key stored in the recording and reproducing device 300, for example, the system signature key Ksys is read out from the internal memory 307 of the recording and reproducing device 282 OJL 300 and used as the save data cryptography key Ksav, or the save data cryptography key Ksav is generated based on the system D signature key Ksys. Alternatively, a cryptography key different from the other keys which has been separately saved to the 1- 9 internal memory 307 of the recording and reproducing device 300 D may be used as the save data cryptography key Ksav.
D Then at step S704, the save data cryptography Ksav selected or generated at step S703 or S707 is used to execute a process for encrypting save data. This encryption process is executed by the cryptography process section 302 of Fig. 2 by applying, for example, the above described DES algorithm.
The save data encrypted at step S704 are stored in the recording device at step S705. If there are a plurality of recording devices that can store save data, as shown in Fig. 69, the user selects in advance one of the recording devices 400A to C as a save data storage destination. Further, at step S706, the program localization set at step S702, that is, "Yes" or "No" for the program localization is written to the data managing file described with reference to Fig. 71.
0 The process for storing the save data is thus completed. At step S702, save data for which "Yes" is selected for the program localization at step S702 and which are encrypted at step S703 with the save data encryption key Ksav generated based on the content unique key are prevented from being decrypted by content 9S programs having no content unique key information, so that these 283 save data can be used only by content programs having the same content key information. In this case, however, the save data encryption key Ksav is not generated based on information unique to the recording and reproducing device, so that save data stored in a removable recording device such as a memory card can be reproduced even from a different recording and reproducing device as long as they are used together with a corresponding content C-i program.
Additionally, save data for which "No" is selected for the program localization at step S702 and which are encrypted at step 3707 with the save data encryption key Ksav based on the system common key can be reproduced and used even if a program with a different content identifier is used or if a different recording and reproducing device is used.
Fig. 72 shows a flow showing a process for reproducing save data stored by means of the save data storage process in Fig. At step 3711, the recording and reproducing device 300 reads out the content ID, for example, the game ID. This is a process similar to step S701 of the previously described in Fig. 70 and which reads out data contained in the identification information in the content data.
Then at step S712, the data managing file descried with reference to Fig. 71 is read out from one of the recording devices 400A to C shown in Fig. 69, and the content ID read out at step S711 and correspondingly set program localization are extracted 284 o therefrom. If the data managing file has the program localization set to "Yes, the process proceeds to step S714, whereas if the S data managing file has the program localization set to the process advances to step S717.
At step S714, the key unique to the content, for example, the r, 3 content key Kcon is read out from the content data and used as the ?1
'A
j save data decryption key Ksav, or the save data decryption key 3 Ksav is generated based on the content unique key. This decryption key generating process uses a process algorithm corresponding to the encryption key generating process, that is, a decryption key generating algorithm that enables data encrypted based on a certain content unique key to be decrypted with a decryption key generated based on the same content unique key.
On the other hand, if it is determined at step S712 that the data managing file has the program localization set to .then at step S717, the system common key stored in the recording and reproducing device 300, for example, the system signature key Ksys is read out from the internal memory 307 of the recording and reproducing device 300 and used as the save data decryption key Ksav, or the save data decryption key Ksav is generated based on the system signature key Ksys. Alternatively, a cryptography key different from the other keys which has been separately saved to the internal memory 307 of the recording and reproducing device 300 may be used as the save data cryptography key Ksav.
285 OJJ Then at step S715, the save data decryption key Ksav selected or generated at step S714 or S717 is used to execute a process for O decrypting save data, and at step S716, the decrypted save data are reproduced and executed in the recording and reproducing O device 300.
The save data reproduction process is thus completed. As described above, the save data decryption key is generated based (1 on the content unique key if the data managing file has the program localization set to "Yes", while the save data decryption key is generated based on the system common key if the data managing file has the program localization set to If the program localization is set to "Yes", a decryption key cannot decrypt the save data without the same content ID for the content, thereby enabling the security of the save data to be improved.
Figs. 73 and 74 show save data storage and reproduction flows, respectively, that generate save data encryption and decryption keys using the content ID.
In Fig. 73, steps S721 to 722 are similar to steps S701 and S702 in Fig. 70, so description thereof is omitted.
The save data storage flow in Fig. 73, if the program localization" is set to "Yes" at step S722, then at step S723, the content ID is read out from the content data and used as the save data decryption key Ksav, or the save data decryption key Ksav is generated based on the content ID. For example, the cryptography S process section 307 of the recording and reproducing device 300 286- 11" can apply the master key MKx stored in the internal memory of the recording and reproducing device 300, to the content ID read out from the content data, to obtain the save data decryption key Ksav based, for example, on the DES (MKx, content ID). Alternatively, O a cryptography key different from the other keys which has been Cq separately saved to the internal memory 307 of the recording and reproducing device 300 may be used as the save data decryption key Ksav.
On the other hand, if the program localization is set to "No" at step 3722, then at step S727, the system common key stored in the recording and reproducing device 300, for example, the system signature key Ksys is read out from the content data and used as the save data encryption key Ksav, or the save data encryption key Ksav is generated based on the system signature key.
Alternatively, a cryptography key different from the other keys which has been separately saved to the internal memory 307 of the recording and reproducing device 300 may be used as the save data decryption key Ksav.
The processing at step S724 and the subsequent steps is Z0 similar to that at step 3704 and the subsequent steps in the process flow in the above described Fig. 70, and description thereof is thus omitted.
Further, Fig. 74 shows a process flow for reproducing and executing save data stored in the recording device during the save data storage process flow in Fig. 73, and steps 3731 to S733 are 287 OJ similar to the corresponding processing in the above described Fig.
72 except for step S734. At step 734, the content ID is read out 3 from the content data and used as the save data decryption key Ksav, or the save data decryption key Ksav is generated based on o the content ID. This decryption key generating process uses a 3 process algorithm corresponding to the encryption key generating S process, that is, a decryption key generating algorithm that 3 enables data encrypted based on a certain content ID to be decrypted with a decryption key generated based on the same content ID.
The subsequent processing, steps 3735, S736, and S737 are similar to the corresponding processing in Fig. 72, and description thereof is thus omitted. According to the save data storage and reproduction processes in Figs. 73 and 74, if the program localization is set to "Yes", the content ID is used to generate the save data encryption and decryption keys, so that as in the above save data storage and reproduction processes using the content unique key, save data cannot be obtained without matching the corresponding content program, thereby enabling save Z0 data to be saved more securely.
Figs. 75 and 77 show save data storage (Fig. 75) and reproduction (Fig. 77) flows, respectively, that generate save data encryption and decryption keys using the recording and reproducing device unique key.
288 In Fig. 75, step S741 is similar to step S701 in Fig. 70, so description thereof is omitted. At step S742, localization is or is not set for the recording and reproducing device. In case of lacalizing a particular recording and reproducing device capable of utilizing the save data, a recording and reproducing device localization, that is, allows the save data to be used only by the recording and reproducing device that has generated and stored the data, the recording and reproducing device localization is set to "Yes", and to allow other recording and reproducing device to use the save data, the recording and reproducing device localization is set to If the recording and reproducing device localization is set to "Yes" at step S742, the process proceeds to step S743, and if this localization is set to the process proceeds to step S747.
An example of the data managing file is shown in Fig. 76. The data managing file is generated as a table containing entries including data numbers, content IDs, recording and reproducing device IDs, and recording and reproducing device localization.
The content ID is identification data for a content program for which save data are saved. The recording and reproducing device ID indicates a recording and reproducing device that has stored the save data, and an example thereof is [IDdev] shown in Fig. 69.
The recording and reproducing device localization is set to "Yes" in order to limit the usage of the save data to a particular recording and reproducing device, that is, allow the save data to 289 be used only by the recording and reproducing device that has generated and stored the data, or to "No" in order to allow other recording and reproducing devices to use the save data. The recording and reproducing device localization may be arbitrarily O set by the user using the content program or may be set and stored Sin the content program by the content producer.
In the save data storage process flow in Fig. 75, if the C recording and reproducing device localization is set to "Yes" at step S742, the recording and reproducing device unique key, for example, the recording and reproducing device signature key Kdev is read out from the internal memory 307 of the recording and reproducing device 300 data and used as the save data encryption key Ksav, or the save data encryption key Ksav is generated based on the recording and reproducing device signature key Kdev.
Alternatively, a cryptography key different from the other keys which has been separately saved to the internal memory 307 of the recording and reproducing device 300 may be used as the save data decryption key Ksav.
On the other hand, if the recording and reproducing device P.D localization is set to "No" at step 3742, then at step S747, the system common key stored in the recording and reproducing device 300, for example, the system signature key Ksys is read out from internal memory 307 of the recording and reproducing device 300 and used as the save data encryption key Ksav, or the save data 12 encryption key Ksav is generated based on the system signature key.
290 11" Alternatively, a cryptography key different from the other keys which has been separately saved to the internal memory 307 of the recording and reproducing device 300 may be used as the save data decryption key Ksav.
O The processing at steps 3744 and S745 is similar to the C-i corresponding processing in the process flow in the above O described Fig. 72, and description thereof is thus omitted.
At step S746, the content ID, the recording and reproducing device ID, and the recording and reproducing device localization "Yes/No" set by the user at step S742 are written to the data managing file (see Fig. 76) Furthermore, Fig. 77 shows a process flow for reproducing and executing save data stored in the recording device during the save data storage process flow in Fig. 75. At step S751, the content ID is read out as in the corresponding processing in the above described Fig. 72. Then at step 3752, the recording and reproducing device ID (IDdev) stored in the memory of the recording and reproducing device 300 is read out.
At step S753, the content ID, the recording and reproducing )X device ID, and the set recording and reproducing device localization "Yes/No" are read out from the data managing file (see Fig. 76). If any entry in the data managing file which has the same content ID has the recording and reproducing device localization set to "Yes", the process is ended if the table entry 291 o has a recording and reproducing device ID different from that read out at step S752.
3 Next, if it is determined at step S754 that the data managing file has the recording and reproducing device localization set to o "Yes", the process proceeds to step S755, whereas if the data S managing file has the recording and reproducing device S localization set to the process proceeds to step S758.
At step S755, the recording and reproducing device unique key, for example, the recording and reproducing device signature key Kdev is read out from the internal memory 307 of the recording and reproducing device 300 data and used as the save data decryption key Ksav, or the save data encryption key Ksav is generated based on the recording and reproducing device signature key Kdev. This decryption key generating process uses a process algorithm corresponding to the encryption key generating process, that is, a decryption key generating algorithm that enables data encrypted based on a certain recording and reproducing device unique key to be decrypted with a decryption key generated based on the same recording and reproducing device unique key. Alternatively, a 00 cryptography key different from the other keys which has been separately saved to the internal memory 307 of the recording and reproducing device 300 may be used as the save data decryption key Ksav.
On the other hand, at step S758, the system common key stored in the recording and reproducing device 300, for example, the 292 system signature key Ksys is read out from internal memory 307 of the recording and reproducing device 300 and used as the save data decryption key Ksav, or the save data decryption key Ksav is generated based on the system signature key. Alternatively, a cryptography key different from the other keys which has been separately saved to the internal memory 307 of the recording and reproducing device 300 may be used as the save data decryption key Ksav. The processing at the subsequent steps S756 and 757 are similar to that at the corresponding steps in the above described save data reproduction process flow.
According to the save data storage and reproduction process flows shown in Figs. 75 and 77, save data for which the recording and reproducing device localization is set to "Yes" are encrypted and decrypted using the recording and reproducing device unique key. These save data can thus be decrypted and used only by the recording and reproducing device having the same recording and reproducing device unique key, that is, the same recording and reproducing device.
Next, Figs. 78 and 79 show process flows for generating encryption and decryption keys for save data using the recording and reproducing device ID and storing and reproducing the save data.
In Fig. 78, the recording and reproducing device ID is used to encrypt and store save data in the recording device. Steps S761 to S763 are similar to those in the above Fig. 75. At step 293 S764, the recording and reproducing device ID (IDdev) read out from the recording and reproducing device is used to generate the save data encryption key Ksav. The save data encryption key Ksav is obtained based on the IDdev by, for example, applying the IDdev as the save data encryption key Ksav or applying the master key MKx stored in the internal memory of the recording and reproducing device 300 to obtain the save data encryption key Ksav based on the DES (MKx, IDdev). Alternatively, a cryptography key different from the other keys which has been separately saved to the internal memory 307 of the recording and reproducing device 300 may be used as the save data decryption key Ksav.
The subsequent process steps S765 to 3768 are similar to the corresponding processing in the above described Fig. 75, so description thereof is omitted.
Fig. 79 shows a process flow for reproducing and executing the save data stored in the recording device by means of the process in Fig. 78. Steps S771 to 3774 are similar to the corresponding processing in the above described Fig. 77.
At step S775, the recording and reproducing device ID (IDdev) read out from the recording and reproducing device is used to generate the save data decryption key Ksav. The save data encryption key Ksav is obtained based on the IDdev by, for example, applying the IDdev as this key Ksav or applying the master key MKx stored in the internal memory of the recording and reproducing device 300 to obtain this key Ksav based on the DES (MKx, IDdev) 294 This decryption key generating process uses a process algorithm corresponding to the encryption key generating process, that is, a decryption key generating algorithm that enables data encrypted based on a certain recording and reproducing device unique key to be decrypted with a decryption key generated based on the same recording and reproducing device unique key. Alternatively, a cryptography key different from the other keys which has been separately saved to the internal memory 307 of the recording and reproducing device 300 may be used as the save data decryption key Ksav.
The subsequent process steps 3776 to S778 are similar to the corresponding processing in the above described Fig. 76.
According to the save data storage and reproduction process flows shown in Figs. 78 and 79, save data for which the recording and reproducing device localization is set to "Yes" are encrypted and decrypted using the recording and reproducing device unique key. These save data can thus be decrypted and used only by the recording and reproducing device having the same recording and reproducing device unique key, that is, the same recording and reproducing device.
Next, save data storage and reproduction processes of executing both the above described program localization and recording and reproducing device localization will be explained with reference to Figs. 80 to 82.
295 L Fig. 80 shows a save data storage process flow. At step 5781, the content ID is read out from the content data, at step 3782, it O is determined whether the program localization is set, and at step 3783, it is determined whether the recording and reproducing O device localization is set.
SIf both the program localization and the recording and reproducing device localization are set to "Yes", then at step (1 S785, the save data encryption key Ksav is generated based on both the content unique key (ex. Kcon) and the recording and reproducing device unique key (Kdev). The save data encryption key is obtained, for example, based on Ksav (Kcon XOR Kdev) or by applying the master key MKx stored in the internal memory of the recording and reproducing device 300 to obtain this key based on Ksave DES (MKx, Kcon XOR Kdev). Alternatively, a cryptography key different from the other keys which has been separately saved to the internal memory 307 of the recording and reproducing device 300 may be used as the save data decryption key Ksav.
If the program localization is set to "Yes" while the S recording and reproducing device localization is set to then at step 3786, the content unique key (ex. Kcon) is used as the save data encryption key Ksav, or the save data encryption key Ksav is generated based on the content unique key (ex. Kcon).
If the program localization is set to "No" while the dr recording and reproducing device localization is set to "Yes", 296 then at step S787, the recording and reproducing device unique key (Kdev) is used as the save data encryption key Ksav, or the save data encryption key Ksav is generated based on the recording and reproducing device unique key (Kdev). Alternatively, a O cryptography key different from the other keys which has been separately saved to the internal memory 307 of the recording and j reproducing device 300 may be used as the save data decryption key 3 1 Ksav.
Further, if both the program localization and the recording and reproducing device localization are set to then at step S787, the system common key, for example, the system signature key Ksys is used as the save data encryption key Ksav, or the save data encryption key Ksav is generated based on the system signature key Ksys. Alternatively, a cryptography key different from the other keys which has been separately saved to the internal memory 307 of the recording and reproducing device 300 may be used as the save data decryption key Ksav.
At step S789, the save data encryption key Ksav generated at one of the steps S785 to S788 is used to encrypt the save data, which are then stored in the recording device.
Furthermore, at step S790, the localization set at steps S782 and S783 is stored in the data managing file. The data managing file is configured, for example, as shown in Fig. 81 and contains entries including data numbers, content IDs, recording and 297 reproducing device IDs, program localization, and recording and reproducing device localization.
D Fig. 82A and 82B show a process flow for reproducing and executing the save data stored in the recording device by means of Zt the process in Fig. 80. At step S791, the content ID and the D recording and reproducing device ID are read out from the D execution program, and at step S792, the content ID, the recording and reproducing device ID, the program localization, and the recording and reproducing device localization are read out from the data managing file shown in Fig. 81. In this case, if the program localization is set to "Yes" and the content IDs are not the same or if the recording and reproducing device localization is set to "Yes" and the recording and reproducing device IDs are not the same, the process is ended.
Then at steps S793, S794, and S795, the decryption key generating process is set to one of the four manners at steps 796 to 3799 in accordance with the data recorded in the data managing file.
If both the program localization and the recording and ZO reproducing device localization are set to "Yes", then at step S796, the save data encryption key Ksav is generated based on both the content unique key (ex. Kcon) and the recording and reproducing device unique key (Kdev). Alternatively, a cryptography key different from the other keys which has been dr separately saved to the internal memory 307 of the recording and 298 reproducing device 300 may be used as the save data decryption key Ksav. If the program localization is set to "Yes" while the recording and reproducing device localization is set to then at step S797, the content unique key (ex. Kcon) is used as the save data encryption key Ksav, or the save data encryption key Ksav is generated based on the content unique key (ex. Kcon) Alternatively, a cryptography key different from the other keys which has been separately saved to the internal memory 307 of the recording and reproducing device 300 may be used as the save data decryption key Ksav.
If the program localization is set to "No" while the recording and reproducing device localization is set to "Yes", then at step S798, the recording and reproducing device unique key (Kdev) is used as the save data encryption key Ksav, or the save data encryption key Ksav is generated based on the recording and reproducing device unique key (Kdev). Alternatively, a cryptography key different from the other keys which has been separately saved to the internal memory 307 of the recording and reproducing device 300 may be used as the save data decryption key Ksav. Further, if both the program localization and the recording and reproducing device localization are set to then at step S799, the system common key, for example, the system signature key Ksys is used as the save data encryption key Ksav, or the save data encryption key Ksav is generated based on the system signature key Ksys. Alternatively, a cryptography key different 299 J from the other keys which has been separately saved to the internal memory 307 of the recording and reproducing device 300 0 may be used as the save data decryption key Ksav.
These decryption key generating processes uses a process O algorithm corresponding to the encryption key generating process, O that is, a decryption key generating algorithm that enables data o encrypted based on the same content unique key and recording and 0 Cl reproducing device unique key to be decrypted with a decryption key generated based on the same content unique key and recording and reproducing device unique key.
At step S800, the save data encryption key Ksav generated at one of the steps 3796 to S799 is used to execute the decryption process, and the decrypted save data are reproduced and executed in the recording and reproducing device 300.
According to the save data storage and reproduction process flows shown in Figs. 80 and 82, save data for which "Yes" is selected for the program localization are encrypted and decrypted with the content unique key, so that these save data can be decrypted and used only if content data having the same content S unique key are used. Additionally, save data for which "Yes" is selected for the recording and reproducing device localization are encrypted and decrypted with the recording and reproducing device ID, so that these save data can be decrypted and used only by the recording and reproducing device having the same recording and S reproducing device ID, that is, the same recording and reproducing 300 device. Consequently, both the content and the recording and reproducing device can set the localization to further improve the security of the save data.
Although Figs. 80 and 82 show the configuration for generating the save data encryption key and the decryption key using the content unique key and the recording and reproducing device unique key, the content ID and the recording and reproducing device ID may be used instead of the content unique key and the recording and reproducing device unique key, 1O respectively, to generate the save data encryption key and the decryption key based on these IDs.
Next, a configuration for generating an encryption and a decryption keys based on a password input by the user will be described with reference to Figs. 83 to Fig. 83 shows a process flow for generating a save data encryption key based on a password input by the user and storing save data in the recording device.
At step S821, the content ID is read out from the content data as in each of the above described processes. At step S822, 23 the user determines whether to set the program localization. The data managing file set in this configuration has, for example, the configuration shown in Fig. 84.
As shown in Fig. 84, the data contains data numbers, content IDs, recording and reproducing device IDs, and user set program localization. The "user set program localization" is an entry 301 that determines whether or not the usage of the program is limited to a particular user.
O If the localization is set to "Yes" at step S822 in the process flow in Fig. 83, then at step S823, the user's password is input. The password is input from an input means such as the keyboard shown in Fig. 2.
The input password is output to the cryptography process CI section 302 under the control of the main CPU 106 and the control section 301, and the processing at step S824 is executed, that is, 1O the save data encryption key Ksav is generated based on the input user password. The save data encryption key Ksav may be generated by, for example, setting the password itself as this key Ksav or using the master key MKx of the recording and reproducing device to generate this key Ksav based on the save data encryption key I Ksav DES (MKx, password) Alternatively, a unidirectional function may be applied using the password as an input so that an encryption key can be generated based on an output from the function.
If the user localization is set to "No" at step S822, then at step S828, a save data encryption key is generated based on the system common key of the recording and reproducing device 300.
Further, at step S825, the save data encryption key Ksav generated at step S824 or S828 is used to encrypt the save data, and at step S826, the encrypted save data are stored in the recording device.
302
(N-
Furthermore, at step S827, the program localization set by the user at step S822 is written to the data managing file in Fig.
84 so as to be associated with the content ID and the recording and reproducing device ID.
'O 5 Fig. 85 is a view showing a flow of a process for reproducing the save data stored by means of the process in Fig. 83. At step S831, the content ID is read out from the content data, and at step S832, the content ID and the program localization by the user are read out from the data managing file shown in Fig. 84.
Io At step 3833, determination is made based on the data in the data managing file. If "the user set program localization" is set to "Yes", then at step S834, the user is prompted to input a password, and at step S835, a decryption key is generated based on the input password. This decryption key generating process uses a k. process algorithm corresponding to the encryption key generating process, that is, a decryption key generating algorithm that enables data encrypted based on a certain password to be decrypted with a decryption key generated based on the same password.
If it is determined at step S833 that the program 22 localization by the user is set to then at step S837, the system common key stored in the internal memory of the recording and reproducing device 300 is used to generate the save data decryption key Ksav by using the system signature key Ksys.
Alternatively, an encryption key different from the other keys a which has been separately saved to the internal memory 307 of the 303 recording and reproducing device 300 may be used as the save data encryption key Ksav.
At step S836, the decryption key Ksav generated at step 3835 or S837 is used to decrypt the save data stored in the recording ,b device, and at step S836, the recording and reproducing device reproduces and executes the save data.
According to the save data storage and reproduction process flows shown in Figs. 83 and 85, save data for which "Yes" is selected for "the user set program localization" are encrypted and 1O decrypted with the key based on the user input password, so that these save data can be decrypted and used only if the same password is input, thereby improving the security of the save data.
The several aspects of the save data storage and reproduction processes have been described, but it is also possible to implement a process obtained by merging the above described processes together, for example, an aspect of generating save data encryption and decryption keys using an arbitrary combination of the password, the recording and reproducing device ID, the content ID, and others.
2 (17) Configuration for Excluding (Revoking) Invalid Apparatuses As described above, the data processing apparatus according to the present invention improves the security of provided contents and allow such contents to be used only by valid users, using the configuration wherein the recording and reproducing 304 device 300 executes processes such as authentication and encryption on various content data provided by the medium 500 (see Fig. 3) or the communication means 600 and then stores the data in the recording device.
As understood from the above description, the input content is authenticated, encrypted, and decrypted using the various signature keys, master keys, and integrity-check-value-generating keys (see Fig. 18) stored in the internal memory 307 configured in the cryptography process section 302 of the recording and IO reproducing device 300. The internal memory 307 storing the key information is desirably characterized to restrain external illegal reads in that it comprises a semiconductor chip that essentially rejects external accesses and has a multilayer structure, an internal memory sandwiched between dummy layers of Saluminum or the like or arranged in the lowest layer, and a narrow range of operating voltages and/or frequencies. If, however, these key data or the like should be read out from the internal memory and copied to an unauthorized recording and reproducing device, the copied key information may be used for invalid usage of the content.
A configuration for preventing the invalid use of a content based on invalid copying of a key will be described below.
Fig. 86 is a block diagram useful in explaining "(17) Configuration for Excluding Invalid Apparatuses", which corresponds to this configuration. The recording and reproducing 305 device 300 is similar to the recording and reproducing device shown in the above described Figs. 2 and 3 and has an internal memory and the previously described various key data (Fig. 18) and recording and reproducing device ID. Here, the recording and Sreproducing device ID, the key data, or the like copied by a third person is not necessarily stored in the internal memory 307, but the key data or the like in the recording and reproducing device 300 shown in Fig. 86 are collectively or distributively stored in a memory section accessible to the cryptography process section )O 302 (see Figs. 2 and 3) To implement the configuration for excluding invalid apparatuses, a list of invalid recording and reproducing device IDs is stored in the header section of the content data. As shown in Fig. 86, the content data holds a list of revocation list as the list of invalid recording and reproducing device IDs (IDdev) Further, a list integrity check value ICVrev is used to check the revocation list for tamper. The list of invalid recording and reproducing device IDs (IDdev) contains the identifiers IDvev of invalid recording and reproducing devices determined by the 2 content provider or manager based on the state of distribution of invalid copies or the like. The revocation list may be encrypted with the distribution key Kdis before being stored. The decryption process executed by the recording and reproducing device is similar to, for example, that in the content download 26 process in the above Fig. 22.
306- Here, for better understanding the revocation list is shown as single data in the content data in Fig. 86 but may be contained, for example, in the previously described usage policy (for example, see Figs. 32 to 35), which is a component of the header section of the content data. In this case, the previously described integrity check value ICVa is used to check the usage policy data containing the revocation list for tamper. If the revocation list is contained in the usage policy, the integrity check value A: ICVa is used for the check and the integrity-check-value-Agenerating key Kicva in the recording and reproducing device is used, thereby eliminating the need to store the integrity-checkvalue-generating key Kicv-rev.
If the revocation list is contained in the content data as independent data, the revocation list is checked using the list integrity check value ICVrev for checking the revocation list for tamper, and an intermediate integrity check value is generated from the list integrity check value ICVrev and another partial integrity check value in the content data and is used to carry out a verification process.
A method for checking the revocation list using the list integrity check value ICVrev for checking the revocation list for tamper is similar to the process for generating the integrity check value such as ICVa or ICVb as explained in the above described Figs. 23 and 24. That is, the calculation is executed in accordance with the ICV calculation method described in Figs.
307 o 23 and 24 and other figures, using as a key the integrity-checkvalue-generating key Kicv-rev stored in the internal memory 307 of the recording and reproducing device cryptography process section 302 and using as a message the revocation list contained in the '3.5 content data. The calculated integrity check value ICV-rev' and the integrity check value: ICV-rev stored in the header are compared together, and if they are equal, it is determined that Ci the list have not been tampered.
The intermediate integrity check value containing the list M1 integrity check value ICVrev is generated, for example, by using as a key the total-integrity-check-value-generating key Kicvt stored in the infernal memory 307 of the recording and reproducing device cryptography process section 302 and applying the ICV calculation method described in Fig. 7 and other figures to a message string comprising the integrity check values A and B and list integrity check value ICVrev in the verified header, with the content integrity check value added thereto depending on the format, as shown in Fig. The revocation list and the list integrity check value are provided to the recording and reproducing device 300 via the medium 500 such as a DVD or a CD or the communication means 600 or via the recording device 400 such as a memory card. In this case, the recording and reproducing device 300 may hold valid key data or illegally copied ID.
308 Figs. 87 and 88 show a flow of a process for excluding invalid recording and reproducing devices in this configuration.
Fig. 87 shows a flow of a process for excluding (revoking) invalid recording and reproducing devices if a content is provided by the medium 500 such as a DVD or a CD or the communication means 600, while Fig. 88 shows a flow of a process for excluding (revoking) invalid recording and reproducing devices if a content is provided by the recording device 400 such as a memory card.
First, the process flow in Fig. 87 will be explained. At step 1O S901, the medium is installed and a request is made for a content, that is, a reproduction or download process. The process shown in Fig. 87 corresponds to a step executed, for example, before installation of the medium such as DVD or the like in the recording device followed by the download process. The download process is as previously described with reference to Fig. 22 and is executed as a step before the process flow in Fig. 22 or a process inserted into this process flow.
If the recording and reproducing device 300 receives a content via the communication means such as a network, then at step S911, a communication session with a content distribution service side is established, and the process then proceeds to step S902.
At step S902, the revocation list (see Fig. 86) is obtained from the header section of the content data. In this list 2 obtaining process, if the content is present in the medium, the 309 control section 301 shown in Fig. 3 reads it out therefrom via the read section 304. If the content is obtained from the control section, the communication means 301 shown in Fig. 3 receives it from the content distributing side via the communication section 3 305.
Next, at step S903, the control section 301 passes the revocation list obtained from the medium 500 or the communication means 600, to the cryptography process section 302, which is then caused to execute the check value generating process. The )O recording and reproducing device 300 internally has the revocation-integrity-check-value-generating key Kicv-rev, calculates the integrity check value ICV-rev' in accordance with the ICV calculation method described in Figs. 23 and 24 and other figures, by applying the integrity-check-value-generating key SKicv-rev using the received revocation list as a message, and compares the result of the calculation with the integrity check value: ICV-rev stored in the header to determine that the list have not been tampered if they are equal (Yes at step S904). If the values are not equal, the recording and reproducing device 2UD determines that the list has been tampered, and the process proceeds to step S909 to indicate a process error to end the process.
Then at step S905, the control section 306 of the recording and reproducing device cryptography process section 302 causes the encryption/decryption section 308 of the recording and reproducing 310 device cryptography process section 302 to calculate the total integrity check value ICVt'. The total integrity check value ICVt' is generated by using as a key the system signature key Ksys stored in the internal memory 307 of the recording and reproducing device cryptography process section 302 and encrypting the intermediate integrity check value based on the DES, as shown in Fig. 25. The verification process with each partial integrity check value such as the ICVa or ICVb is omitted from the process flow shown in Fig. 87, but verification with these partial check O values is carried out depending on the data format as in the process flow in the previously described Figs. 39 to Then at step S906, the generated total integrity check value ICVt' is compared with the integrity check value ICVt in the header, and if they are equal (Yes at step S906), the process b advances to step S907. If the values are not equal, the recording and reproducing device determines that the list has been tampered, and the process proceeds to step S909 to indicate a process error to end the process.
As previously described, the total integrity check value ICVt is used to check all the partial integrity check value contained in the content data, such as the ICVa and ICVb and integrity check values for corresponding content blocks which are dependent on the data format. In this case, however, the list integrity check value ICVrev for checking the revocation list for tamper is added to the partial integrity check values, and all of these integrity 311 check values are checked for tamper. If the total integrity check value equals the integrity check value: ICVt stored in the header, it is determined that none of the ICVa and ICVb, the content block integrity check values, and the list integrity check value ICVrev Shave not been tampered.
Further at step S907, the revocation list, which has been determined to be free from tamper, is compared with the recording and reproducing device ID (IDdev) stored in this recording and reproducing device 300.
0 If the list of invalid recording and reproducing device IDs IDdev read out from the content data contains the identifier IDdev of this recording and reproducing device, this recording and reproducing device 300 is determined to have illegally copied key data. The process then advances to step S909 to abort the L subsequent procedure. For example, the process disables, for example, the execution of the content download process in Fig. 22.
At step S907, if the list of invalid recording and reproducing device IDs IDdev is determined not to contain the identifier IDdev of this recording and reproducing device, this 2o recording and reproducing device 300 is determined to have valid key data. The process proceeds to step S908 to enable the subsequent procedure, for example, the program executing process or the content download process in Fig. 22 or other figures.
Fig. 88 shows a process executed to reproduce content data stored in the recording device 400 such as a memory card. As 312 S previously described, the recording device 400 such as a memory card and the recording and reproducing device 300 carry out the mutual authentication process described in Fig. 20 (step S921) Only if the mutual authentication is successful at step 3922, the '5 process proceeds to step 3923 and the subsequent processing, Swhereas if the mutual authentication fails, an error occurs at step S930 to prevent the subsequent processing from being executed.
At step S923, the revocation list (see Fig. 86) is obtained from the header section of the content data. The processing at the subsequent steps S924 to 930 is similar to the corresponding processing in Fig. 87. That is, the list is verified with the list integrity check value (3924 and S925) and with the total integrity check value (S926 and S927), and the list entry is compared with the recording and reproducing device ID IDdev (3928) Then, if the list of invalid recording and reproducing device IDs IDdev contains the identifier IDdev of this recording and reproducing device, this recording and reproducing device 300 is determined-to have illegally copied key data, and the process then advances to step 3930 to abort the subsequent procedure. For example, the process disables, for example, the execution of the content reproduction process in Fig. 28. On the other hand, if the list of invalid recording and reproducing device IDs IDdev is determined not to contain the identifier IDdev of this recording and reproducing device, this recording and reproducing device 300 313 is determined to have valid key data, and the process proceeds to step S929 to enable the subsequent procedure.
As described above, according to the present data processing apparatus, the data identifying invalid recording and reproducing devices, that is, the revocation list containing the identifiers IDdev of invalid recording and reproducing devices is contained in the content provided by the content provider or manager as constituent data of the header section of the content data.
Before using the content in the recording and reproducing device, O the recording and reproducing device user collates the recording and reproducing device ID IDdev stored in the memory of this recording and reproducing device with the ID in the list and prevents the subsequent processing if matching data are found.
Consequently, the content can be prevented from being used by invalid recording and reproducing devices that store copied key data in their memory.
(18) Method for Configuring and Manufacturing Secure Chip As previously described, the internal memory 307 of the recording and reproducing device cryptography process section 302 2 or the internal memory 405 of the recording device 400 holds important information such as the cryptography keys and thus needs to be structured to reject external invalid reads. Thus, the recording and reproducing device cryptography process section 302 and the recording device cryptography process section 401 are 314 configured as a tamper resistant memory characterized to restrain external illegal reads in that it comprises, for example, a semiconductor chip that rejects external accesses and has a multilayer structure, an internal memory sandwiched between dummy .I layers of aluminum or the like or arranged in the lowest layer, and a narrow range of operating voltages and/or frequencies.
As understood from the above description, however, data such as the recording and reproducing device signature key Kdev which vary depending on the recording and reproducing device must be IO written to the internal memory 307 of the recording and reproducing device cryptography process section 302. Additionally, data rewrites or reads must be difficult after individual information for each chip, for example, identification information (ID) and encryption key information has been written to a non- Svolatile storage area in the chip, for example, a flash memory or an FeRAM, for example, after shipment.
A conventional method for making data reads and rewrites difficult comprises, for example, making a data write command protocol secret or separating signal lines on the chip for 2< accepting the data write command from communication signal lines used after completion of the product so that the data write command will not be effective unless the signal is directly transmitted to the chip on a substrate.
Even with such a conventional method, however, those who have 21 a technical knowledge of storage elements can output signals to a 315 data write area of the chip if they have a facility and a technique for driving the circuit, and even if a data write command protocol is secret, there is always a possibility that the protocol may be analyzed.
Distribution of elements for storing cryptography process data which allow secret data to be modified may threaten the entire cryptography process system. In addition, to prevent data from being read out, it is possible to avoid implementing the data read command. In this case, however, even if a regular data write jO has been executed, it is impossible to determined whether or not the written data has been accurately written, resulting in a possibility of supplying chips with inappropriate data written thereto.
In view of these conventional techniques, the present invention provides a secure chip configuration that enables data to be accurately written to a non-volatile memory such as a flash memory or an FeRAM while restraining data from being read out therefrom, as well as a method for manufacturing such a secure chip.
2o Fig. 89 shows a security chip configuration applicable to, for example, the above described recording and reproducing device cryptography process section 302 or the cryptography process section 401 of the recording device 400. Fig. 89(A) shows a security chip configuration formed during a chip manufacturing process, that is, during a data write process, and Fig. 89(B) 316 shows an example of the configuration of a product such as the recording and reproducing device 300 or the recording device 400 which has a security chip mounted in the product and having data written thereto.
During the manufacturing process, a process section 8001 of the security chip has mode specifying signal lines 8003 and various command signal lines 8004 connected thereto and write or read data to or from a storage section 8002 comprising a nonvolatile memory, depending on, for example, whether the chip is in 1Oa data write mode or a data read mode.
On the other hand, in the security chip mounted product in Fig. 89(B), the security chip is connected to an externally connected interface, peripheral equipment, and other elements via general purpose signal lines, whereas the mode signal lines 8003 are not connected. Specific processing for the mode signal lines 8003 includes connecting these lines 8003 to the ground, increasing the voltage on these lines to Vcc, cutting them, sealing them with an insulator resin, etc. Such processing hinders the mode signal lines in the security chip from being accessed after shipment, thereby preventing data from being externally read out from the chip or written thereto.
Further, the security chip 8000 of this configuration hinders data from being written to the storage section 8002 while hindering written data from being read out therefrom, thereby 2 preventing invalid data writes or reads even if a third person 317 successfully accesses the mode signal lines 8003. Fig. 90 shows a process flow of a data write to or a data read from the security chip of this configuration.
At step S951, the mode signal lines 8003 are set for a data write or read mode.
At step S952, authentication information is taken out from the chip. The security chip of this configuration stores information required for the authentication process, such as a password and key information for the authentication process for the cryptography technique, for example, by wires or the mask ROM configuration. At step S952, this authentication information is read out to execute the authentication process. If, for example, regular data write jig and data read device are connected to the general purpose signal lines to execute the authentication process, the authentication will be successful (Yes at step S953). If, however, invalid data write jig and data read device are connected to the general purpose signal lines to execute the authentication process, the authentication will fail (No at step S953) and the process is stopped. The authentication process can be executed, 2 for example, in accordance with the mutual authentication process procedure previously described in Fig. 13. The process section 8001 shown in Fig. 89(A) has a configuration capable of such an authentication process. This can be implemented, for example, using a configuration similar to a command register integrated 2,b into the control section 403 of the cryptography process section 318 401 of the recording device 400 shown in the previously described Fig. 29. For example, the process section of the chip in Fig.
89(A) has a configuration similar to the command register integrated into the control section 403 of the cryptography process section 401 of the recording device 400 shown in Fig. 29, and carries out an appropriate process to enable the authentication process sequence to be executed, in response to an input of a predetermined command from an apparatus connected to the various command signal lines 8004.
1 Only if the authentication process is successful, the process section 8001 accepts the data write or read command to execute the data write (step S955) or read (step S956) process.
As described above, the security chip of this configuration is configured to execute the authentication process on a data write or read, thereby preventing an unauthorized third person from reading or writing data to or from the storage section of the security chip.
Next, Fig. 91 shows an embodiment of a securer element configuration. In this example, the storage section 8200 of the security chip is separated into two areas; one of the areas is a Read Write (RW) area 8201 to and from which data can be written and read, while the other is a Write Only (WO) area 8202 to which data can only be written.
In this configuration, cryptography key data, ID data, and 2 other data which require high security are written to the Write 319 Only (WO) area 8202, whereas integrity check data and other data which do not require so high security are written to the Read Write (RW) area 8201.
As a process for reading data out from the Read Write (RW) Sarea 8201, the process section 8001 executes a data read process involving the authentication process described in the above described Fig. 90. The data write process, however, is executed following the flow in Fig. 92.
At step S961 in Fig. 92, the mode signal lines 8003 are set )D for the write mode, and at step 3962, an authentication process similar to that described in the above Fig. 90 is executed. When the authentication process is successful, the process proceeds to step S963 to output to the process section 8001, a command for writing information such as key data which requires high security Sto the Write Only (WO) area 8202 via the command signal lines 8004, while writing check data or other data which do not require so high security to the Read Write (RW) area 8201.
At step S964, on receiving the command, the process section 8001 executes a data write process on the Write Only (WO) area 8202 or the Read Write (RO) area 8201 depending on the command.
In addition, Fig. 93 shows a flow of a process for verifying data written to the Write Only (WO) area 8202.
At step S971 in Fig. 93, the process section 8001 causes the Write Only (WO) area 8202 to execute the cryptography process 2S based on the written data. Like the above authentication process 320executing configuration, this execution configuration is implemented by a configuration for sequentially executing the cryptography process sequence stored in the command register.
Additionally, the cryptography process algorithm executed in the process section 8001 is not particularly limited, but for example, the previously described DES algorithm can be carried out.
Then at step 3972, a verification device connected to the security chip receives the result of the cryptography process from the process section 8001. Then at step S973, the result of the 1O application of a cryptography process similar to the algorithm executed by the process section 8001 on the regular write data written to the storage section at step S973 is compared with the result of encryption from the process section 8001.
If the compared results are identical, it is verified that the data written to the Write Only (WO) area 8202 are correct.
With this configuration, if the authentication process should be deciphered to enable the read command to be executed, data can be read out only from the Read Write (RW) area 8201, while data written to the Write Only (WO) area 8202 cannot be read out; thus this configuration provides much higher security. In addition, unlike chips that prohibit data reads, this chip includes the Read Write (RW) area 8201 to enable memory accesses to be validated.
This invention has been described with reference to the particular embodiments. Obviously, however, modifications or 2S substitutions may be made to the present invention by those 321 OJ skilled in the art without deviating from the spirits thereof.
That is, the present invention has been disclosed for illustrative O purposes only and should not be interpreted in a restrictive manner. In addition, in the above described embodiments, the recording and reproducing device capable of recording and Sreproducing contents are described by way of example. However, the configuration of the present invention is applicable to (1 apparatuses capable of only recording or reproducing data, and the present invention can be implemented in personal computers, game O apparatuses, and other various data processing apparatuses in general. To determine the points of the present invention, the claims set forth at the beginning should be referenced.
Industrial Applicability The present invention can be utilized in apparatuses and systems which are capable of reproducing various contents such as sounds, images, games, and programs, which can be obtained via a storage medium, such as a DVD and a CD, or via various wired and radio communication means such as CATV, Internet, and satellite communication, in a recording and reproducing a user has, and 2O storing the contents in a special recording device, such as a memory card, a hard disk, and a CD-R, and at the same time, of offering security in which the utilization that a contents provider wants is limited in the case of using the contents stored 322 uJ in the recording device, and a third party other than regular
;Z
users is prevented from illegally using the provided contents.
IND
\O
CsD mq 0
(N
323
Claims (119)
1. A data processing apparatus for processing content data provided by a recording or communication medium, characterized in that said apparatus comprises: a cryptography process section for executing a cryptography process on said content data; and a control section for executing control for said cryptography process section, and said cryptography process section: is configured to generate partial integrity check values as integrity check values for a partial data set containing one or more partial data obtained by a content data-constituting section into a plurality of parts, and to collate the generated integrity check values to verify said partial data, and generates an intermediate integrity check value based on a E partial integrity check value set data string containing at least one or more of said partial integrity check values, and uses the generated intermediate integrity check value to verify the entirety of the plurality of partial data sets corresponding to the plurality of partial integrity check values constituting said 2QD partial integrity check value set.
2. The data processing apparatus according to Claim 1, characterized in that: 324 said partial integrity check value is generated by means of a cryptography process with a partial-check-value-generating key applied thereto, using partial data to be checked, as a message, said intermediate integrity check value is generated by means of a cryptography process with an general-check-value-generating key applied thereto, using a partial integrity check value set data string to be checked, as a message, and said cryptography process section is configured to store said partial-integrity-check-value-generating value and said general- I integrity-check-value-generating key.
3. The data processing apparatus according to Claim 1, characterized in that: said cryptography process has plural types of partial-check-value-generating key corresponding to generated partial integrity check values.
4. The data processing apparatus according to Claim 2, characterized in that: said cryptography process is a DES cryptography process, and said cryptography process section is configured to execute the DES cryptography process.
5. The data processing apparatus according to Claim 2, characterized in that: 325 Ssaid partial integrity check value is a message authentication code (MAC) generated in an DES-CBC mode using partial data to be checked, as a message, said intermediate value is a message authentication code J (MAC) generated in a DES-CBC mode using a partial integrity check value set data string to be checked, as a message, and said cryptography process section is configured to execute the cryptography process in the DES-CBS mode.
6. The data processing apparatus according to Claim ]O characterized in that: in the DES-CBC mode-based cryptography process configuration of said cryptography process section, Triple DES is applied only in part of a message string to be processed.
7. The data processing apparatus according to Claim i, characterized in that: said data processing apparatus has a signature key, and said cryptography process section: is configured to apply a value generated from said intermediate value by means of said signature key-applied cryptography process as a collation value for data verification.
8. The data processing apparatus according to Claim 7, characterized in that: 326 said data processing apparatus has a plurality of different signature keys as signature keys, and said cryptography process section: is configured to apply one of said plurality of different signature keys which is selected Sdepending on a localization of said content data, to the cryptography process for said intermediate integrity check value to obtain the collation value for data verification.
9. The data processing apparatus according to Claim 8, characterized in that: said data processing apparatus has a common 4) signature key common to all entities of a system for executing a data verifying process and an apparatus-specific signature key specific to each apparatus that executes a data verifying process. The data processing apparatus according to Claim 1, characterized in that: 6 said partial integrity check value contains one or more header section integrity check values generated for intra-header- section data partly constituting data and one or more content integrity check values generated for content block data partly constituting the data, and said cryptography process is configured to generate one or more header section integrity check values for a partial data set in said intra-header-section data to execute a collation process, generate one or more content integrity check values for a partial 327 data set in said intra-content-section data to execute a collation process, and further generate a general integrity check value based on all said header section integrity check values and said content integrity check values generated, to execute a collation process in order to verify the data.
11. The data processing apparatus according to Claim i, characterized in that: said partial integrity check value contains one or more header section integrity check values generated for intra-header- IO section data partly constituting data, and said cryptography process is configured to generate one or more header section integrity check values for a partial data set in said intra-header-section data to execute a collation process and further generate a general integrity check value based on said one or more header section integrity check values generated and on content block data constituting part of said data, to execute a collation process in order to verify the data.
12. The data processing apparatus according to Claim 1, characterized by further comprising: a recording device for storing data validated by said cryptography process section.
13. The data processing apparatus according to Claim 12, characterized in that: 328 said control section is configured so that if in the process executed by said cryptography process section to collate the partial integrity check value, the collation is not established, and Ssaid control section suspends the process for storing data in said recording device.
14. The data processing apparatus according to Claim 1, characterized by further comprising: a reproduction process section for reproducing data validated by said cryptography a process section. The data processing apparatus according to Claim 14, characterized in that: if in the process executed by said cryptography process section to collate the partial integrity check value, the Scollation is not established, and said control section suspends the reproduction process in said reproduction process section.
16. The data processing apparatus according to Claim 14, characterized by comprising: control means for collating only the header section integrity check values in the data during the process executed by said cryptography process section to collate the partial integrity check values and transmitting data for which 329 collation of the header section integrity check values has been established, to said reproduction process section for reproduction.
17. A data processing apparatus for processing content data provided by a recording or communication medium, characterized in that said apparatus comprises: a cryptography process section for executing a cryptography process on said content data; and a control section for executing control for said cryptography process section, and 0 said cryptography process section: is configured to generate, if data to be verified are encrypted, integrity check values for the data to be verified by means of a signature data-applied cryptography process from data on arithmetic operation results obtained by executing an arithmetic operation process on decrypted data obtained by executing a decryption process on the encrypted data.
18. The data processing apparatus according to Claim 17, characterized in that: said arithmetic operation process comprises performing an exclusive-OR operation on decrypted data every 2. predetermined bytes, the decrypted data being obtained by decrypting said encrypted data. 330 S 19. A data processing method for processing content data provided by a recording or communication medium, characterized in that said method: generates partial integrity check values as integrity check O S values for a partial data set containing one or more partial data obtained by a content data constituting section into a plurality of parts, and collates the generated integrity check values to S verify said partial data, and generates an intermediate integrity check value based on a IC partial integrity check value set data string containing at least one or more of said partial integrity check values, and uses the generated intermediate integrity check value to verify the entirety of the plurality of partial data sets corresponding to the plurality of partial integrity check values constituting said S partial integrity check value set. The data processing method according to Claim 19, characterized in that: said partial integrity check value is generated by means of a cryptography process with a partial-check-value-generating key applied thereto, using partial data to be checked, as a message, and said intermediate integrity check value is generated by means of a cryptography process with an general-check-value-generating 331 key applied thereto, using a partial integrity check value set data string to be checked, as a message.
21. The data processing method according to Claim characterized in that: said partial integrity check value is generated by applying different types of partial-check-value- generating keys corresponding to generated partial integrity check values.
22. The data processing method according to Claim characterized in that: said cryptography process is a DES 1O cryptography process.
23. The data processing method according to Claim 19, characterized in that: said partial integrity check value is a message authentication code (MAC) generated in a DES-CBC mode using S partial data to be checked, as a message, and said intermediate value is a message authentication code (MAC) generated in a DES-CBC mode using a partial integrity check value set data string to be checked, as a message.
24. The data processing method according to Claim 19, 2c characterized in that: a value generated from said intermediate 332 value by means of a signature key-applied cryptography process is applied as a collation value for data verification. The data processing method according to Claim 24, characterized in that: different signature keys are applied to the cryptography process for said intermediate integrity check value depending on a localization of said content data, to obtain the collation value for data verification.
26. The data processing method according to Claim characterized in that: a common signature key common to all )O entities of a system for executing a data verifying process or an apparatus-specific signature key specific to each apparatus that executes a data verifying process is selected and used as said signature key depending on the localization of the content data.
28. The data processing method according to Claim 19, characterized in that: said partial integrity check value contains one or more header section integrity check values generated for intra-header- section data partly constituting data and one or more content integrity check values generated for intra-content-section data 2o partly constituting the data, and a data verifying process: 333 generates one or more header section integrity check values for a partial data set in said intra-header-section data to execute a collation process; generates one or more content integrity check values for a partial data set in said intra-content-section data to execute a collation process; and further generates a general integrity check value based on all said header section integrity check values and said content integrity check values generated, to execute a collation process in order to verify the data. 28. The data processing method according to Claim 19, characterized in that: said partial integrity check value contains one or more header section integrity check values generated for intra-header- section data partly constituting data, and the data verifying process: generates one or more header section integrity check values for a partial data set in said intra-header-section data to execute a collation process; and 2D further generates a general integrity check value based on said one or more header section integrity check values generated and on content block data constituting part of said data, to execute a collation process in order to verify the data. 334
29. The data processing method according to Claim 19, characterized by further comprising: a process for storing, after data verification, storing validated data. The data processing method according to Claim 29, characterized in that: if in the process for collating said partial integrity check value, the collation is not established, control is executed such as to suspend the process for storing data in said recording device.
31. The data processing method according to Claim 19, IG characterized by further comprising: a data reproduction process for reproducing data after the data verification.
32. The data processing method according to Claim 31, characterized in that: if in the process for collating said partial integrity check 6 value, the collation is not established, and control is executed such as to suspend the reproduction process executed in said reproduction process section.
33. The data processing method according to Claim 31, characterized in that said method: collates only the header section integrity check values in the data during the process for collating the partial integrity 335 check values and transmits data for which collation of the header section integrity check values has been established, to said reproduction process section for reproduction.
34. The data processing method for processing content data provided by a recording or communication medium, the method being characterized in that said method: if data to be verified are encrypted, executes an arithmetic operation process on decrypted data obtained by decrypting the encrypted data, 3 executes a signature key-applied cryptography process on data on arithmetic operation results obtained by said arithmetic operation, to generate integrity check values for said data to be verified. The data processing method according to Claim 34, characterized in that: said arithmetic operation process comprises performing an exclusive-OR operation on decrypted data every predetermined bytes, the decrypted data being obtained by decrypting said encrypted data.
36. A data verifying value imparting method for a data verifying process, characterized in that said method: imparts partial integrity check values as integrity check values for a partial data set containing one or more partial data 336 obtained by a content data constituting section into a plurality of parts, and imparts to data to verified, an intermediate integrity check value used to verify a partial integrity check value set data string containing at least one or more of said partial integrity check values.
37. The data verifying value imparting method according to Claim 36, characterized in that: said partial integrity check value is generated by means of a to cryptography process with a partial-check-value-generating key applied thereto, using partial data to be checked, as a message, and said intermediate integrity check value is generated by means of a cryptography process with an general-check-value-generating key applied thereto, using a partial integrity check value set data string to be checked, as a message.
38. The data verifying value imparting method according to Claim 37, characterized in that: said partial integrity check value is generated by applying different types of partial-check-value- I0 generating keys corresponding to generated partial integrity check values. 337
39. The data verifying value imparting method according to Claim 37, characterized in that: said cryptography process is a DES cryptography process. The data verifying value imparting method according to Claim 36, characterized in that: said partial integrity check value is a message authentication code (MAC) generated in a DES-CBC mode using partial data to be checked, as a message, and said intermediate value is a message authentication code 1O (MAC) generated in a DES-CBC mode using a partial integrity check value set data string to be checked, as a message.
41. The data verifying value imparting method according to Claim 36, characterized in that: a value generated from said intermediate value by means of a signature key-applied 1 cryptography process is applied as a collation value for data verification.
42. The data verifying value imparting method according to Claim 41, characterized in that: different signature keys are applied to the cryptography process for said intermediate integrity check value depending on a localization of said content data, to obtain the collation value for data verification. 338
43. The data verifying value imparting method according to Claim 42, characterized in that: a common signature key common to all entities of a system for executing a data verifying process or an apparatus-specific signature key specific to each apparatus that executes a data verifying process is selected and used as said signature key depending on the localization of the content data.
44. The data verifying value imparting method according to Claim 36, characterized in that: said partial integrity check value contains one or more ID header section integrity check values for in intra-header-section data partly constituting data and one or more content integrity check values for intra-content-section data partly constituting the data, and said method is set so that a general integrity check value is Ij generated for all said header section integrity check values and said content integrity check values, to verify the data. The data verifying value imparting method according to Claim 36, characterized in that: said partial integrity check value contains one or more Sheader section integrity check values for intra-header-section data partly constituting data, and 339 0said method is set so that a general integrity check value is generated for said one or more header section integrity check values and content block data partly constituting said data, to verify the data.
46. A program providing medium for providing a computer program for causing a data verifying process to be executed on a computer system to verify that data are valid, the program providing medium being characterized in that said computer program comprises steps of: executing a collation process using partial integrity check values generated as integrity check values for a partial data set containing one or more partial data obtained by dividing data a plurality of parts, and using an intermediate integrity check value based on a partial integrity check value set obtained by combining a plurality of said partial integrity check values together, to verify the entirety of a plurality of partial data sets corresponding to the plurality of partial integrity check values constituting said partial integrity check value set. 23 47. A data processing apparatus comprising: an encryption processing section that executes encryption processing of at least one of data encryption, data decryption, 340 S data verification, authentication processing and signature processing; and Cc, a storage section that stores master keys to generate keys used for said encryption processing, .O characterized in that said encryption processing section is O configured to generate individual keys necessary to execute said encryption processing based on said master keys, an encryption q processing target apparatus or data identification data.
48. The data processing apparatus according to Claim 47, I0 characterized in that said data processing apparatus is a data processing apparatus that performs encryption processing on transfer data via a storage medium or communication medium, said storage section stores a distribution key generation master key MKdis for generating a distribution key Kdis used for Sencryption processing of said transfer data, and said encryption processing section executes encryption processing based on the distribution key generation master key MKdis stored in said storage section and a data identifier, which is identification data of said transfer data and generates said transfer data distribution key Kdis.
49. The data processing apparatus according to Claim 47, characterized in that said data processing apparatus is a data 341 processing apparatus that performs authentication processing of an externally connected apparatus to/from which data is transferred, said storage section stores an authentication key generation master key MKake for generating an authentication key Kake of said externally connected apparatus, and said encryption processing section executes encryption processing based on the authentication key generation master key MKake stored in said storage section and an externally connected apparatus identifier, which is identification data of said externally connected apparatus and generates the authentication key Kake of said externally connected apparatus. The data processing apparatus according to Claim 47, characterized in that said data processing apparatus is a data processing apparatus that performs signature processing on data, Ssaid storage section stores a signature key generation master key MKdev for generating a data processing apparatus signature key Kdev of said data processing apparatus, and said encryption processing section executes encryption processing based on the signature key generation master key MKdev stored in said storage section and a data processing apparatus identifier, which is identification data of said data processing apparatus and generates the data processing apparatus signature key Kdev of said data processing apparatus. 342 DL 51. The data processing apparatus according to Claim 47, characterized in that individual key generation processing that O generates an individual key necessary to execute encryption processing based on said master key and identification data of the \Q '5 apparatus or data subject to encryption processing is encryption processing that uses at least part of identification data of the apparatus or data subject to encryption processing as a message and applies said master key as the encryption key.
52. The data processing apparatus according to Claim 51, characterized in that said encryption processing is encryption processing using a DES algorithm.
53. A data processing system configured by a plurality of data processing apparatuses, characterized in that each of said plurality of data processing apparatuses having a common master key to generate a key used for encryption processing of at least one of data encryption, data decryption data verification, authentication processing and signature processing, and each of said plurality of data processing apparatuses generating a common individual key necessary to execute said encryption processing based on said master key and identification data of the apparatus or data subject to encryption processing. 343
54. The data processing system according to Claim 53, characterized in that said plurality of data processing apparatuses is configured by a contents data providing apparatus that supplies contents data and a contents data utilization Sapparatus that utilizes the contents data, both the contents data providing apparatus and contents data utilization apparatus have a distribution key generation master key to generate a contents data distribution key used for encryption processing of circulation contents data between said O contents data providing apparatus and contents data utilization apparatus, said contents data providing apparatus generates a contents data distribution key based on said distribution key generation master key and contents identifier, which is an identifier of supplied contents data and executes encryption processing on said contents data, and said contents data utilization apparatus generates a contents data distribution key based on said distribution key generation master key and contents identifier, which is an identifier of 2 supplied contents data and executes decryption processing on said contents data. The data processing system according to Claim 54, characterized in that said contents data providing apparatus has a plurality of different distribution key generation master keys to 344 generate a plurality of different contents data distribution keys, generates a plurality of different contents data distribution keys based on said plurality of distribution key generation master keys and said contents identifier, executes encryption processing using said plurality of distribution keys generated and generates encryption contents data of a plurality of types, and said contents data utilization apparatus has at least one distribution key generation master key of the plurality of different distribution key generation master keys owned by said contents data providing apparatus and makes decodable only encryption contents data by a distribution key generated using the same distribution key generation master key as the distribution key generation master key owned by the own apparatus.
56. The data processing system according to Claim 53, characterized in that each of said plurality of data processing apparatuses stores a same contents key generation master key to generate a contents key used for encryption processing of contents data, data processing apparatus A, which is one of said plurality i2 of data processing apparatuses, stores contents data encrypted by a contents key generated based on said contents key generation master key and the apparatus identifier of said data processing apparatus A in a storage medium, 345 different data processing apparatus B generates a contents key based on said same contents key generation master key and the apparatus identifier of said data processing apparatus A and executes decryption processing on the encrypted contents data stored by said data processing apparatus A in said storage medium based on said contents key generated.
57. The data processing system according to Claim 53, characterized in that said plurality of data processing apparatuses are configured by a host device and a slave device )O subject to authentication processing by said host device, both said host device and said slave device have an authentication key generation master used for authentication processing between the host device and slave device, said slave device generates an authentication key based on said authentication key generation master key and said slave device identifier, which is the identifier of said slave device and stores in memory in the slave device, and said host device generates an authentication key based on said authentication key generation master key and the slave device 2( identifier, which is the identifier of said slave device and executes authentication processing.
58. A data processing method that executes encryption processing of at least one of data encryption, data decryption, data 346 verification, authentication processing and signature processing, comprising: O a key generating step of generating individual keys necessary to execute encryption processing based on master keys to generate O H the key used for said encryption processing and identification data of the apparatus or data subject to encryption processing; and Ni' an encryption processing step of executing encryption processing based on the key generated in said key generating step. lD 59. The data processing method according to Claim 58, characterized in that data processing executed by said data processing method is encryption processing on transfer data via a storage medium or communication medium, said key generating step is a distribution key generating step of executing encryption processing based on a distribution key generation master key MKdis for generating a distribution key Kdis used for encryption processing of transfer data and a data identifier, which is identification data of said transfer data, and generating distribution key Kdis of said transfer data, and O said encryption processing step is a step of executing encryption processing on transfer data based on the distribution key Kdis generated in said distribution key generating step. 347 The data processing method according to Claim 58, characterized in that data processing executed by said data O processing method is authentication processing of an externally connected apparatus to/from which data is transferred, \o 2 said key generating step is an authentication key generating step of executing encryption processing based on an authentication key generation master key MKake for generating an authentication C key Kake of said externally connected apparatus and an externally connected apparatus identifier, which is identification data of O said externally connected apparatus, and generating said authentication key Kake of said externally connected apparatus, and said encryption processing step is a step of executing authentication processing of the externally connected apparatus based on the authentication key Kake generated in said authentication key generating step.
61. The data processing method according to Claim 58, characterized in that data processing executed by said data processing apparatus is signature processing on data, said key generating step is a signature key generating step of executing encryption processing based on a signature key generation master key MKdev for generating a data processing apparatus signature key Kdev of said data processing apparatus and a data processing apparatus identifier, which is identification 348 data of said data processing apparatus and generating the data processing apparatus signature key Kdev of said data processing apparatus, and said encryption processing step is a step of executing signature processing on data based on the signature key Kdev generated in said signature key generating step.
62. The data processing method according to Claim 58, characterized in that said key generating step is encryption processing that uses at least part of data identification of the u apparatus or data subject to encryption processing as a message and applies said master key as the encryption key.
63. The data processing method according to Claim 62, characterized in that said encryption processing is encryption processing using a DES algorithm. j 64. A data processing method in a data processing system comprising: a contents data providing apparatus that supplies contents data; and a contents data utilization apparatus that utilizes the 12 contents data, characterized in that said contents data providing apparatus generates a contents data distribution key based on a distribution key generation 349 master key for generating a contents data distribution key used for encryption processing on contents data and a contents identifier, which is the identifier of the provided contents data and executes encryption processing on said contents data, and said contents data utilization apparatus generates a contents data distribution key based on said distribution key generation master key and a contents identifier, which is the identifier of the provided contents data and executes decryption processing on said contents data. )O 65. The data processing method according to Claim 64, characterized in that said contents data providing apparatus has a plurality of different distribution key generation master keys to generate a plurality of different contents data distribution keys, generates a plurality of different contents data distribution keys based on said plurality of distribution key generation master keys and said contents identifier, executes encryption processing using said plurality of distribution keys generated and generates encryption contents data of a plurality of types, and said contents data utilization apparatus has at least one distribution key generation master key of the plurality of different distribution key generation master keys owned by said contents data providing apparatus and decrypts only encryption contents data by a distribution key generated using the same 350 distribution key generation master key as the distribution key generation master key owned by the own apparatus.
66. A data processing method in a data processing system configured by a plurality of data processing apparatuses J comprising: a step of storing, by data processing apparatus A, which is one of said plurality of data processing apparatuses, in a storage medium contents data encrypted using a contents key generated based on a contents key generation master key to generate a \O contents key used for encryption processing of contents data and the apparatus identifier of said data processing apparatus A; a step of generating the same contents key as said contents key by different data processing apparatus B based on the same said contents key generation master key as that of said data J. processing apparatus A and the apparatus identifier of said data processing apparatus A; and a step of decrypting the contents data stored in said storage medium using the contents key generated by said data processing apparatus B. 2- 67. A data processing method in a data processing system comprising: a host device; and 351 a slave device subject to authentication processing by said host device, characterized in that said slave device generates an authentication key based on an authentication key generation master key to generate an Sauthentication key used for authentication processing between the host device and slave device and a slave device identifier, which is the identifier of said slave device and stores the authentication key generated in memory in said slave device, and said host device generates an authentication key based on said authentication key generation master key and slave device identifier, which is the identifier of said slave device and executes authentication processing.
68. A program providing medium that supplies a computer program to execute encryption processing of at least one of data 1 encryption, data decryption, data verification, authentication processing and signature processing on a computer system, said computer program comprising: a key generating step of generating individual keys necessary to execute said encryption processing based on said master keys to b generate the keys used for said encryption processing and identification data of the apparatus or data subject to encryption processing; and an encryption processing step of executing encryption processing based on the keys generated in said key generating step. 352 \O CC) J
69. A data processing apparatus that processes contents data supplied from a storage medium or communication medium, comprising: a storage section that stores data processing apparatus identifiers; a list verification section that extracts an illegal device list included in the contents data and executes collation between entries of said list and said data processing apparatus identifiers stored in said storage section; and a control section that stops executing processing of at least either one of reproduction of said contents data or processing of storage in a recording device when the result of the collation processing in said collation processing section shows that said illegal device list includes information that matches said data processing identifiers. The data processing apparatus according to Claim 69, characterized in that said list verification section comprises an encryption processing section that executes encryption processing on said contents data; and said encryption processing section verifies the presence or absence of tampering in said illegal device list based on check values of the illegal device list included in said contents cata 353 and executes said collation processing only when said verification proves no tampering.
71. The data processing apparatus according to Claim 70, further comprising an illegal device list check value generation key, characterized in that said encryption processing section executes encryption processing applying said illegal device list check value generation key to illegal device list configuration data to be verified, generates illegal device list check values, executes collation between said illegal device list check values and the j0 illegal device list check values included in said contents data and thereby verifies the presence or absence of tampering in said illegal device list.
72. The data processing apparatus according to Claim 69, characterized in that said list verification section comprises an encryption processing section that executes encryption processing on said contents data; and said encryption processing section executes decryption processing of the encrypted illegal device list included in said Scontents data and executes said collation processing on the illegal device list resulting from said decryption processing. 354
73. The data processing apparatus according to Claim 69, characterized in that said list verification section comprises an encryption processing section that executes mutual authentication processing S with a recording device to/from which contents data is transferred; and said list verification section extracts the illegal device C( list included in said contents data and executes collation with said data processing apparatus identifiers stored in said storage section on condition that authentication with said recording device has been established through mutual authentication processing executed by said encryption processing section.
74. A data processing method that processes contents data supplied from a storage medium or communication medium, comprising: a list extracting step of extracting an illegal device list included in the content data; a collation processing step of executing collation between entries included in the list extracted in said list extracting "I step and said data processing apparatus identifiers stored in a storage section in the data processing apparatus; and a step of stopping execution of processing of at least either one of reproduction of said contents data or processing of storage in a recording device when the result of the collation processing 355 in said collation processing step shows that said illegal device list includes information that matches said data processing identifiers. The data processing method according to Claim 74, further comprising a verification step of verifying the presence or absence of tampering in said illegal device list based on check values of the illegal device list included in said contents data, characterized in that said collation processing step executes collation processing only when said verification step proves no 0 tampering.
76. The data processing method according to Claim characterized in that said verification step comprising: a step of executing encryption processing applying an illegal device list check value generation key to illegal device list configuration data to be verified and generating illegal device list check values; and a step of executing collation between the illegal device list check values generated and the illegal device list check values included in said contents data and thereby verifying the presence or absence of tampering in said illegal device list. 356
77. The data processing method according to Claim 74, further comprising a decrypting step of executing decrypting processing on the encrypted illegal device list included in said contents data, characterized in that said collation processing step executes said collation processing on the illegal device list resulting from said decrypting step.
78. The data processing method according to Claim 74, further comprising a mutual authentication processing step of executing mutual authentication processing with a recording device to/from io which contents data is transferred, characterized in that said collation processing step executes said collation processing on condition that authentication with said recording device has been established through mutual authentication processing executed in said mutual authentication processing step. i S
79. A contents data generation method that generates contents data supplied from a storage medium or communication medium to a plurality of recorders/reproducers, characterized in that an illegal device list whose component data comprises identifiers of recorders/reproducers, which will be excluded from the use of said ac contents data is stored as the header information of the contents data. 357 J 80. The contents data generation method according to Claim 79, characterized in that illegal device list check values for a tampering check on said illegal device list are stored as the header information of the contents data.
81. The contents data generation method according to Claim 79, characterized in that said illegal device list is encrypted and stored in the header information of the contents data.
82. A program supply medium that supplies a computer program that allows a computer system to execute processing of contents data o supplied from a storage medium or communication medium, said computer program comprising: a list extracting step of extracting an illegal device list included in the contents data; a collation processing step of executing collation between I!S entries included in the list extracted in said list extracting step and said data processing apparatus identifiers stored in a storage section in the data processing apparatus; and a step of stopping execution of processing of either one of reproduction of said contents data or processing of storage in a _o recording device when the result of the collation processing in said collation processing step shows that said illegal device list includes information that matches said data processing identifiers. 358
83. A data processing apparatus that processes contents data supplied via a recording medium or communication medium, comprising: an encryption processing section that executes encryption processing on said contents data; a control section that executes control over said encryption processing section; a system common key used for encryption processing in said encryption processing section, which is common to other data to processing apparatuses using said contents data; and at least one of an apparatus-specific key, which is specific to the data processing apparatus used for encryption processing in said encryption processing section or an apparatus-specific identifier to generate said apparatus-specific key, characterized in that said encryption processing section is configured to perform encryption processing by applying either one of said system common key or said apparatus-specific key according to the utilization mode of said contents data.
84. The data processing apparatus according to Claim 83, characterized in that said encryption processing section executes encryption processing by applying either one of said system common key or said apparatus-specific key according to utilization restriction information included in said contents data. 359 The data processing apparatus according to Claim 83, further comprising a recording device for recording contents data, characterized in that said encryption processing section, when imposed with a utilization restriction that said contents data should be used only for the own data processing apparatus, generates data to be (1 stored in said recording device by executing encryption processing using said apparatus-specific key for said contents data; and in the case where said contents data is also made available to an apparatus other than the own data processing apparatus, data to be stored in said recording device is generated by executing encryption processing using said system common key on said contents data.
86. The data processing apparatus according to Claim 83, comprising a signature key Kdev specific to the data processing apparatus and a system signature key Ksys common to a plurality of data processing apparatuses, characterized in that said encryption processing section, when said contents data is stored in said recording device imposed with a utilization 0o restriction that said contents data should be used only for the own data processing apparatus, generates an apparatus-specific check value through encryption processing applying said apparatus- specific signature key Kdev to said contents data and, when said 360 J contents data is stored in said recording device with said contents data also made available to an apparatus other than the own data processing apparatus, generates an overall check value through encryption processing applying said system signature key Ksys to said contents data; and said control section performs control of storing either one of said apparatus-specific check value generated by said encryption processing section or said overall check value together with said contents data in said recording device. io 87. The data processing apparatus according to Claim 83, comprising a signature key Kdev specific to the data processing apparatus and a system signature key Ksys common to a plurality of data processing apparatuses, characterized in that said encryption processing section, when contents data imposed with a utilization restriction that said contents data should be used only for the own data processing apparatus is reproduced, generates an apparatus-specific check value applying said apparatus-specific signature key Kdev to said contents data and executes collation processing on said apparatus-specific check 23 value generated and, when contents data also made available to an apparatus other than the own data processing apparatus is reproduced, generates an overall check value through encryption processing applying said system signature key Ksys to said 361 contents data and performs collation processing on said overall check value generated; and O said control section generates reproducible decrypted data by continuing processing of contents data by the encryption processing section only when collation with said apparatus- specific check value is established or when collation with said overall check value is established.
88. The data processing apparatus according to Claim 83, comprising a recording data processing apparatus signature key to master key MKdev and data processing apparatus identifier IDdev, characterized in that said encryption processing section generates a signature key Kdev as the data processing apparatus specific key through encryption processing based on said data processing apparatus signature key master key MKdev and said data processing apparatus identifier IDdev.
89. The data processing apparatus according to Claim 88, characterized in that said encryption processing section generates said signature key Kdev through DES encryption processing applying Ssaid data processing apparatus signature key master key MKdev to said data processing apparatus identifier IDdev. 362 The data processing apparatus according to Claim 83, characterized in that said encryption processing section generates an intermediate integrity check value by executing encryption processing on said contents data and executes encryption processing applying said data processing apparatus specific key or system common key to said intermediate integrity check value.
91. The data processing apparatus according to Claim characterized in that said encryption processing section generates a partial integrity check value through encryption processing on a r0 partial data set containing at least one partial data item obtained by dividing said contents data into a plurality of parts and generates an intermediate integrity check value through encryption processing on a partial integrity check value set data string containing said partial integrity check value generated.
92. A data processing method that processes contents data supplied via a recording medium or communication medium, characterized by selecting either one of an encryption processing system common key common to other data processing apparatuses using said contents data or an apparatus-specific key, which is specific to the data processing apparatus according to the utilization mode of said contents data; and executing encryption processing by applying the selected encryption processing key to said contents data. 363
93. The data processing method according to Claim 92, characterized in that said encryption processing key selecting step is a step of selecting according to utilization restriction information contained in said contents data.
94. The data processing method according to Claim 92, characterized in that the processing of storing contents data in the recording device, when imposed with a utilization restriction that said contents data should be used only for the own data processing apparatus, generates data to be stored in said 1o recording device by executing encryption processing applying said apparatus-specific key to said contents data; and in the case where said contents data is also made available to an apparatus other than the own data processing apparatus, data to be stored in said recording device is generated by executing S encryption processing using said system common key on said contents data. The data processing method according to Claim 92, characterized in that when said contents data is stored in said recording device imposed with a utilization restriction that said contents data should be used only for the own data processing apparatus, the processing of recording contents data in the recording device generates an apparatus-specific check value 364 through encryption processing applying said apparatus-specific signature key Kdev to said contents data and, when said contents data is stored in said recording device with said contents data also made available to an apparatus other than the own data 9 processing apparatus, generates an overall check value through encryption processing applying said system signature key Ksys to said contents data; and either one of said apparatus-specific check value generated or said overall check value is stored together with said contents o data in said recording device.
96. The data processing method according to Claim 92, characterized in that when contents data imposed with a utilization restriction that said contents data should be used only for the own data processing apparatus is reproduced, the contents data reproducing processing generates an apparatus- specific check value through encryption processing applying said apparatus-specific signature key Kdev to said contents data and executes collation processing on said apparatus-specific check value generated and, when contents data imposed with a utilization .o restriction that the contents data is also made available to an apparatus other than the own data processing apparatus is reproduced, generates an overall check value through encryption processing applying said system signature key Ksys to said 365 contents data and performs collation processing on said overall check value generated; and contents data is reproduced only when collation with said apparatus-specific check value is established or when collation with said overall check value is established.
97. The data processing method according to Claim 92, further comprising a step of generating a signature key Kdev as the data processing apparatus specific key through encryption processing based on data processing apparatus signature key master key MKdev Io and data processing apparatus identifier IDdev.
98. The data processing method according to Claim 97, characterized in that said signature key Kdev generating step is a step of generating said signature key Kdev through DES encryption processing applying said data processing apparatus signature key Smaster key MKdev to said data processing apparatus identifier IDdev.
99. The data processing method according to Claim 92, further comprising a step of generating an intermediate integrity check value by executing encryption processing on said contents data, characterized by executing encryption processing applying said data processing apparatus specific key or system common key to said intermediate integrity check value. 366
100. The data processing method according to Claim 99, characterized by further generating a partial integrity check value through encryption processing on a partial data set containing at least one partial data item obtained by dividing S said contents data into a plurality of parts and generating an intermediate integrity check value through encryption processing on a partial integrity check value set data string containing said partial integrity check value generated.
101. A program supply medium that supplies a computer program io allowing a computer system to execute data processing that processes contents data supplied via a recording medium or communication medium, said computer program comprising the steps of: selecting either encryption processing key, an encryption S processing system common key common to other data processing apparatuses using said contents data or an apparatus-specific key, which is specific to the data processing apparatus according to the utilization mode of said contents data; and executing encryption processing applying the selected 2 encryption processing key to said contents data. 367
102. A data processing apparatus that processes contents data supplied via a recording medium or communication medium, comprising: an encryption processing section that executes encryption S processing on said contents data; and a control section that executes control over said encryption processing section, characterized in that said encryption processing section is configured to generate a contents check value in units of contents block data to be o verified included in the data, execute collation on the contents check value generated and thereby execute verification processing on the validity of each contents block data in said data.
103. The data processing apparatus according to Claim 102, comprising a contents check value generation key, characterized in that said encryption processing section generates a contents intermediate value based on contents block data to be verified and generate a contents check value by executing encryption processing applying said contents check value generation key to said contents intermediate value. JO 104. The data processing apparatus according to Claim 103, characterized in that when the contents block data to be verified is encrypted, said encryption processing section generates a contents intermediate value by executing predetermined operation 368 processing on an entire decrypted statement obtained through decryption processing of said contents block data in units of a predetermined number of bytes, and when the contents block data to be verified is not encrypted, generates a contents intermediate Svalue by executing predetermined operation processing on the entire contents block data in units of a predetermined number of bytes.
105. The data processing apparatus according to Claim 104, characterized in that said predetermined operation processing 1O applied in said intermediate integrity check value generation processing by said encryption processing section is an exclusive- OR operation.
106. The data processing apparatus according to Claim 104, characterized in that said encryption processing section has an i S encryption processing configuration in CBC mode and said decryption processing applied to the content intermediate value generation processing when the contents block data to be verified is decryption processing in CBC mode.
107. The data processing apparatus according to Claim 106, characterized in that the encryption processing configuration in CBC mode of said encryption processing section is a configuration 369 in which common key encryption processing is applied a plurality of times only to part of a message string to be processed.
108. The data processing apparatus according to Claim 102, characterized in that when the contents block data contains a plurality of parts and some parts included in said contents block data are to be verified, said encryption processing section generates a contents check value based on the parts to be verified,. executes collation processing on the contents check value generated and thereby executes verification processing on the ~o validity in units of content block data in said data.
109. The data processing apparatus according to Claim 108, characterized in that when said contents block data contains a plurality of parts and it is one part that needs to be verified, said encryption processing section generates a contents check 1S value by executing encryption processing applying the contents check value generation key to a value obtained by carrying out an exclusive-OR in units of a predetermined number of bytes on the entire decrypted statement obtained by decryption processing of parts to be verified in the case where said parts to be verified 2o is encrypted, and generates a contents check value by executing encryption processing applying said contents check value generation key to a value obtained by carrying out an exclusive-OR in units of a predetermined number of bytes on said entire part to 370 be verified in the case where said parts to be verified is not encrypted.
110. The data processing apparatus according to Claim 108, characterized in that when said contents block data contains a plurality of parts and it is a plurality of parts that needs to be verified, said encryption processing section uses, as a contents check value, the result obtained by executing encryption processing applying said contents check value generation key to link data of a parts check value obtained by executing encryption to processing applying a contents check value generation key to each part.
111. The data processing apparatus according to Claim 102, characterized in that said encryption processing section further comprises a recording device for storing contents data containing contents block data whose validity has been verified.
112. The data processing apparatus according to Claim 111, characterized in that when collation is not established in the collation processing on a contents check value in said encryption processing section, said control section stops storage in said 2,o recording device. 371
113. The data processing apparatus according to Claim 102, characterized in that said encryption processing section further comprises a reproduction processing section for reproducing data whose validity has been verified.
114. The data processing apparatus according to Claim 113, characterized in that when collation is not established in the collation processing on a contents check value in said encryption processing section, said control section stops reproduction processing in said reproduction processing section. o 115. A data processing method that processes contents data supplied via a recording medium or communication medium, characterized by generating a contents check value in units of contents block data to be verified included in the data, executing collation on the contents check value generated and thereby iS executing verification processing on the validity in units of contents block data in said data.
116. The data processing method according to Claim 115, characterized by generating a contents intermediate value based on contents block data to be verified and generating a contents check O value by executing encryption processing applying said contents check value generation key to said contents intermediate value generated. 372
117. The data processing method according to Claim 115, characterized by generating, when the contents block data to be verified is encrypted, a contents intermediate value by executing predetermined operation processing on an entire decrypted statement obtained through decryption processing of said contents block data in units of a predetermined number of bytes, and generating, when the contents block data to be verified is not encrypted, a contents intermediate value by executing predetermined operation processing on the entire contents block (o data in units of a predetermined number of bytes.
118. The data processing method according to Claim 117, characterized in that said predetermined operation processing applied in said intermediate integrity check value generation processing is an exclusive-OR operation. IS 119. The data processing method according to Claim 117, characterized in that in said contents intermediate value generation processing, said decryption processing applied to the content intermediate value generation processing when the contents block data to be verified is encrypted is decryption processing in CBC mode. 373
120. The data processing method according to Claim 119, characterized in that in said decryption processing configuration in CBC mode, common key encryption processing is applied a plurality of times only to part of a message string to be processed.
121. The data processing method according to Claim 115, characterized by generating, when the contents block data contains a plurality of parts and some parts included in said contents block data are to be verified, a contents check value based on the to parts to be verified, executing collation processing on the contents check value generated and thereby executing verification processing on the validity in units of content block data in said data.
122. The data processing method according to Claim 121, characterized by generating, when the contents block data contains a plurality of parts and it is one part that needs to be verified, a contents check value by executing encryption processing applying the contents check value generation key to a value obtained by carrying out an exclusive-OR in units of a predetermined number of ,0 bytes on the entire decrypted statement obtained by decryption processing of parts to be verified in the case where said part to be verified is encrypted, and generating a contents check value by executing encryption processing applying said contents check value 374 generation key to a value obtained by carrying out an exclusive-OR in units of a predetermined number of bytes on said entire part to be verified in the case where said part to be verified is not encrypted.
123. The data processing method according to Claim 121, characterized by using, when said contents block data contains a plurality of parts and it is a plurality of parts that needs to be verified, as a contents check value, the result obtained by executing encryption processing further applying said contents iZ check value generation key to link data of a parts check value obtained by executing encryption processing applying the contents check value generation key to each part.
124. The data processing method according to Claim 115, further comprising a step of storing contents data containing contents IS block data whose validity has been verified.
125. The data processing method according to Claim 124, characterized in that when collation is not established in the collation processing on a contents check value, said control section stops storage in said recording device. 375
126. The data processing method according to Claim 115, further comprising a step of reproducing data whose validity has been verified.
127. The data processing method according to Claim 126, characterized by stopping reproduction processing when collation is not established in the collation processing on a contents check value.
128. A contents data verification value assignment method for contents data verification processing, characterized by generating iO a contents check value in units of contents block data to be verified included in the data, assigning the contents check value generated to contents data containing the contents block data to be verified.
129. The contents data verification value assignment method 'S according to Claim 128, characterized in that said contents check value is generated through encryption processing applying the contents check value generation key using the contents block data to be checked as a message.
130. The contents data verification value assignment method according to Claim 128, characterized in that said contents check 376 J value is generated by generating a contents intermediate value based on the contents block data to be verified and executing O encryption processing applying said contents check value generation key to said contents intermediate value. \O
131. The contents data verification value assignment method according to Claim 128, characterized in that said contents check (1 value is generated by executing encryption processing in CBC mode on the contents block data to be verified.
132. The contents data verification value assignment method io according to Claim 131, characterized in that said encryption processing configuration in CBC mode is a configuration in which common key encryption processing is applied a plurality of times only to part of a message string to be processed.
133. The contents data verification value assignment method according to Claim 128, characterized by generating, when the contents block data contains a plurality of parts and some parts included in said contents block data are to be verified, a contents check value based on the parts to be verified and assigning the contents check value generated to contents data containing the content block data to be verified. 377
134. The contents data verification value assignment method according to Claim 133, characterized by generating, when said contents block data contains a plurality of parts and it is one part that needs to be verified, a contents check value by executing encryption processing applying the contents check value generation key to a value obtained by carrying out an exclusive-OR in units of a predetermined number of bytes on the entire decrypted statement obtained by decryption processing of parts to be verified in the case where said parts to be verified is lo encrypted, generating a contents check value by executing encryption processing applying said contents check value generation key to a value obtained by carrying out an exclusive-OR in units of a predetermined number of bytes on said entire part to be verified in the case where said parts to be verified is not encrypted and assigning the contents check value generated to the contents data containing the contents block data to be verified.
135. The contents data verification value assignment method according to Claim 133, characterized by using, when said contents block data contains a plurality of parts and it is a plurality of 2Q parts that needs to be verified, as a contents check value, the result obtained by executing encryption processing further applying said contents check value generation key to link data of a parts check value obtained by executing encryption processing applying the contents check value generation key to each part and 378 assigning the contents check value generated to contents data containing the contents block data to be verified.
136. A program supply medium that supplies a computer program to execute data processing on contents data supplied via a recording S medium or communication medium, said computer program comprising: a step of generating a contents check value in units of contents block data to be verified included in the data; and a step of executing collation processing on the contents check value generated and thereby executing verification 1 processing on the validity in units of contents block data in said data.
137. A data processing apparatus for executing processing for generating storing data with respect to a recording device of content data, which has a plurality of content blocks in which at is least a part of the blocks are encrypted and a header section storing information on the contents blocks, characterized in that: in the case in which content data to be an object of storage in said recording device is structured by data stored in said header section, which is an encryption key data Kdis[Kcon] that is an encryption key Kcon of said content block applied encryption processing by an encryption key Kdis, said data processing apparatus has a structure for executing processing for taking out said encryption key data Kdis[Kcon] from 379 said header section and executing decryption processing to generate decryption data Kcon, generating a new encryption key data Kstr[Kcon] that is applied encryption processing by an encryption key Kstr and storing the new encryption key data Kstr[Kcon] in the header section of said content data, and applying a different encryption key Kstr to the generated decryption data Kcon to execute decryption processing.
138. A data processing apparatus for executing processing for generating storing data with respect to a recording device of ko content data, which has a plurality of content blocks in which at least a part of the blocks are encrypted and a header section storing information on the contents blocks, characterized in that: in the case in which said content block included in content data to be an object of storage with respect to said recording device is composed of contents encrypted by an encryption key Kblc and encryption key data Kcon[Kblc] that is encrypted by the encryption key Kcon, and has a structure in which encryption key data Kdis[Kcon] that is the encryption key Kcon applied encryption processing by an encryption key Kdis is stored in said header section, said data processing apparatus has a structure for executing processing for taking out said encryption key data Kdis[Kcon] from said header section and executing decryption processing to generate decryption data Kcon, generating a new encryption key 380 o data Kstr[Kcon] that is applied encryption processing by an encryption key Kstr and storing the encryption key data Kstr[Kcon] O in the header section of said content data, and applying a different encryption key Kstr to the generated decryption data \D S Kcon to execute decryption processing.
139. A data processing apparatus for executing processing for CI generating storing data with respect to a recording device of content data, which has a plurality of content blocks in which at least a part of the blocks are encrypted and a header section storing information on the contents blocks, characterized in that: in the case in which said content block included in content data to be an object of storage with respect to said recording device is composed of contents encrypted by an encryption key Kblc and encryption key data Kdis[Kblc] that is encrypted by the encryption key Kdis, said data processing apparatus has a structure for executing processing for taking out said encryption key data Kdis[Kblc] from said content block section and executing decryption processing of the encryption key Kblc to generate decryption data Kblc, 2o generating an encryption key data Kstr[Kblc] that is applied encryption processing by an encryption key Kstr and storing the encryption key data Kstr[Kblc] in a contents block section, and applying a different encryption key Kstr to the generated decryption data Kblc to execute decryption processing. 381
140. A content data generating method for generating content data, comprising: Scoupling a plurality of content blocks composed of data including at least any one of voice information, image information S and program data; applying encryption processing to at least a part of content blocks included in said plurality of content blocks by an encryption key Kcon; generating encryption key data Kdis[Kcon] that is said pg encryption key Kcon applied encryption processing by an encryption key Kdis and storing the encryption key Kdis in a header section of said content data; and generating content data including said plurality of content blocks and the header section. S141. The content data generating method according to Claim 140, characterized in that said content data generating method further comprises processing of: generating block information that stores information including; identification information on content data; usage policy information including a data length of the content data and a data type of the content data; and 382 )information including a data length of said content block and presence or absence of encryption processing, and storing the information in said header section.
142. The content data generating method according to Claim 140, characterized in that said content data generating method further comprises processing of: generating a part check value based on a part of information composing said header section and storing the part check value in said header section; and o generating a total check value based on said part check value and storing the total check value in said header section.
143. The content data generating method according to Claim 142, characterized in that generation processing of said part check value and generation processing of said total check value are executed by applying a DES encryption processing algorithm with data to be an object of check as a message and a check value generation key as an encryption key.
144. The content data generating method according to Claim 141, characterized in that said content data generating method further comprises: applying encryption processing to said block information by the encryption key Kbit and storing the encryption key data 383 Kdis[Kbit] that is the encryption key Kbit generated by the encryption key Kdis in said header section.
145. The content data generating method according to Claim 140, S characterized in that each block of a plurality of blocks in said Cl content block is generated as a common fixed data length. CI 146. The content data generating method according to Claim 140, characterized in that each block of a plurality of blocks in said content block is generated as a configuration in which an encryption data section and a non-encryption data section are o arranged regularly.
147. A content data generating method for generating content data comprising: coupling a plurality of content blocks including at least any one of voice information, image information and program data; 1S composing at least a part of the plurality of content blocks by an encryption data section that is data including at least any one of voice information, image information and program data by an encryption key Kblc, and a set of encryption key data Kcon[Kblc] that is the encryption key Kblc of the encryption data section applied encryption processing by an encryption key Kcon; generating encryption key data Kdis[Kcon] that is the encryption key Kcon applied encryption processing by an encryption 384 key Kdis and storing the generated the encryption key data Kdis[Kcon] in a header section of said content data; and Sgenerating content data including a plurality of content blocks and a header section. g 148. A content data generating method for generating content data comprising: coupling a plurality of content blocks including at least any one of voice information, image information and program data; composing at least a part of the plurality of content blocks 'O by an encryption data section that is data including at least any one of voice information, image information and program data by an encryption key Kblc, and a set of encryption key data Kdis[Kblc] that is the encryption key Kblc of the encryption data section applied encryption processing by an encryption key Kdis; and generating content data including a plurality of content blocks and a header section.
149. A data processing method for executing processing for storing in a recording device of content data having a plurality of content blocks in which at least a part of blocks are encrypted, Sand a header section in which information on the content blocks is stored, comprising: in the case in which content data to be an object of storage in said recording device is structured by data stored in said 385 header section, which is an encryption key data Kdis[Kcon] that is an encryption key Kcon of said content block applied encryption processing by an encryption key Kdis, taking out said encryption key data Kdis[Kcon] from said Sheader section and executing decryption processing to generate decryption data Kcon; generating a new encryption key data Kstr[Kcon] that is applied encryption processing by an encryption key Kstr by applying a different encryption key Kstr to the generated o decryption data Kcon to execute encryption processing; and storing said generated encryption key data Kstr[Kcon] in a header section of said content data, and storing the header section in said recording device together with said plurality of content blocks.
150. A data processing method for executing processing for storing in a recording device of content data having a plurality of content blocks in which at least a part of blocks are encrypted, and a header section in which information on the content blocks is stored, comprising: in the case in which said content block included in content data to be an object of storage with respect to said recording device is composed of contents encrypted by an encryption key Kblc and encryption key data Kcon[Kblc] that is encrypted by the encryption key Kcon, and has a structure in which encryption key
386- data Kdis[Kcon] that is the encryption key Kcon applied encryption processing by an encryption key Kdis is stored in said header section, taking out said encryption key data Kdis[Kcon] from said 5 header section and executing decryption processing to generate S decryption data Kcon; generating a new encryption key data Kstr[Kcon] that is applied encryption processing by an encryption key Kstr by applying a different encryption key Kstr to the generated io decryption data Kcon to execute encryption processing; and storing said generated encryption key data Kstr[Kcon] in a header section of said content data, and storing the header section in said recording device together with said plurality of content blocks. 151. A data processing method for executing processing for storing in a recording device of content data having a plurality of content blocks in which at least a part of blocks are encrypted, and a header section in which information on the content blocks is stored, comprising: 1 in the case in which said content block included in content data to be an object of storage with respect to said recording device is composed of contents encrypted by an encryption key Kblc and encryption key data Kdis[Kblc] that is encrypted by the encryption key Kdis, 387 Jtaking out said encryption key data Kdis[Kblc] from said content block section and executing decryption processing of the encryption key Kblc to generate decryption data Kblc; generating an encryption key data Kstr[Kblc] that is applied S> encryption processing by an encryption key Kstr by applying a different encryption key Kstr to the generated decryption data Kblc to execute encryption processing; and storing said generated encryption key data Kstr[Kblc] in a content block section, and storing the content block section in o said recording device together with said plurality of content blocks. 152. A program providing medium for providing a computer program causing generation processing of storing data with respect to a recording device of content data, which has a plurality of content iS blocks in which at least a part of the blocks are encrypted and a header section storing information on the contents blocks, to be executed on a computer system, characterized in that: said computer program comprises: in the case in which content data to be an object of storage in said recording device is structured by data stored in said header section, which is an encryption key data Kdis[Kcon] that is an encryption key Kcon of said content block applied encryption processing by an encryption key Kdis, 388 a step of taking out said encryption key data Kdis[Kcon] from said header section and executing decryption processing to generate decryption data Kcon; generating a new encryption key data Kstr[Kcon] that is applied encryption processing by an encryption key Kstr by applying a different encryption key Kstr to the generated decryption data Kcon to execute encryption processing; and storing said generated encryption key data Kstr[Kcon] in a header section of said content data. Lo 153. A data processing apparatus for performing reproduction processing of content data provided by a storage medium or a communication medium, characterized by comprising: a content data analyzing section for executing content data analysis of content data including compressed contents and an expansion processing program of said compressed contents, and executing extraction processing of the compressed contents and the expansion processing program from said content data; and an expansion processing section for executing expansion processing of the content data included in said content data using ^2 an expansion processing program included in the content data obtained as a result of the analysis of said content data analyzing section. 389 154. The data processing apparatus according to Claim 153, characterized by further comprising: a data storing section for storing the compressed contents that are extracted by said content data analyzing section; and a program storing section for storing the expansion processing program extracted by said content data analyzing section, and characterized in that said expansion processing section has a configuration for executing expansion processing with respect to the compressed contents stored in said data io storing section by applying the expansion processing program stored in said program storing section to the compressed contents. 155. The data processing apparatus according to Claim 153, characterized in that said contents data analyzing section has a configuration for obtaining a configuration information of content data based on header information included in said content data and performing analysis of the content data. 156. The data processing apparatus according to Claim 155, characterized in that reproduction priority information of the compressed contents is included in said header information and, if ao there are a plurality of compressed contents that is objects of expansion processing in said expansion processing section, said expansion processing section has a configuration for sequentially executing content expansion processing in accordance with the 390 priority based on the priority information in the header information obtained in said content data analyzing section. 157. The data processing apparatus according to Claim 153, characterized by further comprising: means for displaying information of the compressed contents that are objects of expansion processing; and inputting means for inputting reproduction contents identification data selected from the content information displayed on said displaying means, and characterized in that said expansion processing section has a configuration for executing expansion processing of the compressed contents corresponding to the identification data based on the reproduction contents identification data inputted from said inputting means. 158. A data processing apparatus for performing reproduction processing of content data provided by a storage medium or a communication medium, characterized by comprising: a content data analyzing section for receiving content data including either compressed contents or expansion processing program, distinguishing whether the content data has the compressed contents or the expansion processing program from header information included in the received content data and, at the same time, if the content data has the compressed contents, obtaining a type of a compressing processing program applied to 391 the compressed contents from the header information of the content data, and if the content data has the expansion processing program, obtaining a type of the expansion processing program from the header information of the content data; an expansion processing section for executing expansion processing of the compressed contents, characterized in that said expansion processing section has a configuration for selecting an expansion processing program applicable to the type of the compression processing program of the compressed contents analyzed o by said content data analyzing section based on the type of the expansion processing program analyzed by said content data analyzing section, and executing expansion processing by the selected expansion processing program. 159. The data processing apparatus according to Claim 158, S characterized by further comprising: a data storing section for storing the compressed contents that are extracted by said content data analyzing section; and a program storing section for storing the expansion processing program extracted by said content data analyzing 2 section, and characterized in that said expansion processing section has a configuration for executing expansion processing with respect to the compressed contents stored in said data storing section by applying the expansion processing program stored in said program storing section to the compressed contents. 392 160. The data processing apparatus according to Claim 158, characterized in that reproduction priority information of the compressed contents is included in said header information and, if there are a plurality of compressed contents that is objects of expansion processing, content expansion processing in said expansion processing section has a configuration for sequentially executing content expansion processing in accordance with the priority based on the priority information in the header information obtained in said content data analyzing section. R' 161. The data processing apparatus according to Claim 158, characterized by further comprising retrieving means for retrieving an expansion processing program, and characterized in that said retrieving means has a configuration for retrieving an expansion processing program applicable to a type of the compression processing program of the compressed contents analyzed by said content data analyzing section with program storing means accessible by said data processing apparatus as an object of retrieval. 162. The data processing apparatus according to Claim 158, characterized by further comprising: displaying means for displaying information of the compressed contents that are objects of expansion processing; and 393 inputting means for inputting reproduction contents identification data selected from the content information displayed on said displaying means, and characterized in that said expansion processing section has a configuration for executing expansion processing of the compressed contents corresponding to the identification data based on the reproduction contents identification data inputted from said inputting means. 163. A data processing method for performing reproduction processing of content data provided by a storage medium or a 'o communication medium, characterized by comprising: a content data analyzing step of executing content data analysis of content data including compressed contents and an expansion processing program of said compressed contents, and executing extraction processing of the compressed contents and the expansion processing program from said content data; and an expansion processing step of executing expansion processing of the compressed content included in said content data using an expansion processing program included in the content data obtained as a result of the analysis of said content data analyzing step. 164. The data processing method according to Claim 163, characterized by further comprising: 394 o a data storing step of storing the compressed contents that are extracted by said content data analyzing step; and a program storing step of storing the expansion processing program extracted by said content data analyzing section, and k characterized in that said expansion processing section has a configuration for executing expansion processing with respect to the compressed contents stored in said data storing step by CI applying the expansion processing program stored in said program storing step to the compressed contents. Io 165. The data processing method according to Claim 163, characterized in that said contents data analyzing step obtains a configuration information of content data based on header information included in said content data and performs analysis of the content data. 166. The data processing method according to Claim 165, characterized in that reproduction priority information of the compressed contents is included in said header information and, if there are a plurality of compressed contents that is objects of expansion processing in said expansion processing section, said expansion processing step sequentially executes content expansion processing in accordance with the priority based on the priority information in the header information obtained in said content data analyzing step. 395 167. The data processing method according to Claim 163, characterized by further comprising: displaying step of displaying information of the compressed contents that are objects of expansion processing on displaying means; and inputting step of inputting reproduction contents identification data selected from the content information displayed on said displaying means, and characterized in that said expansion processing step executes expansion processing of the Scompressed contents corresponding to the identification data based on the reproduction contents identification data inputted from said inputting step. 168. A data processing method for performing reproduction processing of content data provided by a storage medium or a communication medium, characterized by comprising: a content data analyzing step of receiving content data including either compressed contents or expansion processing program, distinguishing whether the content data has the compressed contents or the expansion processing program from -o header information included in the received content data and, at the same time, if the content data has the compressed contents, obtaining a type of a compressing processing program applied to the compressed contents from the header information of the content 396 data, and if the content data has the expansion processing program, obtaining a type of the expansion processing program from the header information of the content data; a selecting step of selecting an expansion processing program applicable to the type of the compression processing program of the compressed contents analyzed in said content data analyzing step based on the type of the expansion processing program analyzed in said content data analyzing step; and an expansion processing step of executing expansion to processing by the expansion processing program selected in said selecting step. 169. The data processing method according to Claim 168, characterized by further comprising: a data storing step of storing the compressed contents that are extracted by said content data analyzing section; and a program storing step of storing the expansion processing program extracted by said content data analyzing section, and characterized in that said expansion processing step executes expansion processing with respect to the compressed contents stored in said data storing step by applying the expansion processing program stored in said program storing step to the compressed contents. 397 170. The data processing method according to Claim 168, characterized in that reproduction priority information of the compressed contents is included in said header information and, if there are a plurality of compressed contents that is objects of expansion processing, said content expansion processing step sequentially executes content expansion processing in accordance with the priority based on the priority information in the header information obtained in said content data analyzing step. 171. The data processing method according to Claim 168, a characterized by comprising a retrieving step of retrieving an expansion processing program, and characterized in that said retrieving step retrieves an expansion processing program applicable to a type of the compression processing program of the compressed contents analyzed in said content data analyzing step with program storing means accessible by said data processing apparatus as an object of retrieval. 172. The data processing method according to Claim 168, characterized by further comprising: a displaying step of displaying on displaying means -O information of the compressed contents that are objects of expansion processing; and an inputting step of inputting reproduction contents identification data selected from the content information 398 displayed on said displaying means, and characterized in that said expansion processing step executes expansion processing of the compressed contents corresponding to the identification data based on the reproduction contents identification data inputted from said inputting means. 173. A content data generating method for performing generation processing of content data provided by a storage medium or a communication medium, characterized by generating content data in which compressed contents and an expansion processing program of io the compressed contents are combined. 174. The content data generating method according to Claim 173, characterized in that a configuration information of the content data is added as header information of said content data. 175. The content data generating method according to Claim 173, characterized in that reproduction priority information of contents included in the content data as header information of the content data. 176. A content data generating method for performing generation processing of content data provided by a storage medium or a 2C communication medium, characterized in that content data is generated in which a type of content data for identifying whether 399 the content data has compressed contents or an expansion processing program is added as header information; if the content data has compressed contents, a type of a compression processing program applied to the compressed contents is added as header information; and if the content data has an expansion processing program, a type of an expansion processing program is added as header information. 177. The content data generating method according to Claim 176, ao characterized in that reproduction priority information of contents included in the content data is added as header information of said content data. 178. A program providing medium for providing a computer program that causes a computer system to execute reproduction processing Sof content data provided by a storage medium or a communication medium, characterized by comprising: a content data analyzing step of executing content data analysis of content data including compressed contents and an expansion processing program of said compressed contents, and executing extraction processing of the compressed contents and the expansion processing program from said content data; and an expansion processing step of executing expansion processing of the content data included in said content data using 400 an expansion processing program included in the content data obtained as a result of the analysis of said content data analyzing section. Dated 3 August, 2007 Sony Corporation and Sony Computer Entertainment Inc. Patent Attorneys for the Applicant/Nominated Person SPRUSON FERGUSON 401
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
AU2007203641A AU2007203641A1 (en) | 2000-01-21 | 2007-08-03 | Data processing apparatus and data processing method |
Applications Claiming Priority (9)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000-013322 | 2000-01-21 | ||
JP2000-016251 | 2000-01-25 | ||
JP2000-016029 | 2000-01-25 | ||
JP2000-015858 | 2000-01-25 | ||
JP2000-016213 | 2000-01-25 | ||
JP2000-015551 | 2000-01-25 | ||
JP2000-016292 | 2000-01-25 | ||
AU27074/01A AU785421B2 (en) | 2000-01-21 | 2001-01-19 | Data authentication system |
AU2007203641A AU2007203641A1 (en) | 2000-01-21 | 2007-08-03 | Data processing apparatus and data processing method |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
AU27074/01A Division AU785421B2 (en) | 2000-01-21 | 2001-01-19 | Data authentication system |
Publications (2)
Publication Number | Publication Date |
---|---|
AU2007203641A8 true AU2007203641A8 (en) | 2007-08-23 |
AU2007203641A1 AU2007203641A1 (en) | 2007-08-23 |
Family
ID=38456649
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
AU2002301287A Ceased AU2002301287B8 (en) | 2000-01-21 | 2002-09-03 | Data Processing Apparatus and Data Processing Method |
AU2007203641A Abandoned AU2007203641A1 (en) | 2000-01-21 | 2007-08-03 | Data processing apparatus and data processing method |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
AU2002301287A Ceased AU2002301287B8 (en) | 2000-01-21 | 2002-09-03 | Data Processing Apparatus and Data Processing Method |
Country Status (1)
Country | Link |
---|---|
AU (2) | AU2002301287B8 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110149316A (en) * | 2019-04-22 | 2019-08-20 | 众安信息技术服务有限公司 | A kind of dissemination method and device of block chain |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5917910A (en) * | 1995-10-16 | 1999-06-29 | Sony Corporation | Encrypting method and apparatus, recording method, decrypting method and apparatus, and recording medium |
EP0989557A4 (en) * | 1998-01-26 | 2009-12-23 | Panasonic Corp | Method and system for data recording / reproducing, apparatus for recording/reproducing, and media for recording program |
WO1999055055A1 (en) * | 1998-04-17 | 1999-10-28 | Iomega Corporation | System for keying protected electronic data to particular media to prevent unauthorized copying |
-
2002
- 2002-09-03 AU AU2002301287A patent/AU2002301287B8/en not_active Ceased
-
2007
- 2007-08-03 AU AU2007203641A patent/AU2007203641A1/en not_active Abandoned
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110149316A (en) * | 2019-04-22 | 2019-08-20 | 众安信息技术服务有限公司 | A kind of dissemination method and device of block chain |
Also Published As
Publication number | Publication date |
---|---|
AU2007203641A1 (en) | 2007-08-23 |
AU2002301287B2 (en) | 2004-12-02 |
AU2002301287B8 (en) | 2005-01-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU785421B2 (en) | Data authentication system | |
EP1164748A1 (en) | Storage device authentication system | |
KR20010109323A (en) | Data recording/reproducing device and saved data processing method, and program providing medium | |
JP4524829B2 (en) | Data processing system, recording device, data processing method, and program providing medium | |
JP2001203686A (en) | Data processing unit, data processing method and method for providing data verification value, and program service medium | |
JP2001211162A (en) | Data processing system, recording device, data processing method, and program providing medium | |
JP2001211152A (en) | Data processor, contents data generating method, data processing method, and program providing medium | |
JP4686805B2 (en) | Data storage element manufacturing method, data storage element, and data processing apparatus | |
JP2001211148A (en) | Device, system, and method for data processing and program providing medium | |
JP2001209309A (en) | Data processor, contents data generating method, data processing method and program providing medium | |
AU2005200290B8 (en) | Data processing apparatus and data processing method | |
JP2001209312A (en) | Data processing system, recording device, data processing method and program providing medium | |
AU2007203641A8 (en) | Data processing apparatus and data processing method | |
AU2005200289B2 (en) | Data processing apparatus and data processing method | |
JP2001211151A (en) | Device and method for data processing contents data verification value imparting method, and program providing medium | |
JP2001211149A (en) | Device and method for data processing and program providing medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MK4 | Application lapsed section 142(2)(d) - no continuation fee paid for the application |