Skip to content

/AWS1/CL_PCD=>REENCRYPTDATA()

About ReEncryptData

Re-encrypt ciphertext using DUKPT, Symmetric and Asymmetric Data Encryption Keys.

You can either generate an encryption key within Amazon Web Services Payment Cryptography by calling CreateKey or import your own encryption key by calling ImportKey. The KeyArn for use with this operation must be in a compatible key state with KeyModesOfUse set to Encrypt. In asymmetric encryption, ciphertext is encrypted using public component (imported by calling ImportKey) of the asymmetric key pair created outside of Amazon Web Services Payment Cryptography.

For symmetric and DUKPT encryption, Amazon Web Services Payment Cryptography supports TDES and AES algorithms. For asymmetric encryption, Amazon Web Services Payment Cryptography supports RSA. To encrypt using DUKPT, a DUKPT key must already exist within your account with KeyModesOfUse set to DeriveKey or a new DUKPT can be generated by calling CreateKey.

For information about valid keys for this operation, see Understanding key attributes and Key types for specific data operations in the Amazon Web Services Payment Cryptography User Guide.

Cross-account use: This operation can't be used across different Amazon Web Services accounts.

Related operations:

Method Signature

IMPORTING

Required arguments:

IV_INCOMINGKEYIDENTIFIER TYPE /AWS1/PCDKEYARNORKEYALIASTYPE /AWS1/PCDKEYARNORKEYALIASTYPE

The keyARN of the encryption key of incoming ciphertext data.

IV_OUTGOINGKEYIDENTIFIER TYPE /AWS1/PCDKEYARNORKEYALIASTYPE /AWS1/PCDKEYARNORKEYALIASTYPE

The keyARN of the encryption key of outgoing ciphertext data after encryption by Amazon Web Services Payment Cryptography.

IV_CIPHERTEXT TYPE /AWS1/PCDHEXEVENLENGTHBETWEE00 /AWS1/PCDHEXEVENLENGTHBETWEE00

Ciphertext to be encrypted. The minimum allowed length is 16 bytes and maximum allowed length is 4096 bytes.

IO_INCOMINGENCATTRIBUTES TYPE REF TO /AWS1/CL_PCDREENCATTRIBUTES /AWS1/CL_PCDREENCATTRIBUTES

The attributes and values for incoming ciphertext.

IO_OUTGOINGENCATTRIBUTES TYPE REF TO /AWS1/CL_PCDREENCATTRIBUTES /AWS1/CL_PCDREENCATTRIBUTES

The attributes and values for outgoing ciphertext data after encryption by Amazon Web Services Payment Cryptography.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_PCDREENCRYPTDATAOUT /AWS1/CL_PCDREENCRYPTDATAOUT