Skip to content

/AWS1/CL_PCD=>TRANSLATEPINDATA()

About TranslatePinData

Translates encrypted PIN block from and to ISO 9564 formats 0,1,3,4. For more information, see Translate PIN data in the Amazon Web Services Payment Cryptography User Guide.

PIN block translation involves changing the encrytion of PIN block from one encryption key to another encryption key and changing PIN block format from one to another without PIN block data leaving Amazon Web Services Payment Cryptography. The encryption key transformation can be from PEK (Pin Encryption Key) to BDK (Base Derivation Key) for DUKPT or from BDK for DUKPT to PEK. Amazon Web Services Payment Cryptography supports TDES and AES key derivation type for DUKPT translations.

The allowed combinations of PIN block format translations are guided by PCI. It is important to note that not all encrypted PIN block formats (example, format 1) require PAN (Primary Account Number) as input. And as such, PIN block format that requires PAN (example, formats 0,3,4) cannot be translated to a format (format 1) that does not require a PAN for generation.

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.

Amazon Web Services Payment Cryptography currently supports ISO PIN block 4 translation for PIN block built using legacy PAN length. That is, PAN is the right most 12 digits excluding the check digits.

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 under which incoming PIN block data is encrypted. This key type can be PEK or BDK.

IV_OUTGOINGKEYIDENTIFIER TYPE /AWS1/PCDKEYARNORKEYALIASTYPE /AWS1/PCDKEYARNORKEYALIASTYPE

The keyARN of the encryption key for encrypting outgoing PIN block data. This key type can be PEK or BDK.

IO_INCOMINGXLATIONATTRIBUTES TYPE REF TO /AWS1/CL_PCDXLATIONISOFORMATS /AWS1/CL_PCDXLATIONISOFORMATS

The format of the incoming PIN block data for translation within Amazon Web Services Payment Cryptography.

IO_OUTGOINGXLATIONATTRIBUTES TYPE REF TO /AWS1/CL_PCDXLATIONISOFORMATS /AWS1/CL_PCDXLATIONISOFORMATS

The format of the outgoing PIN block data after translation by Amazon Web Services Payment Cryptography.

IV_ENCRYPTEDPINBLOCK TYPE /AWS1/PCDHEXEVENLENGTHBETWEE03 /AWS1/PCDHEXEVENLENGTHBETWEE03

The encrypted PIN block data that Amazon Web Services Payment Cryptography translates.

Optional arguments:

IO_INCOMINGDUKPTATTRIBUTES TYPE REF TO /AWS1/CL_PCDDUKPTDERIVATIONA00 /AWS1/CL_PCDDUKPTDERIVATIONA00

The attributes and values to use for incoming DUKPT encryption key for PIN block translation.

IO_OUTGOINGDUKPTATTRIBUTES TYPE REF TO /AWS1/CL_PCDDUKPTDERIVATIONA00 /AWS1/CL_PCDDUKPTDERIVATIONA00

The attributes and values to use for outgoing DUKPT encryption key after PIN block translation.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_PCDTRANSLATEPINDATA01 /AWS1/CL_PCDTRANSLATEPINDATA01