re_encrypt_data
Rewrap encrypted payment data under a new key without exposing plaintext. Handles key rotation, moving between security domains, and crypto algorithm transitions entirely within the HSM.
Instructions
Call this when rewrapping payment data under a new key — for example when rotating zone encryption keys, moving data between security domains, or transitioning from TDES to AES. The plaintext never leaves the HSM boundary.
Re-encrypts data from one key to another without exposing plaintext. The decryption and re-encryption occur entirely within the APC HSM boundary.
Args: incoming_key_identifier: ARN or alias of the current encryption key (or KEK) outgoing_key_identifier: ARN or alias of the target encryption key (or KEK) cipher_text: Hex-encoded ciphertext under the incoming key incoming_encryption_attributes: Algorithm params for decryption outgoing_encryption_attributes: Algorithm params for re-encryption incoming_wrapped_key: Optional TR-31 wrapped incoming working key outgoing_wrapped_key: Optional TR-31 wrapped outgoing working key
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cipher_text | Yes | ||
| incoming_wrapped_key | No | ||
| outgoing_wrapped_key | No | ||
| incoming_key_identifier | Yes | ||
| outgoing_key_identifier | Yes | ||
| incoming_encryption_attributes | Yes | ||
| outgoing_encryption_attributes | Yes |