> For the complete documentation index, see [llms.txt](https://docs.payments.thalescloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payments.thalescloud.io/xpay-enablement/ja/dta/apple-pay-nopsonaraizu.md).

# Apple Pay のパーソナライズ

TSH は、Apple Pay ソリューション向けの IRON アプレットに基づく EMV アプリケーションを個別化する機能を完全に備えています。ここでは、'submitTokenData' 操作で TSP から必要となるデータのセットを示します。

| 名前                                | フォーマット    | 長さ    | 説明                                                                                                                                                                                                                                                                                                                                                                                                              | 例                                                  |
| --------------------------------- | --------- | ----- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- |
| KEK\_label                        | ASCII 文字列 | 1-64  | CMK を暗号化するために使用される鍵のラベル。値は鍵セレモニー中に定義されます。                                                                                                                                                                                                                                                                                                                                                                       | "G062C.TEST.SGKEK.KEK.01"                          |
| KEK\_kcv                          | 16進文字列    | 6     | CMK 暗号化に使用される鍵の KCV。                                                                                                                                                                                                                                                                                                                                                                                            | "E95500"                                           |
| DEK\_label                        | ASCII 文字列 | 1-64  | Track2 データ（"Track2\_Data\_under\_DEK"）を暗号化するために使用される鍵のラベル。値は鍵セレモニー中に定義されます。                                                                                                                                                                                                                                                                                                                                     | "G062C.TEST.SGDEK.MKDATA.01"                       |
| DEK\_kcv                          | 16進文字列    | 6     | DEK 鍵の KCV。                                                                                                                                                                                                                                                                                                                                                                                                     | "50FE57"                                           |
| Card\_Master\_Key\_Under\_KEK     | 16進文字列    | -     | 近距離決済用のアプリケーションクリプトグラムカードマスター鍵の値で、KEK 鍵の下で暗号化されたもの。暗号化アルゴリズムはプロジェクト設定時に定義されます。                                                                                                                                                                                                                                                                                                                                  | "F1452589A51C5E88FA451236A5C49687"                 |
| CMK\_kcv                          | 16進文字列    | 6     | 近距離決済用アプリケーションクリプトグラムカードマスター鍵の KCV の値。                                                                                                                                                                                                                                                                                                                                                                          | "4A56F8"                                           |
| CMK\_dki                          | 16進文字列    | 2     | 近距離決済用アプリケーションクリプトグラムカードマスター鍵に関連付けられた導出鍵インデックスの値。                                                                                                                                                                                                                                                                                                                                                               | "01"                                               |
| Card\_Master\_Key\_RP\_Under\_KEK | 16進文字列    | -     | リモート決済用のアプリケーションクリプトグラムカードマスター鍵の値で、KEK 鍵の下で暗号化されたもの。暗号化アルゴリズムはプロジェクト設定時に定義されます。                                                                                                                                                                                                                                                                                                                                 | "E5812624B11DE846AA452165C4C39154"                 |
| CMK\_RP\_kcv                      | 16進文字列    | 6     | リモート決済用 AC カードマスター鍵の KCV の値。                                                                                                                                                                                                                                                                                                                                                                                    | "5E23C1"                                           |
| CMK\_RP\_dki                      | 16進文字列    | 2     | リモート決済用 AC カードマスター鍵に関連付けられた導出鍵インデックスの値。                                                                                                                                                                                                                                                                                                                                                                         | "01"                                               |
| Track2\_Data\_under\_DEK          | 16進文字列    | -     | <p>Track 2 同等データ（最大長は 19 バイト）<br>クリアテキストでのフォーマットは：<br></p><ul><li>トークン PAN 最大 19 桁: 'ppppppppppppppppppp'</li><li>'D'</li><li>有効期限: 'yymm'</li><li>サービスコード: 'sss'</li><li>（オプション）裁量データ（PAN の長さに依存）</li><li>'F'（必要に応じて全バイトにするため）<br><br>track2 データは暗号化アルゴリズムのブロックサイズに達するように 80h + 00h..00h でパディングされます（ISO7816-4 パディング）<br><br>track2 データは CBC モードを使用して DEK 鍵の下で暗号化されます。<br>暗号化アルゴリズムはプロジェクト設定時に定義されます。</li></ul> | "FAB7FF4EFE1989AC25EBBEC2ED72378BDA79D244B89F7F25" |
| PAN\_Sequence\_Number             | 16進文字列    | 2     | アプリケーションにパーソナライズする PAN シーケンス番号。                                                                                                                                                                                                                                                                                                                                                                                 | "01"                                               |
| app\_preferred\_name              | ASCII バイト | 最大 16 | アプリケーション優先名                                                                                                                                                                                                                                                                                                                                                                                                     | <p>"4465626974"<br>は "Debit" を表します</p>             |

{% hint style="info" %}
**注1**:

データ要素名は大文字小文字を区別しません。\
例えば、DEK\_KCV と dek\_kcv は同等です
{% endhint %}

{% hint style="info" %}
**注2**:

追加のデータ要素はプロジェクト構成に応じて追加される場合があります
{% endhint %}

{% hint style="info" %}
**注3**:

上記で説明したすべての KCV は、関連する鍵を使用して ECB モードで 3DES 鍵の場合は 00h を 8 バイト、AES 鍵の場合は 01h を 16 バイト暗号化することによって計算されます。\
どちらの場合も、上位 3 バイトが KCV として使用されます。
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.payments.thalescloud.io/xpay-enablement/ja/dta/apple-pay-nopsonaraizu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
