As an example of the determining algorithm, a pair of the storage medium 5 and an external storage device allowed to access the data stored on the storage medium 5 is permitted in one step, and any other combinations are prohibited from accessing the medium.