A data processing apparatus for processing data so that a portable device including an integrated circuit for storing distribution key data, a system code for identify a first service provider, and first area management key data which is authorized to perform at least one of a write operation to a memory area of said integrated circuit and a rewrite operation to the memory area on the condition that the first area management key data makes a second service provider provide a service using part of said memory area of said integrated circuit when issued by a first service provider providing a first service using said memory area, wherein the apparatus has a memory means, input/output means, and processing means;
- the memory means stores a module including second area management key data issued by a memory area operation unit for managing processing of the data processing apparatus and encrypted by the memory area operation unit using the key memory area division data and a registerable system code list indicating the system code added to the first service provider which can provide service by the same integrated circuit as the second service provider;
- the input/output means receives as input the system code from the integrated circuit;
- and
- the processing means outputs the module to the integrated circuit via the input/output means when it judges that the input system code is indicated in the registerable system code list.