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)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cipher_text | Yes | ||
| wrapped_key | No | ||
| key_identifier | Yes | ||
| decryption_attributes | Yes |