EP1593098B2

Semiconductor memory card, and program for controlling the same

Abstract

A semiconductor memory card that has a sufficient storage capacity when an EC application writes data to a storage is provided. A usage area for the EC application in an EEPROM 3 in a TRM 1 is expanded. The expansion is such that a partition generated in a flash memory 2 outside the TRM 1 is assigned to the EC application while a partition table is allocated in the internal EEPROM 3. Because the partition table is in the TRM 1, only a CPU 7 in the TRM 1 is able to access the generated partition table. Secrecy of stored contents increases because the access to the expanded area is limited to the CPU 7 in the TRM 1.

EP1593098B2, drawing sheet 1
Sheet 1 of 25

Term

Term ended

Expired 30 January 2024, 2.7 years ago.

  1. Priority
  2. Filed
  3. Granted
  4. Expired
  5. Today

16 claims: 2 independent, 14 dependent

  1. 1
    A semiconductor memory card comprising a tamper resistant module (1) and a nonvolatile memory (2) being external to the tamper resistant module (1), wherein the tamper resistant module (1) includes:an internal memory (3) having a usage area used by a program stored in the tamper resistant module (1);and a processing unit (7) operable to (i) assign an area in the nonvolatile memory (2) to the program, and (ii) generate, on the internal memory (3) of the tamper resistant module (1), access information for the assigned area including size and location of the assigned area, the usage area and the assigned area thereby composing a total area for use by the program.
  2. 2
    A semiconductor memory card according to Claim 1, wherein the internal memory (3) stores a first area table indicating a location and a size of the usage area, and a second area table indicating a location and a size of the assigned area, and the access information is the second area table.
  3. 3
    A semiconductor memory card according to Claim 1, wherein the processing unit (7) comprises:an assigning unit (11) operable to assign, at a time of the generation of the access information, an encryption key which the program uses in accessing the assigned area ;an encrypting unit (14) operable, at a time of the program writing data to the assigned area, to encrypt the data;and a decrypting unit (14) operable, at a time of the program reading data from the assigned area, to decrypt the data.
  4. 4
    A semiconductor memory card according to Claim 3, wherein the processing unit (7) further comprises:a receiving unit operable to receive a security level from the program;and a storage unit (12) that stores values for different security levels, bit lengths of an encryption key, and encryption methods, the bit lengths and encryption methods corresponding one-to-one to the values, the encryption key assigned by the assigning unit (11) is generated based on a bit length corresponding to the received security level, and the encryption and decryption by the encrypting unit (14) and decrypting unit (14), respectively, are performed based on an encryption method corresponding to the received security level.
  5. 5
    A semiconductor memory card according to Claim 1, wherein the internal memory (3) stores a first area table indicating a location and a size of the usage area, the nonvolatile memory (2) stores a second area table indicating a location and a size of the assigned area, the second area table being encrypted using a predetermined encryption key, and the access information is a set of the predetermined encryption key and information indicating a location of the second area table.
  6. 6
    A semiconductor memory card according to Claim 5, wherein the nonvolatile memory (2) includes a first memory module (2a) and a second memory module (2b), a unit of writing in the second memory module (2b) being smaller than a unit of writing in the first memory module (2a), and the second memory module (2b) storing file management data.
  7. 7
    A semiconductor memory card according to Claim 6, wherein the second memory module (2b) is one of a Ferroelectric Random Access Memory and a Magnetoresistive Random Access Memory.
  8. 8
    A semiconductor memory card according to Claim 5, wherein the internal memory (3) of the tamper resistant module, (1) includes a first memory module (3a) and a second memory module (3b), a unit of writing in the second memory module (3b) being smaller than a unit of writing in the first memory module (3a), and the second memory module (3b) storing file management data.
  9. 9
    A semiconductor memory card according to Claim 8, wherein the second memory module (3b) is one of a Ferroelectric Random Access Memory and a Magnetoresistive Random Access Memory.
  10. 10
    A semiconductor memory card according to Claim 1 being a multi-application memory card, wherein the program is one of applications with which the memory card is compatible, and the internal memory (3) has a plurality of usage areas corresponding one to one to the applications.
  11. 11
    A semiconductor memory card according to Claim 10, wherein at a time of addition of an application to the memory card, the processing unit (7) assigns an area to be used by the added application.
  12. 12
    A semiconductor memory card according to Claim 1, wherein the assigned area is a file system in which files are stored.
  13. 13
    A semiconductor memory card according to Claim 1, wherein the tamper resistant module (1) includes a CPU that executes the program.
  14. 14
    A semiconductor memory card according to Claim 1 including a host interface (5) which is an interface with a device connected to the memory card, wherein the host interface (5) judges whether a command from the device is an expansion command, and the program starts, if the command is judged to be the expansion command.
  15. 16
    A controlling program in a semiconductor memory card that comprises a tamper resistant module (1) and a nonvolatile memory (2), being external to the tamper resistant module (1) and that is executed by a CPU in the tamper resistant module (1), wherein the tamper resistant module (1) includes an internal memory (3) having a usage area used by an application stored in the tamper resistant module (1), and the controlling program is operable to (i) assign an area in the nonvolatile memory (2) to the application, and (ii) generate, on the internal memory (3) of the tamper resistant module (1), access information for the assigned area including size and location of the assigned area, the usage area and the assigned area thereby composing a total area for use by the application.
Independent claims15