Patent ID: 7953985

Claim:
A memory card that receives encrypted application programs from a host apparatus, the encrypted application programs being downloaded to the host apparatus, the memory card comprising: an Integrated Circuit (IC) card unit configured to have a tamper resistant function; and a flash memory unit, wherein the IC card unit includes: a tamper resistant storage unit; a program acquisition unit operable to acquire, from the host apparatus, the encrypted application programs and respective sizes of the application programs in encrypted and decrypted forms; a storage control unit operable to select one of the tamper resistant storage unit and the flash memory unit as a storage location area on the basis of a size of an acquired application program in an encrypted form and a size of free space of the tamper resistant storage unit, and to store the acquired encrypted application program in the selected storage location area; a move control unit operable to, when the encrypted application program is stored in the tamper resistant storage unit and is to be executed and the size of the application program to be executed in a decrypted form exceeds the size of the free space of the tamper resistant storage unit, move another arbitrary encrypted application program stored in the tamper resistant storage unit to the flash memory unit; and an execution unit operable to decrypt and execute the application program to be executed.