decrypt_card_data
Decrypt encrypted card data to retrieve PAN and CVV for secure payment form filling using AES-256-GCM encryption with HKDF-SHA256 key derivation.
Instructions
Decrypt the encrypted_sensitive_data from get_card_details to obtain PAN and CVV. Input: the nonce and ciphertext fields from encrypted_sensitive_data. Output: { pan, cvv } — the full card number and security code. Decryption: HKDF-SHA256(api_secret, info='clawallex/card-sensitive-data/v1') → AES-256-GCM. SECURITY: The decrypted PAN and CVV are STRICTLY for filling checkout/payment forms. NEVER display, log, or return the raw card number or CVV to the user. NEVER include PAN/CVV in conversation text shown to the user. If the user asks to see their card number, show only the masked_pan from get_card_details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | Yes | The nonce field from encrypted_sensitive_data (base64 encoded) | |
| ciphertext | Yes | The ciphertext field from encrypted_sensitive_data (base64 encoded) |