@aws-sdk/client-payment-cryptography-data 3.1138.0 → 3.1139.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1137.0";
72
+ var version = "3.1138.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -1074,8 +1074,8 @@ var PinVerificationAttributes$ = [4, n0, _PVA,
1074
1074
  ];
1075
1075
  var ReEncryptionAttributes$ = [4, n0, _REA,
1076
1076
  0,
1077
- [_S, _D],
1078
- [[() => SymmetricEncryptionAttributes$, 0], [() => DukptEncryptionAttributes$, 0]]
1077
+ [_S, _As, _D],
1078
+ [[() => SymmetricEncryptionAttributes$, 0], () => AsymmetricEncryptionAttributes$, [() => DukptEncryptionAttributes$, 0]]
1079
1079
  ];
1080
1080
  var SessionKeyDerivation$ = [4, n0, _SKD,
1081
1081
  0,
@@ -850,8 +850,8 @@ export var PinVerificationAttributes$ = [4, n0, _PVA,
850
850
  ];
851
851
  export var ReEncryptionAttributes$ = [4, n0, _REA,
852
852
  0,
853
- [_S, _D],
854
- [[() => SymmetricEncryptionAttributes$, 0], [() => DukptEncryptionAttributes$, 0]]
853
+ [_S, _As, _D],
854
+ [[() => SymmetricEncryptionAttributes$, 0], () => AsymmetricEncryptionAttributes$, [() => DukptEncryptionAttributes$, 0]]
855
855
  ];
856
856
  export var SessionKeyDerivation$ = [4, n0, _SKD,
857
857
  0,
@@ -24,7 +24,7 @@ declare const ReEncryptDataCommand_base: {
24
24
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
25
  };
26
26
  /**
27
- * <p>Re-encrypt ciphertext using DUKPT or Symmetric data encryption keys. </p> <p>You can either generate an encryption key within Amazon Web Services Payment Cryptography by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateKey.html">CreateKey</a> or import your own encryption key by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a>. The <code>KeyArn</code> for use with this operation must be in a compatible key state with <code>KeyModesOfUse</code> set to <code>Encrypt</code>. </p> <p>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 <code>keyARN</code> 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 <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/use-cases-acquirers-dynamickeys.html">Using Dynamic Keys</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.</p> <p>For symmetric and DUKPT encryption, Amazon Web Services Payment Cryptography supports <code>TDES</code> and <code>AES</code> algorithms. To encrypt using DUKPT, a DUKPT key must already exist within your account with <code>KeyModesOfUse</code> set to <code>DeriveKey</code> or a new DUKPT can be generated by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateKey.html">CreateKey</a>.</p> <p>For information about valid keys for this operation, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-validattributes.html">Understanding key attributes</a> and <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/crypto-ops-validkeys-ops.html">Key types for specific data operations</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>. </p> <p> <b>Cross-account use</b>: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/security_iam_resource-based-policies.html">Resource-based policies</a>.</p> <p> <b>Related operations:</b> </p> <ul> <li> <p> <a>DecryptData</a> </p> </li> <li> <p> <a>EncryptData</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetPublicKeyCertificate.html">GetPublicCertificate</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a> </p> </li> </ul>
27
+ * <p>Re-encrypts ciphertext using DUKPT, symmetric, or asymmetric data encryption keys. </p> <p>You can either generate an encryption key within Amazon Web Services Payment Cryptography by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateKey.html">CreateKey</a> or import your own encryption key by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a>. The <code>KeyArn</code> for use with this operation must be in a compatible key state with <code>KeyModesOfUse</code> set to <code>Encrypt</code>. </p> <p>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 <code>keyARN</code> 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 <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/use-cases-acquirers-dynamickeys.html">Using Dynamic Keys</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.</p> <p>Amazon Web Services Payment Cryptography supports the following encryption key schemes:</p> <ul> <li> <p> <b>DUKPT</b>: <code>TDES</code> and <code>AES</code> algorithms. To encrypt using DUKPT, a DUKPT key must already exist within your account with <code>KeyModesOfUse</code> set to <code>DeriveKey</code> or a new DUKPT can be generated by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateKey.html">CreateKey</a>.</p> </li> <li> <p> <b>Symmetric</b>: <code>TDES</code> and <code>AES</code> algorithms.</p> </li> <li> <p> <b>Asymmetric</b>: <code>RSA</code>. You can use an <code>RSA</code> key on either the incoming or the outgoing side, paired with a symmetric key on the other side.</p> </li> </ul> <p>For information about valid keys for this operation, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-validattributes.html">Understanding key attributes</a> and <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/crypto-ops-validkeys-ops.html">Key types for specific data operations</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>. </p> <p> <b>Cross-account use</b>: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/security_iam_resource-based-policies.html">Resource-based policies</a>.</p> <p> <b>Related operations:</b> </p> <ul> <li> <p> <a>DecryptData</a> </p> </li> <li> <p> <a>EncryptData</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetPublicKeyCertificate.html">GetPublicCertificate</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a> </p> </li> </ul>
28
28
  * @example
29
29
  * Use a bare-bones client and the command you need to make an API call.
30
30
  * ```javascript
@@ -43,6 +43,9 @@ declare const ReEncryptDataCommand_base: {
43
43
  * InitializationVector: "STRING_VALUE",
44
44
  * PaddingType: "PKCS1" || "OAEP_SHA1" || "OAEP_SHA256" || "OAEP_SHA512",
45
45
  * },
46
+ * Asymmetric: { // AsymmetricEncryptionAttributes
47
+ * PaddingType: "PKCS1" || "OAEP_SHA1" || "OAEP_SHA256" || "OAEP_SHA512",
48
+ * },
46
49
  * Dukpt: { // DukptEncryptionAttributes
47
50
  * KeySerialNumber: "STRING_VALUE", // required
48
51
  * Mode: "ECB" || "CBC",
@@ -57,6 +60,9 @@ declare const ReEncryptDataCommand_base: {
57
60
  * InitializationVector: "STRING_VALUE",
58
61
  * PaddingType: "PKCS1" || "OAEP_SHA1" || "OAEP_SHA256" || "OAEP_SHA512",
59
62
  * },
63
+ * Asymmetric: {
64
+ * PaddingType: "PKCS1" || "OAEP_SHA1" || "OAEP_SHA256" || "OAEP_SHA512",
65
+ * },
60
66
  * Dukpt: {
61
67
  * KeySerialNumber: "STRING_VALUE", // required
62
68
  * Mode: "ECB" || "CBC",
@@ -2549,26 +2549,38 @@ export declare namespace OutgoingKeyMaterial {
2549
2549
  * <p>Parameters that are required to perform reencryption operation.</p>
2550
2550
  * @public
2551
2551
  */
2552
- export type ReEncryptionAttributes = ReEncryptionAttributes.DukptMember | ReEncryptionAttributes.SymmetricMember | ReEncryptionAttributes.$UnknownMember;
2552
+ export type ReEncryptionAttributes = ReEncryptionAttributes.AsymmetricMember | ReEncryptionAttributes.DukptMember | ReEncryptionAttributes.SymmetricMember | ReEncryptionAttributes.$UnknownMember;
2553
2553
  /**
2554
2554
  * @public
2555
2555
  */
2556
2556
  export declare namespace ReEncryptionAttributes {
2557
2557
  /**
2558
- * <p>Parameters that are required to encrypt data using symmetric keys.</p>
2558
+ * <p>Specifies the parameters required to encrypt data using symmetric keys.</p>
2559
2559
  * @public
2560
2560
  */
2561
2561
  interface SymmetricMember {
2562
2562
  Symmetric: SymmetricEncryptionAttributes;
2563
+ Asymmetric?: never;
2563
2564
  Dukpt?: never;
2564
2565
  $unknown?: never;
2565
2566
  }
2566
2567
  /**
2567
- * <p>Parameters that are required to encrypt plaintext data using DUKPT.</p>
2568
+ * <p>Specifies the parameters required to encrypt data using an asymmetric key pair. You must specify a <code>PaddingType</code>.</p>
2569
+ * @public
2570
+ */
2571
+ interface AsymmetricMember {
2572
+ Symmetric?: never;
2573
+ Asymmetric: AsymmetricEncryptionAttributes;
2574
+ Dukpt?: never;
2575
+ $unknown?: never;
2576
+ }
2577
+ /**
2578
+ * <p>Specifies the parameters required to encrypt data using DUKPT.</p>
2568
2579
  * @public
2569
2580
  */
2570
2581
  interface DukptMember {
2571
2582
  Symmetric?: never;
2583
+ Asymmetric?: never;
2572
2584
  Dukpt: DukptEncryptionAttributes;
2573
2585
  $unknown?: never;
2574
2586
  }
@@ -2577,6 +2589,7 @@ export declare namespace ReEncryptionAttributes {
2577
2589
  */
2578
2590
  interface $UnknownMember {
2579
2591
  Symmetric?: never;
2592
+ Asymmetric?: never;
2580
2593
  Dukpt?: never;
2581
2594
  $unknown: [string, any];
2582
2595
  }
@@ -2586,6 +2599,7 @@ export declare namespace ReEncryptionAttributes {
2586
2599
  */
2587
2600
  interface Visitor<T> {
2588
2601
  Symmetric: (value: SymmetricEncryptionAttributes) => T;
2602
+ Asymmetric: (value: AsymmetricEncryptionAttributes) => T;
2589
2603
  Dukpt: (value: DukptEncryptionAttributes) => T;
2590
2604
  _: (name: string, value: any) => T;
2591
2605
  }
@@ -1111,27 +1111,38 @@ export declare namespace OutgoingKeyMaterial {
1111
1111
  }
1112
1112
  }
1113
1113
  export type ReEncryptionAttributes =
1114
+ | ReEncryptionAttributes.AsymmetricMember
1114
1115
  | ReEncryptionAttributes.DukptMember
1115
1116
  | ReEncryptionAttributes.SymmetricMember
1116
1117
  | ReEncryptionAttributes.$UnknownMember;
1117
1118
  export declare namespace ReEncryptionAttributes {
1118
1119
  interface SymmetricMember {
1119
1120
  Symmetric: SymmetricEncryptionAttributes;
1121
+ Asymmetric?: never;
1122
+ Dukpt?: never;
1123
+ $unknown?: never;
1124
+ }
1125
+ interface AsymmetricMember {
1126
+ Symmetric?: never;
1127
+ Asymmetric: AsymmetricEncryptionAttributes;
1120
1128
  Dukpt?: never;
1121
1129
  $unknown?: never;
1122
1130
  }
1123
1131
  interface DukptMember {
1124
1132
  Symmetric?: never;
1133
+ Asymmetric?: never;
1125
1134
  Dukpt: DukptEncryptionAttributes;
1126
1135
  $unknown?: never;
1127
1136
  }
1128
1137
  interface $UnknownMember {
1129
1138
  Symmetric?: never;
1139
+ Asymmetric?: never;
1130
1140
  Dukpt?: never;
1131
1141
  $unknown: [string, any];
1132
1142
  }
1133
1143
  interface Visitor<T> {
1134
1144
  Symmetric: (value: SymmetricEncryptionAttributes) => T;
1145
+ Asymmetric: (value: AsymmetricEncryptionAttributes) => T;
1135
1146
  Dukpt: (value: DukptEncryptionAttributes) => T;
1136
1147
  _: (name: string, value: any) => T;
1137
1148
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-payment-cryptography-data",
3
- "version": "3.1138.0",
3
+ "version": "3.1139.0",
4
4
  "description": "AWS SDK for JavaScript Payment Cryptography Data Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-payment-cryptography-data",
6
6
  "license": "Apache-2.0",