Generates pin-related data such as PIN, PIN Verification Value (PVV), PIN Block, and PIN Offset during new card issuance or reissuance¶
Description¶
Generates pin-related data such as PIN, PIN Verification Value (PVV), PIN Block, and PIN Offset during new card issuance or reissuance. For more information, see Generate PIN data in the Amazon Web Services Payment Cryptography User Guide.
PIN data is never transmitted in clear to or from Amazon Web Services Payment Cryptography. This operation generates PIN, PVV, or PIN Offset and then encrypts it using Pin Encryption Key (PEK) to create an EncryptedPinBlock for transmission from Amazon Web Services Payment Cryptography. This operation uses a separate Pin Verification Key (PVK) for VISA PVV generation.
Using ECDH key exchange, you can receive cardholder selectable PINs into Amazon Web Services Payment Cryptography. The ECDH derived key protects the incoming PIN block. You can also use it for reveal PIN, wherein the generated PIN block is protected by the ECDH derived key before transmission from Amazon Web Services Payment Cryptography. For more information on establishing ECDH derived keys, see the Generating keys in the Amazon Web Services Payment Cryptography User Guide.
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 supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies.
Related operations:
Usage¶
paymentcryptographydataplane_generate_pin_data(GenerationKeyIdentifier,
EncryptionKeyIdentifier, GenerationAttributes, PinDataLength,
PrimaryAccountNumber, PinBlockFormat, EncryptionWrappedKey)
Arguments¶
-
GenerationKeyIdentifier[required] The
keyARNof the PEK that Amazon Web Services Payment Cryptography uses for pin data generation. -
EncryptionKeyIdentifier[required] The
keyARNof the PEK that Amazon Web Services Payment Cryptography uses to encrypt the PIN Block. For ECDH, it is thekeyARNof the asymmetric ECC key. -
GenerationAttributes[required] The attributes and values to use for PIN, PVV, or PIN Offset generation.
-
PinDataLengthThe length of PIN under generation.
-
PrimaryAccountNumberThe Primary Account Number (PAN), a unique identifier for a payment credit or debit card that associates the card with a specific account holder.
-
PinBlockFormat[required] The PIN encoding format for pin data generation as specified in ISO 9564. Amazon Web Services Payment Cryptography supports
ISO_Format_0,ISO_Format_3andISO_Format_4.The
ISO_Format_0PIN block format is equivalent to the ANSI X9.8, VISA-1, and ECI-1 PIN block formats. It is similar to a VISA-4 PIN block format. It supports a PIN from 4 to 12 digits in length.The
ISO_Format_3PIN block format is the same asISO_Format_0except that the fill digits are random values from 10 to 15.The
ISO_Format_4PIN block format is the only one supporting AES encryption. -
EncryptionWrappedKeyParameter information of a WrappedKeyBlock for encryption key exchange.
Value¶
A list with the following syntax:
list(
GenerationKeyArn = "string",
GenerationKeyCheckValue = "string",
EncryptionKeyArn = "string",
EncryptionKeyCheckValue = "string",
EncryptedPinBlock = "string",
PinData = list(
PinOffset = "string",
VerificationValue = "string"
)
)
Request syntax¶
svc$generate_pin_data(
GenerationKeyIdentifier = "string",
EncryptionKeyIdentifier = "string",
GenerationAttributes = list(
VisaPin = list(
PinVerificationKeyIndex = 123
),
VisaPinVerificationValue = list(
EncryptedPinBlock = "string",
PinVerificationKeyIndex = 123
),
Ibm3624PinOffset = list(
EncryptedPinBlock = "string",
DecimalizationTable = "string",
PinValidationDataPadCharacter = "string",
PinValidationData = "string"
),
Ibm3624NaturalPin = list(
DecimalizationTable = "string",
PinValidationDataPadCharacter = "string",
PinValidationData = "string"
),
Ibm3624RandomPin = list(
DecimalizationTable = "string",
PinValidationDataPadCharacter = "string",
PinValidationData = "string"
),
Ibm3624PinFromOffset = list(
DecimalizationTable = "string",
PinValidationDataPadCharacter = "string",
PinValidationData = "string",
PinOffset = "string"
)
),
PinDataLength = 123,
PrimaryAccountNumber = "string",
PinBlockFormat = "ISO_FORMAT_0"|"ISO_FORMAT_1"|"ISO_FORMAT_3"|"ISO_FORMAT_4",
EncryptionWrappedKey = list(
WrappedKeyMaterial = list(
Tr31KeyBlock = "string",
DiffieHellmanSymmetricKey = list(
CertificateAuthorityPublicKeyIdentifier = "string",
PublicKeyCertificate = "string",
KeyAlgorithm = "TDES_2KEY"|"TDES_3KEY"|"AES_128"|"AES_192"|"AES_256"|"HMAC_SHA256"|"HMAC_SHA384"|"HMAC_SHA512"|"HMAC_SHA224",
KeyDerivationFunction = "NIST_SP800"|"ANSI_X963",
KeyDerivationHashAlgorithm = "SHA_256"|"SHA_384"|"SHA_512",
SharedInformation = "string"
)
),
KeyCheckValueAlgorithm = "CMAC"|"ANSI_X9_24"|"HMAC"|"SHA_1"
)
)