Patent ID: 7797553

Claim:
A memory device comprising: a first tamper resistant memory which cannot be accessed directly by an external electronic device; a second non-tamper resistant memory which cannot be directly accessed by the external electronic device; a data processing section that moves data in the first tamper resistant memory or the second non-tamper resistant memory; and a managing table in which managing information for the data stored in the first memory is described, the managing information including information indicating whether or not the data can be moved to the second memory, wherein when requested via the data processing section by the external electronic device to download or install first data in the first memory and if there is no space area for downloading or installing the first data in the first memory, said data processing section moves to the second memory second data which is accumulated in the first memory in order to create space area in the first memory sufficient to perform the downloading or installing the first data upon reception of an instruction from the electronic device, and when there is space area available in the first memory, said processing section restores the moved second data in the second memory into the first memory, wherein the second data to be moved is determined on the basis of an instruction from the electronic device and on the basis of the information indicating the second data can be moved to the second memory described in the managing table.