Skip to content

Commit 06a1cb5

Browse files
author
awstools
committed
feat(client-payment-cryptography): The service adds support for transferring AES-256 and other keys between the service and other service providers and HSMs. This feature uses ECDH to derive a one-time key transport key to enable these secure key exchanges.
1 parent 86ab9f4 commit 06a1cb5

File tree

11 files changed

+741
-37
lines changed

11 files changed

+741
-37
lines changed

clients/client-payment-cryptography/src/commands/CreateKeyCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export interface CreateKeyCommandOutput extends CreateKeyOutput, __MetadataBeare
9090
* Value: "STRING_VALUE", // required
9191
* },
9292
* ],
93+
* DeriveKeyUsage: "STRING_VALUE",
9394
* };
9495
* const command = new CreateKeyCommand(input);
9596
* const response = await client.send(command);
@@ -123,6 +124,7 @@ export interface CreateKeyCommandOutput extends CreateKeyOutput, __MetadataBeare
123124
* // UsageStopTimestamp: new Date("TIMESTAMP"),
124125
* // DeletePendingTimestamp: new Date("TIMESTAMP"),
125126
* // DeleteTimestamp: new Date("TIMESTAMP"),
127+
* // DeriveKeyUsage: "STRING_VALUE",
126128
* // },
127129
* // };
128130
*

clients/client-payment-cryptography/src/commands/DeleteKeyCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export interface DeleteKeyCommandOutput extends DeleteKeyOutput, __MetadataBeare
9999
* // UsageStopTimestamp: new Date("TIMESTAMP"),
100100
* // DeletePendingTimestamp: new Date("TIMESTAMP"),
101101
* // DeleteTimestamp: new Date("TIMESTAMP"),
102+
* // DeriveKeyUsage: "STRING_VALUE",
102103
* // },
103104
* // };
104105
*

clients/client-payment-cryptography/src/commands/ExportKeyCommand.ts

+29
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,35 @@ export interface ExportKeyCommandOutput extends ExportKeyOutput, __MetadataBeare
197197
* WrappingKeyCertificate: "STRING_VALUE", // required
198198
* WrappingSpec: "STRING_VALUE",
199199
* },
200+
* DiffieHellmanTr31KeyBlock: { // ExportDiffieHellmanTr31KeyBlock
201+
* PrivateKeyIdentifier: "STRING_VALUE", // required
202+
* CertificateAuthorityPublicKeyIdentifier: "STRING_VALUE", // required
203+
* PublicKeyCertificate: "STRING_VALUE", // required
204+
* DeriveKeyAlgorithm: "TDES_2KEY" || "TDES_3KEY" || "AES_128" || "AES_192" || "AES_256", // required
205+
* KeyDerivationFunction: "NIST_SP800" || "ANSI_X963", // required
206+
* KeyDerivationHashAlgorithm: "SHA_256" || "SHA_384" || "SHA_512", // required
207+
* DerivationData: { // DiffieHellmanDerivationData Union: only one key present
208+
* SharedInformation: "STRING_VALUE",
209+
* },
210+
* KeyBlockHeaders: {
211+
* KeyModesOfUse: {
212+
* Encrypt: true || false,
213+
* Decrypt: true || false,
214+
* Wrap: true || false,
215+
* Unwrap: true || false,
216+
* Generate: true || false,
217+
* Sign: true || false,
218+
* Verify: true || false,
219+
* DeriveKey: true || false,
220+
* NoRestrictions: true || false,
221+
* },
222+
* KeyExportability: "STRING_VALUE",
223+
* KeyVersion: "STRING_VALUE",
224+
* OptionalBlocks: {
225+
* "<keys>": "STRING_VALUE",
226+
* },
227+
* },
228+
* },
200229
* },
201230
* ExportKeyIdentifier: "STRING_VALUE", // required
202231
* ExportAttributes: { // ExportAttributes

clients/client-payment-cryptography/src/commands/GetKeyCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export interface GetKeyCommandOutput extends GetKeyOutput, __MetadataBearer {}
9696
* // UsageStopTimestamp: new Date("TIMESTAMP"),
9797
* // DeletePendingTimestamp: new Date("TIMESTAMP"),
9898
* // DeleteTimestamp: new Date("TIMESTAMP"),
99+
* // DeriveKeyUsage: "STRING_VALUE",
99100
* // },
100101
* // };
101102
*

clients/client-payment-cryptography/src/commands/ImportKeyCommand.ts

+13-4
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ export interface ImportKeyCommandOutput extends ImportKeyOutput, __MetadataBeare
4040
* <p>
4141
* <b>To import a public root key certificate</b>
4242
* </p>
43-
* <p>You can also import a <i>root public key certificate</i>, used to sign other public key certificates, or a <i>trusted public key certificate</i> under an already established root public key certificate.</p>
44-
* <p>
45-
* <b>To import a public root key certificate</b>
46-
* </p>
4743
* <p>Using this operation, you can import the public component (in PEM cerificate format) of your private root key. You can use the imported public root key certificate for digital signatures, for example signing wrapping key or signing key in TR-34, within your Amazon Web Services Payment Cryptography account.</p>
4844
* <p>Set the following parameters:</p>
4945
* <ul>
@@ -245,6 +241,18 @@ export interface ImportKeyCommandOutput extends ImportKeyOutput, __MetadataBeare
245241
* ImportToken: "STRING_VALUE", // required
246242
* WrappingSpec: "STRING_VALUE",
247243
* },
244+
* DiffieHellmanTr31KeyBlock: { // ImportDiffieHellmanTr31KeyBlock
245+
* PrivateKeyIdentifier: "STRING_VALUE", // required
246+
* CertificateAuthorityPublicKeyIdentifier: "STRING_VALUE", // required
247+
* PublicKeyCertificate: "STRING_VALUE", // required
248+
* DeriveKeyAlgorithm: "TDES_2KEY" || "TDES_3KEY" || "AES_128" || "AES_192" || "AES_256", // required
249+
* KeyDerivationFunction: "NIST_SP800" || "ANSI_X963", // required
250+
* KeyDerivationHashAlgorithm: "SHA_256" || "SHA_384" || "SHA_512", // required
251+
* DerivationData: { // DiffieHellmanDerivationData Union: only one key present
252+
* SharedInformation: "STRING_VALUE",
253+
* },
254+
* WrappedKeyBlock: "STRING_VALUE", // required
255+
* },
248256
* },
249257
* KeyCheckValueAlgorithm: "STRING_VALUE",
250258
* Enabled: true || false,
@@ -287,6 +295,7 @@ export interface ImportKeyCommandOutput extends ImportKeyOutput, __MetadataBeare
287295
* // UsageStopTimestamp: new Date("TIMESTAMP"),
288296
* // DeletePendingTimestamp: new Date("TIMESTAMP"),
289297
* // DeleteTimestamp: new Date("TIMESTAMP"),
298+
* // DeriveKeyUsage: "STRING_VALUE",
290299
* // },
291300
* // };
292301
*

clients/client-payment-cryptography/src/commands/RestoreKeyCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export interface RestoreKeyCommandOutput extends RestoreKeyOutput, __MetadataBea
9898
* // UsageStopTimestamp: new Date("TIMESTAMP"),
9999
* // DeletePendingTimestamp: new Date("TIMESTAMP"),
100100
* // DeleteTimestamp: new Date("TIMESTAMP"),
101+
* // DeriveKeyUsage: "STRING_VALUE",
101102
* // },
102103
* // };
103104
*

clients/client-payment-cryptography/src/commands/StartKeyUsageCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export interface StartKeyUsageCommandOutput extends StartKeyUsageOutput, __Metad
8686
* // UsageStopTimestamp: new Date("TIMESTAMP"),
8787
* // DeletePendingTimestamp: new Date("TIMESTAMP"),
8888
* // DeleteTimestamp: new Date("TIMESTAMP"),
89+
* // DeriveKeyUsage: "STRING_VALUE",
8990
* // },
9091
* // };
9192
*

clients/client-payment-cryptography/src/commands/StopKeyUsageCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export interface StopKeyUsageCommandOutput extends StopKeyUsageOutput, __Metadat
9292
* // UsageStopTimestamp: new Date("TIMESTAMP"),
9393
* // DeletePendingTimestamp: new Date("TIMESTAMP"),
9494
* // DeleteTimestamp: new Date("TIMESTAMP"),
95+
* // DeriveKeyUsage: "STRING_VALUE",
9596
* // },
9697
* // };
9798
*

0 commit comments

Comments
 (0)