Skip to content

Commit 7c21218

Browse files
author
awstools
committed
feat(client-payment-cryptography-data): Make KeyCheckValue field optional when using asymmetric keys as Key Check Values typically only apply to symmetric keys
1 parent 1d43c19 commit 7c21218

File tree

3 files changed

+115
-70
lines changed

3 files changed

+115
-70
lines changed

clients/client-payment-cryptography-data/src/commands/EncryptDataCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export interface EncryptDataCommandOutput extends EncryptDataOutput, __MetadataB
107107
* const response = await client.send(command);
108108
* // { // EncryptDataOutput
109109
* // KeyArn: "STRING_VALUE", // required
110-
* // KeyCheckValue: "STRING_VALUE", // required
110+
* // KeyCheckValue: "STRING_VALUE",
111111
* // CipherText: "STRING_VALUE", // required
112112
* // };
113113
*

clients/client-payment-cryptography-data/src/models/models_0.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ export interface EncryptDataOutput {
11051105
* @public
11061106
* <p>The key check value (KCV) of the encryption key. The KCV is used to check if all parties holding a given key have the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography calculates the KCV by using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and then truncating the result to the first 3 bytes, or 6 hex digits, of the resulting cryptogram.</p>
11071107
*/
1108-
KeyCheckValue: string | undefined;
1108+
KeyCheckValue?: string;
11091109

11101110
/**
11111111
* @public
@@ -2931,6 +2931,7 @@ export const MacAttributesFilterSensitiveLog = (obj: MacAttributes): any => {
29312931
*/
29322932
export const GenerateMacInputFilterSensitiveLog = (obj: GenerateMacInput): any => ({
29332933
...obj,
2934+
...(obj.MessageData && { MessageData: SENSITIVE_STRING }),
29342935
...(obj.GenerationAttributes && { GenerationAttributes: MacAttributesFilterSensitiveLog(obj.GenerationAttributes) }),
29352936
});
29362937

@@ -3007,6 +3008,7 @@ export const TranslatePinDataInputFilterSensitiveLog = (obj: TranslatePinDataInp
30073008
...(obj.OutgoingTranslationAttributes && {
30083009
OutgoingTranslationAttributes: TranslationIsoFormatsFilterSensitiveLog(obj.OutgoingTranslationAttributes),
30093010
}),
3011+
...(obj.EncryptedPinBlock && { EncryptedPinBlock: SENSITIVE_STRING }),
30103012
});
30113013

30123014
/**
@@ -3086,6 +3088,8 @@ export const VerifyCardValidationDataInputFilterSensitiveLog = (obj: VerifyCardV
30863088
*/
30873089
export const VerifyMacInputFilterSensitiveLog = (obj: VerifyMacInput): any => ({
30883090
...obj,
3091+
...(obj.MessageData && { MessageData: SENSITIVE_STRING }),
3092+
...(obj.Mac && { Mac: SENSITIVE_STRING }),
30893093
...(obj.VerificationAttributes && {
30903094
VerificationAttributes: MacAttributesFilterSensitiveLog(obj.VerificationAttributes),
30913095
}),

0 commit comments

Comments
 (0)