AWS Tools for Windows PowerShell
Command Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Synopsis

Calls the Payment Cryptography Data GenerateMacEmvPinChange API operation.

Syntax

New-PAYCDMacEmvPinChange
-EmvCommon_ApplicationCryptogram <String>
-Mastercard_ApplicationCryptogram <String>
-Amex_ApplicationTransactionCounter <String>
-Emv2000_ApplicationTransactionCounter <String>
-Visa_ApplicationTransactionCounter <String>
-Amex_AuthorizationRequestKeyIdentifier <String>
-Visa_AuthorizationRequestKeyIdentifier <String>
-DerivationMethodAttributes_Amex_CurrentPinAttributes_CurrentEncryptedPinBlock <String>
-DerivationMethodAttributes_Visa_CurrentPinAttributes_CurrentEncryptedPinBlock <String>
-DerivationMethodAttributes_Amex_CurrentPinAttributes_CurrentPinPekIdentifier <String>
-DerivationMethodAttributes_Visa_CurrentPinAttributes_CurrentPinPekIdentifier <String>
-Amex_MajorKeyDerivationMode <MajorKeyDerivationMode>
-Emv2000_MajorKeyDerivationMode <MajorKeyDerivationMode>
-EmvCommon_MajorKeyDerivationMode <MajorKeyDerivationMode>
-Mastercard_MajorKeyDerivationMode <MajorKeyDerivationMode>
-Visa_MajorKeyDerivationMode <MajorKeyDerivationMode>
-MessageData <String>
-EmvCommon_Mode <EmvEncryptionMode>
-NewEncryptedPinBlock <String>
-NewPinPekIdentifier <String>
-Amex_PanSequenceNumber <String>
-Emv2000_PanSequenceNumber <String>
-EmvCommon_PanSequenceNumber <String>
-Mastercard_PanSequenceNumber <String>
-Visa_PanSequenceNumber <String>
-PinBlockFormat <PinBlockFormatForEmvPinChange>
-EmvCommon_PinBlockLengthPosition <PinBlockLengthPosition>
-EmvCommon_PinBlockPaddingType <PinBlockPaddingType>
-Amex_PrimaryAccountNumber <String>
-Emv2000_PrimaryAccountNumber <String>
-EmvCommon_PrimaryAccountNumber <String>
-Mastercard_PrimaryAccountNumber <String>
-Visa_PrimaryAccountNumber <String>
-SecureMessagingConfidentialityKeyIdentifier <String>
-SecureMessagingIntegrityKeyIdentifier <String>
-Select <String>
-Force <SwitchParameter>
-ClientConfig <AmazonPaymentCryptographyDataConfig>

Description

Generates 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:

Parameters

-Amex_ApplicationTransactionCounter <String>
The transaction counter of the current transaction that is provided by the terminal during transaction processing.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_Amex_ApplicationTransactionCounter
-Amex_AuthorizationRequestKeyIdentifier <String>
The keyArn of the issuer master key for cryptogram (IMK-AC) for the payment card.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_Amex_AuthorizationRequestKeyIdentifier
-Amex_MajorKeyDerivationMode <MajorKeyDerivationMode>
The method to use when deriving the master key for a payment card using Amex derivation.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_Amex_MajorKeyDerivationMode
-Amex_PanSequenceNumber <String>
A number that identifies and differentiates payment cards with the same Primary Account Number (PAN). Typically 00 is used, if no value is provided by the terminal.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_Amex_PanSequenceNumber
-Amex_PrimaryAccountNumber <String>
The Primary Account Number (PAN) of the cardholder.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_Amex_PrimaryAccountNumber
Amazon.PowerShell.Cmdlets.PAYCD.AmazonPaymentCryptographyDataClientCmdlet.ClientConfig
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-DerivationMethodAttributes_Amex_CurrentPinAttributes_CurrentEncryptedPinBlock <String>
The encrypted pinblock of the current pin stored on the chip card.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-DerivationMethodAttributes_Amex_CurrentPinAttributes_CurrentPinPekIdentifier <String>
The keyArn of the current PIN PEK.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-DerivationMethodAttributes_Visa_CurrentPinAttributes_CurrentEncryptedPinBlock <String>
The encrypted pinblock of the current pin stored on the chip card.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-DerivationMethodAttributes_Visa_CurrentPinAttributes_CurrentPinPekIdentifier <String>
The keyArn of the current PIN PEK.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Emv2000_ApplicationTransactionCounter <String>
The transaction counter of the current transaction that is provided by the terminal during transaction processing.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_Emv2000_ApplicationTransactionCounter
-Emv2000_MajorKeyDerivationMode <MajorKeyDerivationMode>
The method to use when deriving the master key for the payment card.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_Emv2000_MajorKeyDerivationMode
-Emv2000_PanSequenceNumber <String>
A number that identifies and differentiates payment cards with the same Primary Account Number (PAN). Typically 00 is used, if no value is provided by the terminal.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_Emv2000_PanSequenceNumber
-Emv2000_PrimaryAccountNumber <String>
The Primary Account Number (PAN) of the cardholder.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_Emv2000_PrimaryAccountNumber
-EmvCommon_ApplicationCryptogram <String>
The application cryptogram for the current transaction that is provided by the terminal during transaction processing.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_EmvCommon_ApplicationCryptogram
-EmvCommon_MajorKeyDerivationMode <MajorKeyDerivationMode>
The method to use when deriving the master key for the payment card.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_EmvCommon_MajorKeyDerivationMode
-EmvCommon_Mode <EmvEncryptionMode>
The block cipher method to use for encryption.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_EmvCommon_Mode
-EmvCommon_PanSequenceNumber <String>
A number that identifies and differentiates payment cards with the same Primary Account Number (PAN). Typically 00 is used, if no value is provided by the terminal.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_EmvCommon_PanSequenceNumber
-EmvCommon_PinBlockLengthPosition <PinBlockLengthPosition>
Specifies if PIN block length should be added to front of the pin block. If value is set to FRONT_OF_PIN_BLOCK, then PIN block padding type should be ISO_IEC_7816_4.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_EmvCommon_PinBlockLengthPosition
-EmvCommon_PinBlockPaddingType <PinBlockPaddingType>
The padding to be added to the PIN block prior to encryption.Padding type should be ISO_IEC_7816_4, if PinBlockLengthPosition is set to FRONT_OF_PIN_BLOCK. No padding is required, if PinBlockLengthPosition is set to NONE.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_EmvCommon_PinBlockPaddingType
-EmvCommon_PrimaryAccountNumber <String>
The Primary Account Number (PAN) of the cardholder.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_EmvCommon_PrimaryAccountNumber
This parameter overrides confirmation prompts to force the cmdlet to continue its operation. This parameter should always be used with caution.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Mastercard_ApplicationCryptogram <String>
The application cryptogram for the current transaction that is provided by the terminal during transaction processing.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_Mastercard_ApplicationCryptogram
-Mastercard_MajorKeyDerivationMode <MajorKeyDerivationMode>
The method to use when deriving the master key for the payment card.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_Mastercard_MajorKeyDerivationMode
-Mastercard_PanSequenceNumber <String>
A number that identifies and differentiates payment cards with the same Primary Account Number (PAN). Typically 00 is used, if no value is provided by the terminal.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_Mastercard_PanSequenceNumber
-Mastercard_PrimaryAccountNumber <String>
The Primary Account Number (PAN) of the cardholder.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_Mastercard_PrimaryAccountNumber
-MessageData <String>
The message data is the APDU command from the card reader or terminal. The target encrypted PIN block, after translation to ISO2 format, is appended to this message data to generate an issuer script response.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-NewEncryptedPinBlock <String>
The incoming new encrypted PIN block data for offline pin change on an EMV card.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-NewPinPekIdentifier <String>
The keyARN of the PEK protecting the incoming new encrypted PIN block.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
The PIN encoding format of the incoming new encrypted PIN block as specified in ISO 9564.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-SecureMessagingConfidentialityKeyIdentifier <String>
The keyARN of the issuer master key (IMK-SMC) used to protect the PIN block data in the issuer script response.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-SecureMessagingIntegrityKeyIdentifier <String>
The keyARN of the issuer master key (IMK-SMI) used to authenticate the issuer script response.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-Select <String>
Use the -Select parameter to control the cmdlet output. The default value is '*'. Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.PaymentCryptographyData.Model.GenerateMacEmvPinChangeResponse). Specifying the name of a property of type Amazon.PaymentCryptographyData.Model.GenerateMacEmvPinChangeResponse will result in that property being returned. Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Visa_ApplicationTransactionCounter <String>
The transaction counter of the current transaction that is provided by the terminal during transaction processing.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_Visa_ApplicationTransactionCounter
-Visa_AuthorizationRequestKeyIdentifier <String>
The keyArn of the issuer master key for cryptogram (IMK-AC) for the payment card.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_Visa_AuthorizationRequestKeyIdentifier
-Visa_MajorKeyDerivationMode <MajorKeyDerivationMode>
The method to use when deriving the master key for the payment card.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_Visa_MajorKeyDerivationMode
-Visa_PanSequenceNumber <String>
A number that identifies and differentiates payment cards with the same Primary Account Number (PAN). Typically 00 is used, if no value is provided by the terminal.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_Visa_PanSequenceNumber
-Visa_PrimaryAccountNumber <String>
The Primary Account Number (PAN) of the cardholder.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesDerivationMethodAttributes_Visa_PrimaryAccountNumber

Common Credential and Region Parameters

-AccessKey <String>
The AWS access key for the user account. This can be a temporary access key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAK
-Credential <AWSCredentials>
An AWSCredentials object instance containing access and secret key information, and optionally a token for session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-EndpointUrl <String>
The endpoint to make the call against.Note: This parameter is primarily for internal AWS use and is not required/should not be specified for normal usage. The cmdlets normally determine which endpoint to call based on the region specified to the -Region parameter or set as default in the shell (via Set-DefaultAWSRegion). Only specify this parameter if you must direct the call to a specific custom endpoint.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NetworkCredential <PSCredential>
Used with SAML-based authentication when ProfileName references a SAML role profile. Contains the network credentials to be supplied during authentication with the configured identity provider's endpoint. This parameter is not required if the user's default network identity can or should be used during authentication.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-ProfileLocation <String>
Used to specify the name and location of the ini-format credential file (shared with the AWS CLI and other AWS SDKs)If this optional parameter is omitted this cmdlet will search the encrypted credential file used by the AWS SDK for .NET and AWS Toolkit for Visual Studio first. If the profile is not found then the cmdlet will search in the ini-format credential file at the default location: (user's home directory)\.aws\credentials.If this parameter is specified then this cmdlet will only search the ini-format credential file at the location given.As the current folder can vary in a shell or during script execution it is advised that you use specify a fully qualified path instead of a relative path.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAWSProfilesLocation, ProfilesLocation
-ProfileName <String>
The user-defined name of an AWS credentials or SAML-based role profile containing credential information. The profile is expected to be found in the secure credential file shared with the AWS SDK for .NET and AWS Toolkit for Visual Studio. You can also specify the name of a profile stored in the .ini-format credential file used with the AWS CLI and other AWS SDKs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesStoredCredentials, AWSProfileName
-Region <Object>
The system name of an AWS region or an AWSRegion instance. This governs the endpoint that will be used when calling service operations. Note that the AWS resources referenced in a call are usually region-specific.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRegionToCall
-SecretKey <String>
The AWS secret key for the user account. This can be a temporary secret key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSK, SecretAccessKey
-SessionToken <String>
The session token if the access and secret keys are temporary session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesST

Outputs

This cmdlet returns an Amazon.PaymentCryptographyData.Model.GenerateMacEmvPinChangeResponse object containing multiple properties.

Supported Version

AWS Tools for PowerShell: 2.x.y.z