Awso_payment_cryptography_data_syncSourceval decrypt_data :
?endpoint_url:string ->
?cfg:Awso.Cfg.t ->
Awso_payment_cryptography_data.Values.DecryptDataInput.t ->
(Awso_payment_cryptography_data.Values.DecryptDataOutput.t,
Awso_payment_cryptography_data.Values.DecryptDataOutput.error)
Result.tval encrypt_data :
?endpoint_url:string ->
?cfg:Awso.Cfg.t ->
Awso_payment_cryptography_data.Values.EncryptDataInput.t ->
(Awso_payment_cryptography_data.Values.EncryptDataOutput.t,
Awso_payment_cryptography_data.Values.EncryptDataOutput.error)
Result.tval generate_as2805_kek_validation :
?endpoint_url:string ->
?cfg:Awso.Cfg.t ->
Awso_payment_cryptography_data.Values.GenerateAs2805KekValidationInput.t ->
(Awso_payment_cryptography_data.Values.GenerateAs2805KekValidationOutput.t,
Awso_payment_cryptography_data.Values.GenerateAs2805KekValidationOutput.error)
Result.tval generate_card_validation_data :
?endpoint_url:string ->
?cfg:Awso.Cfg.t ->
Awso_payment_cryptography_data.Values.GenerateCardValidationDataInput.t ->
(Awso_payment_cryptography_data.Values.GenerateCardValidationDataOutput.t,
Awso_payment_cryptography_data.Values.GenerateCardValidationDataOutput.error)
Result.tval generate_mac :
?endpoint_url:string ->
?cfg:Awso.Cfg.t ->
Awso_payment_cryptography_data.Values.GenerateMacInput.t ->
(Awso_payment_cryptography_data.Values.GenerateMacOutput.t,
Awso_payment_cryptography_data.Values.GenerateMacOutput.error)
Result.tval generate_mac_emv_pin_change :
?endpoint_url:string ->
?cfg:Awso.Cfg.t ->
Awso_payment_cryptography_data.Values.GenerateMacEmvPinChangeInput.t ->
(Awso_payment_cryptography_data.Values.GenerateMacEmvPinChangeOutput.t,
Awso_payment_cryptography_data.Values.GenerateMacEmvPinChangeOutput.error)
Result.tval generate_pin_data :
?endpoint_url:string ->
?cfg:Awso.Cfg.t ->
Awso_payment_cryptography_data.Values.GeneratePinDataInput.t ->
(Awso_payment_cryptography_data.Values.GeneratePinDataOutput.t,
Awso_payment_cryptography_data.Values.GeneratePinDataOutput.error)
Result.tval re_encrypt_data :
?endpoint_url:string ->
?cfg:Awso.Cfg.t ->
Awso_payment_cryptography_data.Values.ReEncryptDataInput.t ->
(Awso_payment_cryptography_data.Values.ReEncryptDataOutput.t,
Awso_payment_cryptography_data.Values.ReEncryptDataOutput.error)
Result.tval translate_key_material :
?endpoint_url:string ->
?cfg:Awso.Cfg.t ->
Awso_payment_cryptography_data.Values.TranslateKeyMaterialInput.t ->
(Awso_payment_cryptography_data.Values.TranslateKeyMaterialOutput.t,
Awso_payment_cryptography_data.Values.TranslateKeyMaterialOutput.error)
Result.tval translate_pin_data :
?endpoint_url:string ->
?cfg:Awso.Cfg.t ->
Awso_payment_cryptography_data.Values.TranslatePinDataInput.t ->
(Awso_payment_cryptography_data.Values.TranslatePinDataOutput.t,
Awso_payment_cryptography_data.Values.TranslatePinDataOutput.error)
Result.tval verify_auth_request_cryptogram :
?endpoint_url:string ->
?cfg:Awso.Cfg.t ->
Awso_payment_cryptography_data.Values.VerifyAuthRequestCryptogramInput.t ->
(Awso_payment_cryptography_data.Values.VerifyAuthRequestCryptogramOutput.t,
Awso_payment_cryptography_data.Values.VerifyAuthRequestCryptogramOutput.error)
Result.tval verify_card_validation_data :
?endpoint_url:string ->
?cfg:Awso.Cfg.t ->
Awso_payment_cryptography_data.Values.VerifyCardValidationDataInput.t ->
(Awso_payment_cryptography_data.Values.VerifyCardValidationDataOutput.t,
Awso_payment_cryptography_data.Values.VerifyCardValidationDataOutput.error)
Result.tval verify_mac :
?endpoint_url:string ->
?cfg:Awso.Cfg.t ->
Awso_payment_cryptography_data.Values.VerifyMacInput.t ->
(Awso_payment_cryptography_data.Values.VerifyMacOutput.t,
Awso_payment_cryptography_data.Values.VerifyMacOutput.error)
Result.tval verify_pin_data :
?endpoint_url:string ->
?cfg:Awso.Cfg.t ->
Awso_payment_cryptography_data.Values.VerifyPinDataInput.t ->
(Awso_payment_cryptography_data.Values.VerifyPinDataOutput.t,
Awso_payment_cryptography_data.Values.VerifyPinDataOutput.error)
Result.tinclude module type of struct include Awso_payment_cryptography_data.Values endval structure_to_value_aux :
('a * 'b option) list ->
f:(('a * 'b) list -> 'c) ->
[> `Structure of 'c ]val structure_to_wrapped_value :
wrapper:'a ->
response:'a ->
('b * 'c option) list ->
[> `Structure of ('a * [> `Structure of ('b * 'c) list ]) list ]module KeyDerivationHashAlgorithm =
Awso_payment_cryptography_data.Values.KeyDerivationHashAlgorithmmodule ApplicationCryptogramType =
Awso_payment_cryptography_data.Values.ApplicationCryptogramTypemodule ValidationExceptionField =
Awso_payment_cryptography_data.Values.ValidationExceptionFieldThe request was denied due to an invalid request error.
module DecimalizationTableType =
Awso_payment_cryptography_data.Values.DecimalizationTableTypemodule IntegerRangeBetween0And6 =
Awso_payment_cryptography_data.Values.IntegerRangeBetween0And6module EcdhDerivationAttributes =
Awso_payment_cryptography_data.Values.EcdhDerivationAttributesParameters required to establish ECDH based key exchange.
module PrimaryAccountNumberType =
Awso_payment_cryptography_data.Values.PrimaryAccountNumberTypemodule SessionKeyDerivationMode =
Awso_payment_cryptography_data.Values.SessionKeyDerivationModemodule SessionKeyDerivationValue =
Awso_payment_cryptography_data.Values.SessionKeyDerivationValueParameters to derive session key value using a MAC EMV algorithm.
module ProprietaryAuthenticationDataType =
Awso_payment_cryptography_data.Values.ProprietaryAuthenticationDataTypemodule DiffieHellmanDerivationData =
Awso_payment_cryptography_data.Values.DiffieHellmanDerivationDataThe shared information used when deriving a key using ECDH.
module InitializationVectorType =
Awso_payment_cryptography_data.Values.InitializationVectorTypeThe parameter values of the current PIN to be changed on the EMV chip card.
module As2805RandomKeyMaterial =
Awso_payment_cryptography_data.Values.As2805RandomKeyMaterialmodule EmvMajorKeyDerivationMode =
Awso_payment_cryptography_data.Values.EmvMajorKeyDerivationModemodule SessionDerivationDataType =
Awso_payment_cryptography_data.Values.SessionDerivationDataTypemodule ValidationExceptionFieldList =
Awso_payment_cryptography_data.Values.ValidationExceptionFieldListmodule VerificationFailedReason =
Awso_payment_cryptography_data.Values.VerificationFailedReasonParameters that are required to generate or verify Ibm3624 PIN verification PIN.
Parameters that are required to generate or verify Visa PIN.
Parameter information of a WrappedKeyBlock for encryption key exchange.
Parameters required for DUKPT MAC generation and verification.
Parameters that are required for EMV MAC generation and verification.
module AmexCardSecurityCodeVersion1 =
Awso_payment_cryptography_data.Values.AmexCardSecurityCodeVersion1Card data parameters that are required to generate a Card Security Code (CSC2) for an AMEX payment card.
module AmexCardSecurityCodeVersion2 =
Awso_payment_cryptography_data.Values.AmexCardSecurityCodeVersion2Card data parameters that are required to generate a Card Security Code (CSC2) for an AMEX payment card.
module CardHolderVerificationValue =
Awso_payment_cryptography_data.Values.CardHolderVerificationValueCard data parameters that are required to generate a cardholder verification value for the payment card.
Card data parameters that are required to verify CVV (Card Verification Value) for the payment card.
Card data parameters that are required to verify Card Verification Value (CVV2) for the payment card.
module DiscoverDynamicCardVerificationCode =
Awso_payment_cryptography_data.Values.DiscoverDynamicCardVerificationCodeParameters that are required to generate or verify dCVC (Dynamic Card Verification Code).
module DynamicCardVerificationCode =
Awso_payment_cryptography_data.Values.DynamicCardVerificationCodeParameters that are required to generate or verify Dynamic Card Verification Value (dCVV).
module DynamicCardVerificationValue =
Awso_payment_cryptography_data.Values.DynamicCardVerificationValueParameters that are required to generate or verify Dynamic Card Verification Value (dCVV).
module CryptogramVerificationArpcMethod1 =
Awso_payment_cryptography_data.Values.CryptogramVerificationArpcMethod1Parameters that are required for ARPC response generation using method1 after ARQC verification is successful.
module CryptogramVerificationArpcMethod2 =
Awso_payment_cryptography_data.Values.CryptogramVerificationArpcMethod2Parameters that are required for ARPC response generation using method2 after ARQC verification is successful.
Parameters to derive session key for an Amex payment card.
Parameters to derive session key for an Emv2000 payment card for ARQC verification.
Parameters to derive session key for an Emv common payment card for ARQC verification.
Parameters to derive session key for Mastercard payment card for ARQC verification.
Parameters to derive session key for Visa payment card for ARQC verification.
module SystemTraceAuditNumberType =
Awso_payment_cryptography_data.Values.SystemTraceAuditNumberTypemodule TranslationPinDataAs2805Format0 =
Awso_payment_cryptography_data.Values.TranslationPinDataAs2805Format0Parameters that are required for translation between AS2805 PIN format 0 translation.
module TranslationPinDataIsoFormat034 =
Awso_payment_cryptography_data.Values.TranslationPinDataIsoFormat034Parameters that are required for translation between ISO9564 PIN format 0,3,4 translation.
module TranslationPinDataIsoFormat1 =
Awso_payment_cryptography_data.Values.TranslationPinDataIsoFormat1Parameters that are required for ISO9564 PIN format 1 translation.
module WrappedKeyMaterialFormat =
Awso_payment_cryptography_data.Values.WrappedKeyMaterialFormatmodule IncomingDiffieHellmanTr31KeyBlock =
Awso_payment_cryptography_data.Values.IncomingDiffieHellmanTr31KeyBlockParameter information of a TR31KeyBlock wrapped using an ECDH derived key.
Parameter information of the TR31WrappedKeyBlock containing the transaction key wrapped using a KEK.
module DukptEncryptionAttributes =
Awso_payment_cryptography_data.Values.DukptEncryptionAttributesParameters that are required to encrypt plaintext data using DUKPT.
module SymmetricEncryptionAttributes =
Awso_payment_cryptography_data.Values.SymmetricEncryptionAttributesParameters requried to encrypt plaintext data using symmetric keys.
Parameters that are required to generate or verify Ibm3624 natural PIN.
Parameters that are required to generate or verify Ibm3624 PIN from offset PIN.
Pparameters that are required to generate or verify Ibm3624 PIN offset PIN.
Parameters that are required to generate or verify Ibm3624 random PIN.
Parameters that are required to generate or verify Visa PIN.
module VisaPinVerificationValue =
Awso_payment_cryptography_data.Values.VisaPinVerificationValueParameters that are required to generate or verify Visa PVV (PIN Verification Value).
Parameters to derive the confidentiality and integrity keys for a payment card using Amex derivation method.
Parameters to derive the confidentiality and integrity keys for a payment card using EMV2000 deruv.
Parameters to derive the confidentiality and integrity keys for an Emv common payment card.
Parameters to derive the confidentiality and integrity keys for a Mastercard payment card.
Parameters to derive the confidentiality and integrity keys for a Visa payment card.
Parameter information for generating a KEK validation request during node-to-node initialization.
Parameter information for generating a KEK validation response during node-to-node initialization.
module AsymmetricEncryptionAttributes =
Awso_payment_cryptography_data.Values.AsymmetricEncryptionAttributesParameters for plaintext encryption using asymmetric keys.
module EmvEncryptionAttributes =
Awso_payment_cryptography_data.Values.EmvEncryptionAttributesParameters for plaintext encryption using EMV keys.
You do not have sufficient access to perform this action.
module InternalServerException =
Awso_payment_cryptography_data.Values.InternalServerExceptionThe request processing has failed because of an unknown error, exception, or failure.
module ResourceNotFoundException =
Awso_payment_cryptography_data.Values.ResourceNotFoundExceptionThe request was denied due to an invalid resource error.
The request was denied due to request throttling.
The request was denied due to an invalid request error.
module VerificationFailedException =
Awso_payment_cryptography_data.Values.VerificationFailedExceptionThis request failed verification.
Parameters that are used for Derived Unique Key Per Transaction (DUKPT) derivation algorithm.
module IntegerRangeBetween4And12 =
Awso_payment_cryptography_data.Values.IntegerRangeBetween4And12module PinBlockFormatForPinData =
Awso_payment_cryptography_data.Values.PinBlockFormatForPinDatamodule PinVerificationAttributes =
Awso_payment_cryptography_data.Values.PinVerificationAttributesParameters that are required for PIN data verification.
Parameter information of a WrappedKeyBlock for encryption key exchange.
module IntegerRangeBetween4And16 =
Awso_payment_cryptography_data.Values.IntegerRangeBetween4And16Parameters that are required for DUKPT, HMAC, or EMV MAC generation or verification.
module CardVerificationAttributes =
Awso_payment_cryptography_data.Values.CardVerificationAttributesCard data parameters that are requried to verify Card Verification Values (CVV/CVV2), Dynamic Card Verification Values (dCVV/dCVV2), or Card Security Codes (CSC).
module AuthRequestCryptogramType =
Awso_payment_cryptography_data.Values.AuthRequestCryptogramTypeParameters that are required for Authorization Response Cryptogram (ARPC) generation after Authorization Request Cryptogram (ARQC) verification is successful.
Parameters to derive a session key for Authorization Response Cryptogram (ARQC) verification.
module As2805PekDerivationAttributes =
Awso_payment_cryptography_data.Values.As2805PekDerivationAttributesParameter information to use a PEK derived using AS2805.
module DukptDerivationAttributes =
Awso_payment_cryptography_data.Values.DukptDerivationAttributesParameters required for encryption or decryption of data using DUKPT.
module HexEvenLengthBetween16And32 =
Awso_payment_cryptography_data.Values.HexEvenLengthBetween16And32Parameters that are required for translation between ISO9564 PIN block formats 0,1,3,4.
The parameter information of the outgoing wrapped key block.
Parameter information of the incoming WrappedKeyBlock containing the transaction key.
Parameter information of the outgoing TR31WrappedKeyBlock containing the transaction key.
Parameters that are required to perform reencryption operation.
Parameters that are required to generate, translate, or verify PIN data.
module PinGenerationAttributes =
Awso_payment_cryptography_data.Values.PinGenerationAttributesParameters that are required for PIN data generation.
module VisaAmexDerivationOutputs =
Awso_payment_cryptography_data.Values.VisaAmexDerivationOutputsThe attributes values used for Amex and Visa derivation methods.
module DerivationMethodAttributes =
Awso_payment_cryptography_data.Values.DerivationMethodAttributesParameters to derive the payment card specific confidentiality and integrity keys.
module PinBlockFormatForEmvPinChange =
Awso_payment_cryptography_data.Values.PinBlockFormatForEmvPinChangemodule CardGenerationAttributes =
Awso_payment_cryptography_data.Values.CardGenerationAttributesCard data parameters that are required to generate Card Verification Values (CVV/CVV2), Dynamic Card Verification Values (dCVV/dCVV2), or Card Security Codes (CSC).
module IntegerRangeBetween3And5Type =
Awso_payment_cryptography_data.Values.IntegerRangeBetween3And5Typemodule As2805KekValidationType =
Awso_payment_cryptography_data.Values.As2805KekValidationTypeParameter information for generating a random key for KEK validation to perform node-to-node initialization.
module RandomKeySendVariantMask =
Awso_payment_cryptography_data.Values.RandomKeySendVariantMaskmodule EncryptionDecryptionAttributes =
Awso_payment_cryptography_data.Values.EncryptionDecryptionAttributesParameters that are required to perform encryption and decryption operations.
Verifies pin-related data such as PIN and PIN Offset using algorithms including VISA PVV and IBM3624. For more information, see Verify PIN data in the Amazon Web Services Payment Cryptography User Guide. This operation verifies PIN data for user payment card. A card holder PIN data is never transmitted in clear to or from Amazon Web Services Payment Cryptography. This operation uses PIN Verification Key (PVK) for PIN or PIN Offset generation and then encrypts it using PIN Encryption Key (PEK) to create an EncryptedPinBlock for transmission from Amazon Web Services Payment Cryptography. 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: GeneratePinData TranslatePinData
Verifies pin-related data such as PIN and PIN Offset using algorithms including VISA PVV and IBM3624. For more information, see Verify PIN data in the Amazon Web Services Payment Cryptography User Guide. This operation verifies PIN data for user payment card. A card holder PIN data is never transmitted in clear to or from Amazon Web Services Payment Cryptography. This operation uses PIN Verification Key (PVK) for PIN or PIN Offset generation and then encrypts it using PIN Encryption Key (PEK) to create an EncryptedPinBlock for transmission from Amazon Web Services Payment Cryptography. 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: GeneratePinData TranslatePinData
Verifies a Message Authentication Code (MAC). You can use this operation to verify MAC for message data authentication such as . In this operation, you must use the same message data, secret encryption key and MAC algorithm that was used to generate MAC. You can use this operation to verify a DUPKT, CMAC, HMAC or EMV MAC by setting generation attributes and algorithm to the associated values. 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: GenerateMac
Verifies a Message Authentication Code (MAC). You can use this operation to verify MAC for message data authentication such as . In this operation, you must use the same message data, secret encryption key and MAC algorithm that was used to generate MAC. You can use this operation to verify a DUPKT, CMAC, HMAC or EMV MAC by setting generation attributes and algorithm to the associated values. 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: GenerateMac
module VerifyCardValidationDataOutput =
Awso_payment_cryptography_data.Values.VerifyCardValidationDataOutputVerifies card-related validation data using algorithms such as Card Verification Values (CVV/CVV2), Dynamic Card Verification Values (dCVV/dCVV2) and Card Security Codes (CSC). For more information, see Verify card data in the Amazon Web Services Payment Cryptography User Guide. This operation validates the CVV or CSC codes that is printed on a payment credit or debit card during card payment transaction. The input values are typically provided as part of an inbound transaction to an issuer or supporting platform partner. Amazon Web Services Payment Cryptography uses CVV or CSC, PAN (Primary Account Number) and expiration date of the card to check its validity during transaction processing. In this operation, the CVK (Card Verification Key) encryption key for use with card data verification is same as the one in used for GenerateCardValidationData. 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: GenerateCardValidationData VerifyAuthRequestCryptogram VerifyPinData
module VerifyCardValidationDataInput =
Awso_payment_cryptography_data.Values.VerifyCardValidationDataInputVerifies card-related validation data using algorithms such as Card Verification Values (CVV/CVV2), Dynamic Card Verification Values (dCVV/dCVV2) and Card Security Codes (CSC). For more information, see Verify card data in the Amazon Web Services Payment Cryptography User Guide. This operation validates the CVV or CSC codes that is printed on a payment credit or debit card during card payment transaction. The input values are typically provided as part of an inbound transaction to an issuer or supporting platform partner. Amazon Web Services Payment Cryptography uses CVV or CSC, PAN (Primary Account Number) and expiration date of the card to check its validity during transaction processing. In this operation, the CVK (Card Verification Key) encryption key for use with card data verification is same as the one in used for GenerateCardValidationData. 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: GenerateCardValidationData VerifyAuthRequestCryptogram VerifyPinData
module VerifyAuthRequestCryptogramOutput =
Awso_payment_cryptography_data.Values.VerifyAuthRequestCryptogramOutputVerifies Authorization Request Cryptogram (ARQC) for a EMV chip payment card authorization. For more information, see Verify auth request cryptogram in the Amazon Web Services Payment Cryptography User Guide. ARQC generation is done outside of Amazon Web Services Payment Cryptography and is typically generated on a point of sale terminal for an EMV chip card to obtain payment authorization during transaction time. For ARQC verification, you must first import the ARQC generated outside of Amazon Web Services Payment Cryptography by calling ImportKey. This operation uses the imported ARQC and an major encryption key (DUKPT) created by calling CreateKey to either provide a boolean ARQC verification result or provide an APRC (Authorization Response Cryptogram) response using Method 1 or Method 2. The ARPC_METHOD_1 uses AuthResponseCode to generate ARPC and ARPC_METHOD_2 uses CardStatusUpdate to generate ARPC. 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: VerifyCardValidationData VerifyPinData
module VerifyAuthRequestCryptogramInput =
Awso_payment_cryptography_data.Values.VerifyAuthRequestCryptogramInputVerifies Authorization Request Cryptogram (ARQC) for a EMV chip payment card authorization. For more information, see Verify auth request cryptogram in the Amazon Web Services Payment Cryptography User Guide. ARQC generation is done outside of Amazon Web Services Payment Cryptography and is typically generated on a point of sale terminal for an EMV chip card to obtain payment authorization during transaction time. For ARQC verification, you must first import the ARQC generated outside of Amazon Web Services Payment Cryptography by calling ImportKey. This operation uses the imported ARQC and an major encryption key (DUKPT) created by calling CreateKey to either provide a boolean ARQC verification result or provide an APRC (Authorization Response Cryptogram) response using Method 1 or Method 2. The ARPC_METHOD_1 uses AuthResponseCode to generate ARPC and ARPC_METHOD_2 uses CardStatusUpdate to generate ARPC. 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: VerifyCardValidationData VerifyPinData
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 a PIN block from one encryption key to another and optionally change its format. PIN block translation occurs entirely within the HSM boundary and PIN data never enters or leaves Amazon Web Services Payment Cryptography in clear text. 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 also supports use of dynamic keys and ECDH (Elliptic Curve Diffie-Hellman) based key exchange for this operation. Dynamic keys allow you to pass a PEK as a TR-31 WrappedKeyBlock. They can be used when key material is frequently rotated, such as during every card transaction, and there is need to avoid importing short-lived keys into Amazon Web Services Payment Cryptography. To translate PIN block using dynamic keys, the keyARN is the Key Encryption Key (KEK) of the TR-31 wrapped PEK. The incoming wrapped key shall have a key purpose of P0 with a mode of use of B or D. For more information, see Using Dynamic Keys in the Amazon Web Services Payment Cryptography User Guide. 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, which is translated to a PEK encrypted PIN block for use within the service. You can also use ECDH for reveal PIN, wherein the service translates the PIN block from PEK to a ECDH derived encryption key. For more information on establishing ECDH derived keys, see the Creating keys in the Amazon Web Services Payment Cryptography User Guide. 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: GeneratePinData VerifyPinData
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 a PIN block from one encryption key to another and optionally change its format. PIN block translation occurs entirely within the HSM boundary and PIN data never enters or leaves Amazon Web Services Payment Cryptography in clear text. 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 also supports use of dynamic keys and ECDH (Elliptic Curve Diffie-Hellman) based key exchange for this operation. Dynamic keys allow you to pass a PEK as a TR-31 WrappedKeyBlock. They can be used when key material is frequently rotated, such as during every card transaction, and there is need to avoid importing short-lived keys into Amazon Web Services Payment Cryptography. To translate PIN block using dynamic keys, the keyARN is the Key Encryption Key (KEK) of the TR-31 wrapped PEK. The incoming wrapped key shall have a key purpose of P0 with a mode of use of B or D. For more information, see Using Dynamic Keys in the Amazon Web Services Payment Cryptography User Guide. 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, which is translated to a PEK encrypted PIN block for use within the service. You can also use ECDH for reveal PIN, wherein the service translates the PIN block from PEK to a ECDH derived encryption key. For more information on establishing ECDH derived keys, see the Creating keys in the Amazon Web Services Payment Cryptography User Guide. 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: GeneratePinData VerifyPinData
module TranslateKeyMaterialOutput =
Awso_payment_cryptography_data.Values.TranslateKeyMaterialOutputTranslates an cryptographic key between different wrapping keys without importing the key into Amazon Web Services Payment Cryptography. This operation can be used when key material is frequently rotated, such as during every card transaction, and there is a need to avoid importing short-lived keys into Amazon Web Services Payment Cryptography. It translates short-lived transaction keys such as PEK generated for each transaction and wrapped with an ECDH derived wrapping key to another KEK wrapping key. Before using this operation, you must first request the public key certificate of the ECC key pair generated within Amazon Web Services Payment Cryptography to establish an ECDH key agreement. In TranslateKeyData, the service uses its own ECC key pair, public certificate of receiving ECC key pair, and the key derivation parameters to generate a derived key. The service uses this derived key to unwrap the incoming transaction key received as a TR31WrappedKeyBlock and re-wrap using a user provided KEK to generate an outgoing Tr31WrappedKeyBlock. 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: CreateKey GetPublicCertificate ImportKey
module TranslateKeyMaterialInput =
Awso_payment_cryptography_data.Values.TranslateKeyMaterialInputTranslates an cryptographic key between different wrapping keys without importing the key into Amazon Web Services Payment Cryptography. This operation can be used when key material is frequently rotated, such as during every card transaction, and there is a need to avoid importing short-lived keys into Amazon Web Services Payment Cryptography. It translates short-lived transaction keys such as PEK generated for each transaction and wrapped with an ECDH derived wrapping key to another KEK wrapping key. Before using this operation, you must first request the public key certificate of the ECC key pair generated within Amazon Web Services Payment Cryptography to establish an ECDH key agreement. In TranslateKeyData, the service uses its own ECC key pair, public certificate of receiving ECC key pair, and the key derivation parameters to generate a derived key. The service uses this derived key to unwrap the incoming transaction key received as a TR31WrappedKeyBlock and re-wrap using a user provided KEK to generate an outgoing Tr31WrappedKeyBlock. 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: CreateKey GetPublicCertificate ImportKey
Re-encrypt ciphertext using DUKPT or Symmetric 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. This operation also supports dynamic keys, allowing you to pass a dynamic encryption key as a TR-31 WrappedKeyBlock. This can be used when key material is frequently rotated, such as during every card transaction, and there is need to avoid importing short-lived keys into Amazon Web Services Payment Cryptography. To re-encrypt using dynamic keys, the keyARN is the Key Encryption Key (KEK) of the TR-31 wrapped encryption key material. The incoming wrapped key shall have a key purpose of D0 with a mode of use of B or D. For more information, see Using Dynamic Keys in the Amazon Web Services Payment Cryptography User Guide. For symmetric and DUKPT encryption, Amazon Web Services Payment Cryptography supports TDES and AES algorithms. 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: DecryptData EncryptData GetPublicCertificate ImportKey
Re-encrypt ciphertext using DUKPT or Symmetric 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. This operation also supports dynamic keys, allowing you to pass a dynamic encryption key as a TR-31 WrappedKeyBlock. This can be used when key material is frequently rotated, such as during every card transaction, and there is need to avoid importing short-lived keys into Amazon Web Services Payment Cryptography. To re-encrypt using dynamic keys, the keyARN is the Key Encryption Key (KEK) of the TR-31 wrapped encryption key material. The incoming wrapped key shall have a key purpose of D0 with a mode of use of B or D. For more information, see Using Dynamic Keys in the Amazon Web Services Payment Cryptography User Guide. For symmetric and DUKPT encryption, Amazon Web Services Payment Cryptography supports TDES and AES algorithms. 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: DecryptData EncryptData GetPublicCertificate ImportKey
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 can't be used across different Amazon Web Services accounts. Related operations: GenerateCardValidationData TranslatePinData VerifyPinData
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 can't be used across different Amazon Web Services accounts. Related operations: GenerateCardValidationData TranslatePinData VerifyPinData
Generates a Message Authentication Code (MAC) cryptogram within Amazon Web Services Payment Cryptography. You can use this operation to authenticate card-related data by using known data values to generate MAC for data validation between the sending and receiving parties. This operation uses message data, a secret encryption key and MAC algorithm to generate a unique MAC value for transmission. The receiving party of the MAC must use the same message data, secret encryption key and MAC algorithm to reproduce another MAC value for comparision. You can use this operation to generate a DUPKT, CMAC, HMAC or EMV MAC by setting generation attributes and algorithm to the associated values. The MAC generation encryption key must have valid values for KeyUsage such as TR31_M7_HMAC_KEY for HMAC generation, and the key must have KeyModesOfUse set to Generate. 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: VerifyMac
Generates a Message Authentication Code (MAC) cryptogram within Amazon Web Services Payment Cryptography. You can use this operation to authenticate card-related data by using known data values to generate MAC for data validation between the sending and receiving parties. This operation uses message data, a secret encryption key and MAC algorithm to generate a unique MAC value for transmission. The receiving party of the MAC must use the same message data, secret encryption key and MAC algorithm to reproduce another MAC value for comparision. You can use this operation to generate a DUPKT, CMAC, HMAC or EMV MAC by setting generation attributes and algorithm to the associated values. The MAC generation encryption key must have valid values for KeyUsage such as TR31_M7_HMAC_KEY for HMAC generation, and the key must have KeyModesOfUse set to Generate. 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: VerifyMac
module GenerateMacEmvPinChangeOutput =
Awso_payment_cryptography_data.Values.GenerateMacEmvPinChangeOutputGenerates an issuer script mac for EMV payment cards that use offline PINs as the cardholder verification method (CVM). This operation generates an authenticated issuer script response by appending the incoming message data (APDU command) with the target encrypted PIN block in ISO2 format. The command structure and method to send the issuer script update to the card is not defined by this operation and is typically determined by the applicable payment card scheme. The primary inputs to this operation include the incoming new encrypted pinblock, PIN encryption key (PEK), issuer master key (IMK), primary account number (PAN), and the payment card derivation method. The operation uses two issuer master keys - secure messaging for confidentiality (IMK-SMC) and secure messaging for integrity (IMK-SMI). The SMC key is used to internally derive a key to secure the pin, while SMI key is used to internally derive a key to authenticate the script reponse as per the EMV 4.4 - Book 2 - Security and Key Management specification. This operation supports Amex, EMV2000, EMVCommon, Mastercard and Visa derivation methods, each requiring specific input parameters. Users must follow the specific derivation method and input parameters defined by the respective payment card scheme. Use GenerateMac operation when sending a script update to an EMV card that does not involve PIN change. When assigning IAM permissions, it is important to understand that EncryptData using EMV keys and GenerateMac perform similar functions to this command. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: EncryptData GenerateMac
module GenerateMacEmvPinChangeInput =
Awso_payment_cryptography_data.Values.GenerateMacEmvPinChangeInputGenerates an issuer script mac for EMV payment cards that use offline PINs as the cardholder verification method (CVM). This operation generates an authenticated issuer script response by appending the incoming message data (APDU command) with the target encrypted PIN block in ISO2 format. The command structure and method to send the issuer script update to the card is not defined by this operation and is typically determined by the applicable payment card scheme. The primary inputs to this operation include the incoming new encrypted pinblock, PIN encryption key (PEK), issuer master key (IMK), primary account number (PAN), and the payment card derivation method. The operation uses two issuer master keys - secure messaging for confidentiality (IMK-SMC) and secure messaging for integrity (IMK-SMI). The SMC key is used to internally derive a key to secure the pin, while SMI key is used to internally derive a key to authenticate the script reponse as per the EMV 4.4 - Book 2 - Security and Key Management specification. This operation supports Amex, EMV2000, EMVCommon, Mastercard and Visa derivation methods, each requiring specific input parameters. Users must follow the specific derivation method and input parameters defined by the respective payment card scheme. Use GenerateMac operation when sending a script update to an EMV card that does not involve PIN change. When assigning IAM permissions, it is important to understand that EncryptData using EMV keys and GenerateMac perform similar functions to this command. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: EncryptData GenerateMac
module GenerateCardValidationDataOutput =
Awso_payment_cryptography_data.Values.GenerateCardValidationDataOutputGenerates card-related validation data using algorithms such as Card Verification Values (CVV/CVV2), Dynamic Card Verification Values (dCVV/dCVV2), or Card Security Codes (CSC). For more information, see Generate card data in the Amazon Web Services Payment Cryptography User Guide. This operation generates a CVV or CSC value that is printed on a payment credit or debit card during card production. The CVV or CSC, PAN (Primary Account Number) and expiration date of the card are required to check its validity during transaction processing. To begin this operation, a CVK (Card Verification Key) encryption key is required. You can use CreateKey or ImportKey to establish a CVK within Amazon Web Services Payment Cryptography. The KeyModesOfUse should be set to Generate and Verify for a CVK encryption key. 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: ImportKey VerifyCardValidationData
module GenerateCardValidationDataInput =
Awso_payment_cryptography_data.Values.GenerateCardValidationDataInputGenerates card-related validation data using algorithms such as Card Verification Values (CVV/CVV2), Dynamic Card Verification Values (dCVV/dCVV2), or Card Security Codes (CSC). For more information, see Generate card data in the Amazon Web Services Payment Cryptography User Guide. This operation generates a CVV or CSC value that is printed on a payment credit or debit card during card production. The CVV or CSC, PAN (Primary Account Number) and expiration date of the card are required to check its validity during transaction processing. To begin this operation, a CVK (Card Verification Key) encryption key is required. You can use CreateKey or ImportKey to establish a CVK within Amazon Web Services Payment Cryptography. The KeyModesOfUse should be set to Generate and Verify for a CVK encryption key. 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: ImportKey VerifyCardValidationData
module GenerateAs2805KekValidationOutput =
Awso_payment_cryptography_data.Values.GenerateAs2805KekValidationOutputEstablishes node-to-node initialization between payment processing nodes such as an acquirer, issuer or payment network using Australian Standard 2805 (AS2805). During node-to-node initialization, both communicating nodes must validate that they possess the correct Key Encrypting Keys (KEKs) before proceeding with session key exchange. In AS2805, the sending KEK (KEKs) of one node corresponds to the receiving KEK (KEKr) of its partner node. Each node uses its KEK to encrypt and decrypt session keys exchanged between the nodes. A KEK can be created or imported into Amazon Web Services Payment Cryptography using either the CreateKey or ImportKey operations. The node initiating communication can use GenerateAS2805KekValidation to generate a combined KEK validation request and KEK validation response to send to the partnering node for validation. When invoked, the API internally generates a random sending key encrypted under KEKs and provides a receiving key encrypted under KEKr as response. The initiating node sends the response returned by this API to its partner for validation. 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.
module GenerateAs2805KekValidationInput =
Awso_payment_cryptography_data.Values.GenerateAs2805KekValidationInputEstablishes node-to-node initialization between payment processing nodes such as an acquirer, issuer or payment network using Australian Standard 2805 (AS2805). During node-to-node initialization, both communicating nodes must validate that they possess the correct Key Encrypting Keys (KEKs) before proceeding with session key exchange. In AS2805, the sending KEK (KEKs) of one node corresponds to the receiving KEK (KEKr) of its partner node. Each node uses its KEK to encrypt and decrypt session keys exchanged between the nodes. A KEK can be created or imported into Amazon Web Services Payment Cryptography using either the CreateKey or ImportKey operations. The node initiating communication can use GenerateAS2805KekValidation to generate a combined KEK validation request and KEK validation response to send to the partnering node for validation. When invoked, the API internally generates a random sending key encrypted under KEKs and provides a receiving key encrypted under KEKr as response. The initiating node sends the response returned by this API to its partner for validation. 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.
Encrypts plaintext data to ciphertext using a symmetric (TDES, AES), asymmetric (RSA), or derived (DUKPT or EMV) encryption key scheme. For more information, see Encrypt data in the Amazon Web Services Payment Cryptography User Guide. You can generate an encryption key within Amazon Web Services Payment Cryptography by calling CreateKey. You can import your own encryption key by calling ImportKey. For this operation, the key must have KeyModesOfUse set to Encrypt. In asymmetric encryption, plaintext is encrypted using public component. You can import the public component of an asymmetric key pair created outside Amazon Web Services Payment Cryptography by calling ImportKey. This operation also supports dynamic keys, allowing you to pass a dynamic encryption key as a TR-31 WrappedKeyBlock. This can be used when key material is frequently rotated, such as during every card transaction, and there is need to avoid importing short-lived keys into Amazon Web Services Payment Cryptography. To encrypt using dynamic keys, the keyARN is the Key Encryption Key (KEK) of the TR-31 wrapped encryption key material. The incoming wrapped key shall have a key purpose of D0 with a mode of use of B or D. For more information, see Using Dynamic Keys in the Amazon Web Services Payment Cryptography User Guide. For symmetric and DUKPT encryption, Amazon Web Services Payment Cryptography supports TDES and AES algorithms. For EMV encryption, Amazon Web Services Payment Cryptography supports TDES algorithms.For asymmetric encryption, Amazon Web Services Payment Cryptography supports RSA. When you use TDES or TDES DUKPT, the plaintext data length must be a multiple of 8 bytes. For AES or AES DUKPT, the plaintext data length must be a multiple of 16 bytes. For RSA, it sould be equal to the key size unless padding is enabled. To encrypt using DUKPT, you must already have a BDK (Base Derivation Key) key in your account with KeyModesOfUse set to DeriveKey, or you can generate a new DUKPT key by calling CreateKey. To encrypt using EMV, you must already have an IMK (Issuer Master Key) key in your account with KeyModesOfUse set to DeriveKey. 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: DecryptData GetPublicCertificate ImportKey ReEncryptData
Encrypts plaintext data to ciphertext using a symmetric (TDES, AES), asymmetric (RSA), or derived (DUKPT or EMV) encryption key scheme. For more information, see Encrypt data in the Amazon Web Services Payment Cryptography User Guide. You can generate an encryption key within Amazon Web Services Payment Cryptography by calling CreateKey. You can import your own encryption key by calling ImportKey. For this operation, the key must have KeyModesOfUse set to Encrypt. In asymmetric encryption, plaintext is encrypted using public component. You can import the public component of an asymmetric key pair created outside Amazon Web Services Payment Cryptography by calling ImportKey. This operation also supports dynamic keys, allowing you to pass a dynamic encryption key as a TR-31 WrappedKeyBlock. This can be used when key material is frequently rotated, such as during every card transaction, and there is need to avoid importing short-lived keys into Amazon Web Services Payment Cryptography. To encrypt using dynamic keys, the keyARN is the Key Encryption Key (KEK) of the TR-31 wrapped encryption key material. The incoming wrapped key shall have a key purpose of D0 with a mode of use of B or D. For more information, see Using Dynamic Keys in the Amazon Web Services Payment Cryptography User Guide. For symmetric and DUKPT encryption, Amazon Web Services Payment Cryptography supports TDES and AES algorithms. For EMV encryption, Amazon Web Services Payment Cryptography supports TDES algorithms.For asymmetric encryption, Amazon Web Services Payment Cryptography supports RSA. When you use TDES or TDES DUKPT, the plaintext data length must be a multiple of 8 bytes. For AES or AES DUKPT, the plaintext data length must be a multiple of 16 bytes. For RSA, it sould be equal to the key size unless padding is enabled. To encrypt using DUKPT, you must already have a BDK (Base Derivation Key) key in your account with KeyModesOfUse set to DeriveKey, or you can generate a new DUKPT key by calling CreateKey. To encrypt using EMV, you must already have an IMK (Issuer Master Key) key in your account with KeyModesOfUse set to DeriveKey. 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: DecryptData GetPublicCertificate ImportKey ReEncryptData
Decrypts ciphertext data to plaintext using a symmetric (TDES, AES), asymmetric (RSA), or derived (DUKPT or EMV) encryption key scheme. For more information, see Decrypt data in the Amazon Web Services Payment Cryptography User Guide. You can use an decryption key generated within Amazon Web Services Payment Cryptography, or you can import your own decryption key by calling ImportKey. For this operation, the key must have KeyModesOfUse set to Decrypt. In asymmetric decryption, Amazon Web Services Payment Cryptography decrypts the ciphertext using the private component of the asymmetric encryption key pair. For data encryption outside of Amazon Web Services Payment Cryptography, you can export the public component of the asymmetric key pair by calling GetPublicCertificate. This operation also supports dynamic keys, allowing you to pass a dynamic decryption key as a TR-31 WrappedKeyBlock. This can be used when key material is frequently rotated, such as during every card transaction, and there is need to avoid importing short-lived keys into Amazon Web Services Payment Cryptography. To decrypt using dynamic keys, the keyARN is the Key Encryption Key (KEK) of the TR-31 wrapped decryption key material. The incoming wrapped key shall have a key purpose of D0 with a mode of use of B or D. For more information, see Using Dynamic Keys in the Amazon Web Services Payment Cryptography User Guide. For symmetric and DUKPT decryption, Amazon Web Services Payment Cryptography supports TDES and AES algorithms. For EMV decryption, Amazon Web Services Payment Cryptography supports TDES algorithms. For asymmetric decryption, Amazon Web Services Payment Cryptography supports RSA. When you use TDES or TDES DUKPT, the ciphertext data length must be a multiple of 8 bytes. For AES or AES DUKPT, the ciphertext data length must be a multiple of 16 bytes. For RSA, it sould be equal to the key size unless padding is enabled. 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: EncryptData GetPublicCertificate ImportKey
Decrypts ciphertext data to plaintext using a symmetric (TDES, AES), asymmetric (RSA), or derived (DUKPT or EMV) encryption key scheme. For more information, see Decrypt data in the Amazon Web Services Payment Cryptography User Guide. You can use an decryption key generated within Amazon Web Services Payment Cryptography, or you can import your own decryption key by calling ImportKey. For this operation, the key must have KeyModesOfUse set to Decrypt. In asymmetric decryption, Amazon Web Services Payment Cryptography decrypts the ciphertext using the private component of the asymmetric encryption key pair. For data encryption outside of Amazon Web Services Payment Cryptography, you can export the public component of the asymmetric key pair by calling GetPublicCertificate. This operation also supports dynamic keys, allowing you to pass a dynamic decryption key as a TR-31 WrappedKeyBlock. This can be used when key material is frequently rotated, such as during every card transaction, and there is need to avoid importing short-lived keys into Amazon Web Services Payment Cryptography. To decrypt using dynamic keys, the keyARN is the Key Encryption Key (KEK) of the TR-31 wrapped decryption key material. The incoming wrapped key shall have a key purpose of D0 with a mode of use of B or D. For more information, see Using Dynamic Keys in the Amazon Web Services Payment Cryptography User Guide. For symmetric and DUKPT decryption, Amazon Web Services Payment Cryptography supports TDES and AES algorithms. For EMV decryption, Amazon Web Services Payment Cryptography supports TDES algorithms. For asymmetric decryption, Amazon Web Services Payment Cryptography supports RSA. When you use TDES or TDES DUKPT, the ciphertext data length must be a multiple of 8 bytes. For AES or AES DUKPT, the ciphertext data length must be a multiple of 16 bytes. For RSA, it sould be equal to the key size unless padding is enabled. 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: EncryptData GetPublicCertificate ImportKey