JP2006260594A - Data processing method and data processing system - Google Patents

Data processing method and data processing system Download PDF

Info

Publication number
JP2006260594A
JP2006260594A JP2006127754A JP2006127754A JP2006260594A JP 2006260594 A JP2006260594 A JP 2006260594A JP 2006127754 A JP2006127754 A JP 2006127754A JP 2006127754 A JP2006127754 A JP 2006127754A JP 2006260594 A JP2006260594 A JP 2006260594A
Authority
JP
Japan
Prior art keywords
data
data processing
processing device
module
sam
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2006127754A
Other languages
Japanese (ja)
Other versions
JP4453678B2 (en
Inventor
Masahiro Sueyoshi
正弘 末吉
Fumio Kubono
文夫 久保野
Hiroshi Tateno
啓 舘野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2006127754A priority Critical patent/JP4453678B2/en
Publication of JP2006260594A publication Critical patent/JP2006260594A/en
Application granted granted Critical
Publication of JP4453678B2 publication Critical patent/JP4453678B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data processing method and device for properly managing data to be kept secret to the other party and data that are to be disclosed. <P>SOLUTION: First and second data processors for executing first and second APs necessary for processing for performing access to the data stored in a memory are connected to first and second server devices, without going throught the network, and the first data processor and the second data processor, respectively determine whether to perform mutual authentication by referring to mutual authentication presence/absence data contained in the first and second management data and perform mutual authentication. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、たとえば、ICなどの集積回路を用いたサービス提供に用いられるデータ処理方法とシステムに関する。   The present invention relates to a data processing method and system used for providing a service using an integrated circuit such as an IC, for example.

現在、ICカードを用いてインターネットなどのネットワークを介した取り引きを行う通信システムが開発されている。
このような通信システムでは、ICカードを用いたサービスを提供するサービス提供者からの依頼を受けて当該サービス提供者が規定した手続き処理を実行するアプリケーションプログラムをサーバ装置が実行する。
サーバ装置は、例えばICカードのリーダ・ライタやPC(Personal Computer) から処理要求に応じて、上記アプリケーションプログラムに基づいて、ユーザ認証やデータの暗号化及び復号などの処理を行う。
Currently, a communication system that uses an IC card to perform transactions via a network such as the Internet has been developed.
In such a communication system, the server device executes an application program that executes a procedure process defined by the service provider in response to a request from a service provider that provides a service using an IC card.
The server device performs processing such as user authentication and data encryption and decryption based on the application program in response to a processing request from, for example, an IC card reader / writer or a PC (Personal Computer).

ところで、上述したようなICカードを用いたサービスは、SAM(Secure Application Module) を用いて行われるが、複数のSAMが連携して単体のICカードを用いたサービスを提供する場合に、複数のSAM間で連携したサービスを迅速に提供したいという要請がある。
また、この場合に、異なるサービス事業者のサービス提供に係わるデータやプログラムを格納したSAM相互間で、相手方に秘匿したいデータと、公開するデータとを適切に管理したいという要請がある。
By the way, a service using an IC card as described above is performed using a SAM (Secure Application Module). However, when a plurality of SAMs cooperate to provide a service using a single IC card, a plurality of services are used. There is a request to quickly provide services linked between SAMs.
Further, in this case, there is a request for appropriately managing data to be concealed from the other party and data to be disclosed between SAMs storing data and programs related to service provision of different service providers.

本発明はかかる事情に鑑みてなされたものであり、複数のSAM(データ処理装置)間で連携したサービスを迅速に提供することを可能にするデータ処理方法とデータ処理システムを提供することを目的とする。
また、本発明は、異なるサービス事業者のサービス提供に係わるデータやプログラムを格納したSAM(データ処理装置)相互間で、相手方に秘匿したいデータと、公開するデータとを適切に管理できるデータ処理方法とデータ処理システムを提供することを目的とする。
The present invention has been made in view of such circumstances, and an object of the present invention is to provide a data processing method and a data processing system that can quickly provide a service linked between a plurality of SAMs (data processing devices). And
In addition, the present invention provides a data processing method capable of appropriately managing data to be concealed from the other party and data to be disclosed between SAMs (data processing apparatuses) storing data and programs related to service provision of different service providers. And a data processing system.

本発明によれば、通信装置の通信機能を用いてネットワークを介して少なくとも第1のサーバ装置と第2のサーバ装置と通信を行うICカードあるいはICモジュールのメモリに記憶されたデータを用いてサービスを提供するためのデータ処理を行うデータ処理方法であって、
前記メモリに記憶されたデータにアクセスするための処理に必要な第1および第2のアプリケーションプログラムをそれぞれ実行する第1および第2のデータ処理装置が、ネットワークを介さずにそれぞれ前記第1のサーバ装置および前記第2のサーバ装置に接続され、
前記第2のアプリケーションプログラムを構成する複数のデータモジュールのうち前記第1のアプリケーションプログラムが利用するデータモジュールを示す第1の管理データを前記第1のデータ処理装置が保持し、前記第1のアプリケーションプログラムに利用させることを許可するデータモジュールを示す第2の管理データを前記第2のデータ処理装置が保持する場合に、前記第1のデータ処理装置と前記第2のデータ処理装置が、それぞれ前記第1の管理データと前記第2の管理データに含まれる相互認証を行うか否かを指定する相互認証有無指示データを参照して相互認証を行うか否かを決定し、相互認証を行う場合は前記第1のデータ処理装置と前記第2のデータ処理装置との間で相互認証を行って互いの正当性を確認した後に、前記第1のデータ処理装置が前記第1の管理データを参照して利用しようとする前記データモジュールを指定した要求を前記第2のデータ処理装置に送信し、前記第2のデータ処理装置が、前記要求に応じて、前記第2の管理データを参照し、前記要求で指定されたデータモジュールを前記第1のアプリケーションプログラムが利用することを許可すると判断した場合、前記要求で指定されたデータモジュールを前記第1のデータ処理装置に送信し、前記第1のデータ処理装置が、前記第2のデータ処理装置から取得したデータモジュールを含んだ前記第1のアプリケーションプログラムを実行することにより、サービスの提供に必要なデータにアクセスしてデータ処理を行う、ことを特徴とするデータ処理方法が提供される。
According to the present invention, using the data stored in the memory of the IC card or IC module that communicates with at least the first server device and the second server device via the network using the communication function of the communication device. A data processing method for performing data processing for providing
First and second data processing devices that respectively execute first and second application programs required for processing for accessing data stored in the memory are respectively connected to the first server without going through a network. Connected to the device and the second server device,
The first data processing apparatus holds first management data indicating a data module used by the first application program among a plurality of data modules constituting the second application program, and the first application When the second data processing device holds second management data indicating a data module permitted to be used by the program, the first data processing device and the second data processing device respectively When performing mutual authentication by deciding whether or not to perform mutual authentication with reference to mutual authentication presence / absence instruction data specifying whether or not to perform mutual authentication included in the first management data and the second management data After performing mutual authentication between the first data processing device and the second data processing device to confirm each other's validity, The first data processing device transmits a request specifying the data module to be used with reference to the first management data to the second data processing device, and the second data processing device In response to the request, the second management data is referred to, and when it is determined that the first application program is allowed to use the data module specified in the request, the data module specified in the request Is transmitted to the first data processing apparatus, and the first data processing apparatus executes the first application program including the data module acquired from the second data processing apparatus. There is provided a data processing method characterized in that data processing is performed by accessing data necessary for provision.

また、本発明によれば、ネットワークにそれぞれ接続された第1および第2のサーバ装置と、前記ネットワークを介して前記第1および第2のサーバ装置に接続され、メモリを有するICカードあるいはICモジュールと、前記ネットワークを介さずにそれぞれ前記第1のサーバ装置および前記第2のサーバ装置に接続され、前記ICカードあるいはICモジュールのメモリに記憶されたデータにアクセスするための処理に必要な第1および第2のアプリケーションプログラムをそれぞれ実行する第1および第2のデータ処理装置とを有し、前記ICカードあるいはICモジュールのメモリに記憶されたデータを用いてサービスを提供するためのデータ処理を行うデータ処理システムであって、前記第1のデータ処理装置が、前記第2のアプリケーションプログラムを構成する複数のデータモジュールのうち前記第1のアプリケーションプログラムが利用するデータモジュールを示す第1の管理データを保持し、前記第2のデータ処理装置が前記第1のアプリケーションプログラムに利用させることを許可するデータモジュールを示す第2の管理データを保持する場合に、前記第1のデータ処理装置と前記第2のデータ処理装置が、それぞれ前記第1の管理データと前記第2の管理データに含まれる相互認証を行うか否かを指定する相互認証有無指示データを参照して相互認証を行うか否かを決定し、相互認証を行う場合は前記第1のデータ処理装置と前記第2のデータ処理装置との間で相互認証を行って互いの正当性を確認した後に、前記第1のデータ処理装置が前記第1の管理データを参照して利用しようとする前記データモジュールを指定した要求を前記第2のデータ処理装置に送信し、前記第2のデータ処理装置が、前記要求に応じて、前記第2の管理データを参照し、前記要求で指定されたデータモジュールを前記第1のアプリケーションプログラムが利用することを許可すると判断した場合、前記要求で指定されたデータモジュールを前記第1のデータ処理装置に送信し、前記第1のデータ処理装置が、前記第2のデータ処理装置から取得したデータモジュールを含んだ前記第1のアプリケーションプログラムを実行することにより、サービスの提供に必要なデータにアクセスしてデータ処理を行う、ことを特徴とするデータ処理システムが提供される。   According to the present invention, the first and second server devices connected to the network, respectively, and the IC card or IC module having the memory connected to the first and second server devices via the network And the first server necessary for processing to access the data stored in the memory of the IC card or the IC module, connected to the first server device and the second server device without going through the network, respectively. And a first data processing device for executing a second application program, respectively, and performs data processing for providing a service using data stored in the memory of the IC card or IC module. A data processing system, wherein the first data processing device includes the second application. The first management data indicating the data module used by the first application program among the plurality of data modules constituting the application program is held, and the second data processing apparatus causes the first application program to use the first management data. When holding the second management data indicating the data module that permits, the first data processing device and the second data processing device are respectively connected to the first management data and the second management data. In the case where mutual authentication is performed with reference to the mutual authentication presence / absence instruction data specifying whether or not to perform mutual authentication included in the data, and when performing mutual authentication, the first data processing device and the second data processing device After performing mutual authentication with the other data processing apparatus and confirming the mutual validity, the first data processing apparatus performs the first management. A request specifying the data module to be used with reference to the data is transmitted to the second data processing device, and the second data processing device responds to the request with the second management data. And when it is determined that the first application program is allowed to use the data module specified in the request, the data module specified in the request is transmitted to the first data processing device. The first data processing apparatus executes the first application program including the data module acquired from the second data processing apparatus, thereby accessing data necessary for providing a service and performing data processing. There is provided a data processing system characterized in that it performs.

本発明によれば、複数のデータ処理装置(たとえば、、SAMユニット)間で連携したサービスを迅速に提供することを可能にするデータ処理方法とデータ処理システムを提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, the data processing method and data processing system which make it possible to provide quickly the service which cooperated between several data processing apparatuses (for example, SAM unit) can be provided.

また、本発明によれば、異なるサービス事業者のサービス提供に係わるデータやプログラムを格納したデータ処理装置相互間で、相手方に秘匿したいデータと、公開するデータとを適切に管理できるデータ処理方法とデータ処理システムを提供することができる。   Further, according to the present invention, a data processing method capable of appropriately managing data to be concealed from the other party and data to be disclosed between data processing apparatuses storing data and programs related to service provision of different service providers A data processing system can be provided.

以下、本発明のデータ処理方法およびデータ処理システムの実施の形態を添付図面を参照して説明する。
図1は、本発明の本実施形態の通信システム1の全体構成図である。
図1に示すように、通信システム1は、店舗などに設置されたサーバ装置2、ICカード3、カードリーダ・ライタ4、パーソナルコンピュータ5、ASP(Application Service Provider)サーバ装置19a、19b、SAM(Secure Application Module) ユニット9a,9b、ICモジュール42(本発明の集積回路)が内蔵された携帯通信装置41を用いて、インターネット10を介して通信を行ってICカード3あるいは携帯通信装置41を用いた決済処理などの手続き処理を行う。
SAMユニット9a(本発明の第1のデータ処理装置)は、外部メモリ7(本発明の記憶手段)およびSAMモジュール8(本発明の処理手段)を有する。
また、SAMユニット9b(本発明の第2のデータ処理装置)も、同様に、外部メモリ7およびSAMモジュール8を有する。
SAMモジュール8は、必要に応じて、図示しない他のSAMモジュールとデータの授受を行う。
Embodiments of a data processing method and a data processing system according to the present invention will be described below with reference to the accompanying drawings.
FIG. 1 is an overall configuration diagram of a communication system 1 according to this embodiment of the present invention.
As shown in FIG. 1, a communication system 1 includes a server device 2, an IC card 3, a card reader / writer 4, a personal computer 5, ASP (Application Service Provider) server devices 19a, 19b, SAM (installed in a store, etc. Secure Application Module) Using the IC card 3 or the portable communication device 41 by communicating via the Internet 10 using the portable communication device 41 in which the units 9a and 9b and the IC module 42 (integrated circuit of the present invention) are built. It performs the procedure processing such as settlement processing.
The SAM unit 9a (first data processing apparatus of the present invention) has an external memory 7 (storage means of the present invention) and a SAM module 8 (processing means of the present invention).
Similarly, the SAM unit 9b (second data processing apparatus of the present invention) includes an external memory 7 and a SAM module 8.
The SAM module 8 exchanges data with other SAM modules (not shown) as necessary.

〔通信システム1の特徴〕
本実施形態では、図1に示すSAMユニット9aが、SAMユニット9bの外部メモリ7に格納されたアプリケーションエレメントデータAPEを利用する場合のSAMユニット9aとSAMユニット9bとの間の通信に特徴を有している。
例えば、SAMユニット9a,9bを用いて異なるサービス事業者間でサービスを連携して運用するためには、ICカード(ICモジュール)操作に必要なカード用アクセス鍵、カード用発行鍵パッケージを秘密にした状態で他のサービス事業者に渡すことが必要となる。
[Features of communication system 1]
In the present embodiment, the SAM unit 9a shown in FIG. 1 is characterized by communication between the SAM unit 9a and the SAM unit 9b when the application element data APE stored in the external memory 7 of the SAM unit 9b is used. is doing.
For example, in order to cooperate and operate a service between different service providers using the SAM units 9a and 9b, the card access key and card issuance key package necessary for IC card (IC module) operation are kept secret. It is necessary to hand it over to other service providers.

例えば、異なるサービス事業者間で、ICカードとの相互認証鍵を計算するためには、カード用アクセス鍵またはカード用縮退鍵などの鍵情報を入手する必要がある。
具体的には、SAMユニット9aで金額決裁をSAMユニット9bで商品購入を行い、しかもICカードとの1回の相互認証期間中で双方の処理を完結させる場合には、SAMユニット9aからSAMユニット9bに金額決裁に必要な鍵情報を転送し、SAMユニット9b側でICカード3へのアクセスに必要な鍵を合成する必要がある。
この場合に、SAMユニット9aとSAMユニット9bとで個別にICカード3にアクセスを行うことが可能だが、金額決裁と商品購入の双方の操作および処理について同時性を保証することが困難となる。例えば、SAMユニット9aによる金額決裁が完了したが、SAMユニット9bによる商品の入手処理が完結しないなどの事態が生じる。
For example, in order to calculate a mutual authentication key with the IC card 3 between different service providers, it is necessary to obtain key information such as a card access key or a card degenerate key.
Specifically, when the SAM unit 9a determines the amount of money, the SAM unit 9b purchases a product, and when both processes are completed within one mutual authentication period with the IC card, the SAM unit 9a to the SAM unit It is necessary to transfer key information necessary for the amount settlement to 9b and synthesize a key necessary for accessing the IC card 3 on the SAM unit 9b side.
In this case, the SAM unit 9a and the SAM unit 9b can individually access the IC card 3 , but it is difficult to guarantee the simultaneity of operations and processing for both the amount settlement and the product purchase. For example, although the amount settlement by the SAM unit 9a is completed, a situation in which the product acquisition process by the SAM unit 9b is not completed occurs.

また、ICカードの共有メモリ領域を借りて、独自にサービスを展開する事業者は、例えば共有メモリ領域の管理者(メモリ運用機構)から、ICカード3上にサービスを登録するための鍵情報(エリア登録用鍵パッケージ等)を入手する必要がある。
また、ICカード3内のメモリを論理的に分割して共有メモリ領域を生成するために必要なカード分割用鍵パッケージを、メモリ運用機構と共有領域提供者(例えばサービス事業者)間で授受する必要がある。
通信システム1は、上述したような複数の事業者によるサービスを連携して提供したり、鍵パッケージなどのアプリケーションエレメントデータAPEを授受する際に、SAMユニット9aとSAMユニット9bなどのSAMユニット相互間でセキュアな通信路を簡単に確立できる手法を提供する。
Further, a business operator who borrows a shared memory area of an IC card and develops a service independently, for example, from a manager of the shared memory area (memory operation mechanism), key information (registered service on the IC card 3). Area registration key package, etc.).
Also, a card partitioning key package necessary for logically dividing the memory in the IC card 3 to generate a shared memory area is exchanged between the memory operation mechanism and the shared area provider (for example, a service provider). There is a need.
When the communication system 1 provides services provided by a plurality of providers in cooperation with each other, and exchanges application element data APE such as a key package, the communication system 1 is connected between SAM units such as the SAM unit 9a and the SAM unit 9b. Provides a method for easily establishing a secure communication path.

以下、図1に示す構成要素について説明する。
〔ICカード3および携帯通信装置41〕
図2は、ICカード3の機能ブロック図である。
図2に示すように、ICカード3は、メモリ50およびCPU51を備えたIC(Integrated Circuit)モジュール3aを有する。
メモリ50は、図3に示すように、クレジットカード会社などのサービス事業者15_1が使用する記憶領域55_1、サービス事業者15_2が使用する記憶領域55_2、並びにサービス事業者15_3が使用する記憶領域55_3を有する。
また、メモリ50は、記憶領域55_1へのアクセス権限を判断するために用いられる鍵データ、記憶領域55_2へのアクセス権限を判断するために用いられる鍵データ、並びに記憶領域55_3へのアクセス権限を判断するために用いられる鍵データを記憶している。当該鍵データは、相互認証や、データの暗号化および復号などに用いられる。
また、メモリ50は、ICカード3あるいはICカード3のユーザの識別データを記憶している。
The components shown in FIG. 1 will be described below.
[IC card 3 and portable communication device 41]
FIG. 2 is a functional block diagram of the IC card 3.
As shown in FIG. 2, the IC card 3 includes an IC (Integrated Circuit) module 3 a including a memory 50 and a CPU 51.
As shown in FIG. 3, the memory 50 includes a storage area 55_1 used by a service provider 15_1 such as a credit card company, a storage area 55_2 used by the service provider 15_2, and a storage area 55_3 used by the service provider 15_3. Have.
In addition, the memory 50 determines key data used to determine access authority to the storage area 55_1, key data used to determine access authority to the storage area 55_2, and access authority to the storage area 55_3. The key data used to do this is stored. The key data is used for mutual authentication, data encryption and decryption, and the like.
Further, the memory 50 stores identification data of the IC card 3 or the user of the IC card 3.

携帯通信装置41は、携帯電話網およびインターネット10を介してASPサーバ装置19a、19bと通信を行う通信処理部43と、通信処理部43との間でデータ授受可能なICモジュール42とを有し、アンテナからインターネット10を介してSAMユニット9aと通信を行う。
ICモジュール42は、携帯通信装置41の通信処理部43とデータ授受を行う点を除いて、前述したICカード3のICモジュール3aと同じ機能を有している。
なお、携帯通信装置41を用いた処理は、ICカード3を用いた処理と同様に行われ、ICモジュール42を用いた処理はICモジュール3aを用いた処理と同様に行われるため、以下の説明では、ICカード3およびICモジュール3aを用いた処理について例示する。
The mobile communication device 41 includes a communication processing unit 43 that communicates with the ASP server devices 19a and 19b via the mobile phone network and the Internet 10, and an IC module 42 that can exchange data with the communication processing unit 43. Communicate with the SAM unit 9a through the Internet 10 from the antenna.
The IC module 42 has the same function as the IC module 3a of the IC card 3 described above except that data is exchanged with the communication processing unit 43 of the mobile communication device 41.
The processing using the mobile communication device 41 is performed in the same manner as the processing using the IC card 3, and the processing using the IC module 42 is performed in the same manner as the processing using the IC module 3a. Now, processing using the IC card 3 and the IC module 3a will be exemplified.

以下、SAMユニット9a,9bについて詳細に説明する。
SAMユニット9a,9bは、前述したように、外部メモリ7(本発明の記憶手段)とSAMモジュール8(本発明の処理手段)とを有する。
ここで、SAMモジュール8は、半導体回路として実現してもよいし、筐体内に複数の回路を収容した装置として実現してもよい。
Hereinafter, the SAM units 9a and 9b will be described in detail.
As described above, the SAM units 9a and 9b have the external memory 7 (storage means of the present invention) and the SAM module 8 (processing means of the present invention).
Here, the SAM module 8 may be realized as a semiconductor circuit, or may be realized as a device in which a plurality of circuits are accommodated in a housing.

〔SAMモジュール8のソフトウェア構成〕
SAMモジュール8は、図4に示すようなソフトウェア構成を有している。
図4に示すように、SAMモジュール8は、下層から上層に向けて、ハードウェアHW層、周辺HWに対応したRTOSカーネルなどを含めたドライバ層(OS層)、論理的にまとまった単位の処理を行う下位ハンドラ層、アプリケーション固有のライブラリなどをまとめた上位ハンドラ層およびAP層を順に有している。
ここで、AP層では、図1に示すクレジットカード会社などのサービス事業者のパーソナル・ーソナルコンピュータ(PC)15_1,15_2,15_3によるICカード3を用いた手続きを規定したアプリケーションプログラムAP_1,AP_2,AP_3(本発明のアプリケーションプログラム)が、外部メモリ7から読み出されて動作している。
各アプリケーションプログラムには、1つ以上のマクロ・スクリプトが設定可能である。
AP層では、アプリケーションプログラムAP_1,AP_2,AP_3相互間、並びに上位ハンドラ層との間にファイアウォールFWが設けられている。
[Software configuration of SAM module 8]
The SAM module 8 has a software configuration as shown in FIG.
As shown in FIG. 4, the SAM module 8 has a hardware HW layer, a driver layer (OS layer) including an RTOS kernel corresponding to the peripheral HW, and processing in logically united units from the lower layer to the upper layer. A lower handler layer, an upper handler layer in which application-specific libraries and the like are gathered, and an AP layer.
Here, in the AP layer, application programs AP_1, AP_2, which define procedures using the IC card 3 by personal personal computers (PC) 15_1, 15_2, 15_3 of a service provider such as a credit card company shown in FIG. AP_3 (the application program of the present invention) is read from the external memory 7 and is operating.
One or more macro scripts can be set for each application program.
In the AP layer, a firewall FW is provided between the application programs AP_1, AP_2, AP_3 and between the upper handler layer.

〔外部メモリ7〕
図5は、外部メモリ7の記憶領域を説明するための図である。
図5に示すように、外部メモリ7の記憶領域には、パーソナル・ーソナルコンピュータ(PC)16−1を有するサービス事業者15_1のアプリケーションプログラムAP_1が記憶されるAP記憶領域220_1、PC16−2を有するサービス事業者の15_2のアプリケーションプログラムAP_2が記憶されるAP記憶領域220_2、PC16−3を有するサービス事業者15_3のアプリケーションプログラムAP_3が記憶されるAP記憶領域220_3、並びにSAMモジュール208の管理者が使用するAP管理用記憶領域221がある。
ここで、SAMユニット9aの外部メモリ7に記憶されるアプリケーションプログラムが本発明の第1のアプリケーションプログラムに対応し、SAMユニット9bの外部メモリ7に記憶されるアプリケーションプログラムが本発明の第2のアプリケーションプログラムに対応している。
[External memory 7]
FIG. 5 is a diagram for explaining a storage area of the external memory 7.
As shown in FIG. 5, the storage area of the external memory 7 includes an AP storage area 220_1 and a PC 16-2 in which the application program AP_1 of the service provider 15_1 having the personal-personal computer (PC) 16-1 is stored. Used by the administrator of the AP storage area 220_2 for storing the application program AP_2 of the service provider 15_2, the AP storage area 220_3 of the application program AP_3 of the service provider 15_3 having the PC 16-3, and the SAM module 208 There is a storage area 221 for AP management.
Here, the application program stored in the external memory 7 of the SAM unit 9a corresponds to the first application program of the present invention, and the application program stored in the external memory 7 of the SAM unit 9b is the second application program of the present invention. It corresponds to the program.

AP記憶領域220_1に記憶されているアプリケーションプログラムAP_1は、後述する複数のアプリケーションエレメントデータAPE(本発明のデータモジュール)によって構成されている。AP記憶領域220_1へのアクセスは、ファイアウォールFW_1によって制限されている。
AP記憶領域220_2に記憶されているアプリケーションプログラムAP_2は、複数のアプリケーションエレメントデータAPEによって構成されている。AP記憶領域220_2へのアクセスは、ファイアウォールFW_2によって制限されている。
AP記憶領域220_3に記憶されているアプリケーションプログラムAP_3は、複数のアプリケーションエレメントデータAPEによって構成されている。AP記憶領域220_3へのアクセスは、ファイアウォールFW_3によって制限されている。
本実施形態では、上記アプリケーションエレメントデータAPEは、例えば、SAMユニット9aの外部から外部メモリ7にダウンロードされる最小単位である。各アプリケーションプログラムを構成するアプリケーションエレメントデータAPEの数は、対応するサービス事業者が任意に決定できる。
The application program AP_1 stored in the AP storage area 220_1 is composed of a plurality of application element data APE (data module of the present invention) described later. Access to the AP storage area 220_1 is restricted by the firewall FW_1.
The application program AP_2 stored in the AP storage area 220_2 includes a plurality of application element data APE. Access to the AP storage area 220_2 is restricted by the firewall FW_2.
The application program AP_3 stored in the AP storage area 220_3 includes a plurality of application element data APE. Access to the AP storage area 220_3 is restricted by the firewall FW_3.
In the present embodiment, the application element data APE is, for example, the smallest unit downloaded to the external memory 7 from the outside of the SAM unit 9a. The corresponding service provider can arbitrarily determine the number of application element data APE constituting each application program.

また、外部メモリ7に記憶されたアプリケーションプログラムAP_1,AP_2,AP_3は、スクランブル(暗号化)されており、SAMモジュール8に読み込まれたときに、デスクランブル(解読)される。
また、アプリケーションプログラムAP_1,AP_2,AP_3は、例えば、それぞれ図1に示すパーソナルコンピュータ(PC)16_1,16_2,16_3を用いて、サービス事業者15_1,15_2,15_3によって作成され、SAMモジュール8を介して外部メモリ7にダウンロードされる。
The application programs AP_1, AP_2, AP_3 stored in the external memory 7 are scrambled (encrypted) and descrambled (decrypted) when read into the SAM module 8.
The application programs AP_1, AP_2, and AP_3 are created by the service providers 15_1, 15_2, and 15_3 using the personal computers (PC) 16_1, 16_2, and 16_3 shown in FIG. Downloaded to the external memory 7.

以下、アプリケーションプログラムAP_1,AP_2,AP_3について詳細に説明する。
アプリケーションプログラムは、サービス事業者毎に、SAMユニット内に単数または複数個存在する。
Hereinafter, the application programs AP_1, AP_2, and AP_3 will be described in detail.
One or a plurality of application programs exist in the SAM unit for each service provider.

先ず、図1に示すSAMユニット9a(SAM_A)の外部メモリ7に格納されたアプリケーションプログラムAPについて説明する。
図6は、図1に示すSAMユニット9a(SAM_A)の外部メモリ7に格納されたアプリケーションプログラムAPを説明するための図である。
図6に示すように、当該アプリケーションプログラムAPは、当該アプリケーションプログラムAPを識別するための識別データAP_IDと、当該アプリケーションプログラム(あるいはそのパッケージ)のバージョン(世代情報)を示すデータAPP_VERと、当該アプリケーションプログラムに含まれるアプリケーションエレメントデータAPEの数を示すデータAPE_NUMと、当該アプリケーションプログラムを構成する単数または複数のアプリケーションエレメントデータAPEの識別データAPE_IDと、タグデータAPE_TAGと、利用許可データPTと、オプションデータOPTと、アプリケーションエレメントデータAPEの実体APE_PLとを有する。
なお、図6および図7に示すタグデータAPE_TAG、利用許可データPTおよびオプションデータOPTが本発明の第1の管理データに対応している。
First, the application program AP stored in the external memory 7 of the SAM unit 9a (SAM_A) shown in FIG. 1 will be described.
FIG. 6 is a diagram for explaining the application program AP stored in the external memory 7 of the SAM unit 9a (SAM_A) shown in FIG.
As shown in FIG. 6, the application program AP includes identification data AP_ID for identifying the application program AP, data APP_VER indicating the version (generation information) of the application program (or its package), and the application program Data APE_NUM indicating the number of application element data APE included in the data, identification data APE_ID of one or more application element data APE constituting the application program, tag data APE_TAG, usage permission data PT, option data OPT, And entity APE_PL of application element data APE.
The tag data APE_TAG, use permission data PT, and option data OPT shown in FIGS. 6 and 7 correspond to the first management data of the present invention.

識別データAP_IDは、サービス事業者毎に異なるように決められている。
また、タグデータAPE_TAGは、サービス事業者が設定可能なアプリケーションエレメントデータAPEの識別用タグであり、アプリケーションプログラムAP内で一意に特定可能に決定される。
また、図6において、アプリケーションプログラムAPに格納された4つの識別データAPE_IDのうち、斜線で示した3つのAPE_IDに対応するアプリケーションエレメントデータAPEの実体は、図1に示すSAMユニット9b(SAM_B)からSAMユニット9a(SAM_A)に後述するように転送される。
すなわち、これら3つのアプリケーションエレメントデータAPEの実体は、SAMユニット9aの外部メモリ7には存在しない。
The identification data AP_ID is determined to be different for each service provider.
Tag data APE_TAG is an identification tag for application element data APE that can be set by the service provider, and is determined so as to be uniquely identifiable within the application program AP.
In FIG. 6, among the four pieces of identification data APE_ID stored in the application program AP, the entity of the application element data APE corresponding to the three APE_IDs indicated by diagonal lines is from the SAM unit 9b (SAM_B) shown in FIG. The data is transferred to the SAM unit 9a (SAM_A) as described later.
That is, the substance of these three application element data APE does not exist in the external memory 7 of the SAM unit 9a.

図7(A)は、図6に示す利用許可データPTを説明するための図である。
図7(A)に示すように、利用許可データPTは、相互認証鍵数、相互認証の有無、SAM_Aの相互認証鍵のインスタンス、SAM_Aの相互認証鍵のアプリケーションエレメントデータAPE、SAM_Bの相互認証のインスタンス、SAM_Bの相互認証鍵のアプリケーションエレメントデータAPEと、アクセス権限データPMSDとを有する。
ここで、図7(A)で斜線を付した相互認証の有無と、SAM_Bの相互認証のインスタンスと、SAM_Bの相互認証鍵のアプリケーションエレメントデータAPEとは、SAMユニット9bに存在し、SAMユニット9bから転送して取得される。
FIG. 7A is a diagram for explaining the use permission data PT shown in FIG.
As shown in FIG. 7A, the use permission data PT includes the number of mutual authentication keys, the presence / absence of mutual authentication, the instance of the mutual authentication key of SAM_A, the application element data APE of the mutual authentication key of SAM_A, and the mutual authentication of SAM_B. Application element data APE of the mutual authentication key of the instance, SAM_B, and access authority data PMSD.
Here, the presence / absence of mutual authentication indicated by hatching in FIG. 7A, the instance of mutual authentication of SAM_B, and the application element data APE of the mutual authentication key of SAM_B exist in the SAM unit 9b, and the SAM unit 9b. Obtained by transferring from.

図7(B)は、図6に示すオプションデータOPTを説明するための図である。
図7(B)に示すように、オプションデータOPTは、SAM_BのSAM_IDと、SAM_Bに格納されたアプリケーションプログラムの識別データAP_ID(B)と、フラグデータPCFとを格納している。
フラグデータPCFは、アプリケーションエレメントデータAPEがSAMユニット9aの外部および内部の何れに存在するかを示す第1のフラグと、当該アプリケーションプログラムのアプリケーションエレメントデータAPEを外部に公開するか非公開にするかを示す第2のフラグと、外部に公開した場合にそれを一時的に利用させるかあるいは保存(永久利用)させるかを示す第3のフラグとを有する。
図7(B)に示す例では、第1のフラグは外部を示し、第2および第3のフラグは未設定になっている。
FIG. 7B is a diagram for explaining the option data OPT shown in FIG.
As shown in FIG. 7B, the option data OPT stores SAM_ID of SAM_B, application program identification data AP_ID (B) stored in SAM_B, and flag data PCF.
The flag data PCF includes a first flag indicating whether the application element data APE exists outside or inside the SAM unit 9a, and whether to disclose the application element data APE of the application program to the outside or not. And a third flag indicating whether it is temporarily used or stored (permanently used) when released to the outside.
In the example shown in FIG. 7B, the first flag indicates the outside, and the second and third flags are not set.

また、利用許可データPTあるいはオプションデータOPTには、例えば、アプリケーションプログラムAP内の各設定データを設定可能な主体の正当性を認証するためのデータが格納されており、SAMモジュール8aは、当該データに基づいて、当該設定データの設置を許可するか否かを判断する。
また、本実施形態では、各アプリケーションプログラムが使用するポートが規定されており、当該アプリケーションプログラムに規定されたポートを利用する、権限や用途などが管理データとして規定されている。SAMユニット9a,9bは、当該管理データに基づいて、各アプリケーションプログラムに規定されたポートの利用形態を決定する。
The use permission data PT or option data OPT stores, for example, data for authenticating the validity of the subject that can set each setting data in the application program AP, and the SAM module 8a stores the data. Based on the above, it is determined whether or not the installation of the setting data is permitted.
Further, in the present embodiment, the ports used by each application program are defined, and the authority, usage, etc. for using the ports defined in the application program are defined as management data. The SAM units 9a and 9b determine the usage mode of the ports defined in each application program based on the management data.

次に、図1に示すSAMユニット9b(SAM_B)の外部メモリ7に格納されたアプリケーションプログラムAPについて説明する。
図8は、図1に示すSAMユニット9b(SAM_B)の外部メモリ7に格納されたアプリケーションプログラムAPを説明するための図である。
図8に示すように、当該アプリケーションプログラムAPは、当該アプリケーションプログラムAPを識別するための識別データAP_IDと、当該アプリケーションプログラム(あるいはそのパッケージ)のバージョン(世代情報)を示すデータAPP_VERと、当該アプリケーションプログラムに含まれるアプリケーションエレメントデータAPEの数を示すデータAPE_NUMと、当該アプリケーションプログラムを構成する単数または複数のアプリケーションエレメントデータAPEの識別データAPE_IDと、タグデータAPE_TAGと、利用許可データPTと、オプションデータOPTと、アプリケーションエレメントデータAPEの実体APE_PLとを有する。
なお、図8および図9に示すタグデータAPE_TAG、利用許可データPTおよびオプションデータOPTが本発明の第2の管理データに対応している。
Next, the application program AP stored in the external memory 7 of the SAM unit 9b (SAM_B) shown in FIG. 1 will be described.
FIG. 8 is a diagram for explaining the application program AP stored in the external memory 7 of the SAM unit 9b (SAM_B) shown in FIG.
As shown in FIG. 8, the application program AP includes identification data AP_ID for identifying the application program AP, data APP_VER indicating the version (generation information) of the application program (or its package), and the application program Data APE_NUM indicating the number of application element data APE included in the data, identification data APE_ID of one or more application element data APE constituting the application program, tag data APE_TAG, usage permission data PT, option data OPT, And entity APE_PL of application element data APE.
The tag data APE_TAG, use permission data PT, and option data OPT shown in FIGS. 8 and 9 correspond to the second management data of the present invention.

また、図8において、アプリケーションプログラムAPに格納された4つの識別データAPE_IDのうち、括弧で示した3つのAPE_IDに対応するアプリケーションエレメントデータAPEの実体は、図1に示すSAMユニット9a(SAM_A)から利用される。
これら3つのアプリケーションエレメントデータAPEの実体は、SAMユニット9bの外部メモリ7には存在する。
In FIG. 8, among the four identification data APE_ID stored in the application program AP, the entity of the application element data APE corresponding to the three APE_IDs indicated in parentheses is from the SAM unit 9a (SAM_A) shown in FIG. Used.
The entities of these three application element data APE exist in the external memory 7 of the SAM unit 9b.

図9(A)は、図6に示す利用許可データPTを説明するための図である。
図9(A)に示すように、利用許可データPTは、相互認証鍵数、相互認証の有無、SAM_Bの相互認証鍵のインスタンス、SAM_Bの相互認証鍵のアプリケーションエレメントデータAPE、SAM_Aの相互認証のインスタンス、SAM_Aの相互認証鍵のアプリケーションエレメントデータAPEと、アクセス権限データPMSDとを有する。
ここで、図9(A)で斜線を付した相互認証の有無と、SAM_Aの相互認証のインスタンスと、SAM_Aの相互認証鍵のアプリケーションエレメントデータAPEとは、SAMユニット9aから転送して取得される。
また、アクセス権限データPMSDは、当該アプリケーションプログラムAPに格納されたアプリケーションエレメントデータAPE毎に、当該APEの外部からのアクセス(利用)を許可する形態(読み出し、書き込み、あるいは実行)を指定している。当該指定は、予め指定は、予め規定された権限を特定して行われてもよい。
FIG. 9A is a diagram for explaining the use permission data PT shown in FIG.
As shown in FIG. 9A, the usage permission data PT includes the number of mutual authentication keys, the presence / absence of mutual authentication, the instance of the mutual authentication key of SAM_B, the application element data APE of the mutual authentication key of SAM_B, and the mutual authentication of SAM_A. Application element data APE of the mutual authentication key of the instance, SAM_A, and access authority data PMSD.
Here, the presence / absence of mutual authentication indicated by hatching in FIG. 9A, the mutual authentication instance of SAM_A, and the application element data APE of the mutual authentication key of SAM_A are transferred and acquired from the SAM unit 9a. .
Further, the access authority data PMSD designates a form (read, write, or execute) that permits access (use) from the outside of the APE for each application element data APE stored in the application program AP. . The designation may be performed in advance by specifying a predetermined authority.

図9(B)は、図8に示すオプションデータOPTを説明するための図である。
図9(B)に示すように、オプションデータOPTは、SAM_AのSAM_IDと、SAM_Aに格納されたアプリケーションプログラムの識別データAP_ID(A)と、フラグデータPCFとを格納している。
フラグデータPCFは、図9(B)の例では、第1のフラグは内部を示し、第2のフラグは公開を示し、第3のフラグは一時利用を示している。
FIG. 9B is a diagram for explaining the option data OPT shown in FIG.
As shown in FIG. 9B, option data OPT stores SAM_ID of SAM_A, application program identification data AP_ID (A) stored in SAM_A, and flag data PCF.
In the example of FIG. 9B, in the flag data PCF, the first flag indicates the inside, the second flag indicates disclosure, and the third flag indicates temporary use.

なお、アプリケーションエレメントデータAPEは、暗号化されたパッケージを各領域別に設定することで、外部メモリ7に格納される。   The application element data APE is stored in the external memory 7 by setting an encrypted package for each area.

以下、アプリケーションエレメントデータAPEの種別(APE_TYPE)について説明する。
図10は、アプリケーションエレメントデータAPEの種別を説明するための図である。
図10に示すように、アプリケーションエレメントデータAPEの種別(APE_TYPE)としては、APリソース鍵データK_APR、カードアクセス鍵データ(ICエリア鍵データ、IC縮退鍵データなど)、ファイルシステムコンフィグレーションデータ、SAM相互認証用鍵データ、SAM間鍵パッケージ鍵データ、ICカード操作用マクロコマンドスクリプトプログラム、メモリ分割用鍵パッケージ、メモリ分割用素鍵パッケージ、拡張発行用鍵パッケージ、発行用鍵パッケージ、エリア登録鍵パッケージ、エリア削除用鍵パッケージ、サービス登録用鍵データ、サービス削除用鍵パッケージ、が、アプリケーションエレメントデータAPEとして記憶されている。
Hereinafter, the type (APE_TYPE) of the application element data APE will be described.
FIG. 10 is a diagram for explaining the type of application element data APE.
As shown in FIG. 10, types of application element data APE (APE_TYPE) include AP resource key data K_APR, card access key data (IC area key data, IC degenerate key data, etc.), file system configuration data, and SAM mutual data. Authentication key data, inter-SAM key package key data, IC card operation macro command script program, memory partition key package, memory partition key package, extended issue key package, issue key package, area registration key package, Area deletion key packages, service registration key data, and service deletion key packages are stored as application element data APE.

以下、図10に示すアプリケーションエレメントデータAPEの種別のうち一部を詳細に説明する。
・APリソース鍵データK_APR
APリソース鍵データK_APRは、アプリケーションエレメントデータAPEを設定する際の暗号用鍵として使用され、AP領域毎に、アプリケーションエレメントデータAPEを設定するために異なる鍵データK_APRが割り当てられている。
・カードアクセス鍵データ
カードアクセス鍵データは、ICカード3およびICモジュール42のメモリ50に対してのデータの読み書き操作に用いられる鍵データである。
カードアクセス鍵データには、例えば、ICカードシステム鍵データ、ICカードエリア鍵データ、ICカードサービス鍵データおよびICカード縮退鍵データなどがある。
ここで、ICカード縮退鍵データは、ICカードシステム鍵データと、メモリ50の記憶領域管理用鍵データとを用いて暗号化して生成され、相互認証に用いられる鍵データである。
また、ICカード操作用マクロコマンドスクリプトプログラムで参照される鍵データも、カードアクセス鍵データと同じ種別のアプリケーションエレメントデータAPEに含まれる。
Hereinafter, a part of the types of application element data APE shown in FIG. 10 will be described in detail.
-AP resource key data K_APR
The AP resource key data K_APR is used as an encryption key when setting the application element data APE, and different key data K_APR is assigned for setting the application element data APE for each AP area.
Card access key data The card access key data is key data used for data read / write operations with respect to the IC card 3 and the memory 50 of the IC module 42.
The card access key data includes, for example, IC card system key data, IC card area key data, IC card service key data, and IC card degenerate key data.
Here, the IC card degenerate key data is key data that is generated by encryption using the IC card system key data and the storage area management key data of the memory 50 and is used for mutual authentication.
The key data referred to by the IC card operation macro command script program is also included in the same type of application element data APE as the card access key data.

・ファイルシステムコンフィグレーションデータ
ファイルシステムコンフィグレーションデータとしては、例えば、ログデータ、ネガデータ、ジャーナルデータがある。
ログデータは例えばアプリケーションエレメントデータAPEの利用履歴データであり、ネガデータは例えばICカードの失効情報であり、ジャーナルデータは例えばSAMでの実行履歴である。
例えば、ファイルシステムコンフィグレーションでは、ファイルアクセスの種別(レコードキー指定・ソート・リング)の選択を行い、レコードキーの場合であれば、レコードサイズ、レコード全体件数・レコード署名バージョン・レコード署名メソッドタイプ、レコードデータサイズ、レコード署名鍵を設定する。さらに、外部から本ファイルシステムにデータを書き込む際に署名検証を実施するかの有無の指定などを行う。ここでレコードとは、ファイルデータへの書き込み/読み出しの最小単位である。
File system configuration data File system configuration data includes, for example, log data, negative data, and journal data.
The log data is, for example, usage history data of the application element data APE, the negative data is, for example, IC card revocation information, and the journal data is, for example, an SAM execution history.
For example, in the file system configuration, the type of file access (record key specification / sorting / ring) is selected. If it is a record key, the record size, the total number of records, the record signature version, the record signature method type, Set the record data size and record signing key. Furthermore, it is specified whether or not signature verification is performed when data is written to the file system from the outside. Here, the record is a minimum unit for writing / reading file data.

・SAM相互認証用鍵データ
同一SAM内にあるAP間相互認証にも使用される。
SAM相互認証用鍵データとは、対応するアプリケーションエレメントデータAPEを同一SAM内の他のAPまたは他のSAMからアクセスする際に用いられる鍵データである。
・SAM間鍵パッケージ鍵
SAM間鍵パッケージ鍵とは、SAM間での相互認証後、カードアクセス鍵データなどのデータを交換する際に用いられる暗号化用鍵データである。
・ICカード操作用マクロコマンドスクリプトプログラム
ICカード操作用マクロコマンドスクリプトプログラムは、サービス事業者自身によって生成され、ICカード3に係わる処理の順番やASPサーバ装置19とのやり取りを記述している。ICカード操作用マクロコマンドスクリプトプログラムは、SAMユニット9aに設定された後に、SAMモジュール8内で解釈され、対応するICカードエンティティデータが生成される。
SAM mutual authentication key data Used for mutual authentication between APs in the same SAM.
The SAM mutual authentication key data is key data used when the corresponding application element data APE is accessed from another AP or another SAM in the same SAM.
Inter-SAM Key Package Key The inter-SAM key package key is encryption key data used when exchanging data such as card access key data after mutual authentication between SAMs.
IC card operation macro command script program The IC card operation macro command script program is generated by the service provider itself, and describes the order of processing related to the IC card 3 and the exchange with the ASP server device 19. The IC card operation macro command script program is set in the SAM unit 9a and then interpreted in the SAM module 8 to generate corresponding IC card entity data.

・メモリ分割用鍵パッケージ
メモリ分割用鍵パッケージは、サービス事業者がICカード3を用いたサービスの運用開始前に、外部メモリ7やICカード3のメモリの記憶領域を分割するために使用するデータである。
・エリア登録鍵パッケージ
エリア登録鍵パッケージは、サービス事業者がICカード3を用いたサービスの運用開始前に、ICカード3のメモリの記憶領域にエリア登録を行う場合に使用するデータである。
・エリア削除用鍵パッケージ(内部生成)
エリア削除用鍵パッケージは、カードアクセス鍵データからSAM内部で自動生成が可能なパッケージである。
Memory partition key package The memory partition key package is data used by the service provider to partition the storage area of the external memory 7 or the memory of the IC card 3 before the service operation using the IC card 3 is started. It is.
Area Registration Key Package The area registration key package is data used when the service provider performs area registration in the storage area of the memory of the IC card 3 before starting the operation of the service using the IC card 3.
-Area deletion key package (internally generated)
The area deletion key package is a package that can be automatically generated from the card access key data inside the SAM.

・サービス登録用鍵(内部生成)
サービス登録用鍵パッケージは、サービス事業者がICカード3を用いたサービスの運用開始前に、外部メモリ7のアプリケーションエレメントデータAPEを登録するために用いられる。
サービス登録用鍵パッケージは、カードアクセス鍵データからSAM内部で自動生成が可能なパッケージである。
・サービス削除用鍵パッケージ(内部生成)
サービス削除用鍵パッケージは、外部メモリ7に登録されているアプリケーションエレメントデータAPEを削除するために用いられる。
サービス削除用鍵パッケージは、カードアクセス鍵データからSAM内部で自動生成が可能なパッケージである。
・ Service registration key (internally generated)
The service registration key package is used by the service provider to register the application element data APE in the external memory 7 before the service operation using the IC card 3 is started.
The service registration key package can be automatically generated from the card access key data inside the SAM.
-Key package for service deletion (internal generation)
The service deletion key package is used to delete the application element data APE registered in the external memory 7.
The service deletion key package is a package that can be automatically generated inside the SAM from the card access key data.

また、図5に示す外部メモリ7内のAP管理用記憶領域221には、上述したアプリケーションプログラムAP_1〜AP_3を管理するためのAP管理用データが記憶されている。
AP管理用記憶領域221へのアクセスは、ファイアウォールFW_4によって制限されている。
Further, the AP management storage area 221 in the external memory 7 shown in FIG. 5 stores AP management data for managing the application programs AP_1 to AP_3 described above.
Access to the AP management storage area 221 is restricted by the firewall FW_4.

〔SAMモジュール8〕
SAMモジュール8は、SCSIまたはEthernet(登録商標)などを介してASPサーバ装置19a,19bに接続される。ASPサーバ装置19は、インターネット10を介して、エンドユーザのパーソナルコンピュータ5、サービス事業者15_1,15_2,15_3のパーソナルコンピュータ16_1,16_2,16_3を含む複数の端末装置に接続される。
パーソナルコンピュータ5は、例えば、シリアルまたはUSBを介してDumb型のカードリーダ・ライタ4に接続されている。カードリーダ・ライタ4が、ICカード3(ICモジュール42)との間で物理レベルに相当する例えば無線通信を実現する。
ICカード3(ICモジュール42)への操作コマンドおよびICカード3(ICモジュール42)からのリスポンスパケットは、SAMユニット9a,9b側で生成および解読される。よって、その中間に介在するカードリーダ・ライタ4、パーソナルコンピュータ5およびASPサーバ装置19は、コマンドやリスポンス内容をデータペイロード部分に格納して中継する役割を果たすのみで、ICカード3内のデータの暗号化や復号および認証などの実操作には関与しない。
[SAM module 8]
The SAM module 8 is connected to the ASP server devices 19a and 19b via SCSI or Ethernet (registered trademark). The ASP server device 19 is connected to a plurality of terminal devices including the personal computer 5 of the end user and the personal computers 16_1, 16_2, and 16_3 of the service providers 15_1, 15_2, and 15_3 via the Internet 10.
The personal computer 5 is connected to the Dumb type card reader / writer 4 via, for example, serial or USB. The card reader / writer 4 implements, for example, wireless communication corresponding to the physical level with the IC card 3 (IC module 42).
An operation command to the IC card 3 (IC module 42) and a response packet from the IC card 3 (IC module 42) are generated and decoded on the SAM unit 9a, 9b side. Therefore, the card reader / writer 4, personal computer 5, and ASP server device 19 interposed between them only serve to store the command and response contents in the data payload portion and relay them, and to transfer the data in the IC card 3. It is not involved in actual operations such as encryption, decryption and authentication.

パーソナルコンピュータ16_1,16_2,16_3は、後述するスクリプトプログラムをSAMモジュール8にダウンロードすることで、それぞれアプリケーションプログラムAP_1,AP_2,AP_3をカスタマイズできる。   The personal computers 16_1, 16_2, and 16_3 can customize the application programs AP_1, AP_2, and AP_3, respectively, by downloading a script program to be described later to the SAM module 8.

図11は、図1に示すSAMモジュール8の機能ブロック図である。
図11に示すように、SAMモジュール8は、ASPS通信インタフェース部60、外部メモリ通信インタフェース部61、バススクランブル部62、乱数発生部63、暗号・復号部64、メモリ65およびCPU66を有する。
SAMモジュール8は、耐タンパ性のモジュールである。
FIG. 11 is a functional block diagram of the SAM module 8 shown in FIG.
As shown in FIG. 11, the SAM module 8 includes an ASPS communication interface unit 60, an external memory communication interface unit 61, a bus scramble unit 62, a random number generation unit 63, an encryption / decryption unit 64, a memory 65, and a CPU 66.
The SAM module 8 is a tamper resistant module.

ASPS通信インタフェース部60は、図1に示すASPサーバ装置19a,19bとの間のデータ入出力に用いられるインタフェースである。
外部メモリ通信インタフェース部61は、外部メモリ7との間のデータ入出力に用いられるインタフェースである。
バススクランブル部62は、外部メモリ通信インタフェース部61を介してデータを入出力する際に、出力するデータをスクランブルし、入力したデータをデスクランブルする。
乱数発生部63は、認証処理を行う際に用いられる乱数を発生する。
暗号・復号部64は、データの暗号化、並びに暗号化されたデータの復号を行う。
メモリ65は、後述するように、CPU66によって用いられるタスク、プログラム、並びにデータを記憶する。
CPU66は、ICカード手続管理タスク(ジョブ管理用データ管理タスク)などのタスクを実行する。
CPU66は、SAMユニット9a,9b内での操作コマンドに基づいてSAMユニット9a,9b内で規定された処理を行い、ICカード3のICモジュール3aおよび携帯通信装置41のICモジュール42の操作コマンドとに基づいて、ICモジュール3aおよびICモジュール42の処理を制御する。
SAMユニット9aのCPU66とSAMユニット9bのCPU66は、後述するように、SAMユニット9a,9b間でのデータ授受(通信)を制御する。
The ASPS communication interface unit 60 is an interface used for data input / output with the ASP server devices 19a and 19b shown in FIG.
The external memory communication interface unit 61 is an interface used for data input / output with the external memory 7.
The bus scramble unit 62 scrambles data to be output and descrambles the input data when inputting / outputting data via the external memory communication interface unit 61.
The random number generator 63 generates a random number used when performing the authentication process.
The encryption / decryption unit 64 encrypts data and decrypts the encrypted data.
The memory 65 stores tasks, programs, and data used by the CPU 66 as will be described later.
The CPU 66 executes tasks such as an IC card procedure management task (job management data management task).
The CPU 66 performs processing defined in the SAM units 9a and 9b based on the operation commands in the SAM units 9a and 9b, and operates the operation commands of the IC module 3a of the IC card 3 and the IC module 42 of the portable communication device 41. The processing of the IC module 3a and the IC module 42 is controlled based on the above.
The CPU 66 of the SAM unit 9a and the CPU 66 of the SAM unit 9b control data exchange (communication) between the SAM units 9a and 9b, as will be described later.

〔SAM間通信〕
以下、図12に示すように、SAMユニット9aと9bとの間で、アプリケーションエレメントデータAPEの転送を行う場合の通信方法について説明する。
通信システム1では、前述したように、SAMユニット9aとSAMユニット9bとが連携してICカード3およびICモジュール42を用いたサービスを提供する場合に、SAMユニット9aと9bとの間で、アプリケーションエレメントデータAPEの転送を行う。
この場合に、SAMユニット9a,9bの図11に示すASPS通信インタフェース部60を用いて、SAMユニット9aと、サーバ装置19aと、サーバ装置19bと、SAMユニット9bとの間で通信が行われる。
例えば、図13に示すように、SAMユニット9bの外部メモリ7に格納されたアプリケーションプログラムAP(B)内に縮退鍵データ(APE)の実体が格納され、SAMユニット9aの外部メモリ7に格納されたアプリケーションプログラムAP(A)から、当該縮退鍵データを参照する場合に、SAMユニット9bが公開元となり、SAMユニット9aが参照元となる。
そして、SAMユニット9bからSAMユニット9aに、当該縮退鍵データをのアプリケーションエレメントデータAPEが転送される。
当該転送は、SAMユニット9aおよび9bのアプリケーションプログラムAP(A),(B)内にあるオプションデータOPT、フラグデータPCF、並びにアクセス権限データPMSDの設定内容に基づいて、SAMユニット9aから9bにSAM間エレメント転送コマンドを送信し、それに応じて、SAMユニット9bから9aにSAM間エレメント転送レスポンスを送信して行われる。
[Communication between SAMs]
Hereinafter, as shown in FIG. 12, a communication method for transferring application element data APE between the SAM units 9a and 9b will be described.
In the communication system 1, as described above, when the SAM unit 9a and the SAM unit 9b cooperate to provide a service using the IC card 3 and the IC module 42, the application between the SAM units 9a and 9b. The element data APE is transferred.
In this case, communication is performed among the SAM unit 9a, the server device 19a, the server device 19b, and the SAM unit 9b using the ASPS communication interface unit 60 shown in FIG. 11 of the SAM units 9a and 9b.
For example, as shown in FIG. 13, the substance of the degenerate key data (APE) is stored in the application program AP (B) stored in the external memory 7 of the SAM unit 9b and stored in the external memory 7 of the SAM unit 9a. When referring to the degenerate key data from the application program AP (A), the SAM unit 9b becomes a public source and the SAM unit 9a becomes a reference source.
Then, the application element data APE of the degenerate key data is transferred from the SAM unit 9b to the SAM unit 9a.
The transfer is performed from the SAM units 9a to 9b to the SAM units 9a and 9b based on the setting contents of the option data OPT, flag data PCF, and access authority data PMSD in the application programs AP (A) and (B) of the SAM units 9a and 9b. An inter-element transfer command is transmitted, and an inter-SAM element transfer response is transmitted from the SAM units 9b to 9a accordingly.

図14は、SAM間エレメント転送コマンドSAMAPETCを説明するための図である。
図14に示すように、SAM間エレメント転送コマンドSAMAPETCは、自分(コマンドの転送元)のアプリケーションプログラムの識別データAP_ID、相手(コマンドの転送先)のアプリケーションプログラムの識別データAP_ID、転送先(相手側)の相互認証鍵のインスタンス番号、転送を要求するアプリケーションエレメントデータAPEの数(エレメント属性数)、転送先との間で行う相互認証の管理ID(相互認証管理ID)、並びにアプリケーションエレメントデータAPEの属性リスト(エレメント属性リスト)を有する。
ここで、エレメント属性リストは、アプリケーションエレメントデータAPEの種別(APE_TYPE)と、エレメント属性とを有する。
当該エレメント属性は、図15に示すように、転送を要求するアプリケーションエレメントデータAPEの種別(APE_TYEP)により、設定する項目が異なる。
例えば、図15に示すように、転送するアプリケーションエレメントデータAPEがエリア・サービス鍵データの場合には、システムコード、エリア/サービスコード、エレメントバージョンをエレメント属性として設定する。
FIG. 14 is a diagram for explaining the inter-SAM element transfer command SAMAPETC.
As shown in FIG. 14, the inter-SAM element transfer command SAMAPETC includes identification data AP_ID of its own (command transfer source) application program, identification data AP_ID of the partner (command transfer destination) application program, and transfer destination (partner side). ) Mutual authentication key instance number, number of application element data APE requesting transfer (number of element attributes), management ID of mutual authentication with the transfer destination (mutual authentication management ID), and application element data APE It has an attribute list (element attribute list).
Here, the element attribute list has a type (APE_TYPE) of the application element data APE and an element attribute.
As shown in FIG. 15, the element attribute has different items to be set depending on the type (APE_TYPE) of application element data APE requesting transfer.
For example, as shown in FIG. 15, when the application element data APE to be transferred is area service key data, the system code, area / service code, and element version are set as element attributes.

図16は、SAM間エレメント転送レスポンスSAMAPETRを説明するための図である。
図16に示すように、SAM間エレメント転送レスポンスSAMAPETRは、自分(レスポンスの転送元)のアプリケーションプログラムの識別データAP_ID、相手(レスポンスの転送先)のアプリケーションプログラムの識別データAP_ID、転送先(相手側)の相互認証鍵のインスタンス番号、転送するアプリケーションエレメントデータAPEの数(エレメント属性数)、レスポンスの転送先との間で行う相互認証の管理ID(相互認証管理ID)、フラグデータPCF、並びにエレメントリストを有する。
ここで、エレメントリストは、アプリケーションエレメントデータAPEの種別(APE_TYPE)と、エレメント属性サイズと、エレメント属性と、アプリケーションエレメントデータAPEの実体とをを有する。
当該エレメント属性は、図15に示すように、返却するアプリケーションエレメントデータAPEの種別(APE_TYEP)により、設定する項目が異なる。
例えば、図15に示すように、返却するアプリケーションエレメントデータAPEがエリア・サービス鍵データの場合には、エリア鍵データとサービス鍵データとをエレメント属性として設定する。
FIG. 16 is a diagram for explaining the inter-SAM element transfer response SAMAPETR.
As shown in FIG. 16, the inter-SAM element transfer response SAMAPETR includes the identification data AP_ID of the application program of its own (response transfer source), the identification data AP_ID of the application program of the other party (response transfer destination), and the transfer destination (the other party side). ) Mutual authentication key instance number, number of application element data APE to be transferred (number of element attributes), management ID of mutual authentication (mutual authentication management ID) performed with the transfer destination of response, flag data PCF, and element Have a list.
Here, the element list includes the type (APE_TYPE) of the application element data APE, the element attribute size, the element attribute, and the entity of the application element data APE.
As shown in FIG. 15, the element attribute has different items to be set depending on the type of application element data APE to be returned (APE_TYPE).
For example, as shown in FIG. 15, when the application element data APE to be returned is area service key data, area key data and service key data are set as element attributes.

上述したSAM間エレメント転送コマンド/レスポンスを用いた、SAMユニット9aと9bとの間の転送は、SAMユニット9aと9bとの間で相互認証を行った後に行われる。   The transfer between the SAM units 9a and 9b using the inter-SAM element transfer command / response described above is performed after mutual authentication is performed between the SAM units 9a and 9b.

図17は、SAMユニット9aと9bとの間の相互認証の手順を説明するための図である。
ステップST201:
参照元のSAMユニット9aのSAMモジュール8のCPU66が、SAMユニット9bのSAM_ID、参照を行うアプリケーションプログラムAPのAP_ID、使用するアプリケーションプログラムAPのポートID、SAMユニット9の相互認証鍵のアプリケーションエレメントデータAPEのAPE_ID、暗号方式、SAMユニット9aが生成した乱数値RAとを、SAMユニット9bの相互認証鍵データAK_Bを用いて暗号化して格納した認証コマンドAUTH_C1を生成する。CPU66は、認証コマンドAUTH_C1を、サーバ装置19a,19bを介してSAMユニット9bに送信する。
FIG. 17 is a diagram for explaining the mutual authentication procedure between the SAM units 9a and 9b.
Step ST201:
The CPU 66 of the SAM module 8 of the reference source SAM unit 9a performs the SAM_ID of the SAM unit 9b, the AP_ID of the application program AP to be referred to, the port ID of the application program AP to be used, and the application element data APE of the mutual authentication key of the SAM unit 9. The authentication command AUTH_C1 is generated by encrypting and storing the APE_ID, the encryption method, and the random value RA generated by the SAM unit 9a using the mutual authentication key data AK_B of the SAM unit 9b. The CPU 66 transmits an authentication command AUTH_C1 to the SAM unit 9b via the server devices 19a and 19b.

ステップST202:
アプリケーションエレメントデータAPEの提供側であるSAMユニット9bのSAMモジュール8のCPU66が、ステップST201で受信した認証コマンドAUTH_C1を、相互認証鍵データAK_Bを用いて復号し、当該復号によって得たデータと、SAMユニット9bが生成した乱数値RBとを、SAMユニット9aの相互認証鍵データAK_Aを用いて暗号化して格納した認証レスポンスAUTH_R1を生成する。CPU66は、認証レスポンスAUTH_R1を、サーバ装置19b,19aを介してSAMユニット9aに送信する。
Step ST202:
The CPU 66 of the SAM module 8 of the SAM unit 9b on the application element data APE providing side decrypts the authentication command AUTH_C1 received in step ST201 using the mutual authentication key data AK_B, and the data obtained by the decryption, the SAM An authentication response AUTH_R1 is generated by encrypting and storing the random value RB generated by the unit 9b using the mutual authentication key data AK_A of the SAM unit 9a. The CPU 66 transmits an authentication response AUTH_R1 to the SAM unit 9a via the server devices 19b and 19a.

ステップST203:
SAMユニット9aのSAMモジュール8のCPU66が、ステップST202で受信した認証レスポンスAUTH_R1を、相互認証鍵データAK_Aを用いて復号し、当該復号によって得た乱数値RAと、ステップST201で生成した乱数値RAとが一致しているか否かを判断し、一致していると判断した場合に、乱数値RBを相互認証鍵データAK_Bを用いて暗号化して格納した認証コマンドAUTH_C2を生成する。CPU66は、認証コマンドAUTH_C2を、サーバ装置19a,19bを介してSAMユニット9bに送信する。
Step ST203:
The CPU 66 of the SAM module 8 of the SAM unit 9a decrypts the authentication response AUTH_R1 received in step ST202 using the mutual authentication key data AK_A, and the random value RA obtained by the decryption and the random value RA generated in step ST201. And the authentication command AUTH_C2 in which the random number value RB is encrypted and stored using the mutual authentication key data AK_B is generated. The CPU 66 transmits an authentication command AUTH_C2 to the SAM unit 9b via the server devices 19a and 19b.

ステップST204:
SAMユニット9bのSAMモジュール8のCPU66が、ステップST203で受信した認証コマンドAUTH_C2を、相互認証鍵データAK_Bを用いて復号し、当該復号によって得た乱数値RBと、ステップST202で生成した乱数値RBとが一致しているか否かを判断し、一致していると判断した場合に、相互認証管理IDを格納し、認証レスポンスAUTH_R2を生成する。CPU66は、認証レスポンスAUTH_R2を、サーバ装置19b,19aを介してSAMユニット9aに送信する。
これにより、SAMユニット9aと9bとの間の相互認証が完了する。
Step ST204:
The CPU 66 of the SAM module 8 of the SAM unit 9b decrypts the authentication command AUTH_C2 received in step ST203 using the mutual authentication key data AK_B, and the random value RB obtained by the decryption and the random value RB generated in step ST202. Is determined to match, and if it is determined to match, the mutual authentication management ID is stored and an authentication response AUTH_R2 is generated. The CPU 66 transmits an authentication response AUTH_R2 to the SAM unit 9a via the server devices 19b and 19a.
Thereby, the mutual authentication between the SAM units 9a and 9b is completed.

なお、SAMユニット9aと9bとの間で既に相互認証が終了してセッションが確立されている場合には、ステップST201の認証コマンドAUTH_C1の送信に続いて、ステップST202,ST203を省略して、ステップST204の認証レスポンスAUTH_R2の送信を行ってもよい。
すなわち、SAMユニット9a,9bでは、相互認証鍵データを単位として相互認証の管理を行い、既に確立したセッションであれば、相互認証手続きを省略できる。ここで、要求された処理について、対応する相互認証鍵データを用いた既にセッションが確立されているか否かの判断は、要求先(図17の場合にはSAMユニット9b)において行われる。
When the mutual authentication is already completed and the session is established between the SAM units 9a and 9b, following the transmission of the authentication command AUTH_C1 in step ST201, steps ST202 and ST203 are omitted, and the step The authentication response AUTH_R2 of ST204 may be transmitted.
That is, the SAM units 9a and 9b manage mutual authentication in units of mutual authentication key data, and the mutual authentication procedure can be omitted if the session is already established. Here, with respect to the requested processing, whether or not a session has already been established using the corresponding mutual authentication key data is determined at the request destination (SAM unit 9b in the case of FIG. 17).

以下、図13を用いて前述したSAMユニット9aと9bとの間の縮退鍵データの転送の動作例を説明する。
図18は、当該動作例を説明するための図である。
ステップST221:
サーバ装置19bが、SAMユニット9bに、縮退鍵データが既に設定(更新)されているか否かを確認する。
ステップST222:
サーバ装置19bが、サーバ装置19aに、縮退鍵データがSAMユニット9bに既に設定されていることを通知する。すなわち、転送対象となるアプリケーションエレメントデータAPEが、既にSAMユニット9bに準備できていることを参照元に通知する。
ステップST223:
サーバ装置19aが、SAMユニット9aのCPU66の内部状態(モード)を、SAM間連携が可能なモードに変更する。
ステップST224:
サーバ装置19aが、SAMユニット9aに、ICカード3(ICモジュール42)を用いた処理を依頼する。
ステップST225:
SAMユニット9aのCPU66は、当該依頼に基づいて処理を行い、その処理中に,
SAMユニット9bに存在するアプリケーションエレメントデータAPEである縮退鍵データが必要となり、かつ、当該縮退鍵がSAMユニット9aに存在していない場合に、SAMユニット9bとの間で図17を用いて説明した相互認証を行い、セッションを確立する。
Hereinafter, an operation example of the transfer of the degenerate key data between the SAM units 9a and 9b will be described with reference to FIG.
FIG. 18 is a diagram for explaining the operation example.
Step ST221:
The server device 19b confirms whether the degenerate key data has already been set (updated) in the SAM unit 9b.
Step ST222:
The server device 19b notifies the server device 19a that the degenerate key data has already been set in the SAM unit 9b. That is, the application element data APE to be transferred is notified to the reference source that the SAM unit 9b has already been prepared.
Step ST223:
The server device 19a changes the internal state (mode) of the CPU 66 of the SAM unit 9a to a mode in which inter-SAM cooperation is possible.
Step ST224:
The server device 19a requests the SAM unit 9a to perform processing using the IC card 3 (IC module 42).
Step ST225:
The CPU 66 of the SAM unit 9a performs processing based on the request, and during the processing,
When degenerate key data that is application element data APE existing in the SAM unit 9b is required and the degenerate key does not exist in the SAM unit 9a, the description has been made with the SAM unit 9b with reference to FIG. Perform mutual authentication and establish a session.

ステップST226:
SAMユニット9aのCPU66は、SAMユニット9bに縮退鍵データの転送要求(図14に示すSAMAPETC)を送信する。
ステップST227:
SAMユニット9bのCPU66は、当該転送要求に応じて、指定された縮退鍵データのアプリケーションエレメントデータAPEを格納した図16に示すSAM間エレメント転送レスポンス(SAMAPETR)を生成し、これをSAMユニット9aに送信する。
ステップST228:
SAMユニット9aのCPU66は、ステップST225で確立したセッションを遮断し、受信したSAM間エレメント転送レスポンスに格納された縮退鍵データを用いてICカード3(ICモジュール42)に係わる処理を行う。
Step ST226:
The CPU 66 of the SAM unit 9a transmits a degenerate key data transfer request (SAMAPETC shown in FIG. 14) to the SAM unit 9b.
Step ST227:
In response to the transfer request, the CPU 66 of the SAM unit 9b generates an inter-SAM element transfer response (SAMAPETR) shown in FIG. 16 in which the application element data APE of the designated degenerate key data is stored, and sends this to the SAM unit 9a. Send.
Step ST228:
The CPU 66 of the SAM unit 9a blocks the session established in step ST225, and performs processing related to the IC card 3 (IC module 42) using the degenerate key data stored in the received inter-SAM element transfer response.

次に、図10に示すメモリ分割用鍵パッケージの生成および分割操作を、SAMユニット9aと9bとの間の通信で実現する例を説明する
本例では、例えば、ICカード3およびICモジュール42のメモリの記憶領域の貸し出しなどの運用を行うメモリ運用者がSAMユニット9bを使用し、メモリ領域提供者がSAMユニット9aを使用する。
ここで、メモリ分割用パッケージはメモリ分割用素パッケージを素にして生成される。
メモリ分割用素パッケージは運用者側のSAMユニット9aで生成され、メモリ分割用パッケージはメモリ領域提供者側のSAMユニット9bで生成される。
従って、SAMユニット9bが、メモリ分割用パッケージを生成する場合に、SAM間通信により,SAMユニット9aからメモリ分割用素パッケージを取得する必要がある。
図19は、メモリ分割用パッケージの生成および転送処理を説明するための図である。
ステップST241:
メモリ運用者のサーバ装置19aが、SAMユニット9aに、メモリ分割用素パッケージの生成コマンドを発行する。
SAMユニット9aは、当該コマンドに応じて、メモリ分割用素パッケージを生成する。
ステップST242:
サーバ装置19aが、サーバ装置19bに、メモリ分割用素パッケージがSAMユニット9aにおいて生成されたことを通知する。
ステップST243:
サーバ装置19bが、SAMユニット9bに、メモリ分割用パケットデータの生成コマンドを発行する。
Next, description will be made regarding an example in which the memory partitioning key package shown in FIG. 10 is generated and split by communication between the SAM units 9a and 9b. In this example, for example, the IC card 3 and the IC module 42 A memory operator who performs operations such as lending a memory storage area uses the SAM unit 9b, and a memory area provider uses the SAM unit 9a.
Here, the memory partitioning package is generated using the memory partitioning source package as a base.
The memory partitioning source package is generated by the SAM unit 9a on the operator side, and the memory partitioning package is generated by the SAM unit 9b on the memory area provider side.
Therefore, when the SAM unit 9b generates a memory partitioning package, it is necessary to acquire the memory partitioning source package from the SAM unit 9a by inter-SAM communication.
FIG. 19 is a diagram for explaining generation and transfer processing of a memory partitioning package.
Step ST241:
The server device 19a of the memory operator issues a memory partitioning source package generation command to the SAM unit 9a.
The SAM unit 9a generates a memory partitioning source package in response to the command.
Step ST242:
The server device 19a notifies the server device 19b that the memory partitioning source package has been generated in the SAM unit 9a.
Step ST243:
The server device 19b issues a memory division packet data generation command to the SAM unit 9b.

ステップST244:
SAMユニット9bと9aとの間で、図17を用いて説明した相互認証処理を行った後に、SAMユニット9bが、メモリ分割素パケットデータを指定した図14に示すフォーマットのSAM間エレメント転送コマンドをSAMユニット9aに送信する。
ステップST245:
SAMユニット9aが、SAM間エレメント転送コマンドに応じて、ステップST241で生成したメモリ分割用素パッケージを格納した図16に示すSAM間エレメント転送レスポンスをSAMユニット9bに送信する。
SAMユニット9bが、受信したメモリ分割用素パッケージを用いて、メモリ分割用パッケージを生成する。
ステップST246:
SAMユニット9bが、メモリ分割用パッケージが生成されたことをサーバ装置19bに通知する。
ステップST247:
サーバ装置19bが、メモリ分割用パッケージが生成されたことをサーバ装置19aに通知する。
Step ST244:
After the mutual authentication processing described with reference to FIG. 17 is performed between the SAM units 9b and 9a, the SAM unit 9b sends an inter-SAM element transfer command in the format shown in FIG. Transmit to the SAM unit 9a.
Step ST245:
In response to the inter-SAM element transfer command, the SAM unit 9a transmits the inter-SAM element transfer response shown in FIG. 16 storing the memory partitioning source package generated in step ST241 to the SAM unit 9b.
The SAM unit 9b generates a memory partitioning package using the received memory partitioning source package.
Step ST246:
The SAM unit 9b notifies the server device 19b that the memory partitioning package has been generated.
Step ST247:
The server device 19b notifies the server device 19a that the memory partitioning package has been generated.

ステップST248:
サーバ装置19aが、ICカード3およびICモジュール42のメモリを分割することを指示するメモリ分割コマンドをサーバ装置19aに発行する。
ステップST249:
SAMユニット9bと9aとの間で、図17を用いて説明した相互認証処理を行った後に、SAMユニット9aが、メモリ分割パケットデータを指定した図14に示すフォーマットのSAM間エレメント転送コマンドをSAMユニット9bに送信する。
ステップST250:
SAMユニット9bが、SAM間エレメント転送コマンドに応じて、ステップST245で生成したメモリ分割用パッケージを格納した図16に示すSAM間エレメント転送レスポンスをSAMユニット9aに送信する。
ステップST251:
SAMユニット9bが、受信したメモリ分割用パッケージを用いて、例えば、サーバ装置19bおよびインターネット10を介して、携帯通信装置41に格納されたICモジュール42にアクセスを行い、ICモジュール42のメモリの記憶領域を分割して所定のサービス事業者に使用させる。
Step ST248:
The server device 19a issues to the server device 19a a memory division command that instructs to divide the memory of the IC card 3 and the IC module 42.
Step ST249:
After the mutual authentication processing described with reference to FIG. 17 is performed between the SAM units 9b and 9a, the SAM unit 9a sends an inter-SAM element transfer command in the format shown in FIG. Transmit to unit 9b.
Step ST250:
In response to the inter-SAM element transfer command, the SAM unit 9b transmits the inter-SAM element transfer response shown in FIG. 16 storing the memory partitioning package generated in step ST245 to the SAM unit 9a.
Step ST251:
The SAM unit 9b uses the received memory partitioning package to access the IC module 42 stored in the portable communication device 41 via the server device 19b and the Internet 10, for example, and stores the memory of the IC module 42. Divide the area and let it be used by a predetermined service provider.

なお、上述したSAMユニット9aと9bとの間の通信は、アプリケーションエレメントデータAPEを転送する通信路を複数同時に設定して行ってもよい。   The communication between the SAM units 9a and 9b described above may be performed by simultaneously setting a plurality of communication paths for transferring the application element data APE.

以下、上述したメモリ分割用パッケージ(APE)に対しての図8に示すタグデータAPE_TAGの設定方法について説明する。
ICカード3およびICモジュール42のメモリ内の記憶領域を多分割する場合には、タグデータAPE_TAGとして、分割したメモリ領域の利用が想定される名前を設定する。 具体的には、図20に示すように、ICカード3のICモジュール3aあるいはICモジュール42のメモリ50の記憶領域(プライベート)内を、サービス事業者Bが使用する領域(Private B)と、他のサービス事業者Aが使用する領域(Public A)に分割した後に、領域(Private B)を、サービス事業者B1が使用する領域(Private B1)と、サービス事業者B2が使用する領域(Private B2)とに分割して使用する場合がある。
この場合に、Public領域であればタグ名を“Public”を使用し、Private領域であれば、“PrivateB1”、“PrivateB2”にする。
この場合に、SAMユニット9a,9bを管理する運用者側で、上述したタグデータAPE_TAGと、メモリ分割用パッケージの内容についての合意がとれれば、タグデータAPE_TAGを指定したメモリ分割操作が実現可能である。
Hereinafter, a method for setting the tag data APE_TAG shown in FIG. 8 for the above-described memory partitioning package (APE) will be described.
When the storage areas in the memory of the IC card 3 and the IC module 42 are divided into multiple parts, names that are assumed to be used for the divided memory areas are set as the tag data APE_TAG. Specifically, as shown in FIG. 20, in the storage area (private) of the IC module 3a of the IC card 3 or the memory 50 of the IC module 42, the area used by the service provider B (Private B), and others After the service provider A is divided into areas used by the service provider A (Public A), the area (Private B) is divided into an area used by the service provider B1 (Private B1) and an area used by the service provider B2 (Private B2). ) And may be used separately.
In this case, the tag name “Public” is used for the Public area, and “PrivateB1” and “PrivateB2” are used for the Private area.
In this case, if the operator managing the SAM units 9a and 9b agrees on the contents of the above-described tag data APE_TAG and the memory partitioning package, a memory partitioning operation specifying the tag data APE_TAG can be realized. is there.

多分割を想定したメモリ分割用パッケージのタグデータAPE_TAGの命名規則として、発行用パッケージまたはメモリ分割用パッケージまたはその他のパッケージの種別、メモリ分割エリア名、エリアコードまたはサービスコードを連結した文字列を使用する。
図20に示す場合でのパッケージのエレメントタグ命令例を下記に列挙する。
メモリ分割領域B2のメモリ分割用パッケージのタグデータAPE_TAGとして "D:\\PrivateB2" を使用し、メモリ分割領域B1 の発行用パッケージのタグデータAPE_TAGとして "I:\\ PrivateB1“を使用し、Public領域のサービス「100C」のタグデータAPE_TAGとして“S:\\Public¥100C”を使用する。
As a naming rule for tag data APE_TAG of a memory partitioning package that assumes multi-partitioning, use a character string that concatenates the type of issue package, memory partitioning package or other package, memory partition area name, area code, or service code To do.
Examples of package element tag instructions in the case shown in FIG. 20 are listed below.
"D: \\ PrivateB2" is used as the tag data APE_TAG of the memory partitioning package in the memory partitioning area B2, and "I: \\ PrivateB1" is used as the tag data APE_TAG of the issuing package of the memory partitioning area B1, and the public “S: ¥¥ Public ¥ 100C” is used as the tag data APE_TAG of the service “100C” in the area.

以下、図1に示す通信システム1の全体動作について説明する。
図21および図22は、図1に示す通信システム1の全体動作を説明するための図である。
Hereinafter, the overall operation of the communication system 1 shown in FIG. 1 will be described.
21 and 22 are diagrams for explaining the overall operation of the communication system 1 shown in FIG.

ステップST21:
サービス事業者15_1〜15_3あるいはこれらサービス事業者の依頼を受けた者が、当該サービス事業者がICカード3を用いて行う取り引きについての処理を記述したスクリプトプログラムを、例えば、図1に示すパーソナルコンピュータ16_1,16_2,16_3上で作成する。
また、SAMモジュール8の管理者が、サービス事業者15_1〜15_3のそれぞれに対応するAP管理用データを作成する。
Step ST21:
For example, a personal computer shown in FIG. 1 may be used as a script program in which a service provider 15_1 to 15_3 or a person who has received a request from the service provider describes processing for a transaction performed by the service provider using the IC card 3. Create on 16_1, 16_2, 16_3.
The administrator of the SAM module 8 creates AP management data corresponding to each of the service providers 15_1 to 15_3.

ステップST22:
AP管理用データが外部メモリ7に記憶される。
また、ステップST21で作成されたスクリプトプログラムが、パーソナルコンピュータ16_1,16_2,16_3から、インターネット10、ASPサーバ装置19a,19bおよびSAMモジュール8を介して、SAMユニット9a,9bの外部メモリ7にダウンロードされる。当該ダウンロードの処理は、図13に示すように、SAMモジュール8内のスクリプトダウンロードタスクによって管理される。
Step ST22:
AP management data is stored in the external memory 7.
Further, the script program created in step ST21 is downloaded from the personal computers 16_1, 16_2, and 16_3 to the external memory 7 of the SAM units 9a and 9b via the Internet 10, the ASP server devices 19a and 19b, and the SAM module 8. The The download process is managed by a script download task in the SAM module 8 as shown in FIG.

ステップST23:
SAMモジュール8内のスクリプト解釈タスクによって、各サービス事業者毎に、AP管理用テータおよびスクリプトプログラムを用いて、ICカードエンティティテンプレートデータ、入力用データブロック、出力用データブロック、ログ用データブロックおよび演算定義用データブロックが生成される。
これら生成されたデータは、図11に示すSAMモジュール8のメモリ65に格納される。
Step ST23:
According to the script interpretation task in the SAM module 8, IC card entity template data, input data block, output data block, log data block and calculation are performed for each service provider using AP management data and script programs. A definition data block is generated.
These generated data are stored in the memory 65 of the SAM module 8 shown in FIG.

ステップST24:
ユーザにICカード3(ICモジュール42)が発行される。
図3に示すICモジュール3aおよびICモジュール42のメモリ50には、ユーザが契約を行ったサービス事業者との取り引きに用いられる鍵データが記憶されている。
なお、ユーザとサービス事業者との間の契約は、ICカード3の発行後に、インターネット10などを介して行ってもよい。
Step ST24:
The IC card 3 (IC module 42) is issued to the user.
The memory 50 of the IC module 3a and the IC module 42 shown in FIG. 3 stores key data used for transactions with service providers with whom the user has contracted.
Note that the contract between the user and the service provider may be made via the Internet 10 after the IC card 3 is issued.

ステップST25:
例えば、ユーザがパーソナルコンピュータ5を用いてインターネット10を介してサーバ装置2にアクセスを行い、商品を購入しようとした場合に、サーバ装置2がインターネット10を介してASPサーバ装置19a,19bに処理要求を出す。
ASPサーバ装置19a,19bは、サーバ装置2から処理要求を受けると、インターネット10を介してパーソナルコンピュータ5にアクセスを行う。そして、カードリーダ・ライタ4が出したICカード3についての処理要求が、パーソナルコンピュータ5、インターネット10およびASPサーバ装置19a,19bを介してSAMユニット9a,9bのSAMモジュール8に送信される。
Step ST25:
For example, when the user accesses the server device 2 via the Internet 10 using the personal computer 5 and tries to purchase a product, the server device 2 requests processing to the ASP server devices 19a and 19b via the Internet 10. Put out.
When the ASP server devices 19 a and 19 b receive a processing request from the server device 2, the ASP server devices 19 a and 19 b access the personal computer 5 via the Internet 10. A processing request for the IC card 3 issued by the card reader / writer 4 is transmitted to the SAM module 8 of the SAM units 9a and 9b via the personal computer 5, the Internet 10, and the ASP server devices 19a and 19b.

ステップST26:
ASPサーバ装置19a,19bからSAMモジュール8にエンティティ作成要求が出される。当該エンティティ作成要求には、ICカード3の発行元を示すデータが格納されている。
Step ST26:
An entity creation request is issued from the ASP server devices 19a and 19b to the SAM module 8. The entity creation request stores data indicating the issuer of the IC card 3.

ステップST27:
SAMモジュール8は、エンティティ作成要求を受けると、ICカード3との間でポーリングを行う。
Step ST27:
When receiving the entity creation request, the SAM module 8 performs polling with the IC card 3.

ステップST28:
SAMモジュール8のエンティティ生成タスク71は、ポーリング終了後に、SAMモジュール8内に存在するICカードエンティティデータの数が、スクリプトプログラムのSCコマンドによって規定された最大数以内であるか否かを判断し、最大数以内であればステップST29の処理に進み、そうでない場合には処理を終了する。
Step ST28:
The entity generation task 71 of the SAM module 8 determines whether or not the number of IC card entity data existing in the SAM module 8 is within the maximum number defined by the SC command of the script program after the polling ends. If it is within the maximum number, the process proceeds to step ST29, and if not, the process ends.

ステップST29:
エンティティ生成タスクが、例えば、エンティティ作成要求に格納されたICカード3の発行元を示すデータに基づいて、何れのサービス事業者のICカードエンティティテンプレートデータを用いるかを特定し、当該特定したICカードエンティティプレートデータ用いて、ICカードエンティティデータを生成する。
Step ST29:
The entity generation task specifies, for example, which service provider's IC card entity template data is used based on data indicating the issuer of the IC card 3 stored in the entity creation request, and the specified IC card IC card entity data is generated using the entity plate data.

ステップST30:
SAMモジュール8からASPサーバ装置19a,19bに、ステップST29で生成したICカードエンティティデータのエンティティIDが出力される。
Step ST30:
The entity ID of the IC card entity data generated in step ST29 is output from the SAM module 8 to the ASP server devices 19a and 19b.

ステップST31:
SAMモジュール8のICカード手続管理用タスクによって、ICカード3で利用可能なサービスが調べられる。
Step ST31:
The services available in the IC card 3 are checked by the IC card procedure management task of the SAM module 8.

ステップST32:
SAMモジュール8のICカード手続管理用タスクがICカード3の正当性を認証する。
Step ST32:
The IC card procedure management task of the SAM module 8 authenticates the validity of the IC card 3.

ステップST33:
ICカード3がSAMモジュール8の正当性を認証する。
ステップST32,ST33によって、ICカード3とSAMモジュール8との間の相互認証が行われる。
このとき、前述したように、SAMモジュール8で実行されているアプリケーションエレメントデータAPEに応じて、AP管理用データが参照されて、カードアクセス鍵が取得され、当該鍵を用いてSAMモジュール8とICカード3のCPU51との間で相互認証が行われる。
Step ST33:
The IC card 3 authenticates the validity of the SAM module 8.
Through steps ST32 and ST33, mutual authentication between the IC card 3 and the SAM module 8 is performed.
At this time, as described above, according to the application element data APE executed in the SAM module 8, the AP management data is referred to, the card access key is acquired, and the SAM module 8 and the IC are used by using the key. Mutual authentication is performed with the CPU 51 of the card 3.

ステップST34:
SAMモジュール8のICカード手続管理用タスクが、ICカード3との間で、手続きに必要なデータの読み書きを行う。
また、ICカード手続管理用タスク72は、ICカードエンティティデータに基づいて特定した演算式を用いて、ICカード3から読み出したデータを用いて所定の演算処理を行う。
Step ST34:
The IC card procedure management task of the SAM module 8 reads and writes data necessary for the procedure with the IC card 3.
Further, the IC card procedure management task 72 performs predetermined arithmetic processing using data read from the IC card 3 using an arithmetic expression specified based on the IC card entity data.

ステップST35:
SAMモジュール8のICカード手続管理用タスクが、ステップST34の処理結果をASPサーバ装置19a,19bに出力する。
Step ST35:
The IC card procedure management task of the SAM module 8 outputs the processing result of step ST34 to the ASP server devices 19a and 19b.

ステップST36:
例えば、SAMモジュール8のICカード手続管理用タスクが、ICカードエンティティデータを消去する。
Step ST36:
For example, the IC card procedure management task of the SAM module 8 erases the IC card entity data.

以上説明したように、通信システム1およびSAMユニット9a,9bによれば、SAM間通信により、カード用アクセス鍵や鍵発行パッケージ等のアプリケーションエレメントデータAPEを秘匿した状態で授受可能となる。
また、SAM間通信を行うための設定として、アプリケーションエレメントデータAPEの他のSAMへの公開範囲を規定できるため、公開側SAM側でアプリケーションエレメントデータAPEの他からのアクセス範囲を規定できる。
また、通信システム1およびSAMユニット9a,9bによれば、SAM間通信を行うための設定として、アプリケーションエレメントデータAPEへのアクセス属性が規定できるため、公開側SAM側で当該アプリケーションエレメントデータAPEへの書込み権、読込み権、実行権を個別に設定することが可能である。
As described above, according to the communication system 1 and the SAM units 9a and 9b, application element data APE such as a card access key and a key issuing package can be exchanged by the inter-SAM communication.
Further, since the disclosure range of the application element data APE to other SAMs can be defined as a setting for performing inter-SAM communication, the access range from the other application element data APE can be defined on the publishing SAM side.
Further, according to the communication system 1 and the SAM units 9a and 9b, since the access attribute to the application element data APE can be defined as the setting for performing the inter-SAM communication, the public side SAM side can access the application element data APE. Write rights, read rights, and execute rights can be set individually.

また、通信システム1およびSAMユニット9a,9bによれば、SAM間通信を行うための設定として、アプリケーションエレメントデータAPEの公開範囲およびアクセス属性を設定できる権限を規定できるため、当該設定が不正に行われることを防止できる。
また、通信システム1およびSAMユニット9a,9bによれば、SAM間通信を行うための設定として、アプリケーションエレメントデータAPEの公開範囲を相互認証鍵データ単位に設定するため、アプリケーションエレメントデータAPEを公開することに伴う相互認証処理の負担を軽減できる。
Further, according to the communication system 1 and the SAM units 9a and 9b, the authority to set the disclosure range and access attributes of the application element data APE can be defined as settings for performing inter-SAM communication. Can be prevented.
Further, according to the communication system 1 and the SAM units 9a and 9b, the application element data APE is disclosed in order to set the disclosure range of the application element data APE in the mutual authentication key data unit as the setting for performing the inter-SAM communication. This can reduce the burden of mutual authentication processing.

また、通信システム1およびSAMユニット9a,9bによれば、SAM間の相互認証において、同一の相互認証鍵かつ相互認証範囲である場合には、相互認証の処理を一部省略可能するため、相互認証に伴う通信コストの低減とSAM内の処理を軽減することが可能となる。
また、通信システム1およびSAMユニット9a,9bによれば、SAM間通信における、転送用のアプリケーションエレメントデータAPEの指定にタグデータAPE_TAGを使用することで、サービス事業者やメモリ運用者による多様なメモリ管理が可能となる。
また、通信システム1およびSAMユニット9a,9bによれば、SAM間通信において、転送用のアプリケーションエレメントデータAPEの種別とその内容を拡張して、カード処理に関わるログ等を転送することにより、相手先のSAMに処理の開始・終了などを通知することが可能となる。
Further, according to the communication system 1 and the SAM units 9a and 9b, in the mutual authentication between the SAMs, in the case of the same mutual authentication key and the mutual authentication range, a part of the mutual authentication process can be omitted. It becomes possible to reduce the communication cost accompanying the authentication and the processing in the SAM.
Further, according to the communication system 1 and the SAM units 9a and 9b, by using the tag data APE_TAG to specify the application element data APE for transfer in the inter-SAM communication, various memory by the service provider and the memory operator can be used. Management becomes possible.
Further, according to the communication system 1 and the SAM units 9a and 9b, in the inter-SAM communication, by expanding the type and contents of the application element data APE for transfer and transferring a log or the like related to card processing, It is possible to notify the previous SAM of the start / end of processing.

また、通信システム1およびSAMユニット9aによれば、アプリケーションプログラムAPを複数のアプリケーションエレメントデータAPEを用いて構成し、AP管理用テーブルデータおよびAPPテーブルデータを用いて、各アプリケーションエレメントデータAPEの処理内容を規定することで、ICカード3を用いた多様なサービスを提供できる。
また、通信システム1によれば、AP管理用テーブルデータおよびAPPテーブルデータを用いて、同一SAM内でのアプリケーションエレメントデータAPEの利用、並びに異なるSAM間でのアプリケーションエレメントデータAPEの利用を高いセキュリティを保ちながら柔軟に実現できる。
また、通信システム1によれば、異なるSAM間でアプリケーションエレメントデータAPEを利用する場合に、SAM間で相互認証を行うため、アプリケーションプログラムのセキュリティを高めることができる。
Further, according to the communication system 1 and the SAM unit 9a, the application program AP is configured using a plurality of application element data APE, and the processing contents of each application element data APE using the AP management table data and the APP table data. By defining the above, various services using the IC card 3 can be provided.
Further, according to the communication system 1, using the AP management table data and the APP table data, the use of the application element data APE within the same SAM and the use of the application element data APE between different SAMs are highly secure. Can be realized flexibly while keeping.
Further, according to the communication system 1, when application element data APE is used between different SAMs, mutual authentication is performed between the SAMs, so that the security of the application program can be increased.

〔その他の実施形態〕
図23は、本発明のその他の実施形態を説明するための図である。
図23に示すように、ICカード(ICモジュール)510内には、ICモジュール3aあるいはICモジュール42を用いて所定のサービスを提供するサービス事業者Aが取り扱うデータA、サービス事業者Bが取り扱うデータBの2つのデータ領域が存在する。
それぞれに、リーダ・ライタ511によってICカード510内をアクセスする際に必要となる鍵データA、鍵データBが設定される。
リーダ・ライタ511(A)は、サービス事業者Aが所持するもので、リーダ・ライタ513(B)は、サービス事業者Bが所持するものである。
サービス事業者Aが所持するリーダ・ライタ511には、ICカード510内のデータAのアクセスを可能とするサービス事業者Aが生成した鍵Aが保持され、サービス事業者Bが所持するリーダ・ライタBには、ICカード内のデータBのアクセスを可能とするサービス事業者Bが生成した鍵データBが保持される。
鍵データの設定は、制御部512を利用して事前に行うものとする。制御部512から鍵データ設定を意味する指令を発すると、リーダ・ライタ511はその鍵データを保持する。
[Other Embodiments]
FIG. 23 is a diagram for explaining another embodiment of the present invention.
As shown in FIG. 23, in IC card (IC module) 510, data A handled by service provider A that provides a predetermined service using IC module 3a or IC module 42, and data handled by service provider B There are two data areas of B.
Key data A and key data B necessary for accessing the inside of the IC card 510 by the reader / writer 511 are set for each.
The reader / writer 511 (A) is owned by the service provider A, and the reader / writer 513 (B) is owned by the service provider B.
The reader / writer 511 possessed by the service provider A holds the key A generated by the service provider A that enables access to the data A in the IC card 510, and the reader / writer possessed by the service provider B. B holds the key data B generated by the service provider B that enables access to the data B in the IC card.
The key data is set in advance using the control unit 512. When a command indicating key data setting is issued from the control unit 512, the reader / writer 511 holds the key data.

図23では、制御部512は一つしかなく、リーダ・ライタ511に接続されているが、リーダ・ライタ513も事前にサービス事業者Bが制御部512により鍵データを設定しているものとする。これによって、サービス事業者Aが生成した鍵データAはサービス事業者Bには知られず、逆に、サービス事業者Bが生成した鍵データBはサービス事業者Aには知られない。
制御部512は、制御通信経路を介してリーダ・ライタ511に接続されており、制御部512からリーダ・ライタ511に対して、ICカード510内のデータをアクセスするための指令を送信する。
当該指令は、ICカード510内のメモリの指定領域の読み出しや、指定領域への指定データの書き込み等からなる。読み出しの場合、読み出したデータを、通信経路を介して制御へ返送する。書き込みの場合、成否を、通信経路を介して制御部512へ返送する。
In FIG. 23, there is only one control unit 512 and it is connected to the reader / writer 511, but it is assumed that the service provider B also sets key data by the control unit 512 in advance for the reader / writer 513. . As a result, the key data A generated by the service provider A is not known to the service provider B, and conversely, the key data B generated by the service provider B is not known to the service provider A.
The control unit 512 is connected to the reader / writer 511 via the control communication path, and transmits a command for accessing data in the IC card 510 from the control unit 512 to the reader / writer 511.
The command includes reading of a designated area of the memory in the IC card 510, writing of designated data to the designated area, and the like. In the case of reading, the read data is returned to the control via the communication path. In the case of writing, success / failure is returned to the control unit 512 via the communication path.

例えば、データA及びデータBを格納したICカード510がリーダ・ライタ511とICカード通信経路を介して接続されたとする。尚、ICカード通信経路は、有線、無線、光等、何らかの情報交換が出来る手段であれば何を使用してもよい。ここで、制御部がリーダ・ライタ511へ、制御通信経路を介して、ICカード510内のデータAを読み出して、データAをデータBに書き込む指令を発したとする。
このとき、リーダ・ライタ511は上述したように、ICカード510内のデータA及びデータBの両方をアクセスする必要が生じる。リーダ・ライタ511は、データAをアクセス可能な鍵データAしか保持していないので、連携部AにデータBのアクセスが可能な鍵データBの取得要求を発する。
連携部Aは、リーダ・ライタ通信経路を介してリーダ・ライタ513内の連携部Bと接続し、上記取得要求を連携部Bへ伝達する。尚、リーダ・ライタ通信経路は、上述のICカード通信経路同様、有線、無線、光等、何らかの情報交換が出来る手段であれば何を使用してもよい。リーダ・ライタ通信経路を流れる情報は、連携部A及び連携部Bが保持する鍵データCによって暗号化され、どのような情報が行き交っているか分からないようになっている。取得要求を受信したリーダ・ライタB内の連携部Bは、ICカード510内のデータBのアクセスが可能となる鍵データBを、鍵データCによって暗号化されたリーダ・ライタ通信経路を介してリーダ・ライタ511内の連携部Aへ返送する。以上の動作によって、リーダ・ライタ511は、ICカード510内のデータAをアクセスするために必要な鍵データA及びデータBをアクセスするために必要な鍵データBの双方を入手することができる。
これにより、ICカード510内のデータAを読み出し、データAをデータBの領域へ書き込むことが可能となる。
For example, assume that an IC card 510 storing data A and data B is connected to a reader / writer 511 via an IC card communication path. The IC card communication path may be any means as long as it can exchange some information such as wired, wireless, and optical. Here, it is assumed that the control unit issues a command to read data A in the IC card 510 and write data A into data B to the reader / writer 511 via the control communication path.
At this time, the reader / writer 511 needs to access both the data A and the data B in the IC card 510 as described above. Since the reader / writer 511 holds only the key data A that can access the data A, the reader / writer 511 issues an acquisition request for the key data B that can access the data B to the cooperation unit A.
The cooperation unit A connects to the cooperation unit B in the reader / writer 513 via the reader / writer communication path, and transmits the acquisition request to the cooperation unit B. The reader / writer communication path may be any means as long as it can exchange some information, such as wired, wireless, and optical, like the above-described IC card communication path. The information flowing through the reader / writer communication path is encrypted by the key data C held by the linkage unit A and the linkage unit B, so that it is not possible to know what information is being exchanged. The cooperation unit B in the reader / writer B that has received the acquisition request sends the key data B that allows access to the data B in the IC card 510 via the reader / writer communication path encrypted by the key data C. The data is returned to the cooperation unit A in the reader / writer 511. Through the above operation, the reader / writer 511 can obtain both the key data A necessary for accessing the data A in the IC card 510 and the key data B necessary for accessing the data B.
As a result, the data A in the IC card 510 can be read and the data A can be written in the data B area.

リーダ・ライタ511および513は、様々な鍵データ情報を保持するため、容易に解析が行えない構成になっている。図24にリーダ・ライタ511,513の構成の一例を示す。
CPU532は全体の制御を司る演算制御部である。メモリ部533は、CPU532の演算制御手順が記録されているプログラム部541と、CPU532による演算制御結果等を保持するデータ部542に分かれる。
暗号部534は、CPU532から与えられた鍵データを利用して、CPU532から与えられたデータの暗号化または複号化を行う。
CPU532、メモリ部533および暗号部534は、内部バス531を介して接続されており、秘匿が必要な情報を多く取り扱うことから、同一チップ520上に搭載され、外部からその動作が解析出来ないようになっている。
制御IF523は、図23に示す制御部512と通信を行うインターフェイスであり、CPU532から与えられたデータを制御部512へ送信するとともに、制御部512から受信したデータがCPU532に取り込む。
カードIF521は、ICカード510と通信を行うインターフェイスであり、CPU532から与えられたデータをICカード510へ送信するとともに、ICカード510から受信したデータがCPU532に取り込まれる。
連携IF522は、他のリーダ・ライタと通信を行うインターフェイスであり、CPU532から与えられたデータを他のリーダ・ライタへ送信するとともに、他のリーダ・ライタから受信したデータをCPU532に取り込む。
Since the reader / writers 511 and 513 hold various key data information, they cannot be easily analyzed. FIG. 24 shows an example of the configuration of the reader / writers 511 and 513.
The CPU 532 is an arithmetic control unit that performs overall control. The memory unit 533 is divided into a program unit 541 in which a calculation control procedure of the CPU 532 is recorded, and a data unit 542 that holds a calculation control result by the CPU 532.
The encryption unit 534 uses the key data provided from the CPU 532 to encrypt or decrypt the data provided from the CPU 532.
The CPU 532, the memory unit 533, and the encryption unit 534 are connected via the internal bus 531 and handle a lot of information that needs to be concealed. Therefore, the CPU 532 is mounted on the same chip 520 so that its operation cannot be analyzed from the outside. It has become.
The control IF 523 is an interface that communicates with the control unit 512 illustrated in FIG. 23, transmits data provided from the CPU 532 to the control unit 512, and takes in data received from the control unit 512 to the CPU 532.
The card IF 521 is an interface that communicates with the IC card 510, transmits data provided from the CPU 532 to the IC card 510, and receives data received from the IC card 510 into the CPU 532.
The cooperative IF 522 is an interface that communicates with other readers / writers, transmits data provided from the CPU 532 to other readers / writers, and takes in data received from other readers / writers to the CPU 532.

図23のリーダ・ライタ511および513には鍵データCのみが事前に設定されており、そのリーダ・ライタを所有するサービス事業者も知り得ない。
一方、サービス事業者Aは、利用前に、ICカード510内のデータAをアクセス可能な鍵データAを生成し、メモリ部533内のプログラム部541に格納された手順により、CPU532が制御IF523から鍵データデータを読み取り、メモリ部533内の特定の領域に保持するように成されている。
また、現在リーダ・ライタが保持している鍵データがICカード510内のどのデータをアクセス可能か管理するための情報管理領域がメモリ部533内のデータ部542に存在する。
当該情報管理領域は、図25に示すテーブルにより、自身が所持する鍵データを知ることが出来る。図25に示す鍵データである8桁の16進数12345678は一例を示したものである。
In the reader / writers 511 and 513 in FIG. 23, only the key data C is set in advance, and the service provider who owns the reader / writer cannot know.
On the other hand, the service provider A generates key data A that can access the data A in the IC card 510 before use, and the CPU 532 controls the control IF 523 from the procedure stored in the program unit 541 in the memory unit 533. The key data data is read and held in a specific area in the memory unit 533.
Further, an information management area for managing which data in the IC card 510 can be accessed by the key data currently held by the reader / writer exists in the data unit 542 in the memory unit 533.
The information management area can know the key data possessed by itself by referring to the table shown in FIG. The 8-digit hexadecimal number 12345678 which is the key data shown in FIG. 25 shows an example.

データA及びデータBが格納されたICカード510がカードIF521を介して接続状態となり、制御部512から制御IF523を介して、データAの領域をデータBへ書き込むように指令が送られると、リーダ・ライタ511は情報管理領域を調べる。メモリ部533のデータ部542内にはデータAをアクセス可能な鍵データAしかないため、連携IF522を介して、リーダ・ライタ513へ鍵データBの取得を要求する。要求を受けたリーダ・ライタ513の情報管理領域は、図26に示すテーブルを保持し、鍵データである例えば8桁の16進数「56789ABC」を格納している。   When the IC card 510 in which data A and data B are stored is connected via the card IF 521 and a command is sent from the control unit 512 to write the area of the data A to the data B via the control IF 523, the reader The writer 511 checks the information management area. Since there is only key data A that can access data A in the data unit 542 of the memory unit 533, the reader / writer 513 is requested to acquire key data B via the cooperation IF 522. The information management area of the reader / writer 513 that has received the request holds the table shown in FIG. 26 and stores, for example, an 8-digit hexadecimal number “56789ABC” that is key data.

要求を受け取ったリーダ・ライタ513は、情報管理領域を調べると、データBのアクセスに必要な鍵データを保持していることがわかるので、そのための鍵データをリーダ・ライタ511に連携IF522を介して返送する。尚、連携IF522は、事前に設定された鍵データCによって暗号化されており、リーダ・ライタ513からリーダ・ライタ511へ返送された鍵データBが漏洩することはない。   When the reader / writer 513 that has received the request examines the information management area, it can be seen that the reader / writer 513 holds the key data necessary for accessing the data B. And return it. The linkage IF 522 is encrypted with key data C set in advance, and the key data B returned from the reader / writer 513 to the reader / writer 511 is not leaked.

他のリーダ・ライタから取得した後のリーダ・ライタ内での鍵データの寿命は、以下のように取り扱うことが可能である。
(1)制御部512から明示的に消去指令がない限り永続的に保持する。
(2)時限付きで、一定時間経過するまで保持し続ける。
(3)必要な都度逐次該当するリーダ・ライタから取得する。
上述した例では、ICカード510内のデータをアクセスするために必要な鍵データが他のリーダ・ライタで保持されている場合に、他のリーダ・ライタから取得する場合を例として挙げたが、取り扱う情報は、鍵データである必要はなく、様々な種類の情報に適用可能である。
図27は、鍵データ以外のデータも取り扱うことを考慮した場合の情報管理領域の例である。
図27において、ICカードアクセス用鍵データが2つ保持されており、アクセス可能な領域がデータA、データBであることを示している。属性欄は、そのオリジナル情報がどこに存在するかを示している。自身とある場合には、自身の装置内に存在することを示す。データBのICカード・アクセス用鍵データに関しては、リーダ・ライタBから取得したことが分かる。自身以外から取得した情報は、上述したように、設定された寿命の取り扱いに従い、情報管理領域が変化する。
これまでは、リーダ・ライタ2台の場合の例を想定したが、3台以上であっても構わない。また、リーダ・ライタ間の通信も、より広域なネットワーク環境で利用することも可能である。図28は、以上を適用した場合の構成例を示した図である。
これまで連携部は1対1のリーダ・ライタ間接続されていたが、図28においては、インターネット網等の公衆ネットワーク網に接続されている。ここで、リーダ・ライタ611とリーダ・ライタ613が連携して通信する場合に必要となる鍵データを鍵データAB、リーダ・ライタ611とリーダ・ライタ614が連携して通信する場合に必要となる鍵データを鍵データACとして、それぞれ異なるようにすると、互いの通信間を傍受することが出来ないだけなく、例えば、リーダ・ライタ613がリーダ・ライタCから無断で情報を取得するような許可されていないアクセスを防止することが出来る。
The lifetime of key data in a reader / writer after being acquired from another reader / writer can be handled as follows.
(1) Hold permanently unless there is an explicit delete command from the control unit 512.
(2) Keep holding until a certain time elapses with a time limit.
(3) Acquire sequentially from the corresponding reader / writer as necessary.
In the above-described example, when the key data necessary for accessing the data in the IC card 510 is held by another reader / writer, the case where the key data is acquired from another reader / writer is described as an example. The information to be handled does not need to be key data, and can be applied to various types of information.
FIG. 27 shows an example of an information management area in consideration of handling data other than key data.
In FIG. 27, two IC card access key data are held, and the accessible areas are data A and data B. The attribute column indicates where the original information exists. If it is with itself, it indicates that it is in its own device. It can be seen that the IC card access key data of data B is obtained from the reader / writer B. As described above, the information management area of information acquired from other than itself changes in accordance with the handling of the set lifetime.
Up to this point, an example in the case of two readers / writers was assumed, but three or more readers / writers may be used. Communication between readers / writers can also be used in a wider network environment. FIG. 28 is a diagram showing a configuration example when the above is applied.
Until now, the cooperation unit has been connected between a one-to-one reader / writer, but in FIG. 28, it is connected to a public network such as the Internet. Here, key data required when the reader / writer 611 and the reader / writer 613 communicate with each other is key data AB, and is necessary when the reader / writer 611 and the reader / writer 614 communicate with each other. If the key data is different from each other as the key data AC, it is not only possible to intercept each other's communication, but for example, the reader / writer 613 is permitted to obtain information from the reader / writer C without permission. Can prevent access.

以上説明したように、本発明の実施の形態によれば、複数のデータ処理装置(SAM)間で連携したサービスを迅速に提供することを可能にする通信方法、データ処理装置およびプログラムを提供することができる。
また、本発明の実施の形態によれば、異なるサービス事業者のサービス提供に係わるデータやプログラムを格納したデータ処理装置相互間で、相手方に秘匿したいデータと、公開するデータとを適切に管理できる通信方法、データ処理装置およびそのプログラムを提供することができる。
As described above, according to the embodiments of the present invention, a communication method, a data processing device, and a program that can quickly provide a service linked between a plurality of data processing devices (SAMs) are provided. be able to.
Further, according to the embodiment of the present invention, it is possible to appropriately manage data to be concealed from the other party and data to be disclosed between data processing apparatuses storing data and programs related to service provision of different service providers. A communication method, a data processing device, and a program thereof can be provided.

図1は本実施形態の通信システムの全体構成図である。FIG. 1 is an overall configuration diagram of a communication system according to the present embodiment. 図2は図1に示すICカードの機能ブロック図である。FIG. 2 is a functional block diagram of the IC card shown in FIG. 図3は図2に示すメモリを説明するための図である。FIG. 3 is a diagram for explaining the memory shown in FIG. 図4は図1に示すSAMモジュールのソフトウェア構造を説明するための図である。FIG. 4 is a diagram for explaining the software structure of the SAM module shown in FIG. 図5は図1に示す外部メモリの記憶領域を説明するための図である。FIG. 5 is a diagram for explaining the storage area of the external memory shown in FIG. 図6は参照元の図5に示すアプリケーションプログラムを説明するための図である。FIG. 6 is a diagram for explaining the application program shown in FIG. 5 as a reference source. 図7は図6に示すデータPT,OPTの詳細を説明するための図である。FIG. 7 is a diagram for explaining the details of the data PT and OPT shown in FIG. 図8は公開元の図5に示すアプリケーションプログラムを説明するための図である。FIG. 8 is a diagram for explaining the application program shown in FIG. 図9は図8に示すデータPT,OPTの詳細を説明するための図である。FIG. 9 is a diagram for explaining the details of the data PT and OPT shown in FIG. 図10はアプリケーションエレメントデータAPEの種別を説明するための図である。FIG. 10 is a diagram for explaining the type of application element data APE. 図11は図1に示すSAMモジュールの機能ブロック図である。FIG. 11 is a functional block diagram of the SAM module shown in FIG. 図12は図1に示すSAMユニット間での通信方法を説明するための図である。FIG. 12 is a diagram for explaining a communication method between the SAM units shown in FIG. 図13は図12に示すSAMユニット間通信で、縮退鍵を転送する場合を説明するための図である。FIG. 13 is a diagram for explaining a case where a degenerate key is transferred in the inter-SAM unit communication shown in FIG. 図14はSAM間エレメント転送コマンドSAMAPETCを説明するための図である。FIG. 14 is a diagram for explaining the inter-SAM element transfer command SAMAPETC. 図15は図14に示すエレメント属性を説明するための図である。FIG. 15 is a diagram for explaining the element attributes shown in FIG. 図16はSAM間エレメント転送レスポンスSAMAPETRを説明するための図である。FIG. 16 is a diagram for explaining the inter-SAM element transfer response SAMAPETR. 図17はSAM間での相互認証の手順を説明するための図である。FIG. 17 is a diagram for explaining the procedure of mutual authentication between SAMs. 図18は図13を参照して前述したSAMユニット間の縮退鍵データの転送の動作例を説明するための図である。FIG. 18 is a diagram for explaining an operation example of the transfer of the degenerate key data between the SAM units described above with reference to FIG. 図19はメモリ分割用パッケージの生成および転送処理を説明するための図である。FIG. 19 is a diagram for explaining generation and transfer processing of a memory partitioning package. 図20はモリ分割用パッケージ(APE)に対しての図8に示すタグデータAPE_TAGの設定方法について説明するための図である。FIG. 20 is a diagram for explaining a setting method of the tag data APE_TAG shown in FIG. 8 for the memory division package (APE). 図21は図1に示す通信システムの全体動作を説明するための図である。FIG. 21 is a diagram for explaining the overall operation of the communication system shown in FIG. 図22は図1に示す通信システムの全体動作を説明するための図である。FIG. 22 is a diagram for explaining the overall operation of the communication system shown in FIG. 図23は本発明のその他の実施形態を説明するための図である。FIG. 23 is a diagram for explaining another embodiment of the present invention. 図24は本発明のその他の実施形態を説明するための図である。FIG. 24 is a view for explaining another embodiment of the present invention. 図25は本発明のその他の実施形態を説明するための図である。FIG. 25 is a diagram for explaining another embodiment of the present invention. 図26は本発明のその他の実施形態を説明するための図である。FIG. 26 is a diagram for explaining another embodiment of the present invention. 図27は本発明のその他の実施形態を説明するための図である。FIG. 27 is a diagram for explaining another embodiment of the present invention. 図28は本発明のその他の実施形態を説明するための図である。FIG. 28 is a diagram for explaining another embodiment of the present invention.

符号の説明Explanation of symbols

1…通信システム、2…サーバ装置、3…ICカード、3a…ICモジュール、4…カードリーダ・ライタ、5…パーソナルコンピュータ、7…外部メモリ、8…SAMモジュール、9,9a…SAMユニット、15_1〜15_3…サービス事業者、19…ASPサーバ装置、41…携帯通信装置、42…ICモジュール、43…通信処理部
DESCRIPTION OF SYMBOLS 1 ... Communication system, 2 ... Server apparatus, 3 ... IC card, 3a ... IC module, 4 ... Card reader / writer, 5 ... Personal computer, 7 ... External memory, 8 ... SAM module, 9, 9a ... SAM unit, 15_1 -15_3 ... Service provider, 19 ... ASP server device, 41 ... Mobile communication device, 42 ... IC module, 43 ... Communication processing unit

Claims (14)

通信装置の通信機能を用いてネットワークを介して少なくとも第1のサーバ装置と第2のサーバ装置と通信を行うICカードあるいはICモジュールのメモリに記憶されたデータを用いてサービスを提供するためのデータ処理を行うデータ処理方法であって、
前記メモリに記憶されたデータにアクセスするための処理に必要な第1および第2のアプリケーションプログラムをそれぞれ実行する第1および第2のデータ処理装置が、ネットワークを介さずにそれぞれ前記第1のサーバ装置および前記第2のサーバ装置に接続され、
前記第2のアプリケーションプログラムを構成する複数のデータモジュールのうち前記第1のアプリケーションプログラムが利用するデータモジュールを示す第1の管理データを前記第1のデータ処理装置が保持し、前記第1のアプリケーションプログラムに利用させることを許可するデータモジュールを示す第2の管理データを前記第2のデータ処理装置が保持する場合に、前記第1のデータ処理装置と前記第2のデータ処理装置が、それぞれ前記第1の管理データと前記第2の管理データに含まれる相互認証を行うか否かを指定する相互認証有無指示データを参照して相互認証を行うか否かを決定し、
相互認証を行う場合は前記第1のデータ処理装置と前記第2のデータ処理装置との間で相互認証を行って互いの正当性を確認した後に、前記第1のデータ処理装置が前記第1の管理データを参照して利用しようとする前記データモジュールを指定した要求を前記第2のデータ処理装置に送信し、
前記第2のデータ処理装置が、前記要求に応じて、前記第2の管理データを参照し、前記要求で指定されたデータモジュールを前記第1のアプリケーションプログラムが利用することを許可すると判断した場合、前記要求で指定されたデータモジュールを前記第1のデータ処理装置に送信し、
前記第1のデータ処理装置が、前記第2のデータ処理装置から取得したデータモジュールを含んだ前記第1のアプリケーションプログラムを実行することにより、サービスの提供に必要なデータにアクセスしてデータ処理を行う、
ことを特徴とするデータ処理方法。
Data for providing services using data stored in the memory of an IC card or IC module that communicates with at least the first server device and the second server device via a network using the communication function of the communication device A data processing method for performing processing,
First and second data processing devices that respectively execute first and second application programs required for processing for accessing data stored in the memory are respectively connected to the first server without going through a network. Connected to the device and the second server device,
The first data processing apparatus holds first management data indicating a data module used by the first application program among a plurality of data modules constituting the second application program, and the first application When the second data processing device holds second management data indicating a data module permitted to be used by the program, the first data processing device and the second data processing device respectively Determining whether or not to perform mutual authentication with reference to mutual authentication presence / absence instruction data specifying whether or not to perform mutual authentication included in the first management data and the second management data;
When performing mutual authentication, the first data processing device performs the mutual authentication between the first data processing device and the second data processing device to confirm the validity of each other, and then the first data processing device performs the first authentication. A request specifying the data module to be used with reference to the management data is sent to the second data processing device,
When the second data processing apparatus refers to the second management data in response to the request and determines that the first application program is permitted to use the data module specified in the request Sending the data module specified in the request to the first data processing device;
The first data processing apparatus executes the first application program including the data module acquired from the second data processing apparatus, thereby accessing data necessary for providing a service and performing data processing. Do,
A data processing method.
前記第1のサーバ装置が、前記第1のデータ処理装置に第1の要求を送信し、
前記第1のサーバ装置が、前記第1の要求に応じて、前記第1の管理データを参照して、利用しようとする前記データモジュールを指定した第2の要求を前記第2のデータ処理装置に送信する
請求項1に記載のデータ処理方法。
The first server device transmits a first request to the first data processing device;
In response to the first request, the first server device refers to the first management data and sends a second request specifying the data module to be used to the second data processing device. The data processing method according to claim 1.
前記第2のサーバ装置が、前記第1のアプリケーションプログラムが利用する前記データモジュールが前記第2のデータ処理装置内で利用可能な状態になっているか否かを確認し、当該確認の結果を前記第1のサーバ装置に通知し、
前記第2のサーバ装置が、前記第1のアプリケーションプログラムが利用する前記データモジュールが前記第2のデータ処理装置内で利用可能な状態になっているか否かを確認し、当該確認の結果を前記第1のサーバ装置に通知し、
前記第1のサーバ装置は、前記通知に応じて、前記第1の要求を前記第1のデータ処理装置に送信する
請求項2に記載のデータ処理方法。
The second server device confirms whether or not the data module used by the first application program is available in the second data processing device, and the result of the confirmation is Notify the first server device,
The second server device confirms whether or not the data module used by the first application program is available in the second data processing device, and the result of the confirmation is Notify the first server device,
The data processing method according to claim 2, wherein the first server device transmits the first request to the first data processing device in response to the notification.
前記第1のデータ処理装置が、前記データモジュールを利用をするために前記第2のデータ処理装置との間で行う相互認証に用いる鍵データを格納した前記第1の管理データを保持し、
前記第2のデータ処理装置が、前記データモジュールを前記第1のアプリケーションプログラムに利用させるために前記第1のデータ処理装置との間で行う相互認証に用いる鍵データを格納した前記第2の管理データを保持し、
前記第1のデータ処理装置と前記第2のデータ処理装置とが、それぞれ前記第1の管理データおよび前記第2の管理データに格納された鍵データを用いて相互認証を行う
請求項1に記載のデータ処理方法。
The first data processing device holds the first management data storing key data used for mutual authentication performed with the second data processing device in order to use the data module;
The second management in which the second data processing device stores key data used for mutual authentication with the first data processing device in order to make the first application program use the data module. Keep the data,
The first data processing apparatus and the second data processing apparatus perform mutual authentication using key data stored in the first management data and the second management data, respectively. Data processing method.
前記第1のデータ処理装置は、前記鍵データを用いた相互認証を終了した後、前記要求を前記第2のデータ処理装置に送信し、続いて、再び前記相互認証を行わずに、当該鍵データと対応付けられた他のデータモジュールを指定した前記要求を前記第2のデータ処理装置に送信する
請求項1に記載のデータ処理方法。
After completing the mutual authentication using the key data, the first data processing device transmits the request to the second data processing device, and then performs the mutual authentication again without performing the mutual authentication. The data processing method according to claim 1, wherein the request designating another data module associated with data is transmitted to the second data processing device.
前記第2のデータ処理装置が、前記第1のアプリケーションプログラムによる前記データモジュールの利用形態を規定するデータを格納した前記第2の管理データを保持し、
前記第2のデータ処理装置が、前記第2の管理データを参照して、前記規定された利用形態の範囲で、前記第1のアプリケーションプログラムによる前記データモジュールの利用を許可する
請求項1に記載のデータ処理方法。
The second data processing device holds the second management data storing data defining a use form of the data module by the first application program;
The second data processing device refers to the second management data and permits the use of the data module by the first application program within the range of the specified usage mode. Data processing method.
前記第2のデータ処理装置が、前記第2の管理データを設定することを許可する主体をさらに規定した前記第2の管理データを保持し、
前記第2のデータ処理装置、前記第2の管理データに規定された主体に対してのみ、前記第2の管理データの設定を許可する
請求項1に記載のデータ処理方法。
The second data processing device holds the second management data further defining a subject authorized to set the second management data;
The data processing method according to claim 1, wherein setting of the second management data is permitted only to a subject specified in the second data processing apparatus and the second management data.
前記第1のデータ処理装置が、前記第1のアプリケーションプログラムを構成する前記データモジュールの内容または使用用途を示すタグデータを含む前記第1の管理データを保持し、
前記第2のデータ処理装置が、前記第2のアプリケーションプログラムを構成する前記データモジュールの内容または使用用途を示すタグデータを含む前記第2の管理データを保持する
請求項1に記載のデータ処理方法。
The first data processing device holds the first management data including tag data indicating the content or usage of the data module constituting the first application program,
2. The data processing method according to claim 1, wherein the second data processing apparatus holds the second management data including tag data indicating a content or usage of the data module constituting the second application program. .
前記第1のデータ処理装置が、前記第1のアプリケーションプログラムに規定したポートの利用を権限あるいは用途に応じて管理するためのデータを含む前記第1の管理データを保持し、
前記第2のデータ処理装置が、前記第2のアプリケーションプログラムに規定したポートの利用を権限あるいは用途に応じて管理するためのデータを含む前記第2の管理データを保持し、
前記第1のデータ処理装置が、前記第1のアプリケーションプログラムに規定したポートの利用を、前記第1の管理データで規定された権限あるいは用途に応じて管理し、
前記第2のデータ処理装置が、前記第2のアプリケーションプログラムに規定したポートの利用を、前記第2の管理データで規定された権限あるいは用途に応じて管理する
請求項1に記載のデータ処理方法。
The first data processing device holds the first management data including data for managing the use of the port defined in the first application program according to authority or usage;
The second data processing device holds the second management data including data for managing the use of the port defined in the second application program according to authority or usage;
The first data processing device manages the use of the port defined in the first application program according to the authority or use defined in the first management data;
2. The data processing method according to claim 1, wherein the second data processing device manages use of a port defined in the second application program in accordance with an authority or use defined in the second management data. 3. .
前記第1のデータ処理装置が、利用しようとする前記データモジュールの種類を指定した要求を前記第2のデータ処理装置に送信し、
前記第2のデータ処理装置が、前記指定されたデータモジュールの種類に対応したデータモジュールを前記第1のデータ処理装置に送信する
請求項1に記載のデータ処理方法。
The first data processing device sends a request specifying the type of the data module to be used to the second data processing device;
The data processing method according to claim 1, wherein the second data processing device transmits a data module corresponding to the type of the designated data module to the first data processing device.
前記第2のデータ処理装置が、前記要求に係わるデータモジュールと共に、前記データ処理装置による当該データモジュールの一時的利用あるいは保存利用のいずれを許可するかを示すデータを前記第1のデータ処理装置に送信し、
前記第1のデータ処理装置が、当該データに基づいて、前記第2のデータ処理装置から受信したデータモジュールを一時利用あるいは保存利用する
請求項1に記載のデータ処理方法。
Along with the data module related to the request, the second data processing device sends data indicating whether to permit temporary use or storage use of the data module by the data processing device to the first data processing device. Send
The data processing method according to claim 1, wherein the first data processing device temporarily uses or saves the data module received from the second data processing device based on the data.
前記第1のデータ処理装置および前記第2のデータ処理装置は、前記サーバ装置を介して集積回路と通信を行い、所定のサービスを提供し、
前記データモジュールは、前記集積回路の記憶領域を操作するためのデータあるいは手順を示している
請求項1に記載のデータ処理方法。
The first data processing device and the second data processing device communicate with an integrated circuit via the server device to provide a predetermined service,
The data processing method according to claim 1, wherein the data module indicates data or a procedure for operating a storage area of the integrated circuit.
前記第1のデータ処理装置と、前記第2のデータ処理装置との間で、前記データモジュールの転送用の複数の通信路を同時に設定する
請求項1に記載のデータ処理方法。
The data processing method according to claim 1, wherein a plurality of communication paths for transferring the data module are simultaneously set between the first data processing device and the second data processing device.
ネットワークにそれぞれ接続された第1および第2のサーバ装置と、
前記ネットワークを介して前記第1および第2のサーバ装置に接続され、メモリを有するICカードあるいはICモジュールと、
前記ネットワークを介さずにそれぞれ前記第1のサーバ装置および前記第2のサーバ装置に接続され、前記ICカードあるいはICモジュールのメモリに記憶されたデータにアクセスするための処理に必要な第1および第2のアプリケーションプログラムをそれぞれ実行する第1および第2のデータ処理装置と
を有し、
前記ICカードあるいはICモジュールのメモリに記憶されたデータを用いてサービスを提供するためのデータ処理を行うデータ処理システムであって、
前記第1のデータ処理装置が、前記第2のアプリケーションプログラムを構成する複数のデータモジュールのうち前記第1のアプリケーションプログラムが利用するデータモジュールを示す第1の管理データを保持し、前記第2のデータ処理装置が前記第1のアプリケーションプログラムに利用させることを許可するデータモジュールを示す第2の管理データを保持する場合に、
前記第1のデータ処理装置と前記第2のデータ処理装置が、それぞれ前記第1の管理データと前記第2の管理データに含まれる相互認証を行うか否かを指定する相互認証有無指示データを参照して相互認証を行うか否かを決定し、
相互認証を行う場合は前記第1のデータ処理装置と前記第2のデータ処理装置との間で相互認証を行って互いの正当性を確認した後に、前記第1のデータ処理装置が前記第1の管理データを参照して利用しようとする前記データモジュールを指定した要求を前記第2のデータ処理装置に送信し、
前記第2のデータ処理装置が、前記要求に応じて、前記第2の管理データを参照し、前記要求で指定されたデータモジュールを前記第1のアプリケーションプログラムが利用することを許可すると判断した場合、前記要求で指定されたデータモジュールを前記第1のデータ処理装置に送信し、
前記第1のデータ処理装置が、前記第2のデータ処理装置から取得したデータモジュールを含んだ前記第1のアプリケーションプログラムを実行することにより、サービスの提供に必要なデータにアクセスしてデータ処理を行う、
ことを特徴とするデータ処理システム。
First and second server devices respectively connected to the network;
An IC card or an IC module connected to the first and second server devices via the network and having a memory;
The first and second servers are connected to the first server device and the second server device without going through the network, respectively, and are necessary for processing to access data stored in the memory of the IC card or IC module. A first data processing device and a second data processing device that respectively execute two application programs;
A data processing system for performing data processing for providing a service using data stored in a memory of the IC card or the IC module,
The first data processing device holds first management data indicating a data module used by the first application program among a plurality of data modules constituting the second application program, and When holding second management data indicating a data module that is allowed to be used by the first application program by the data processing device,
Mutual authentication presence / absence instruction data for designating whether or not the first data processing device and the second data processing device perform mutual authentication included in the first management data and the second management data, respectively. Refer to determine whether to perform mutual authentication,
When performing mutual authentication, the first data processing device performs the mutual authentication between the first data processing device and the second data processing device to confirm the validity of each other, and then the first data processing device performs the first authentication. A request specifying the data module to be used with reference to the management data is sent to the second data processing device,
When the second data processing apparatus refers to the second management data in response to the request and determines that the first application program is permitted to use the data module specified in the request Sending the data module specified in the request to the first data processing device;
The first data processing apparatus executes the first application program including the data module acquired from the second data processing apparatus, thereby accessing data necessary for providing a service and performing data processing. Do,
A data processing system characterized by that.
JP2006127754A 2006-05-01 2006-05-01 Data processing method and data processing system Expired - Fee Related JP4453678B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006127754A JP4453678B2 (en) 2006-05-01 2006-05-01 Data processing method and data processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006127754A JP4453678B2 (en) 2006-05-01 2006-05-01 Data processing method and data processing system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2001335650A Division JP3826764B2 (en) 2001-10-31 2001-10-31 Data processing method, data processing apparatus, and program

Publications (2)

Publication Number Publication Date
JP2006260594A true JP2006260594A (en) 2006-09-28
JP4453678B2 JP4453678B2 (en) 2010-04-21

Family

ID=37099672

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006127754A Expired - Fee Related JP4453678B2 (en) 2006-05-01 2006-05-01 Data processing method and data processing system

Country Status (1)

Country Link
JP (1) JP4453678B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103561317A (en) * 2013-11-04 2014-02-05 深圳国微技术有限公司 Conditional access card CAM and data processing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103561317A (en) * 2013-11-04 2014-02-05 深圳国微技术有限公司 Conditional access card CAM and data processing method

Also Published As

Publication number Publication date
JP4453678B2 (en) 2010-04-21

Similar Documents

Publication Publication Date Title
JP4326443B2 (en) Information processing apparatus, information processing method, and program
JP4391375B2 (en) Information management apparatus and method, and program
US7805375B2 (en) Digital license migration from first platform to second platform
JP3826764B2 (en) Data processing method, data processing apparatus, and program
JP4360422B2 (en) Authentication information management system, authentication information management server, authentication information management method and program
JP3783608B2 (en) COMMUNICATION METHOD, COMMUNICATION SYSTEM, DATA PROCESSING DEVICE, SERVER DEVICE, AND PROGRAM
US20090138699A1 (en) Software module management device and program
JP4516399B2 (en) Information processing apparatus and method, and program
US7610488B2 (en) Data processing device and method and program of same
JP4055393B2 (en) Data processing apparatus and method and program thereof
KR20080065661A (en) A method for controlling access to file systems, related system, sim card and computer program product for use therein
US7716477B2 (en) Data processing method, program of the same, and device of the same
CN110383240A (en) The method and apparatus of safe computing resource for containerization
WO2007119594A1 (en) Secure device and read/write device
US20020166051A1 (en) Method, system, and apparatus for encrypting a web browser script
JP2002169782A (en) Portable information storage medium, user use control system, user use control method and user use control program
JP6909452B2 (en) Information processing methods, information processing devices, programs and information processing systems
JP4453678B2 (en) Data processing method and data processing system
JP2002244755A (en) Data processing method, semiconductor circuit, and program
WO2004028079A1 (en) Data processing method, its program and its device
JP4708754B2 (en) Server client system, client, data processing method, and program
JP4207409B2 (en) Data processing apparatus and method
JP2002245414A (en) Data processing method and semiconductor circuit
TW201828186A (en) Mobile device with built-in access control mechanism comprises an access control unit including a control module and a storage module; a memory unit storing an application program; and a processing unit
KR19980044525A (en) How to stay secure in an information retrieval system

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091027

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091210

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100112

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100125

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130212

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130212

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140212

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees