Title:
STORAGE MEDIUM CONTROL METHOD
Document Type and Number:
Kind Code:
A1

Abstract:
A storage medium control apparatus capable of improving the processing performance, while protecting copyright protection information in a security mode, includes: a secure resource which executes mutual authentication processing with an authentication area of a storage medium, and performs encryption or decryption of data; a normal resource which sends or receives data to or from the storage medium; an encryption control unit which performs encryption or decryption of data by controlling the secure resource in the secure mode; a storage medium control unit which sends or receives data encrypted by the encryption control unit or data decrypted by the encryption control unit to or from the storage medium by controlling the normal resource, in the secure mode; and a storage medium processing unit which performs predetermined processing for the data decrypted by the encryption control unit or unencrypted data read from the storage medium by the storage medium control unit.
Inventors:
Wada, Hiroyuki (Osaka, JP)
Fukawa, Kotaro (Kyoto, JP)
Oida, Atsushi (Osaka, JP)
Application Number:
11/871486
Publication Date:
04/24/2008
Filing Date:
10/12/2007
View Patent Images:
Images are available in PDF form when logged in. To view PDFs, Login  or  Create Account (Free!)
Assignee:
MATSUSHITA ELECTRIC INDUSTRIAL CO., LTD. (Osaka, JP)
Primary Class:
International Classes:
H04L9/32
Attorney, Agent or Firm:
GREENBLUM & BERNSTEIN, P.L.C. (1950 ROLAND CLARKE PLACE, RESTON, VA, 20191, US)
Claims:
What is claimed is:

1. A storage medium control method for controlling data communication with a storage medium while switching between a secure mode in which use of a secure resource is permitted and a normal mode in which only use of a normal resource is permitted, wherein the storage medium includes: an authentication area which can be accessed after mutual authentication is performed; and a normal area which can be accessed without performing the mutual authentication, the secure resource is a module which executes mutual authentication processing with the authentication area of the storage medium, the normal resource is a module which sends or receives data to or from the storage medium, and said storage medium control method comprises a secure-mode data sending/receiving step of sending or receiving data to or from the storage medium by controlling of the normal resource without switching to the normal mode by a storage medium control unit which controls the storage medium, in the secure mode.

2. The storage medium control method according to claim 1, wherein the secure resource further executes the mutual authentication processing with the authentication area of the storage medium, said secure-mode data sending/receiving step includes a secure-mode encrypted/decrypted data sending/receiving step of sending or receiving the data to or from the storage medium by controlling of the normal resource without switching to the normal mode by the storage medium control unit which controls the storage medium, in the secure mode, the data being the data encrypted by an encryption control unit which controls encryption or decryption of data or the data to be decrypted by an encryption control unit; and said storage medium control method further comprises: a secure-mode encryption/decryption step of encrypting or decrypting data by controlling of the secure resource by the encryption control unit, in the secure mode; and a secure-mode predetermined processing execution step of executing predetermined processing, by a storage medium processing unit, for the data decrypted in said secure-mode encrypting/decrypting step or unencrypted data read from the storage medium in said secure-mode encrypted/decrypted data sending/receiving step, in the secure mode.

3. The storage medium control method according to claim 2, wherein the storage medium control unit includes: a storage medium authentication area control unit operable to control the authentication area of the storage medium in the secure mode; and a storage medium normal area control unit operable to control the normal area of the storage medium in the normal mode, the storage medium processing unit includes: a storage medium authentication area processing unit operable to execute predetermined processing for data in the secure mode; and a storage medium normal area processing unit operable to execute predetermined processing for data in the normal mode, in said secure-mode encrypted/decrypted data sending/receiving step, the data is sent to or received from the authentication area of the storage medium by controlling of the normal resource without switching to the normal mode by the storage medium authentication area control unit, in the secure mode, the data being the data encrypted by the encryption control unit or the data to be decrypted by the encryption control unit, in said secure-mode predetermined processing execution step, the storage medium authentication area processing unit executes the predetermined processing for the data decrypted in said secure-mode encryption/decryption step or the unencrypted data read from the authentication area of the storage medium in said secure-mode encrypted/decrypted data sending/receiving step, in the secure mode, and said storage medium control method further comprises: a normal-mode data sending/receiving step of sending or receiving data to and from the normal area of the storage medium by controlling of the normal resource by the storage medium normal area control unit, in the normal mode; and a normal-mode predetermined processing execution step of executing predetermined processing, by the storage medium normal area processing unit, for the data sent or received in said normal-mode data sending/receiving step, in the normal mode.

4. The storage medium control method according to claim 3, further comprising: an initialization step of acquiring storage medium information including at least address information, area size or access size about the storage medium by executing initialization processing of the storage medium by the storage medium normal area control unit; and a notification step of notifying the storage medium authentication area control unit of the storage medium information acquired in said initialization step, wherein, in said secure-mode encrypted/decrypted data sending/receiving step, the data is sent to or received from the authentication area of the storage medium by controlling of the normal resource using the storage medium information without switching to the normal mode by the storage medium authentication area control unit, in the secure mode, the data being the data encrypted by the encryption control unit or the data to be decrypted by the encryption control unit.

5. The storage medium control method according to claim 3, further comprising: an initialization step of acquiring storage medium information including at least address information, area size or access size about the storage medium by executing initialization processing of the storage medium, irrespective of whether or not the storage medium has already been executed, by the storage medium authentication area control unit, when transitioning to the secure mode, wherein, in said secure-mode encrypted/decrypted data sending/receiving step, the data is sent to or received from the authentication area of the storage medium by controlling of the normal resource using the storage medium information without switching to the normal mode by the storage medium authentication area control unit, in the secure mode, the data being the data encrypted by the encryption control unit or the data to be decrypted by the encryption control unit.

6. The storage medium control method according to claim 3, further comprising: an initialization step of acquiring storage medium information including at least address information, area size or access size about the storage medium by executing initialization processing of the storage medium by the storage medium normal area control unit; an encryption step of encrypting, using a secret key, the storage medium information acquired in said initialization step; a notification step of notifying the storage medium authentication area control unit of the encrypted storage medium information, the encrypted storage medium information being the storage medium information that has been encrypted; and a decryption step of decrypting, using the secret key, the encrypted storage medium information by the storage medium authentication area control unit, wherein, in said secure-mode encrypted/decrypted data sending/receiving step, the data is sent to or received from the authentication area of the storage medium by controlling of the normal resource using the storage medium information without switching to the normal mode by the storage medium authentication area control unit, in the secure mode, the data being the data encrypted by the encryption control unit or the data decrypted by the encryption control unit.

7. The storage medium control method according to claim 3, further comprising: a step of judging, by the storage medium normal area processing unit, whether or not the storage medium normal area control unit is accessing the normal area of the storage medium; a step of permitting the storage medium authentication area control unit to use the normal resource when it is judged that the normal area of the storage medium is not being accessed; a step of judging, by the storage medium authentication area processing unit, whether or not the storage medium authentication area control unit is accessing the authentication area of the storage medium; and a step of permitting the storage medium normal area control unit to use the normal resource when it is judged that the authentication area of the storage medium is not being accessed.

8. The storage medium control method according to claim 3, further comprising: a step of judging a condition of access to the storage medium by referencing of storage medium access data indicating the condition of access to the storage medium by the storage medium authentication area control unit, the storage medium access data allowing referencing from both the storage medium authentication area control unit and the storage medium normal area control unit; a step of permitting the storage medium authentication area control unit to use the normal resource when the storage medium authentication area control unit judges that the storage medium is not being accessed; a step of judging a condition of access to the storage medium by referencing of the storage medium access data by the storage medium normal area processing unit; and a step of permitting the storage medium normal area control unit to use the normal resource when the storage medium normal area control unit judges that the storage medium is not being accessed.

9. The storage medium control method according to claim 3, further comprising: a step of resetting the normal resource by the storage medium normal area control unit or the storage medium authentication area control unit, each time mode switching between the secure mode and the normal mode occurs; and a step of setting a set value including access bit width for accessing the storage medium or access size of data sent to or received from the storage medium for the normal resource by the storage medium normal area control unit or the storage medium authentication area control unit, the storage medium normal area control unit or the storage medium authentication area control unit resetting the normal resource, wherein, in said secure-mode encrypted/decrypted data sending/receiving step, the data is sent to or received from the authentication area of the storage medium by controlling of the normal resource without switching to the normal mode, in accordance with the set value set for the normal resource, by the storage medium authentication area control unit, in the secure mode, the data being the data encrypted by the encryption control unit or the data to be decrypted by the encryption control unit, and in said normal-mode data sending/receiving step, the data is sent to or received from the normal area of the storage medium by controlling of the normal resource, in accordance with the set value set for the normal resource, by the storage medium normal area control unit, in the normal mode.

10. The storage medium control method according to claim 3, further comprising: a step of backing up, in a predetermined memory area, a set value including access bit width for accessing the storage medium or access size of data sent to or received from the storage medium when switching from the normal mode to the secure mode, the storage medium being used by the storage medium normal area control unit; a step of setting the set value to be used by the storage medium authentication area control unit for the normal resource after the set value is backed up in the predetermined memory area; and a step of setting the set value to be used by the storage medium normal area control unit for the normal resource when exiting the secure mode, the set value being backed up in the predetermined memory area, wherein, in said secure-mode encrypted/decrypted data sending/receiving step, the data is sent to or received from the authentication area of the storage medium by controlling of the normal resource without switching to the normal mode, in accordance with the set value set for the normal resource, by the storage medium authentication area control unit, in the secure mode, the data being the data encrypted by the encryption control unit or the data to be decrypted by the encryption control unit, and in said normal-mode data sending/receiving step, the data is sent to or received from the normal area of the storage medium by controlling of the normal resource, in accordance with the set value set for the normal resource, by the storage medium normal area control unit, in the normal mode.

11. The storage medium control method according to claim 3, wherein the normal resource is connected to a set value storage unit which is a module storing a set value including access bit width for accessing the storage medium or access size of data sent to or received from the storage medium, the set value being used when the normal resource accesses the storage medium, said storage medium control method further comprises a step of setting the set value stored in the set value storage unit for each mode by the normal resource, each time mode switching between the normal mode and the secure mode occurs, in said secure-mode encrypted/decrypted data sending/receiving step, the data is sent to or received from the authentication area of the storage medium by controlling the normal resource without switching to the normal mode, in accordance with the set value set for the normal resource, by the storage medium authentication area control unit, in the secure mode, the data being the data encrypted by the encryption control unit or the data to be decrypted by the encryption control unit, and in said normal-mode data sending/receiving step, data is sent to or received from the normal area of the storage medium by controlling of the normal resource, in accordance with the set value set for the normal resource, by the storage medium normal area control unit, in the normal mode.

12. The storage medium control method according to claim 3, further comprising: a step of judging whether or not access to the storage medium is a first access after resetting of the storage medium by the storage medium normal area processing unit, when the access to the storage medium occurs; a step of initializing the storage medium by the storage medium normal area processing unit when it is judged that the access is the first access after the resetting of the storage medium; and a step of notifying the storage medium authentication area control unit of storage medium access information when the normal mode is switched to the secure mode, the storage medium access information being identification information identifying the storage medium and obtained along with the initialization of the storage medium, wherein, in said secure-mode encrypted/decrypted data sending/receiving step, the data is sent to or received from the authentication area of the storage medium by controlling of the normal resource in accordance with the storage medium access information without switching to the normal mode by the storage medium authentication area control unit, in the secure mode, the data being the data encrypted by the encryption control unit or the data to be decrypted by the encryption control unit.

13. The storage medium control method according to claim 12, further comprising a step of executing mutual authentication processing by the storage medium authentication area control unit, only when the mutual authentication processing with the authentication area of the storage medium has not succeeded at all after the resetting of the storage medium, with the authentication area of the storage medium, in the secure mode.

14. The storage medium control method according to claim 12, wherein the resetting of the storage medium is caused by the storage medium being on or off, the storage medium being inserted or removed, or occurrence of an abnormal state.

15. The storage medium control method according to claim 3, further comprising: a step of initializing the storage medium by the storage medium normal area control unit, each time a request to access the storage medium occurs; and a step of notifying the storage medium authentication area control unit of storage medium access information when the normal mode is switched to the secure mode, the storage medium access information being identification information for identifying the storage medium and obtained along with the initialization of the storage medium, wherein, in said secure-mode encrypted/decrypted data sending/receiving step, the data is sent to or received from the authentication area of the storage medium by controlling of the normal resource without switching to the normal mode, in accordance with the storage medium access information, by the storage medium authentication area control unit, in the secure mode, the data being the data encrypted by the encryption control unit or the data to be decrypted by the encryption control unit.

16. A storage medium control apparatus which controls data communication with a storage medium while switching between a secure mode in which use of a secure resource is permitted and a normal mode in which only use of a normal resource is permitted, wherein the storage medium includes: an authentication area which can be accessed after mutual authentication is performed; and a normal area which can be accessed without performing the mutual authentication, and said storage medium control apparatus comprises: said secure resource which executes mutual authentication processing with the authentication area of the storage medium, and encryption or decryption of data; said normal resource which sends or receives data to or from the storage medium; an encryption control unit operable to execute encryption or decryption of data by controlling the secure resource in the secure mode; a storage medium control unit operable to send or receive data to or from the storage medium by controlling of said normal resource without switching to the normal mode, in the secure mode, the data being the data encrypted by said encryption control unit or data to be decrypted by said encryption control unit; and a storage medium processing unit operable to execute predetermined processing for the data decrypted by said encryption control unit or unencrypted data read from the storage medium by said storage medium control unit, in the secure mode.

17. The storage medium control apparatus according to claim 16, wherein the storage medium control unit includes: a storage medium authentication area control unit operable to send or receive data to or from the authentication area of the storage medium by controlling of the normal resource, in the secure mode, the data being the data encrypted by the encryption control unit or the data to be decrypted by the encryption control unit; and a storage medium normal area control unit operable to send or receive data to or from the normal area of the storage medium by controlling of the normal resource, in the normal mode, and the storage medium processing unit includes: a storage medium authentication area processing unit operable to execute predetermined processing for the data decrypted by the encryption control unit or unencrypted data read from the authentication area of the storage medium by the storage medium authentication area control unit, in the secure mode; and a storage medium normal area processing unit operable to execute predetermined processing for the unencrypted data read from the normal area of the storage medium by the storage medium normal area control unit, in the normal mode.

18. The storage medium control apparatus according to claim 17, further comprising: an encoding processing unit operable to receive video/audio contents from the storage medium normal area control unit, analyze an encoding format of the received video/audio contents, decode the video/audio contents, and output video/audio data in particular data unit; and a video/audio reproduction unit operable to receive and reproduce the video/audio data outputted from the encoding processing unit in the particular data unit.

19. The storage medium control apparatus according to claim 17, further comprising: a video/audio recording unit operable to receive video/audio data in particular data unit; and an encoding processing unit operable to encode the video/audio data received by the video/audio recording unit on the basis of a particular encoding format, and output the data to the storage medium normal area control unit.

20. A program for causing a computer to function as a storage medium control apparatus which controls data communication with a storage medium while switching between a secure mode in which use of a secure resource is permitted and a normal mode in which only use of a normal resource is permitted, wherein the storage medium includes: an authentication area which can be accessed after mutual authentication is performed; and a normal area which can be accessed without performing the mutual authentication, and the program causes the computer to function as: the secure resource which executes mutual authentication processing with the authentication area of the storage medium, and encryption or decryption of data; the normal resource which sends or receives data to or from the storage medium; an encryption control unit operable to execute encryption or decryption of data by controlling the secure resource in the secure mode; a storage medium control unit operable to send or receive data to or from the storage medium by controlling of the normal resource without switching to the normal mode, in the secure mode, the data being the data encrypted by the encryption control unit or data to be decrypted by the encryption control unit; and a storage medium processing unit operable to execute predetermined processing for the data decrypted by the encryption control unit or unencrypted data read from the storage medium by the storage medium control unit.

Description:

BACKGROUND OF THE INVENTION

(1) Field of the Invention

The present invention relates to a storage medium control method for controlling access to a storage medium including an authentication area which can be accessed after executing a mutual authentication processing and a normal area which can be accessed without executing the mutual authentication processing.

(2) Description of the Related Art

Recently, a necessity for copyright protection of contents has been increased. In terrestrial digital broadcasting and the like, contents distribution including right information, which is described later, has been performed. When such contents are recorded in a storage medium, it is necessary to record the right information together with the contents.

The “right information” includes information which is important to protect copyright, such as information about whether or not the contents can be moved, copied or reproduced and information about the number of times the contents can be removed, copied or reproduced, and the like. Therefore, various equipment for handling such contents is required to handle them in a manner that the right information is not falsified.

Information required to be protected, such as the right information, is stored in an “authentication area” of a storage medium, and it is not possible to access data stored in the authentication area until mutual authentication is performed between the storage medium and the various equipment. Meanwhile, other information is stored in a “normal area” of the storage medium which can be accessed without a necessity of mutual authentication.

There has been proposed, as a data access apparatus for accessing the storage medium, a data processing apparatus in which a monitor program switches between a “secure mode” enabling access to secure data and secure applications required to be protected and a “normal mode” in which the secure data and the secure applications cannot be accessed, and executes the mode (for example, see Japanese Unexamined Patent Application Publication No. 2005-182774).

The data processing apparatus described in Japanese Unexamined Patent Application Publication No. 2005-182774 reproduces the contents while protecting the right information by switching between the normal mode and the secure mode to access the storage medium.

However, a processing, such as a save/restore processing, of security information is required to switch between the secure mode and the normal mode. Furthermore, in the data processing apparatus described in Japanese Unexamined Patent Application Publication No. 2005-182774, switching between both modes caused by alternately accessing a secure resource and a normal resource frequently occurs, especially in copyright protection processing such as the mutual authentication or access to the authentication area. Therefore, there is a problem that the processing performance significantly deteriorates. Note that the “secure resource” refers to hardware for executing the mutual authentication processing or performing encryption or decryption of data, which can operate only in the secure mode. On the other hand, the “normal resource” refers to hardware for writing and reading of data to and from the storage medium, which can operate only in the normal mode.

SUMMARY OF THE INVENTION

The present invention has been made to solve the above problems, and its object is to provide a storage medium control method which makes it possible to improve a processing performance while protecting copyright protection information in a secure mode.

A storage medium control method according to an aspect of the present invention is a storage medium control method for controlling data communication with a storage medium while switching between a secure mode in which use of a secure resource is permitted and a normal mode in which only use of a normal resource is permitted. The storage medium includes: an authentication area which can be accessed after mutual authentication is performed; and a normal area which can be accessed without performing the mutual authentication. The secure resource is a module which executes mutual authentication processing with the authentication area of the storage medium, and the normal resource is a module which sends or receives data to or from the storage medium. The storage medium control method includes a secure-mode data sending/receiving step of sending or receiving data to or from the storage medium by controlling of the normal resource without switching to the normal mode by a storage medium control unit which controls the storage medium, in the secure mode.

According to this configuration, it is possible to directly access the normal resource even in the secure mode. Therefore, it is not necessary to perform switching to the normal mode when accessing the data stored in the storage medium in the secure mode. Accordingly, it is possible to reduce the number of times of switching between the secure mode and the normal mode. Furthermore, it is possible to perform a processing without handling copyright protection information (right information) on the normal mode side. Accordingly, it is possible to improve the processing performance while protecting the copyright protection information (right information) in the security mode.

It is preferable that the secure resource further execute the mutual authentication processing with the authentication area of the storage medium. The secure-mode data sending/receiving step includes a secure-mode encrypted/decrypted data sending/receiving step of sending or receiving the data to or from the storage medium by controlling of the normal resource without switching to the normal mode by the storage medium control unit which controls the storage medium, in the secure mode, the data being the data encrypted by an encryption control unit which controls encryption or decryption of data or the data to be decrypted by an encryption control unit. The storage medium control method further includes: a secure-mode encryption/decryption step of encrypting or decrypting data by controlling of the secure resource by the encryption control unit, in the secure mode; and a secure-mode predetermined processing execution step of executing predetermined processing, by a storage medium processing unit, for the data decrypted in said secure-mode encrypting/decrypting step or unencrypted data read from the storage medium in said secure-mode encrypted/decrypted data sending/receiving step, in the secure mode.

The storage medium control unit includes: a storage medium authentication area control unit which controls the authentication area of the storage medium in the secure mode; and a storage medium normal area control unit which controls the normal area of the storage medium in the normal mode. The storage medium processing unit includes: a storage medium authentication area processing unit which executes predetermined processing for data in the secure mode; and a storage medium normal area processing unit which executes predetermined processing for data in the normal mode. In the secure-mode encrypted/decrypted data sending/receiving step, the data is sent to or received from the authentication area of the storage medium by controlling of the normal resource without switching to the normal mode by the storage medium authentication area control unit, in the secure mode, the data being the data encrypted by the encryption control unit or the data to be decrypted by the encryption control unit. In the secure-mode predetermined processing execution step, the storage medium authentication area processing unit executes the predetermined processing for the data decrypted in the secure-mode encryption/decryption step or the unencrypted data read from the authentication area of the storage medium in the secure-mode encrypted/decrypted data sending/receiving step, in the secure mode. The storage medium control method further includes: a normal-mode data sending/receiving step of sending or receiving data to and from the normal area of the storage medium by controlling of the normal resource by the storage medium normal area control unit, in the normal mode; and a normal-mode predetermined processing execution step of executing predetermined processing, by the storage medium normal area processing unit, for the data sent or received in said normal-mode data sending/receiving step, in the normal mode.

According to this configuration, it is further possible to perform data access to the normal area and data access to the authentication area while sharing the same normal resource under the control from the normal mode side and the control from the secure mode side. Therefore, it is not necessary to switch to the normal mode when accessing the data stored in the storage medium in the secure mode, and it is possible to reduce the number of times of switching between the secure mode and the normal mode. Thereby, the processing can be speeded up.

Furthermore, it is usually possible to easily add the storage medium authentication area control unit and the storage medium authentication area processing unit while avoiding a modification of the storage medium normal area control unit and the storage medium normal area processing unit configured by an existing general-purpose OS as much as possible.

The storage medium control method further includes: an initialization step of acquiring storage medium information including at least address information, area size or access size about the storage medium by executing initialization processing of the storage medium by the storage medium normal area control unit; and a notification step of notifying the storage medium authentication area control unit of the storage medium information acquired in said initialization step. In the secure-mode encrypted/decrypted data sending/receiving step, the data is sent to or received from the authentication area of the storage medium by controlling of the normal resource using the storage medium information without switching to the normal mode by the storage medium authentication area control unit, in the secure mode, the data being the data encrypted by the encryption control unit or the data to be decrypted by the encryption control unit.

According to this configuration, it is possible to access the storage medium on the normal mode side and on the secure mode side simply by performing an initialization of the storage medium only on the normal mode side.

The storage medium control method further includes: an initialization step of acquiring storage medium information including at least address information, area size or access size about the storage medium by executing initialization processing of the storage medium, irrespective of whether or not the storage medium has already been executed, by the storage medium authentication area control unit, when transitioning to the secure mode. In the secure-mode encrypted/decrypted data sending/receiving step, the data is sent to or received from the authentication area of the storage medium by controlling of the normal resource using the storage medium information without switching to the normal mode by the storage medium authentication area control unit, in the secure mode, the data being the data encrypted by the encryption control unit or the data to be decrypted by the encryption control unit.

According to this configuration, it is possible for the storage medium authentication area control unit to acquire the storage medium information independent from the storage medium normal area control unit. Therefore, the operation is possible without synchronizing the storage medium normal area control unit and the storage medium authentication area control unit, so that the processing can be speeded up.

The storage medium control method further includes: an initialization step of acquiring storage medium information including at least address information, area size or access size about the storage medium by executing initialization processing of the storage medium by the storage medium normal area control unit; an encryption step of encrypting, using a secret key, the storage medium information acquired in said initialization step; a notification step of notifying the storage medium authentication area control unit of the encrypted storage medium information, the encrypted storage medium information being the storage medium information that has been encrypted; and a decryption step of decrypting, using the secret key, the encrypted storage medium information by the storage medium authentication area control unit. In the secure-mode encrypted/decrypted data sending/receiving step, the data is sent to or received from the authentication area of the storage medium by controlling of the normal resource using the storage medium information without switching to the normal mode by the storage medium authentication area control unit, in the secure mode, the data being the data encrypted by the encryption control unit or the data decrypted by the encryption control unit.

According to this configuration, the storage medium information is encrypted. Therefore, it is possible to improve the strength of security of data in sending and receiving the data.

The storage medium control method further includes: a step of judging, by the storage medium normal area processing unit, whether or not the storage medium normal area control unit is accessing the normal area of the storage medium; a step of permitting the storage medium authentication area control unit to use the normal resource when it is judged that the normal area of the storage medium is not being accessed; a step of judging, by the storage medium authentication area processing unit, whether or not the storage medium authentication area control unit is accessing the authentication area of the storage medium; and a step of permitting the storage medium normal area control unit to use the normal resource when it is judged that the authentication area of the storage medium is not being accessed.

According to this configuration, it is possible to perform an exclusive control so that the storage medium normal area control unit and the storage medium authentication area control unit do not access the storage medium at the same time.

The storage medium control method further includes: a step of judging a condition of access to the storage medium by referencing of storage medium access data indicating the condition of access to the storage medium by the storage medium authentication area control unit, the storage medium access data allowing referencing from both the storage medium authentication area control unit and the storage medium normal area control unit; a step of permitting the storage medium authentication area control unit to use the normal resource when the storage medium authentication area control unit judges that the storage medium is not being accessed; a step of judging a condition of access to the storage medium by referencing of the storage medium access data by the storage medium normal area processing unit; and a step of permitting the storage medium normal area control unit to use the normal resource when the storage medium normal area control unit judges that the storage medium is not being accessed.

According to this configuration, it is possible to perform the exclusive control so that the storage medium normal area control unit and the storage medium authentication area control unit do not access the storage medium at the same time.

The storage medium control method further includes: a step of resetting the normal resource by the storage medium normal area control unit or the storage medium authentication area control unit, each time mode switching between the secure mode and the normal mode occurs; and a step of setting a set value including access bit width for accessing the storage medium or access size of data sent to or received from the storage medium for the normal resource by the storage medium normal area control unit or the storage medium authentication area control unit, the storage medium normal area control unit or the storage medium authentication area control unit resetting the normal resource. In the secure-mode encrypted/decrypted data sending/receiving step, the data is sent to or received from the authentication area of the storage medium by controlling of the normal resource without switching to the normal mode, in accordance with the set value set for the normal resource, by the storage medium authentication area control unit, in the secure mode, the data being the data encrypted by the encryption control unit or the data to be decrypted by the encryption control unit. In the normal-mode data sending/receiving step, the data is sent to or received from the normal area of the storage medium by controlling of the normal resource, in accordance with the set value set for the normal resource, by the storage medium normal area control unit, in the normal mode.

According to this configuration, each of the storage medium normal area control unit and the storage medium authentication area control unit resets and sets set values for the normal resource. Therefore, the storage medium authentication area control unit can access the storage medium without depending on the set values of the normal resource set by the storage medium normal area control unit, and the storage medium normal area control unit can access the storage medium without depending on the set values of the normal resource set by the storage medium authentication area control unit.

The storage medium control method further includes: a step of backing up, in a predetermined memory area, a set value including access bit width for accessing the storage medium or access size of data sent to or received from the storage medium when switching from the normal mode to the secure mode, the storage medium being used by the storage medium normal area control unit; a step of setting the set value to be used by the storage medium authentication area control unit for the normal resource after the set value is backed up in the predetermined memory area; and a step of setting the set value to be used by the storage medium normal area control unit for the normal resource when exiting the secure mode, the set value being backed up in the predetermined memory area. In the secure-mode encrypted/decrypted data sending/receiving step, the data is sent to or received from the authentication area of the storage medium by controlling of the normal resource without switching to the normal mode, in accordance with the set value set for the normal resource, by the storage medium authentication area control unit, in the secure mode, the data being the data encrypted by the encryption control unit or the data to be decrypted by the encryption control unit. In the normal-mode data sending/receiving step, the data is sent to or received from the normal area of the storage medium by controlling of the normal resource, in accordance with the set value set for the normal resource, by the storage medium normal area control unit, in the normal mode.

According to this configuration, it is not necessary to set the set values for a normal resource in the normal mode. Therefore, it is not necessary to modify an existing storage medium normal area control unit.

The normal resource is connected to a set value storage unit which is a module storing a set value including access bit width for accessing the storage medium or access size of data sent to or received from the storage medium, the set value being used when the normal resource accesses the storage medium. The storage medium control method further includes a step of setting the set value stored in the set value storage unit for each mode by the normal resource, each time mode switching between the normal mode and the secure mode occurs. In the secure-mode encrypted/decrypted data sending/receiving step, the data is sent to or received from the authentication area of the storage medium by controlling the normal resource without switching to the normal mode, in accordance with the set value set for the normal resource, by the storage medium authentication area control unit, in the secure mode, the data being the data encrypted by the encryption control unit or the data to be decrypted by the encryption control unit. In the normal-mode data sending/receiving step, data is sent to or received from the normal area of the storage medium by controlling of the normal resource, in accordance with the set value set for the normal resource, by the storage medium normal area control unit, in the normal mode.

According to this configuration, when the mode is switched, the normal resource reads the set values from the set value storage unit, which is hardware, and sets the set values. Therefore, it is possible to change the set values at a high speed with the switching of the mode.

The storage medium control method further includes: a step of judging whether or not access to the storage medium is a first access after resetting of the storage medium by the storage medium normal area processing unit, when the access to the storage medium occurs; a step of initializing the storage medium by the storage medium normal area processing unit when it is judged that the access is the first access after the resetting of the storage medium; and a step of notifying the storage medium authentication area control unit of storage medium access information when the normal mode is switched to the secure mode, the storage medium access information being identification information identifying the storage medium and obtained along with the initialization of the storage medium. In the secure-mode encrypted/decrypted data sending/receiving step, the data is sent to or received from the authentication area of the storage medium by controlling of the normal resource in accordance with the storage medium access information without switching to the normal mode by the storage medium authentication area control unit, in the secure mode, the data being the data encrypted by the encryption control unit or the data to be decrypted by the encryption control unit. It should be noted that the storage medium is reset when turning the power on or off, inserting or removing the storage medium, occurrence of an abnormal state, or the like takes place.

According to this configuration, when the mode is switched, it is possible to notify not the storage medium information but only the storage medium access information to the storage medium authentication area control unit. Therefore, the processing by the storage medium authentication area control unit can be speeded up.

The storage medium control method further includes a step of executing mutual authentication processing by the storage medium authentication area control unit, only when the mutual authentication processing with the authentication area of the storage medium has not succeeded at all after the resetting of the storage medium, with the authentication area of the storage medium, in the secure mode.

According to this configuration, it is possible to omit the second and subsequent mutual authentication processing. Therefore, the processing can be speeded up.

The storage medium control method further includes: a step of initializing the storage medium by the storage medium normal area control unit, each time a request to access the storage medium occurs; and a step of notifying the storage medium authentication area control unit of storage medium access information when the normal mode is switched to the secure mode, the storage medium access information being identification information for identifying the storage medium and obtained along with the initialization of the storage medium. In the secure-mode encrypted/decrypted data sending/receiving step, the data is sent to or received from the authentication area of the storage medium by controlling of the normal resource without switching to the normal mode, in accordance with the storage medium access information, by the storage medium authentication area control unit, in the secure mode, the data being the data encrypted by the encryption control unit or the data to be decrypted by the encryption control unit.

According to this configuration, the storage medium normal area control unit can always start processing after the storage medium is reset, and on the contrary, a storage medium authentication area control unit can always start a processing on the assumption that the storage medium has been reset. Thereby, the processing for judging reset of the storage medium is reduced, and the processing can be speeded up.

A storage medium control apparatus according to other aspect of the present invention is a storage medium control apparatus which controls data communication with a storage medium while switching between a secure mode in which use of a secure resource is permitted and a normal mode in which only use of a normal resource is permitted. The storage medium includes: an authentication area which can be accessed after mutual authentication is performed; and a normal area which can be accessed without performing the mutual authentication. The storage medium control apparatus includes: the secure resource which executes mutual authentication processing with the authentication area of the storage medium, and encryption or decryption of data; the normal resource which sends or receives data to or from the storage medium; an encryption control unit which executes encryption or decryption of data by controlling the secure resource in the secure mode; a storage medium control unit which sends or receives data to or from the storage medium by controlling of the normal resource without switching to the normal mode, in the secure mode, the data being the data encrypted by said encryption control unit or data to be decrypted by said encryption control unit; and a storage medium processing unit which executes predetermined processing for the data decrypted by the encryption control unit or unencrypted data read from the storage medium by the storage medium control unit, in the secure mode.

According to this configuration, it is possible to directly access the normal resource even in the secure mode. Therefore, it is not necessary to perform the switching to the normal mode when accessing the data stored in the storage medium in the secure mode. Accordingly, it is possible to reduce the number of times of switching between the secure mode and the normal mode. Furthermore, it is possible to perform the processing without handling the copyright protection information (right information) on the normal mode side. Accordingly, it is possible to improve the processing performance while protecting the copyright protection information (right information) in the security mode.

The storage medium control unit includes: a storage medium authentication area control unit which sends or receives data to or from the authentication area of the storage medium by controlling of the normal resource, in the secure mode, the data being the data encrypted by the encryption control unit or the data to be decrypted by the encryption control unit; and a storage medium normal area control unit which sends or receives data to or from the normal area of the storage medium by controlling of the normal resource, in the normal mode. The storage medium processing unit includes: a storage medium authentication area processing unit which executes predetermined processing for the data decrypted by the encryption control unit or unencrypted data read from the authentication area of the storage medium by the storage medium authentication area control unit, in the secure mode; and a storage medium normal area processing unit which executes predetermined processing for the unencrypted data read from the normal area of the storage medium by the storage medium normal area control unit, in the normal mode.

According to this configuration, it is further possible to perform the data access to the normal area and the data access to the authentication area while sharing the same normal resource under the control from the normal mode side and the control from the secure mode side. Therefore, it is not necessary to switch to the normal mode when accessing the data stored in the storage medium in the secure mode, and it is possible to reduce the number of times of switching between the secure mode and the normal mode. Thereby, the processing can be speeded up.

Furthermore, it is usually possible to easily add the storage medium authentication area control unit and the storage medium authentication area processing unit while avoiding the modification of the storage medium normal area control unit and the storage medium normal area processing unit configured by the existing general-purpose OS as much as possible.

The storage medium control apparatus further includes: an encoding processing unit which receives video/audio contents from the storage medium normal area control unit, analyzes an encoding format of the received video/audio contents, decodes the video/audio contents, and outputs video/audio data in particular data unit; and a video/audio reproduction unit which receives and reproduces the video/audio data outputted from the encoding processing unit in the particular data unit.

The storage medium control apparatus further includes: a video/audio recording unit which receives video/audio data in particular data unit; and an encoding processing unit which encodes the video/audio data received by the video/audio recording unit on the basis of a particular encoding format, and outputs the data to the storage medium normal area control unit.

According to the present invention, it is possible to provide the storage medium control method and the like capable of improving the processing performance while protecting the copyright protection information in the secure mode.

Further Information about Technical Background to this Application

The disclosure of Japanese Patent Application No. 2006-284373 filed on Oct. 18, 2006 including specification, drawings and claims is incorporated herein by reference in its entirety.

The disclosure of Japanese Patent Application No. 2007-129806 filed on May 15, 2007 including specification, drawings and claims is incorporated herein by reference in its entirety.

BRIEF DESCRIPTION OF THE DRAWINGS

These and other objects, advantages and features of the invention will become apparent from the following description thereof taken in conjunction with the accompanying drawings that illustrate a specific embodiment of the invention. In the Drawings:

FIG. 1 is a diagram showing an aspect of utilization of a storage medium control system;

FIG. 2 is a functional block diagram showing a configuration of a storage medium control system according to a first embodiment;

FIGS. 3A to 3C are flowcharts showing control processing of a storage medium according to the first embodiment;

FIG. 4 is a functional block diagram showing a configuration of a storage medium control system according to a second embodiment;

FIGS. 5A to 5C are flowcharts showing a control processing of a storage medium according to the second embodiment;

FIGS. 6A and 6B are flowcharts showing a control processing of a storage medium according to a third embodiment;

FIG. 7 is a flowchart showing a control processing of a storage medium according to a first modification of the third embodiment;

FIGS. 8A and 8B are flowcharts showing a control processing of a storage medium according to a second modification of the third embodiment;

FIGS. 9A and 9B are flowcharts showing a control processing of a storage medium according to a fourth embodiment;

FIGS. 10A and 10B are flowcharts showing a control processing of a storage medium according to a modification of the fourth embodiment;

FIGS. 11A and 11B are flowcharts showing a control processing of a storage medium according to a fifth embodiment;

FIG. 12 is a flowchart showing a control processing of a storage medium according to a first modification of the fifth embodiment;

FIG. 13 is a functional block diagram showing a configuration of a storage medium control system according to a second modification of the fifth embodiment;

FIGS. 14A and 14B are flowcharts showing a control processing of a storage medium according to the second modification of the fifth embodiment;

FIGS. 15A and 15B are flowcharts showing a control processing of a storage medium according to a sixth embodiment;

FIGS. 16A and 16B are flowcharts showing a control processing of a storage medium according to a first modification of the sixth embodiment;

FIG. 17 is a flowchart showing a control processing of a storage medium according to a second modification of the sixth embodiment;

FIG. 18 is a diagram showing a configuration of a storage medium video and audio reproduction system according to an seventh embodiment; and

FIG. 19 is a diagram showing a configuration of a storage medium video and audio recording system according to an eighth embodiment.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

First Embodiment

A storage medium control system according to a first embodiment of the present invention will be described with reference to drawings.

FIG. 1 is a diagram showing an aspect of utilization of the storage medium control system.

A storage medium control system 20 is provided with a mobile phone 10 and a copyright-protection-function-equipped memory card 11 to be mounted in the mobile phone 10 .

The mobile phone 10 acquires an encryption key from the memory card 11 and sets it for the mobile phone 10 . The mobile phone 10 acquires contents which have been encrypted (hereinafter referred to as “encrypted contents”) from the memory card 11 . The mobile phone 10 decrypts the acquired video contents or audio contents and reproduces the decrypted video contents or audio contents.

Alternatively, the mobile phone 10 encrypts video contents or audio contents delivered from a contents distribution apparatus 12 via a TV broadcast network 13 , the Internet 14 , or a mobile phone network 15 and records the encrypted contents in the memory card 11 together with the encryption key.

Note that, though the memory card 11 is assumed to be the storage medium in FIG. 1, the storage medium for realizing the storage medium control system is not limited to a memory card. It may be any other storage medium, such as a Digital Versatile Disk (DVD), a Hard Disk (HD), or a Random Access Memory (RAM).

The mobile phone 10 is assumed to be a storage medium control apparatus which controls the storage medium. However, the storage medium control apparatus for realizing the storage medium control system is not limited to the mobile phone 10 . It may be any other storage medium control apparatus, such as a TV set, a DVD recorder, or a digital still camera.

FIG. 2 is a functional block diagram showing a configuration of the storage medium control system 20 .

The storage medium control system 20 is provided with a storage medium 121 and a storage medium control apparatus 100 . The memory card 11 shown in FIG. 1 is an example of the storage medium 121 , and the mobile phone 10 is an example of the storage medium control apparatus 100 .

The storage medium 121 is a medium which stores data and is configured by a normal area 123 , an authentication area 124 , and a data sending/receiving control device 122 .

The normal area 123 is a storage area which can be accessed without performing mutual authentication with the storage medium control apparatus 100 , and it is a storage area for storing data including unencrypted plain text contents 125 and encrypted contents 126 .

The authentication area 124 is a storage area which can be accessed after mutual authentication is performed with the storage medium control apparatus 100 , and it includes a right information storage area 127 inside it. The right information storage area 127 is a storage area for storing right information about the encrypted contents 126 stored in the normal area 123 .

The data sending/receiving control device 122 is a processing unit which performs input/output control of the data stored in the normal area 123 and the authentication area 124 on the basis of a data read or write request from the storage medium control apparatus 100 .

The storage medium control apparatus 100 is an apparatus which reads and writes data to and from the storage medium 121 , and it is provided with a normal mode unit 106 , a secure mode unit 101 , and a data sending/receiving control device 108 .

The storage medium control apparatus 100 is provided with a common Central Processing Unit (CPU), a memory, and the like, and it realizes the normal mode unit 106 and the secure mode unit 101 described above by executing a program stored in the memory.

The data sending/receiving control device 108 is configured by hardware.

Note that, since other components are not directly related to the present invention, they are not shown, and a description thereof is omitted.

The data sending/receiving control device 108 is provided with a normal resource 110 and a secure resource 109 .

The normal resource 110 is a processing unit for reading data from the storage medium 121 and writing data to the storage medium 121 .

The secure resource 109 is a processing unit which performs the mutual authentication with the storage medium 121 using data specified by the normal resource 110 . The secure resource 109 also decrypts the encrypted contents 126 read from the normal area 123 . Furthermore, the secure resource 109 encrypts unencrypted contents which are used within the storage medium control apparatus 100 .

The normal mode unit 106 is a processing unit realized by executing a general-purpose Operating System (OS) represented by Linux® on the CPU, and it is provided with a normal mode switching control unit 107 .

The normal mode switching control unit 107 is a software module which performs a processing for switching between a normal mode and a secure mode, and it sends and receives data between the normal mode unit 106 and the secure mode unit 101 .

Here, the “normal mode” refers to a mode in which the secure resource 109 cannot be accessed and in which only the normal resource 110 can be accessed.

The “secure mode” refers to a mode in which the secure resource 109 can be accessed. Note that, in the “secure mode” in the present embodiment, it is also possible to access the normal resource 110 .

The secure mode unit 101 is a processing unit realized by executing a secure OS on the CPU, and it is provided with an encryption control unit 105 , a storage medium control unit 104 , a storage medium processing unit 103 , and a secure mode switching control unit 102 .

The encryption control unit 105 is a software module which controls the secure resource 109 to execute a mutual authentication processing between the storage medium 121 and the storage medium control apparatus 100 , and to perform encryption and decryption of contents.

The storage medium control unit 104 is a software module which controls data writing to and data reading from the normal area 123 and the authentication area 124 inside the storage medium 121 via the normal resource 110 , and controls the encryption control unit 105 .

The storage medium processing unit 103 is a software module which performs access to the storage medium 121 , mutual authentication between the storage medium 121 and the storage medium control apparatus 100 , and encryption and decryption of contents data, via the storage medium control unit 104 and the encryption control unit 105 .

The secure mode switching control unit 102 is a software module which switches between the normal mode and the secure mode, and sends and receives the data between the normal mode unit 106 and the secure mode unit 101 .

Next, a control processing of the storage medium 121 from the secure mode unit 101 will be described.

FIGS. 3A to 3C are flowcharts showing the control processing of the storage medium 121 from the secure mode unit 101 .

As the scenes where it is assumed that the above processing is performed, various scenes are assumed, such as a case of inserting the memory card 11 into the mobile phone 10 to reproduce encrypted contents recorded in the memory card 11 and a case of inserting the memory card 11 into the mobile phone 10 to record the encrypted contents in the memory card 11 . Note that timing of executing the above processing depends on the storage medium control apparatus 100 such as the mobile phone 10 , and the processing may be executed at any timing.

When a request to access the storage medium 121 is issued by the storage medium control apparatus 100 (S 2 : YES), the normal mode switching control unit 107 sends a command to the secure mode switching control unit 102 to switch from the normal mode to the secure mode (S 4 ). When a request to access the storage medium 121 is not issued (S 2 : NO), the processing normally ends.

When the secure mode switching control unit 102 receives the command from the normal mode switching control unit 107 , it is assumed that the transition from the normal mode to the secure mode has succeeded (S 6 : YES). When the secure mode switching control unit 102 cannot receive the command from the normal mode switching control unit 107 , it is assumed that the transition to the secure mode has failed (S 6 : NO), and the storage medium control apparatus 100 abnormally ends.

When transition to the secure mode has succeeded (S 6 : YES), the secure mode switching control unit 102 performs a processing on the basis of the command received from the normal mode switching control unit 107 .

When the received command is a command to access the normal area 123 of the storage medium 121 (S 8 : YES), the secure mode switching control unit 102 sends, to the storage medium processing unit 103 , a command to request access to the normal area 123 (S 10 ).

After confirming that the received command is a command to request the access to the normal area 123 , the storage medium processing unit 103 sends, to the storage medium control unit 104 , the command to request the access to the normal area 123 (S 10 ). After confirming that the received command is a command to access the normal area 123 , the storage medium control unit 104 controls the normal resource 110 of the data sending/receiving control device 108 to send, to the storage medium 121 via a data bus 128 , the command to access the normal area 123 (S 10 ).

After the data sending/receiving control device 122 receives the access command sent from the normal resource 110 , and the storage medium 121 confirms that the received access command is a command to access the normal area 123 , the storage medium 121 accesses the normal area 123 and sends the access result to the normal resource 110 via the data sending/receiving control device 122 and the data bus 128 .

The normal resource 110 receives the access result from the data sending/receiving control device 122 (S 12 ). The normal resource 110 which has received the access result notifies the storage medium control unit 104 that the access to the normal area 123 has completed and it has received the access result (S 14 ).

When the result of the access to the normal area 123 received from the normal resource 110 by the storage medium control unit 104 indicates success (S 16 : YES), the processing proceeds to S 18 . When the result of the access to the normal area 123 received from the normal resource 110 indicates failure (S 16 : NO), the storage medium control apparatus 100 abnormally ends.

When the data of the normal area 123 read at S 12 is the encrypted contents 126 (S 18 : YES), the storage medium processing unit 103 sends, to the storage medium control unit 104 , a command to read an encryption key for encrypting the read data of the normal area 123 , which is stored in the authentication area 124 . The storage medium control unit 104 controls the normal resource 110 to send, to the storage medium 121 , the command to read the encryption key from the authentication area 124 (S 20 ).

After confirming that the command received by the data sending/receiving control device 122 is a command to read encryption key data from the authentication area 124 , the storage medium 121 reads the encryption key from the authentication area 124 and sends the encryption key to the normal resource 110 via the data bus 128 (S 20 ).

The normal resource 110 sends the received encryption key to the storage medium control unit 104 , and the storage medium control unit 104 sends the received encryption key to the storage medium processing unit 103 (S 20 ).

The storage medium processing unit 103 sends the encryption key received from the storage medium control unit 104 to the encryption control unit 105 (S 20 ).

The encryption control unit 105 sets the received encryption key for the secure resource 109 , and notifies a setting completion notification to the encryption control unit 105 (S 20 ). The encryption control unit 105 notifies the setting completion notification to the storage medium processing unit 103 (S 20 ).

The storage medium processing unit 103 which has received the setting completion notification from the encryption control unit 105 sends the encrypted contents 126 which have been read to the encryption control unit 105 and notifies a command to decrypt the data to the encryption control unit 105 (S 22 ).

When the received command is a command to decrypt the data, and an encryption key corresponding to the encrypted contents 126 received in advance is set for the secure resource 109 , the encryption control unit 105 sends the received encrypted contents 126 and the command to decrypt the data to the secure resource 109 (S 22 ).

When the received command is a command to decrypt the data, the secure resource 109 decrypts the received encrypted contents 126 with the previously set encryption key corresponding to the encrypted data of the normal area 123 (S 22 ).

When the decryption completes and succeeds, the secure resource 109 sends the decrypted encrypted contents 126 to the encryption control unit 105 , and the encryption control unit 105 sends them to the storage medium processing unit 103 (S 22 ). When the decryption fails, the secure resource 109 sends the decryption failure result to the encryption control unit 105 , and the encryption control unit 105 sends it to the storage medium processing unit 103 (S 22 ).

When receiving the decryption failure result from the encryption control unit 105 (S 24 : NO), the storage medium processing unit 103 proceeds to an abnormality processing.

When receiving the decrypted encrypted contents 126 from the encryption control unit 105 (S 24 : YES), the storage medium processing unit 103 proceeds to S 26 .

When the data of the normal area 123 read at S 12 is unencrypted plain text contents 125 (S 18 : NO), the storage medium processing unit 103 proceeds to S 26 .

The storage medium processing unit 103 performs various processings for the plain text contents 125 read at S 12 , the decrypted encrypted contents 126 , and the data of the normal area 123 (S 26 ). After completion of the processings, the storage medium processing unit 103 proceeds to S 28 .

When there is any other data of the normal area 123 to be processed (S 28 : YES), the storage medium processing unit 103 proceeds to S 10 .

When there is not any other data of the normal area 123 to be processed (S 28 : NO), the storage medium processing unit 103 proceeds to normal end.

When the command received from the normal mode switching control unit 107 is a command to access the authentication area 124 of the storage medium 121 (S 8 : NO; S 30 : YES), the secure mode switching control unit 102 sends, to the storage medium processing unit 103 , a command to request the access to the authentication area 124 (S 32 ).

After confirming that the received command is a command to access the authentication area 124 , the storage medium processing unit 103 sends, to the storage medium control unit 104 , a command to acquire data for performing the mutual authentication with the storage medium 121 (S 34 ).

After confirming that the received command is a command to acquire the data for the mutual authentication, the storage medium control unit 104 controls the normal resource 110 to send the data-for-mutual-authentication acquisition command to the storage medium 121 via the data bus 128 (S 34 ).

When the received command is a data-for-mutual-authentication acquisition command, the storage medium 121 sends the result of the data-for-mutual-authentication acquisition command (the data for the mutual authentication acquired on the basis of the data-for-mutual-authentication acquisition command) to the normal resource 110 .

The normal resource 110 receives the result of the data-for-mutual-authentication acquisition command from the storage medium 121 (S 36 ). Furthermore, the normal resource 110 notifies the result of the data-for-mutual-authentication acquisition command received from the storage medium 121 to the storage medium control unit 104 , and the storage medium control unit 104 notifies the received result to the storage medium processing unit 103 (S 36 ).

When the received result of the data-for-mutual-authentication acquisition command indicates abnormality (S 38 : NO), the storage medium processing unit 103 proceeds to the abnormality processing.

When the received result of the data-for-mutual-authentication acquisition command indicates normality (S 38 : YES), the storage medium processing unit 103 sends, to the encryption control unit 105 , a part of the received result of the data-for-mutual-authentication acquisition command required for mutual authentication or all of the received result of the data-for-mutual-authentication acquisition command together with a mutual authentication command (S 40 ).

After confirming that the received command is a mutual authentication command, the encryption control unit 105 sends a part or all of the received data for mutual authentication and the mutual authentication command to the secure resource 109 (S 40 ).

After confirming that the secure resource 109 has received the mutual authentication command and a part or all of the data for mutual authentication, it executes a mutual authentication processing and returns the result of the mutual authentication processing to the encryption control unit 105 (S 42 ).

The encryption control unit 105 notifies the result of the mutual authentication processing to the storage medium processing unit 103 . When the received result of the mutual authentication processing indicates abnormality (S 44 ; NO), the storage medium processing unit 103 proceeds to the abnormality processing.

When the received result of the mutual authentication processing indicates normality (S 44 : YES), the storage medium processing unit 103 sends, to the storage medium control unit 104 , a command to request access to the authentication area 124 . After confirming that the received command is a command to access the authentication area 124 , the storage medium control unit 104 controls the normal resource 110 of the data sending/receiving control device 108 to send, to the storage medium 121 via the data bus 128 , the command to access the authentication area 124 (S 46 ).

The storage medium 121 receives the access command sent from the normal resource 110 by the data sending/receiving control device 122 . After confirming that the received access command is a command to access the authentication area 124 , the storage medium 121 accesses the authentication area 124 and sends the access result to the normal resource 110 via the data sending/receiving control device 122 and the data bus 128 .

The normal resource 110 receives the access result from the data sending/receiving control device 122 (S 48 ). The normal resource 110 which has received the access result notifies the storage medium control unit 104 that the access to the authentication area 124 has completed and that it has received the access result (S 50 ).

The storage medium control unit 104 judges whether the access result indicates success or failure. When the result of accessing the authentication area 124 , which has been received from the normal resource 110 , indicates success (S 52 : YES), the processing proceeds to S 54 . When the result of accessing the authentication area 124 , which has been received from the normal resource 110 , indicates failure (S 52 : NO), the storage medium control apparatus 100 abnormally ends.

When the data of the authentication area 124 read at S 48 is encrypted (S 54 : YES), the storage medium processing unit 103 sends the read data of the authentication area 124 to the encryption control unit 105 and requests a decryption processing (S 56 ).

The encryption control unit 105 sends the received data of the authentication area 124 to the secure resource 109 and controls the secure resource 109 to decrypt the received data of the authentication area 124 (S 56 ).

The encryption control unit 105 controls the secure resource 109 to send the decrypted data of the authentication area 124 to the storage medium processing unit 103 (S 56 ). The encryption control unit 105 controls the secure resource 109 to send a decryption failure result to the storage medium processing unit 103 when the decryption of the data of the authentication area 124 fails (S 56 ).

When receiving the decrypted data of the authentication area 124 (S 58 : YES), the storage medium processing unit 103 proceeds to S 60 .

When receiving the decryption failure result from the encryption control unit 105 (S 58 : NO), the storage medium processing unit 103 proceeds to the abnormality processing.

When the data of the authentication area 124 read at S 48 is the unencrypted plain text contents 125 (S 54 : NO), the storage medium processing unit 103 proceeds to S 60 .

The storage medium processing unit 103 performs various processings for the plain text contents 125 read at S 48 , the decrypted encrypted contents 126 , and the data of the authentication area 124 (S 60 ). After completion of the processings, the storage medium processing unit 103 proceeds to S 62 .

When there is any other data of the authentication area 124 to be processed (S 62 : YES), the storage medium processing unit 103 proceeds to S 46 .

When there is not any other data of the authentication area 124 to be processed (S 62 : NO), the storage medium processing unit 103 proceeds to the normal end.

As described above, according to the present embodiment, it is possible to directly access the normal resource 110 from the secure mode unit 101 even in the secure mode. Therefore, it is not necessary to perform the switching to the normal mode when accessing the data stored in the storage medium 121 in the secure mode. Accordingly, it is possible to reduce the number of times of switching between the secure mode and the normal mode. Furthermore, it is possible to perform the processing without the normal mode unit 106 handling the copyright protection information (the right information). Accordingly, it is possible to improve the processing performance while protecting the copyright protection information (the right information) in the security mode.

Second Embodiment

A storage medium control system according to a second embodiment of the present invention will be described with reference to drawings.

An aspect of utilization of the storage medium control system is similar to what is shown in FIG. 1. The aspect of utilization of the storage medium control system according to a third embodiment and subsequent embodiments is also similar.

FIG. 4 is a functional block diagram showing a configuration of a storage medium control system 20 according to the second embodiment.

The storage medium control system 20 is provided with a storage medium 121 and a storage medium control apparatus 200 .

The storage medium 121 is similar to what is shown in the first embodiment. Therefore, a detailed description thereof is not repeated here.

As for the storage medium control apparatus 200 , a description will be made mainly on differing points from the storage medium control apparatus 100 according to the first embodiment shown in FIG. 2.

The storage medium control apparatus 200 is an apparatus which reads and writes data to and from the storage medium 121 , and it is provided with a normal mode unit 206 , a secure mode unit 201 , and a data sending/receiving control device 210 .

The storage medium control apparatus 200 is provided with a common CPU, a memory, and the like, and it realizes the normal mode unit 206 and the secure mode unit 201 described above by executing programs stored in the memory.

The data sending/receiving control device 210 is configured by hardware.

Note that, since other components are not directly related to the present invention, they are neither illustrated nor described.

The secure mode unit 201 is provided with a secure mode switching control unit 202 , a storage medium authentication area processing unit 203 , a storage medium authentication area control unit 204 , and an encryption control unit 205 .

The normal mode unit 206 is provided with a normal mode switching control unit 207 , a storage medium normal area processing unit 208 , and a storage medium normal area control unit 209 .

The data sending/receiving control device 210 is provided with a secure resource 211 and a normal resource 212 .

The storage medium normal area control unit 209 and the storage medium authentication area control unit 204 correspond to the storage medium control unit 104 in the storage medium control apparatus 100 , and they are software modules which control, via the normal resource 212 , reading and writing of data to and from the normal area 123 and the authentication area 124 inside the storage medium 121 , and also control the encryption control unit 205 .

The storage medium normal area control unit 209 is a software module which accesses only the normal area 123 of the storage medium 121 via the normal resource 212 .

The storage medium authentication area control unit 204 is a software module which accesses only the authentication area 124 of the storage medium 121 via the normal resource 212 and the secure resource 211 .

The storage medium normal area processing unit 208 and the storage medium authentication area processing unit 203 correspond to the storage medium processing unit 103 in the storage medium control apparatus 100 , and they are software modules which perform access to the storage medium 121 , mutual authentication between the storage medium 121 and the storage medium control apparatus 200 , and encryption and decryption of contents data, via the storage medium normal area processing unit 208 , the storage medium authentication area control unit 204 , and the encryption control unit 205 .

The storage medium normal area processing unit 208 is a software module which performs a processing of data of the normal area 123 of the storage medium 121 via the storage medium normal area control unit 209 .

The storage medium authentication area processing unit 203 is a software module which performs a processing of the data of the authentication area 124 of the storage medium 121 via the storage medium authentication area control unit 204 .

That is, what differs from the first embodiment is that the storage medium normal area control unit 209 and the storage medium normal area processing unit 208 exist in the normal mode unit 206 , and the storage medium authentication area control unit 204 and the storage medium authentication area processing unit 203 exist in the secure mode unit 201 .

Other configuration requirements, that is, the secure mode switching control unit 202 , the encryption control unit 205 , the normal mode switching control unit 207 , the data sending/receiving control device 210 , the secure resource 211 , and the normal resource 212 respectively correspond to the secure mode switching control unit 102 , the encryption control unit 105 , the normal mode switching control unit 107 , the data sending/receiving control device 108 , the secure resource 109 , and the normal resource 110 shown in FIG. 2.

Next, a control processing for the storage medium 121 performed by both the secure mode unit 201 and the normal mode unit 206 will be described.

FIGS. 5A to 5C are flowcharts showing the control processing for the storage medium 121 performed by both the secure mode unit 201 and the normal mode unit 206 . What differs from the first embodiment is that a processing load in the secure mode is reduced by performing only a processing for accessing the authentication area 124 of the storage medium 121 , an encryption processing, and a decryption processing in the secure mode.

As the scenes where it is assumed that the above processing is performed, various scenes are assumed, such as a case of inserting the memory card 11 into the mobile phone 10 to reproduce encrypted contents recorded in the memory card 11 and a case of inserting the memory card 11 into the mobile phone 10 to record the encrypted contents in the memory card 11 . Note that the timing of performing the above processing depends on the storage medium control apparatus 100 such as the mobile phone 10 , and the processing may be performed at any timing.

When a request to access the storage medium 121 is issued by the storage medium control apparatus 200 (S 102 : YES), and it can be confirmed that access to the authentication area of the storage medium 121 has occurred (S 104 : YES), the normal mode switching control unit 207 sends a command to the secure mode switching control unit 202 to switch from the normal mode to the secure mode (S 106 ). When the request to access the authentication area of the storage medium 121 has not been issued (S 104 : NO), the processing proceeds to S 148 .

When the secure mode switching control unit 202 receives the command from the normal mode switching control unit 207 , it is assumed that the transition from the normal mode to the secure mode has succeeded (S 108 : YES). When the secure mode switching control unit 202 of the secure mode unit 201 cannot receive the command from the normal mode switching control unit 207 of the normal mode unit 206 , it is assumed that the transition to the secure mode has failed (S 108 : NO), and the storage medium control apparatus 200 abnormally ends.

The secure mode switching control unit 202 performs processing on the basis of the command received from the normal mode switching control unit 207 . However, when the received command is a command to access the authentication area 124 of the storage medium 121 , the secure mode switching control unit 202 sends, to the storage medium authentication area processing unit 203 , a command to request the access to the authentication area 124 (S 112 ).

After confirming that the received command is a command to access the authentication area 124 , the storage medium authentication area processing unit 203 sends, to the storage medium authentication area control unit 204 , a command to acquire data for performing the mutual authentication with the storage medium 121 (S 114 ).

After confirming that the received command is a data-for-mutual-authentication acquisition command, the storage medium authentication area control unit 204 controls the normal resource 212 to send the data-for-mutual-authentication acquisition command to the storage medium 121 via the data bus 128 (S 114 ).

When the received command is a data-for-mutual-authentication acquisition command, the storage medium 121 sends the result of the data-for-mutual-authentication acquisition command to the normal resource 212 .

The normal resource 212 notifies the result of the data-for-mutual-authentication acquisition command received from the storage medium 121 to the storage medium authentication area control unit 204 (S 116 ), and the storage medium authentication area control unit 204 notifies it to the storage medium authentication area processing unit 203 (S 116 ).

When the received result of the data-for-mutual-authentication acquisition command indicates abnormality (S 118 : NO), the storage medium authentication area processing unit 203 proceeds to an abnormality processing.

When the result of the received data-for-mutual-authentication acquisition command indicates normality (S 118 : YES), the storage medium authentication area processing unit 203 sends, to the encryption control unit 205 , a part of the received result of the data-for-mutual-authentication acquisition command required for mutual authentication or all of the received result of the data-for-mutual-authentication acquisition command together with the mutual authentication command (S 120 ).

After confirming that the received command is a mutual authentication command, the encryption control unit 205 sends a part or all of the received data for mutual authentication and the mutual authentication command to the secure resource 211 (S 120 ).

After confirming that the secure resource 211 has received the mutual authentication command and a part or all of the data for mutual authentication, it executes a mutual authentication processing and returns the result of the mutual authentication processing to the encryption control unit 205 (S 122 ).

The encryption control unit 205 notifies the result of the mutual authentication processing to the storage medium authentication area processing unit 203 . When the received result of the mutual authentication processing indicates abnormality (S 124 : NO), the storage medium authentication area processing unit 203 proceeds to the abnormality processing.

When the received result of the mutual authentication processing indicates normality (S 124 : YES), the storage medium authentication area processing unit 203 sends, to the storage medium authentication area control unit 204 , a command to request access to the authentication area 124 (S 126 ). After confirming that the received command is a command to access the authentication area 124 , the storage medium authentication area control unit 204 controls the normal resource 212 of the data sending/receiving control device 210 to send, to the storage medium 121 via the data bus 128 , a command to access the authentication area 124 (S 126 ).

The storage medium 121 receives the access command sent from the normal resource 212 by the data sending/receiving control device 122 . After confirming that the received access command is a command to access the authentication area 124 , the storage medium 121 accesses the authentication area 124 and sends the access result to the normal resource 212 via the data sending/receiving control device 122 and the data bus 128 (S 128 ).

The normal resource 212 which has received the access result from the normal resource 212 notifies the storage medium authentication area control unit 204 that the access to the authentication area 124 has completed and that it has received the access result (S 130 ).

When the result of the access to the authentication area 124 received from the normal resource 212 indicates success (S 132 : YES), the storage medium authentication area control unit 204 proceeds to S 134 . When the result of the access to the authentication area 124 received from the normal resource 212 indicates failure (S 132 : NO), the storage medium control apparatus 200 abnormally ends.

When the data of the authentication area 124 read at S 128 is encrypted (S 134 : YES), the storage medium authentication area processing unit 203 sends, to the storage medium authentication area control unit 204 , a command to read an encryption key stored in the authentication area 124 (S 136 ).

The storage medium authentication area control unit 204 controls the normal resource 212 to send, to the storage medium 121 , the command to read an encryption key from the authentication area 124 (S 136 ).

After confirming that the command received by the data sending/receiving control device 122 is a command to read encryption key data from the authentication area 124 , the storage medium 121 reads the encryption key from the authentication area 124 and sends the encryption key to the normal resource 212 via the data bus 128 (S 136 ).

The normal resource 212 sends the received encryption key to the storage medium authentication area control unit 204 , and the storage medium authentication area control unit 204 sends the received encryption key to the storage medium authentication area processing unit 203 (S 136 ).

The storage medium authentication area processing unit 203 sends the encryption key received from the storage medium authentication area control unit 204 to the encryption control unit 205 (S 136 ).

The encryption control unit 205 sets the received encryption key for the secure resource 211 , and notifies a setting completion notification to the encryption control unit 205 . The encryption control unit 205 notifies the setting completion notification to the storage medium authentication area processing unit 203 (S 136 ).

The storage medium authentication area processing unit 203 sends the read data of the authentication area 124 to the encryption control unit 205 and requests the decryption processing (S 138 ).

The encryption control unit 205 sends the received data of the authentication area 124 to the secure resource 211 , and controls the secure resource 211 to decrypt the received data of the authentication area 124 (S 138 ).

The encryption control unit 205 controls the secure resource 211 to send the decrypted data of the authentication area 124 to the storage medium authentication area processing unit 203 (S 138 ). The encryption control unit 205 controls the secure resource 211 to send a decryption failure result to the storage medium authentication area processing unit 203 when the decryption of the data of the authentication area 124 failed (S 140 : NO).

When receiving the decryption failure result from the encryption control unit 205 (S 140 : NO), the storage medium authentication area processing unit 203 proceeds to the abnormality processing.

When receiving the decrypted data of the authentication area 124 (S 140 : YES), the storage medium authentication area processing unit 203 proceeds to S 142 .

The storage medium authentication area processing unit 203 performs various processings for the read plain text contents 125 , the decrypted encrypted contents 126 , and the data of the authentication area 124 (S 142 ).

When there is any other data of the authentication area 124 to be processed (S 144 : YES), the storage medium authentication area processing unit 203 proceeds to S 10 .

When there is not any other data of the authentication area 124 to be processed (S 144 : NO), the storage medium authentication area processing unit 203 proceeds to S 146 .

When the normal area 123 of the storage medium 121 is not accessed (S 146 : NO), the storage medium control apparatus 200 normally ends.

When the normal area 123 of the storage medium 121 is accessed (S 146 : YES), the secure mode switching control unit 202 sends a command to the normal mode switching control unit 207 to switch to the normal mode (S 148 ). When the normal mode switching control unit 207 receives the command from the secure mode switching control unit 202 , a return from the secure mode unit 201 to the normal mode unit 206 is successful (S 150 : YES).

When the normal mode switching control unit 207 cannot receive the command from the secure mode switching control unit 202 , it is assumed that the return to the normal mode failed (S 150 : NO), and the storage medium control apparatus 200 abnormally ends.

After confirming that the received command is a command to access the normal area 123 , the storage medium normal area processing unit 208 sends, to the storage medium normal area control unit 209 , a command to request the access to the normal area 123 (S 152 ). After confirming that the received command is a command to access the normal area 123 , the storage medium normal area control unit 209 controls the normal resource 212 of the data sending/receiving control device 210 to send, to the storage medium 121 via a data bus 128 , a command to access the normal area 123 (S 152 ).

The storage medium 121 receives the access command sent from the normal resource 212 by the data sending/receiving control device 122 . After confirming that the received access command is a command to access the normal area 123 , the storage medium 121 accesses the normal area 123 and sends the access result to the normal resource 212 via the data sending/receiving control device 122 and the data bus 128 .

The normal resource 212 receives the access result from the data sending/receiving control device 122 (S 154 ). The normal resource 212 which has received the access result notifies the storage medium normal area control unit 209 that the access to the normal area 123 has completed and it has received the access result (S 156 ).

When the result of the access to the normal area 123 received by the storage medium control unit 209 from the normal resource 212 indicates success (S 158 : YES), the processing proceeds to S 160 . When the result of the access to the normal area 123 received from the normal resource 212 indicates failure (S 158 : NO), the storage medium control apparatus 200 abnormally ends.

When the decryption processing of the encrypted contents 126 stored in the normal area is performed by the storage medium normal area processing unit 208 , and an encryption key corresponding to the encrypted contents 126 is set for the secure resource 211 in advance in the secure mode (S 160 : YES), the received encrypted contents 126 and a command to decrypt the data are sent to the normal resource 212 (S 162 ).

When the received command is a command to decrypt the data, the normal resource 212 decrypts the received encrypted contents 126 with the encryption key corresponding to the encrypted data of the normal area 123 , which has been set in advance, via the secure resource 211 (S 162 ). However, though the decryption processing is actually performed by the secure resource 211 , the processing for setting for the secure resource 211 is not performed. Therefore, it is possible to perform the processing by the normal mode unit 206 .

After the decryption is successfully completed, the normal resource 212 sends the decrypted encrypted contents 126 to the storage medium normal area control unit 209 , and the storage medium normal area control unit 209 sends them to the storage medium normal area processing unit 208 (S 162 ). When the decryption fails, the normal resource 212 sends the decryption failure result to the storage medium normal area control unit 209 , and the storage medium normal area control unit 209 sends the received decryption failure result to the storage medium normal area processing unit 208 (S 162 ).

When receiving the decryption failure result from the storage medium normal area control unit 209 (S 164 : NO), the storage medium normal area processing unit 208 proceeds to the abnormality processing.

When receiving the decrypted encrypted contents 126 from the storage medium normal area control unit 209 (S 164 : YES), the storage medium normal area processing unit 208 proceeds to S 166 .

The storage medium authentication area processing unit 203 performs various processings for the read plain text contents 125 , the decrypted encrypted contents 126 , and the data of the normal area 123 (S 166 ).

When there is any other data of the normal area 123 to be processed (S 168 : YES), the storage medium normal area processing unit 208 proceeds to S 152 .

When there is not any other data of the normal area 123 to be processed (S 168 : NO), the storage medium normal area processing unit 208 proceeds to normal end.

As described above, according to the present embodiment, it is possible to directly access the normal resource 212 from the secure mode unit 201 , similarly to the first embodiment. Therefore, it is not necessary to perform the switching to the normal mode when accessing the data stored in the storage medium 121 in the secure mode. Accordingly, it is possible to reduce the number of times of switching between the secure mode and the normal mode.

Furthermore, it is possible to easily add the secure mode unit 201 and the data sending/receiving control device 210 while avoiding a modification of the software modules of the normal mode unit 206 configured by an existing general-purpose OS as much as possible. Therefore, it is possible to easily add a function of accessing the authentication area 124 of the storage medium 121 to an existing storage medium control system which accesses the normal area 123 of the storage medium 121 .

Third Embodiment

A storage medium control system according to a third embodiment of the present invention will be described with reference to drawings.

A configuration of the storage medium control system according to the third embodiment is similar to that of the storage medium control system according to the second embodiment shown in FIG. 4. Therefore, a detailed description thereof is not repeated here.

Next, a control processing for a storage medium 121 performed by both a secure mode unit 201 and a normal mode unit 206 will be described.

FIGS. 6A, 6 B and 5 C are flowcharts showing the control processing for the storage medium 121 performed by both the secure mode unit 201 and the normal mode unit 206 .

Though the basic processing is similar to that of the second embodiment, a storage medium authentication area control unit 204 acquires storage medium information to be described later, in order to keep the consistency between access to an authentication area 124 from the secure mode unit 201 and access to an normal area 123 from the normal mode unit 206 . The present embodiment also differs from the second embodiment in that the storage medium 121 is accessed on the basis of the storage medium information.

Hereinafter, a description will be made mainly on the different processings.

In the present embodiment, it is assumed that a shared memory (not shown) which is shared by the secure mode unit 201 and the normal mode unit 206 is provided in the storage medium control apparatus 200 . The storage medium information acquired by the storage medium authentication area control unit 204 is stored in the shared memory and shared by the secure mode unit 201 and the normal mode unit 206 .

With reference to FIG. 6A, when a request to access the storage medium 121 is issued by a storage medium control apparatus 200 (S 102 : YES), a storage medium normal area processing unit 208 confirms whether an initialization processing of the storage medium 121 has succeeded (S 202 ) before it is confirmed at S 104 to be executed later whether access to the authentication area 124 of the storage medium 121 has occurred.

When the initialization processing has not succeeded (S 202 : NO), the storage medium normal area processing unit 208 sends a request to initialize the storage medium 121 to a storage medium normal area control unit 209 . On the basis of the initialization request, the storage medium normal area control unit 209 acquires “storage medium information” such as address information, area size, and access size about the storage medium 121 , notifies the information to the storage medium normal area processing unit 208 (S 203 ), and proceeds to S 204 .

When the initialization processing has already succeeded (S 202 : YES) or after S 203 is executed, the acquired storage medium information is stored at a particular address of the shared memory which can be commonly accessed by the normal mode unit 206 and the secure mode unit 201 (S 204 ).

With reference to FIG. 6B, when access to the authentication area 124 of the storage medium 121 occurs after that (S 104 : YES) and success of transition to the secure mode is confirmed (S 108 : YES), the storage medium authentication area control unit 204 acquires the storage medium information from the shared memory on the basis of the address information about the shared memory handed from the storage medium authentication area processing unit 203 , and internally holds the storage medium information (S 207 ). After that, the storage medium information held by the storage medium authentication area control unit 204 is used when data is sent to or received from the storage medium 121 .

As described above, according to the present embodiment, the storage medium information is designed to be stored in the shared memory which can be accessed by both the secure mode unit 201 and the normal mode unit 206 , in addition to the advantages of the embodiments described above. Therefore, the initialization processing for a storage medium may be performed only in any one of the normal mode and the secure mode.

(First Modification)

In the storage medium control system according to the third embodiment, the storage medium authentication area control unit 204 of the secure mode unit 201 may independently acquire the storage medium information without using the shared memory.

That is, the storage medium control system according to the third embodiment may perform the processings shown in FIGS. 5A, 7 and 5 C instead of the processings shown in FIGS. 6A, 6 B and 5 C.

With reference to FIG. 7, when success of transition to the secure mode is confirmed at S 108 (S 108 : YES), the storage medium authentication area control unit 204 initializes the storage medium 121 , acquires and holds the storage medium information, on the basis of an instruction from the storage medium authentication area processing unit 203 (S 304 ), irrespective of whether or not the storage medium 121 has been initialized. After that, the storage medium information held by the storage medium authentication area control unit 204 is used when data is sent to or received from the storage medium 121 .

According to a first modification, the storage medium authentication area control unit 204 can acquire the storage medium information independently from the storage medium normal area control unit 209 . Therefore, the operation is possible without synchronizing the storage medium normal area control unit 209 and the storage medium authentication area control unit 204 , so that the processing can be speeded up.

(Second Modification)

In the storage medium control system according to the third embodiment, the storage medium information may be encrypted and handed from the normal mode unit 206 to the secure mode unit 201 using the shared memory.

That is, the storage medium control system according to the third embodiment may execute the processings shown in FIGS. 8A, 8 B and 5 C instead of the processings shown in FIGS. 6A, 6 B and 5 C.

First, it is assumed that a common secret key used for cryptography is shared by the storage medium normal area processing unit 208 and the storage medium authentication area processing unit 203 .

With reference to FIG. 8A, when a request to access the storage medium 121 is issued by the storage medium control apparatus 200 (S 102 : YES), the storage medium normal area processing unit 208 confirms whether the initialization processing of the storage medium 121 has succeeded (S 202 ) before it is confirmed at S 104 to be executed later whether access to the authentication area 124 of the storage medium 121 has occurred.

When the initialization processing has not succeeded (S 202 : NO), the storage medium normal area processing unit 208 issues a request to initialize the storage medium 121 to the storage medium normal area c