decrypt_data
Decrypt cardholder data or payment fields from terminals, acquirers, or issuers. Supports DUKPT session-key and EMV confidentiality decryption using specified encryption keys.
Instructions
Call this when decrypting cardholder data or payment fields received from a terminal, acquiring host, or issuer — including DUKPT session-key decryption and EMV confidentiality decryption.
Supported key types: D0, D1, B0 (DUKPT), E1/E6 (EMV). All inputs and outputs are hexBinary encoded.
Args: key_identifier: Key ARN or alias of the KEK (when using wrapped_key) or the working key cipher_text: Hex-encoded ciphertext decryption_attributes: Algorithm-specific parameters (mirrors encrypt_data) wrapped_key: Optional TR-31 wrapped working key (key_identifier becomes the KEK)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"key_identifier": "<key_identifier>",
"cipher_text": "<cipher_text>",
"decryption_attributes": "<decryption_attributes>"
},
"name": "decrypt_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cipher_text | Yes | ||
| wrapped_key | No | ||
| key_identifier | Yes | ||
| decryption_attributes | Yes |