@aws-sdk/client-kms 3.1155.0 → 3.1157.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/README.md +27 -0
- package/dist-cjs/index.js +102 -36
- package/dist-es/KMS.js +4 -0
- package/dist-es/commands/DecapsulateCommand.js +4 -0
- package/dist-es/commands/EncapsulateCommand.js +4 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/enums.js +14 -0
- package/dist-es/models/errors.js +13 -13
- package/dist-es/schemas/schemas_0.js +58 -22
- package/dist-types/KMS.d.ts +27 -0
- package/dist-types/KMSClient.d.ts +17 -2
- package/dist-types/commands/CreateGrantCommand.d.ts +1 -1
- package/dist-types/commands/CreateKeyCommand.d.ts +7 -4
- package/dist-types/commands/DecapsulateCommand.d.ts +233 -0
- package/dist-types/commands/DecryptCommand.d.ts +6 -2
- package/dist-types/commands/DeriveSharedSecretCommand.d.ts +3 -2
- package/dist-types/commands/DescribeKeyCommand.d.ts +5 -2
- package/dist-types/commands/EncapsulateCommand.d.ts +212 -0
- package/dist-types/commands/EncryptCommand.d.ts +3 -2
- package/dist-types/commands/GenerateDataKeyCommand.d.ts +3 -2
- package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +10 -4
- package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +10 -4
- package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +3 -2
- package/dist-types/commands/GenerateMacCommand.d.ts +3 -2
- package/dist-types/commands/GetKeyLastUsageCommand.d.ts +3 -2
- package/dist-types/commands/GetPublicKeyCommand.d.ts +8 -4
- package/dist-types/commands/ImportKeyMaterialCommand.d.ts +3 -0
- package/dist-types/commands/ListGrantsCommand.d.ts +1 -1
- package/dist-types/commands/ListRetirableGrantsCommand.d.ts +1 -1
- package/dist-types/commands/ReEncryptCommand.d.ts +6 -2
- package/dist-types/commands/ReplicateKeyCommand.d.ts +5 -2
- package/dist-types/commands/SignCommand.d.ts +3 -2
- package/dist-types/commands/VerifyCommand.d.ts +3 -2
- package/dist-types/commands/VerifyMacCommand.d.ts +3 -2
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/index.d.ts +13 -0
- package/dist-types/models/enums.d.ts +22 -0
- package/dist-types/models/errors.d.ts +22 -18
- package/dist-types/models/models_0.d.ts +208 -5
- package/dist-types/schemas/schemas_0.d.ts +6 -0
- package/dist-types/ts3.4/KMS.d.ts +28 -0
- package/dist-types/ts3.4/KMSClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/DecapsulateCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/EncapsulateCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/enums.d.ts +16 -0
- package/dist-types/ts3.4/models/errors.d.ts +6 -6
- package/dist-types/ts3.4/models/models_0.d.ts +27 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +6 -0
- package/package.json +5 -5
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { EncapsulateRequest, EncapsulateResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link EncapsulateCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface EncapsulateCommandInput extends EncapsulateRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link EncapsulateCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface EncapsulateCommandOutput extends EncapsulateResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const EncapsulateCommand_base: {
|
|
22
|
+
new (input: EncapsulateCommandInput): import("@smithy/core/client").CommandImpl<EncapsulateCommandInput, EncapsulateCommandOutput, import("..").KMSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: EncapsulateCommandInput): import("@smithy/core/client").CommandImpl<EncapsulateCommandInput, EncapsulateCommandOutput, import("..").KMSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Generates a shared secret and its encapsulated (ciphertext) form using the public key of
|
|
28
|
+
* an ML-KEM KMS key pair. Module-Lattice-Based Key-Encapsulation Mechanism (ML-KEM), specified in <a href="https://csrc.nist.gov/pubs/fips/203/final">FIPS 203</a> on the NIST website, is a
|
|
29
|
+
* post-quantum algorithm for establishing a shared secret between two parties.</p>
|
|
30
|
+
* <p>For an example of how two parties establish a shared secret over an insecure channel using
|
|
31
|
+
* ML-KEM, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/pqkeys.html#mlkem">ML-KEM keys in
|
|
32
|
+
* KMS</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
33
|
+
* <p>The Encapsulate operation is not available in China Regions.</p>
|
|
34
|
+
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
35
|
+
* details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
36
|
+
* <p>
|
|
37
|
+
* <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify
|
|
38
|
+
* the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.</p>
|
|
39
|
+
* <p>
|
|
40
|
+
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Encapsulate</a> (key policy)</p>
|
|
41
|
+
* <p>
|
|
42
|
+
* <b>Related operations:</b>
|
|
43
|
+
* </p>
|
|
44
|
+
* <ul>
|
|
45
|
+
* <li>
|
|
46
|
+
* <p>
|
|
47
|
+
* <a>Decapsulate</a>
|
|
48
|
+
* </p>
|
|
49
|
+
* </li>
|
|
50
|
+
* <li>
|
|
51
|
+
* <p>
|
|
52
|
+
* <a>DeriveSharedSecret</a>
|
|
53
|
+
* </p>
|
|
54
|
+
* </li>
|
|
55
|
+
* <li>
|
|
56
|
+
* <p>
|
|
57
|
+
* <a>CreateKey</a>
|
|
58
|
+
* </p>
|
|
59
|
+
* </li>
|
|
60
|
+
* <li>
|
|
61
|
+
* <p>
|
|
62
|
+
* <a>GetPublicKey</a>
|
|
63
|
+
* </p>
|
|
64
|
+
* </li>
|
|
65
|
+
* <li>
|
|
66
|
+
* <p>
|
|
67
|
+
* <a>DescribeKey</a>
|
|
68
|
+
* </p>
|
|
69
|
+
* </li>
|
|
70
|
+
* </ul>
|
|
71
|
+
* <p>
|
|
72
|
+
* <b>Eventual consistency</b>: The KMS API follows an eventual consistency model.
|
|
73
|
+
* For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency">KMS eventual consistency</a>.</p>
|
|
74
|
+
* @example
|
|
75
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
76
|
+
* ```javascript
|
|
77
|
+
* import { KMSClient, EncapsulateCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
78
|
+
* // const { KMSClient, EncapsulateCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
79
|
+
* // import type { KMSClientConfig } from "@aws-sdk/client-kms";
|
|
80
|
+
* const config = {}; // type is KMSClientConfig
|
|
81
|
+
* const client = new KMSClient(config);
|
|
82
|
+
* const input = { // EncapsulateRequest
|
|
83
|
+
* KeyId: "STRING_VALUE", // required
|
|
84
|
+
* EncapsulationAlgorithm: "ML_KEM", // required
|
|
85
|
+
* GrantTokens: [ // GrantTokenList
|
|
86
|
+
* "STRING_VALUE",
|
|
87
|
+
* ],
|
|
88
|
+
* DryRun: true || false,
|
|
89
|
+
* };
|
|
90
|
+
* const command = new EncapsulateCommand(input);
|
|
91
|
+
* const response = await client.send(command);
|
|
92
|
+
* // { // EncapsulateResponse
|
|
93
|
+
* // KeyId: "STRING_VALUE",
|
|
94
|
+
* // SharedSecret: new Uint8Array(),
|
|
95
|
+
* // SharedSecretCiphertextBlob: new Uint8Array(),
|
|
96
|
+
* // EncapsulationAlgorithm: "ML_KEM",
|
|
97
|
+
* // };
|
|
98
|
+
*
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
101
|
+
* @param EncapsulateCommandInput - {@link EncapsulateCommandInput}
|
|
102
|
+
* @returns {@link EncapsulateCommandOutput}
|
|
103
|
+
* @see {@link EncapsulateCommandInput} for command's `input` shape.
|
|
104
|
+
* @see {@link EncapsulateCommandOutput} for command's `response` shape.
|
|
105
|
+
* @see {@link KMSClientResolvedConfig | config} for KMSClient's `config` shape.
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link DependencyTimeoutException} (server fault)
|
|
108
|
+
* <p>The system timed out while trying to fulfill the request. You can retry the
|
|
109
|
+
* request.</p>
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link DisabledException} (client fault)
|
|
112
|
+
* <p>The request was rejected because the specified KMS key is not enabled.</p>
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link DryRunOperationException} (client fault)
|
|
115
|
+
* <p> The request was rejected because the DryRun parameter was specified. </p>
|
|
116
|
+
*
|
|
117
|
+
* @throws {@link InvalidGrantTokenException} (client fault)
|
|
118
|
+
* <p>The request was rejected because the specified grant token is not valid.</p>
|
|
119
|
+
*
|
|
120
|
+
* @throws {@link InvalidKeyUsageException} (client fault)
|
|
121
|
+
* <p>The request was rejected for one of the following reasons: </p>
|
|
122
|
+
* <ul>
|
|
123
|
+
* <li>
|
|
124
|
+
* <p>The <code>KeyUsage</code> value of the KMS key is incompatible with the API
|
|
125
|
+
* operation.</p>
|
|
126
|
+
* </li>
|
|
127
|
+
* <li>
|
|
128
|
+
* <p>The encryption algorithm or signing algorithm specified for the operation is
|
|
129
|
+
* incompatible with the type of key material in the KMS key <code>(KeySpec</code>).</p>
|
|
130
|
+
* </li>
|
|
131
|
+
* </ul>
|
|
132
|
+
* <p>For encrypting, decrypting, re-encrypting, and generating data keys, the
|
|
133
|
+
* <code>KeyUsage</code> must be <code>ENCRYPT_DECRYPT</code>. For signing and verifying
|
|
134
|
+
* messages, the <code>KeyUsage</code> must be <code>SIGN_VERIFY</code>. For generating and
|
|
135
|
+
* verifying message authentication codes (MACs), the <code>KeyUsage</code> must be
|
|
136
|
+
* <code>GENERATE_VERIFY_MAC</code>. For deriving key agreement secrets, the
|
|
137
|
+
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>. For encapsulating and decapsulating
|
|
138
|
+
* shared secrets, the <code>KeyUsage</code> must be <code>ENCAPSULATE_DECAPSULATE</code>. To find
|
|
139
|
+
* the <code>KeyUsage</code> of a KMS key, use the <a>DescribeKey</a> operation.</p>
|
|
140
|
+
* <p>To find the encryption or signing algorithms supported for a particular KMS key, use the
|
|
141
|
+
* <a>DescribeKey</a> operation.</p>
|
|
142
|
+
*
|
|
143
|
+
* @throws {@link KeyUnavailableException} (server fault)
|
|
144
|
+
* <p>The request was rejected because the specified KMS key was not available. You can retry
|
|
145
|
+
* the request.</p>
|
|
146
|
+
*
|
|
147
|
+
* @throws {@link KMSInternalException} (server fault)
|
|
148
|
+
* <p>The request was rejected because an internal exception occurred. The request can be
|
|
149
|
+
* retried.</p>
|
|
150
|
+
*
|
|
151
|
+
* @throws {@link KMSInvalidStateException} (client fault)
|
|
152
|
+
* <p>The request was rejected because the state of the specified resource is not valid for this
|
|
153
|
+
* request.</p>
|
|
154
|
+
* <p>This exceptions means one of the following:</p>
|
|
155
|
+
* <ul>
|
|
156
|
+
* <li>
|
|
157
|
+
* <p>The key state of the KMS key is not compatible with the operation. </p>
|
|
158
|
+
* <p>To find the key state, use the <a>DescribeKey</a> operation. For more
|
|
159
|
+
* information about which key states are compatible with each KMS operation, see
|
|
160
|
+
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the <i>
|
|
161
|
+
* <i>Key Management Service Developer Guide</i>
|
|
162
|
+
* </i>.</p>
|
|
163
|
+
* </li>
|
|
164
|
+
* <li>
|
|
165
|
+
* <p>For cryptographic operations on KMS keys in custom key stores, this exception
|
|
166
|
+
* represents a general failure with many possible causes. To identify the cause, see the
|
|
167
|
+
* error message that accompanies the exception.</p>
|
|
168
|
+
* </li>
|
|
169
|
+
* </ul>
|
|
170
|
+
*
|
|
171
|
+
* @throws {@link NotFoundException} (client fault)
|
|
172
|
+
* <p>The request was rejected because the specified entity or resource could not be
|
|
173
|
+
* found.</p>
|
|
174
|
+
*
|
|
175
|
+
* @throws {@link KMSServiceException}
|
|
176
|
+
* <p>Base exception class for all service exceptions from KMS service.</p>
|
|
177
|
+
*
|
|
178
|
+
*
|
|
179
|
+
* @example To generate a shared secret and its encapsulated ciphertext
|
|
180
|
+
* ```javascript
|
|
181
|
+
* // Generates a shared secret and its encapsulated ciphertext (SharedSecretCiphertextBlob) using the public key in an asymmetric ML-KEM KMS key. Send the ciphertext to your peer, who calls Decapsulate to recover the same shared secret.
|
|
182
|
+
* const input = {
|
|
183
|
+
* EncapsulationAlgorithm: "ML_KEM",
|
|
184
|
+
* KeyId: "1234abcd-12ab-34cd-56ef-1234567890ab"
|
|
185
|
+
* };
|
|
186
|
+
* const command = new EncapsulateCommand(input);
|
|
187
|
+
* const response = await client.send(command);
|
|
188
|
+
* /* response is
|
|
189
|
+
* {
|
|
190
|
+
* EncapsulationAlgorithm: "ML_KEM",
|
|
191
|
+
* KeyId: "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
|
|
192
|
+
* SharedSecret: "AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8=",
|
|
193
|
+
* SharedSecretCiphertextBlob: "<binary data>"
|
|
194
|
+
* }
|
|
195
|
+
* *\/
|
|
196
|
+
* ```
|
|
197
|
+
*
|
|
198
|
+
* @public
|
|
199
|
+
*/
|
|
200
|
+
export declare class EncapsulateCommand extends EncapsulateCommand_base {
|
|
201
|
+
/** @internal type navigation helper, not in runtime. */
|
|
202
|
+
protected static __types: {
|
|
203
|
+
api: {
|
|
204
|
+
input: EncapsulateRequest;
|
|
205
|
+
output: EncapsulateResponse;
|
|
206
|
+
};
|
|
207
|
+
sdk: {
|
|
208
|
+
input: EncapsulateCommandInput;
|
|
209
|
+
output: EncapsulateCommandOutput;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
}
|
|
@@ -202,8 +202,9 @@ declare const EncryptCommand_base: {
|
|
|
202
202
|
* messages, the <code>KeyUsage</code> must be <code>SIGN_VERIFY</code>. For generating and
|
|
203
203
|
* verifying message authentication codes (MACs), the <code>KeyUsage</code> must be
|
|
204
204
|
* <code>GENERATE_VERIFY_MAC</code>. For deriving key agreement secrets, the
|
|
205
|
-
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>.
|
|
206
|
-
*
|
|
205
|
+
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>. For encapsulating and decapsulating
|
|
206
|
+
* shared secrets, the <code>KeyUsage</code> must be <code>ENCAPSULATE_DECAPSULATE</code>. To find
|
|
207
|
+
* the <code>KeyUsage</code> of a KMS key, use the <a>DescribeKey</a> operation.</p>
|
|
207
208
|
* <p>To find the encryption or signing algorithms supported for a particular KMS key, use the
|
|
208
209
|
* <a>DescribeKey</a> operation.</p>
|
|
209
210
|
*
|
|
@@ -202,8 +202,9 @@ declare const GenerateDataKeyCommand_base: {
|
|
|
202
202
|
* messages, the <code>KeyUsage</code> must be <code>SIGN_VERIFY</code>. For generating and
|
|
203
203
|
* verifying message authentication codes (MACs), the <code>KeyUsage</code> must be
|
|
204
204
|
* <code>GENERATE_VERIFY_MAC</code>. For deriving key agreement secrets, the
|
|
205
|
-
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>.
|
|
206
|
-
*
|
|
205
|
+
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>. For encapsulating and decapsulating
|
|
206
|
+
* shared secrets, the <code>KeyUsage</code> must be <code>ENCAPSULATE_DECAPSULATE</code>. To find
|
|
207
|
+
* the <code>KeyUsage</code> of a KMS key, use the <a>DescribeKey</a> operation.</p>
|
|
207
208
|
* <p>To find the encryption or signing algorithms supported for a particular KMS key, use the
|
|
208
209
|
* <a>DescribeKey</a> operation.</p>
|
|
209
210
|
*
|
|
@@ -54,6 +54,11 @@ declare const GenerateDataKeyPairCommand_base: {
|
|
|
54
54
|
* to encrypt the private key. The public key is a DER-encoded X.509 SubjectPublicKeyInfo, as
|
|
55
55
|
* specified in <a href="https://tools.ietf.org/html/rfc5280">RFC 5280</a>. The private
|
|
56
56
|
* key is a DER-encoded PKCS8 PrivateKeyInfo, as specified in <a href="https://tools.ietf.org/html/rfc5958">RFC 5958</a>.</p>
|
|
57
|
+
* <note>
|
|
58
|
+
* <p>For ML-KEM data key pairs, the DER-encoded PKCS8 PrivateKeyInfo contains the private key
|
|
59
|
+
* in seed format. As a result, the length of the private key is the same for all ML-KEM key pair
|
|
60
|
+
* specs.</p>
|
|
61
|
+
* </note>
|
|
57
62
|
* <p>
|
|
58
63
|
* <code>GenerateDataKeyPair</code> also supports <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave.html">Amazon Web Services Nitro Enclaves</a>, which provide an
|
|
59
64
|
* isolated compute environment in Amazon EC2. To call <code>GenerateDataKeyPair</code> for an Amazon Web Services
|
|
@@ -122,7 +127,7 @@ declare const GenerateDataKeyPairCommand_base: {
|
|
|
122
127
|
* "<keys>": "STRING_VALUE",
|
|
123
128
|
* },
|
|
124
129
|
* KeyId: "STRING_VALUE", // required
|
|
125
|
-
* KeyPairSpec: "RSA_2048" || "RSA_3072" || "RSA_4096" || "ECC_NIST_P256" || "ECC_NIST_P384" || "ECC_NIST_P521" || "ECC_SECG_P256K1" || "SM2" || "ECC_NIST_EDWARDS25519", // required
|
|
130
|
+
* KeyPairSpec: "RSA_2048" || "RSA_3072" || "RSA_4096" || "ECC_NIST_P256" || "ECC_NIST_P384" || "ECC_NIST_P521" || "ECC_SECG_P256K1" || "SM2" || "ECC_NIST_EDWARDS25519" || "ML_KEM_512" || "ML_KEM_768" || "ML_KEM_1024", // required
|
|
126
131
|
* GrantTokens: [ // GrantTokenList
|
|
127
132
|
* "STRING_VALUE",
|
|
128
133
|
* ],
|
|
@@ -139,7 +144,7 @@ declare const GenerateDataKeyPairCommand_base: {
|
|
|
139
144
|
* // PrivateKeyPlaintext: new Uint8Array(),
|
|
140
145
|
* // PublicKey: new Uint8Array(),
|
|
141
146
|
* // KeyId: "STRING_VALUE",
|
|
142
|
-
* // KeyPairSpec: "RSA_2048" || "RSA_3072" || "RSA_4096" || "ECC_NIST_P256" || "ECC_NIST_P384" || "ECC_NIST_P521" || "ECC_SECG_P256K1" || "SM2" || "ECC_NIST_EDWARDS25519",
|
|
147
|
+
* // KeyPairSpec: "RSA_2048" || "RSA_3072" || "RSA_4096" || "ECC_NIST_P256" || "ECC_NIST_P384" || "ECC_NIST_P521" || "ECC_SECG_P256K1" || "SM2" || "ECC_NIST_EDWARDS25519" || "ML_KEM_512" || "ML_KEM_768" || "ML_KEM_1024",
|
|
143
148
|
* // CiphertextForRecipient: new Uint8Array(),
|
|
144
149
|
* // KeyMaterialId: "STRING_VALUE",
|
|
145
150
|
* // };
|
|
@@ -182,8 +187,9 @@ declare const GenerateDataKeyPairCommand_base: {
|
|
|
182
187
|
* messages, the <code>KeyUsage</code> must be <code>SIGN_VERIFY</code>. For generating and
|
|
183
188
|
* verifying message authentication codes (MACs), the <code>KeyUsage</code> must be
|
|
184
189
|
* <code>GENERATE_VERIFY_MAC</code>. For deriving key agreement secrets, the
|
|
185
|
-
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>.
|
|
186
|
-
*
|
|
190
|
+
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>. For encapsulating and decapsulating
|
|
191
|
+
* shared secrets, the <code>KeyUsage</code> must be <code>ENCAPSULATE_DECAPSULATE</code>. To find
|
|
192
|
+
* the <code>KeyUsage</code> of a KMS key, use the <a>DescribeKey</a> operation.</p>
|
|
187
193
|
* <p>To find the encryption or signing algorithms supported for a particular KMS key, use the
|
|
188
194
|
* <a>DescribeKey</a> operation.</p>
|
|
189
195
|
*
|
|
@@ -45,6 +45,11 @@ declare const GenerateDataKeyPairWithoutPlaintextCommand_base: {
|
|
|
45
45
|
* request. The bytes in the key are not related to the caller or KMS key that is used to encrypt
|
|
46
46
|
* the private key. The public key is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in
|
|
47
47
|
* <a href="https://tools.ietf.org/html/rfc5280">RFC 5280</a>.</p>
|
|
48
|
+
* <note>
|
|
49
|
+
* <p>For ML-KEM data key pairs, the DER-encoded PKCS8 PrivateKeyInfo contains the private key
|
|
50
|
+
* in seed format. As a result, the length of the private key is the same for all ML-KEM key pair
|
|
51
|
+
* specs.</p>
|
|
52
|
+
* </note>
|
|
48
53
|
* <p>You can use an optional encryption context to add additional security to the encryption
|
|
49
54
|
* operation. If you specify an <code>EncryptionContext</code>, you must specify the same
|
|
50
55
|
* encryption context (a case-sensitive exact match) when decrypting the encrypted data key.
|
|
@@ -104,7 +109,7 @@ declare const GenerateDataKeyPairWithoutPlaintextCommand_base: {
|
|
|
104
109
|
* "<keys>": "STRING_VALUE",
|
|
105
110
|
* },
|
|
106
111
|
* KeyId: "STRING_VALUE", // required
|
|
107
|
-
* KeyPairSpec: "RSA_2048" || "RSA_3072" || "RSA_4096" || "ECC_NIST_P256" || "ECC_NIST_P384" || "ECC_NIST_P521" || "ECC_SECG_P256K1" || "SM2" || "ECC_NIST_EDWARDS25519", // required
|
|
112
|
+
* KeyPairSpec: "RSA_2048" || "RSA_3072" || "RSA_4096" || "ECC_NIST_P256" || "ECC_NIST_P384" || "ECC_NIST_P521" || "ECC_SECG_P256K1" || "SM2" || "ECC_NIST_EDWARDS25519" || "ML_KEM_512" || "ML_KEM_768" || "ML_KEM_1024", // required
|
|
108
113
|
* GrantTokens: [ // GrantTokenList
|
|
109
114
|
* "STRING_VALUE",
|
|
110
115
|
* ],
|
|
@@ -116,7 +121,7 @@ declare const GenerateDataKeyPairWithoutPlaintextCommand_base: {
|
|
|
116
121
|
* // PrivateKeyCiphertextBlob: new Uint8Array(),
|
|
117
122
|
* // PublicKey: new Uint8Array(),
|
|
118
123
|
* // KeyId: "STRING_VALUE",
|
|
119
|
-
* // KeyPairSpec: "RSA_2048" || "RSA_3072" || "RSA_4096" || "ECC_NIST_P256" || "ECC_NIST_P384" || "ECC_NIST_P521" || "ECC_SECG_P256K1" || "SM2" || "ECC_NIST_EDWARDS25519",
|
|
124
|
+
* // KeyPairSpec: "RSA_2048" || "RSA_3072" || "RSA_4096" || "ECC_NIST_P256" || "ECC_NIST_P384" || "ECC_NIST_P521" || "ECC_SECG_P256K1" || "SM2" || "ECC_NIST_EDWARDS25519" || "ML_KEM_512" || "ML_KEM_768" || "ML_KEM_1024",
|
|
120
125
|
* // KeyMaterialId: "STRING_VALUE",
|
|
121
126
|
* // };
|
|
122
127
|
*
|
|
@@ -158,8 +163,9 @@ declare const GenerateDataKeyPairWithoutPlaintextCommand_base: {
|
|
|
158
163
|
* messages, the <code>KeyUsage</code> must be <code>SIGN_VERIFY</code>. For generating and
|
|
159
164
|
* verifying message authentication codes (MACs), the <code>KeyUsage</code> must be
|
|
160
165
|
* <code>GENERATE_VERIFY_MAC</code>. For deriving key agreement secrets, the
|
|
161
|
-
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>.
|
|
162
|
-
*
|
|
166
|
+
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>. For encapsulating and decapsulating
|
|
167
|
+
* shared secrets, the <code>KeyUsage</code> must be <code>ENCAPSULATE_DECAPSULATE</code>. To find
|
|
168
|
+
* the <code>KeyUsage</code> of a KMS key, use the <a>DescribeKey</a> operation.</p>
|
|
163
169
|
* <p>To find the encryption or signing algorithms supported for a particular KMS key, use the
|
|
164
170
|
* <a>DescribeKey</a> operation.</p>
|
|
165
171
|
*
|
|
@@ -166,8 +166,9 @@ declare const GenerateDataKeyWithoutPlaintextCommand_base: {
|
|
|
166
166
|
* messages, the <code>KeyUsage</code> must be <code>SIGN_VERIFY</code>. For generating and
|
|
167
167
|
* verifying message authentication codes (MACs), the <code>KeyUsage</code> must be
|
|
168
168
|
* <code>GENERATE_VERIFY_MAC</code>. For deriving key agreement secrets, the
|
|
169
|
-
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>.
|
|
170
|
-
*
|
|
169
|
+
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>. For encapsulating and decapsulating
|
|
170
|
+
* shared secrets, the <code>KeyUsage</code> must be <code>ENCAPSULATE_DECAPSULATE</code>. To find
|
|
171
|
+
* the <code>KeyUsage</code> of a KMS key, use the <a>DescribeKey</a> operation.</p>
|
|
171
172
|
* <p>To find the encryption or signing algorithms supported for a particular KMS key, use the
|
|
172
173
|
* <a>DescribeKey</a> operation.</p>
|
|
173
174
|
*
|
|
@@ -115,8 +115,9 @@ declare const GenerateMacCommand_base: {
|
|
|
115
115
|
* messages, the <code>KeyUsage</code> must be <code>SIGN_VERIFY</code>. For generating and
|
|
116
116
|
* verifying message authentication codes (MACs), the <code>KeyUsage</code> must be
|
|
117
117
|
* <code>GENERATE_VERIFY_MAC</code>. For deriving key agreement secrets, the
|
|
118
|
-
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>.
|
|
119
|
-
*
|
|
118
|
+
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>. For encapsulating and decapsulating
|
|
119
|
+
* shared secrets, the <code>KeyUsage</code> must be <code>ENCAPSULATE_DECAPSULATE</code>. To find
|
|
120
|
+
* the <code>KeyUsage</code> of a KMS key, use the <a>DescribeKey</a> operation.</p>
|
|
120
121
|
* <p>To find the encryption or signing algorithms supported for a particular KMS key, use the
|
|
121
122
|
* <a>DescribeKey</a> operation.</p>
|
|
122
123
|
*
|
|
@@ -62,7 +62,8 @@ declare const GetKeyLastUsageCommand_base: {
|
|
|
62
62
|
* deletion. Instead, first <a href="https://docs.aws.amazon.com/kms/latest/developerguide/enabling-keys.html">disable the key</a> and monitor CloudTrail for
|
|
63
63
|
* <code>DisabledException</code> entries, as there could be infrequent workflows that are
|
|
64
64
|
* dependent on the key. By looking for this exception, you can identify potential dependencies
|
|
65
|
-
* and workload failures before they occur
|
|
65
|
+
* and workload failures before they occur. CloudTrail remains the authoritative source for all
|
|
66
|
+
* API calls made to your key.</p>
|
|
66
67
|
* </note>
|
|
67
68
|
* <p>
|
|
68
69
|
* <b>Cross-account use</b>: No. You cannot perform this operation
|
|
@@ -108,7 +109,7 @@ declare const GetKeyLastUsageCommand_base: {
|
|
|
108
109
|
* // { // GetKeyLastUsageResponse
|
|
109
110
|
* // KeyId: "STRING_VALUE",
|
|
110
111
|
* // KeyLastUsage: { // KeyLastUsageData
|
|
111
|
-
* // Operation: "Decrypt" || "DeriveSharedSecret" || "Encrypt" || "GenerateDataKey" || "GenerateDataKeyPair" || "GenerateDataKeyPairWithoutPlaintext" || "GenerateDataKeyWithoutPlaintext" || "GenerateMac" || "ReEncrypt" || "Sign" || "Verify" || "VerifyMac",
|
|
112
|
+
* // Operation: "Decrypt" || "DeriveSharedSecret" || "Encrypt" || "GenerateDataKey" || "GenerateDataKeyPair" || "GenerateDataKeyPairWithoutPlaintext" || "GenerateDataKeyWithoutPlaintext" || "GenerateMac" || "ReEncrypt" || "Sign" || "Verify" || "VerifyMac" || "Encapsulate" || "Decapsulate",
|
|
112
113
|
* // Timestamp: new Date("TIMESTAMP"),
|
|
113
114
|
* // CloudTrailEventId: "STRING_VALUE",
|
|
114
115
|
* // KmsRequestId: "STRING_VALUE",
|
|
@@ -96,8 +96,8 @@ declare const GetPublicKeyCommand_base: {
|
|
|
96
96
|
* // KeyId: "STRING_VALUE",
|
|
97
97
|
* // PublicKey: new Uint8Array(),
|
|
98
98
|
* // CustomerMasterKeySpec: "RSA_2048" || "RSA_3072" || "RSA_4096" || "ECC_NIST_P256" || "ECC_NIST_P384" || "ECC_NIST_P521" || "ECC_SECG_P256K1" || "SYMMETRIC_DEFAULT" || "HMAC_224" || "HMAC_256" || "HMAC_384" || "HMAC_512" || "SM2",
|
|
99
|
-
* // KeySpec: "RSA_2048" || "RSA_3072" || "RSA_4096" || "ECC_NIST_P256" || "ECC_NIST_P384" || "ECC_NIST_P521" || "ECC_SECG_P256K1" || "SYMMETRIC_DEFAULT" || "HMAC_224" || "HMAC_256" || "HMAC_384" || "HMAC_512" || "SM2" || "ML_DSA_44" || "ML_DSA_65" || "ML_DSA_87" || "ECC_NIST_EDWARDS25519",
|
|
100
|
-
* // KeyUsage: "SIGN_VERIFY" || "ENCRYPT_DECRYPT" || "GENERATE_VERIFY_MAC" || "KEY_AGREEMENT",
|
|
99
|
+
* // KeySpec: "RSA_2048" || "RSA_3072" || "RSA_4096" || "ECC_NIST_P256" || "ECC_NIST_P384" || "ECC_NIST_P521" || "ECC_SECG_P256K1" || "SYMMETRIC_DEFAULT" || "HMAC_224" || "HMAC_256" || "HMAC_384" || "HMAC_512" || "SM2" || "ML_DSA_44" || "ML_DSA_65" || "ML_DSA_87" || "ECC_NIST_EDWARDS25519" || "ML_KEM_512" || "ML_KEM_768" || "ML_KEM_1024",
|
|
100
|
+
* // KeyUsage: "SIGN_VERIFY" || "ENCRYPT_DECRYPT" || "GENERATE_VERIFY_MAC" || "KEY_AGREEMENT" || "ENCAPSULATE_DECAPSULATE",
|
|
101
101
|
* // EncryptionAlgorithms: [ // EncryptionAlgorithmSpecList
|
|
102
102
|
* // "SYMMETRIC_DEFAULT" || "RSAES_OAEP_SHA_1" || "RSAES_OAEP_SHA_256" || "SM2PKE",
|
|
103
103
|
* // ],
|
|
@@ -107,6 +107,9 @@ declare const GetPublicKeyCommand_base: {
|
|
|
107
107
|
* // KeyAgreementAlgorithms: [ // KeyAgreementAlgorithmSpecList
|
|
108
108
|
* // "ECDH",
|
|
109
109
|
* // ],
|
|
110
|
+
* // EncapsulationAlgorithms: [ // EncapsulationAlgorithmSpecList
|
|
111
|
+
* // "ML_KEM",
|
|
112
|
+
* // ],
|
|
110
113
|
* // };
|
|
111
114
|
*
|
|
112
115
|
* ```
|
|
@@ -148,8 +151,9 @@ declare const GetPublicKeyCommand_base: {
|
|
|
148
151
|
* messages, the <code>KeyUsage</code> must be <code>SIGN_VERIFY</code>. For generating and
|
|
149
152
|
* verifying message authentication codes (MACs), the <code>KeyUsage</code> must be
|
|
150
153
|
* <code>GENERATE_VERIFY_MAC</code>. For deriving key agreement secrets, the
|
|
151
|
-
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>.
|
|
152
|
-
*
|
|
154
|
+
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>. For encapsulating and decapsulating
|
|
155
|
+
* shared secrets, the <code>KeyUsage</code> must be <code>ENCAPSULATE_DECAPSULATE</code>. To find
|
|
156
|
+
* the <code>KeyUsage</code> of a KMS key, use the <a>DescribeKey</a> operation.</p>
|
|
153
157
|
* <p>To find the encryption or signing algorithms supported for a particular KMS key, use the
|
|
154
158
|
* <a>DescribeKey</a> operation.</p>
|
|
155
159
|
*
|
|
@@ -213,6 +213,9 @@ declare const ImportKeyMaterialCommand_base: {
|
|
|
213
213
|
* invalid.</p>
|
|
214
214
|
* <p>From the <a>ImportKeyMaterial</a> operation, the request was rejected because
|
|
215
215
|
* KMS could not decrypt the encrypted (wrapped) key material. </p>
|
|
216
|
+
* <p>From the <a>Decapsulate</a> operation, the request was rejected because the
|
|
217
|
+
* length of the <code>SharedSecretCiphertextBlob</code> is inconsistent with the specified ML-KEM
|
|
218
|
+
* key spec.</p>
|
|
216
219
|
*
|
|
217
220
|
* @throws {@link InvalidImportTokenException} (client fault)
|
|
218
221
|
* <p>The request was rejected because the provided import token is invalid or is associated
|
|
@@ -103,7 +103,7 @@ declare const ListGrantsCommand_base: {
|
|
|
103
103
|
* // RetiringPrincipal: "STRING_VALUE",
|
|
104
104
|
* // IssuingAccount: "STRING_VALUE",
|
|
105
105
|
* // Operations: [ // GrantOperationList
|
|
106
|
-
* // "Decrypt" || "Encrypt" || "GenerateDataKey" || "GenerateDataKeyWithoutPlaintext" || "ReEncryptFrom" || "ReEncryptTo" || "Sign" || "Verify" || "GetPublicKey" || "CreateGrant" || "RetireGrant" || "DescribeKey" || "GenerateDataKeyPair" || "GenerateDataKeyPairWithoutPlaintext" || "GenerateMac" || "VerifyMac" || "DeriveSharedSecret",
|
|
106
|
+
* // "Decrypt" || "Encrypt" || "GenerateDataKey" || "GenerateDataKeyWithoutPlaintext" || "ReEncryptFrom" || "ReEncryptTo" || "Sign" || "Verify" || "GetPublicKey" || "CreateGrant" || "RetireGrant" || "DescribeKey" || "GenerateDataKeyPair" || "GenerateDataKeyPairWithoutPlaintext" || "GenerateMac" || "VerifyMac" || "DeriveSharedSecret" || "Encapsulate" || "Decapsulate",
|
|
107
107
|
* // ],
|
|
108
108
|
* // Constraints: { // GrantConstraints
|
|
109
109
|
* // EncryptionContextSubset: { // EncryptionContextType
|
|
@@ -109,7 +109,7 @@ declare const ListRetirableGrantsCommand_base: {
|
|
|
109
109
|
* // RetiringPrincipal: "STRING_VALUE",
|
|
110
110
|
* // IssuingAccount: "STRING_VALUE",
|
|
111
111
|
* // Operations: [ // GrantOperationList
|
|
112
|
-
* // "Decrypt" || "Encrypt" || "GenerateDataKey" || "GenerateDataKeyWithoutPlaintext" || "ReEncryptFrom" || "ReEncryptTo" || "Sign" || "Verify" || "GetPublicKey" || "CreateGrant" || "RetireGrant" || "DescribeKey" || "GenerateDataKeyPair" || "GenerateDataKeyPairWithoutPlaintext" || "GenerateMac" || "VerifyMac" || "DeriveSharedSecret",
|
|
112
|
+
* // "Decrypt" || "Encrypt" || "GenerateDataKey" || "GenerateDataKeyWithoutPlaintext" || "ReEncryptFrom" || "ReEncryptTo" || "Sign" || "Verify" || "GetPublicKey" || "CreateGrant" || "RetireGrant" || "DescribeKey" || "GenerateDataKeyPair" || "GenerateDataKeyPairWithoutPlaintext" || "GenerateMac" || "VerifyMac" || "DeriveSharedSecret" || "Encapsulate" || "Decapsulate",
|
|
113
113
|
* // ],
|
|
114
114
|
* // Constraints: { // GrantConstraints
|
|
115
115
|
* // EncryptionContextSubset: { // EncryptionContextType
|
|
@@ -198,6 +198,9 @@ declare const ReEncryptCommand_base: {
|
|
|
198
198
|
* invalid.</p>
|
|
199
199
|
* <p>From the <a>ImportKeyMaterial</a> operation, the request was rejected because
|
|
200
200
|
* KMS could not decrypt the encrypted (wrapped) key material. </p>
|
|
201
|
+
* <p>From the <a>Decapsulate</a> operation, the request was rejected because the
|
|
202
|
+
* length of the <code>SharedSecretCiphertextBlob</code> is inconsistent with the specified ML-KEM
|
|
203
|
+
* key spec.</p>
|
|
201
204
|
*
|
|
202
205
|
* @throws {@link InvalidGrantTokenException} (client fault)
|
|
203
206
|
* <p>The request was rejected because the specified grant token is not valid.</p>
|
|
@@ -219,8 +222,9 @@ declare const ReEncryptCommand_base: {
|
|
|
219
222
|
* messages, the <code>KeyUsage</code> must be <code>SIGN_VERIFY</code>. For generating and
|
|
220
223
|
* verifying message authentication codes (MACs), the <code>KeyUsage</code> must be
|
|
221
224
|
* <code>GENERATE_VERIFY_MAC</code>. For deriving key agreement secrets, the
|
|
222
|
-
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>.
|
|
223
|
-
*
|
|
225
|
+
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>. For encapsulating and decapsulating
|
|
226
|
+
* shared secrets, the <code>KeyUsage</code> must be <code>ENCAPSULATE_DECAPSULATE</code>. To find
|
|
227
|
+
* the <code>KeyUsage</code> of a KMS key, use the <a>DescribeKey</a> operation.</p>
|
|
224
228
|
* <p>To find the encryption or signing algorithms supported for a particular KMS key, use the
|
|
225
229
|
* <a>DescribeKey</a> operation.</p>
|
|
226
230
|
*
|
|
@@ -137,7 +137,7 @@ declare const ReplicateKeyCommand_base: {
|
|
|
137
137
|
* // CreationDate: new Date("TIMESTAMP"),
|
|
138
138
|
* // Enabled: true || false,
|
|
139
139
|
* // Description: "STRING_VALUE",
|
|
140
|
-
* // KeyUsage: "SIGN_VERIFY" || "ENCRYPT_DECRYPT" || "GENERATE_VERIFY_MAC" || "KEY_AGREEMENT",
|
|
140
|
+
* // KeyUsage: "SIGN_VERIFY" || "ENCRYPT_DECRYPT" || "GENERATE_VERIFY_MAC" || "KEY_AGREEMENT" || "ENCAPSULATE_DECAPSULATE",
|
|
141
141
|
* // KeyState: "Creating" || "Enabled" || "Disabled" || "PendingDeletion" || "PendingImport" || "PendingReplicaDeletion" || "Unavailable" || "Updating",
|
|
142
142
|
* // DeletionDate: new Date("TIMESTAMP"),
|
|
143
143
|
* // ValidTo: new Date("TIMESTAMP"),
|
|
@@ -147,7 +147,7 @@ declare const ReplicateKeyCommand_base: {
|
|
|
147
147
|
* // ExpirationModel: "KEY_MATERIAL_EXPIRES" || "KEY_MATERIAL_DOES_NOT_EXPIRE",
|
|
148
148
|
* // KeyManager: "AWS" || "CUSTOMER",
|
|
149
149
|
* // CustomerMasterKeySpec: "RSA_2048" || "RSA_3072" || "RSA_4096" || "ECC_NIST_P256" || "ECC_NIST_P384" || "ECC_NIST_P521" || "ECC_SECG_P256K1" || "SYMMETRIC_DEFAULT" || "HMAC_224" || "HMAC_256" || "HMAC_384" || "HMAC_512" || "SM2",
|
|
150
|
-
* // KeySpec: "RSA_2048" || "RSA_3072" || "RSA_4096" || "ECC_NIST_P256" || "ECC_NIST_P384" || "ECC_NIST_P521" || "ECC_SECG_P256K1" || "SYMMETRIC_DEFAULT" || "HMAC_224" || "HMAC_256" || "HMAC_384" || "HMAC_512" || "SM2" || "ML_DSA_44" || "ML_DSA_65" || "ML_DSA_87" || "ECC_NIST_EDWARDS25519",
|
|
150
|
+
* // KeySpec: "RSA_2048" || "RSA_3072" || "RSA_4096" || "ECC_NIST_P256" || "ECC_NIST_P384" || "ECC_NIST_P521" || "ECC_SECG_P256K1" || "SYMMETRIC_DEFAULT" || "HMAC_224" || "HMAC_256" || "HMAC_384" || "HMAC_512" || "SM2" || "ML_DSA_44" || "ML_DSA_65" || "ML_DSA_87" || "ECC_NIST_EDWARDS25519" || "ML_KEM_512" || "ML_KEM_768" || "ML_KEM_1024",
|
|
151
151
|
* // EncryptionAlgorithms: [ // EncryptionAlgorithmSpecList
|
|
152
152
|
* // "SYMMETRIC_DEFAULT" || "RSAES_OAEP_SHA_1" || "RSAES_OAEP_SHA_256" || "SM2PKE",
|
|
153
153
|
* // ],
|
|
@@ -157,6 +157,9 @@ declare const ReplicateKeyCommand_base: {
|
|
|
157
157
|
* // KeyAgreementAlgorithms: [ // KeyAgreementAlgorithmSpecList
|
|
158
158
|
* // "ECDH",
|
|
159
159
|
* // ],
|
|
160
|
+
* // EncapsulationAlgorithms: [ // EncapsulationAlgorithmSpecList
|
|
161
|
+
* // "ML_KEM",
|
|
162
|
+
* // ],
|
|
160
163
|
* // MultiRegion: true || false,
|
|
161
164
|
* // MultiRegionConfiguration: { // MultiRegionConfiguration
|
|
162
165
|
* // MultiRegionKeyType: "PRIMARY" || "REPLICA",
|
|
@@ -143,8 +143,9 @@ declare const SignCommand_base: {
|
|
|
143
143
|
* messages, the <code>KeyUsage</code> must be <code>SIGN_VERIFY</code>. For generating and
|
|
144
144
|
* verifying message authentication codes (MACs), the <code>KeyUsage</code> must be
|
|
145
145
|
* <code>GENERATE_VERIFY_MAC</code>. For deriving key agreement secrets, the
|
|
146
|
-
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>.
|
|
147
|
-
*
|
|
146
|
+
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>. For encapsulating and decapsulating
|
|
147
|
+
* shared secrets, the <code>KeyUsage</code> must be <code>ENCAPSULATE_DECAPSULATE</code>. To find
|
|
148
|
+
* the <code>KeyUsage</code> of a KMS key, use the <a>DescribeKey</a> operation.</p>
|
|
148
149
|
* <p>To find the encryption or signing algorithms supported for a particular KMS key, use the
|
|
149
150
|
* <a>DescribeKey</a> operation.</p>
|
|
150
151
|
*
|
|
@@ -127,8 +127,9 @@ declare const VerifyCommand_base: {
|
|
|
127
127
|
* messages, the <code>KeyUsage</code> must be <code>SIGN_VERIFY</code>. For generating and
|
|
128
128
|
* verifying message authentication codes (MACs), the <code>KeyUsage</code> must be
|
|
129
129
|
* <code>GENERATE_VERIFY_MAC</code>. For deriving key agreement secrets, the
|
|
130
|
-
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>.
|
|
131
|
-
*
|
|
130
|
+
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>. For encapsulating and decapsulating
|
|
131
|
+
* shared secrets, the <code>KeyUsage</code> must be <code>ENCAPSULATE_DECAPSULATE</code>. To find
|
|
132
|
+
* the <code>KeyUsage</code> of a KMS key, use the <a>DescribeKey</a> operation.</p>
|
|
132
133
|
* <p>To find the encryption or signing algorithms supported for a particular KMS key, use the
|
|
133
134
|
* <a>DescribeKey</a> operation.</p>
|
|
134
135
|
*
|
|
@@ -108,8 +108,9 @@ declare const VerifyMacCommand_base: {
|
|
|
108
108
|
* messages, the <code>KeyUsage</code> must be <code>SIGN_VERIFY</code>. For generating and
|
|
109
109
|
* verifying message authentication codes (MACs), the <code>KeyUsage</code> must be
|
|
110
110
|
* <code>GENERATE_VERIFY_MAC</code>. For deriving key agreement secrets, the
|
|
111
|
-
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>.
|
|
112
|
-
*
|
|
111
|
+
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>. For encapsulating and decapsulating
|
|
112
|
+
* shared secrets, the <code>KeyUsage</code> must be <code>ENCAPSULATE_DECAPSULATE</code>. To find
|
|
113
|
+
* the <code>KeyUsage</code> of a KMS key, use the <a>DescribeKey</a> operation.</p>
|
|
113
114
|
* <p>To find the encryption or signing algorithms supported for a particular KMS key, use the
|
|
114
115
|
* <a>DescribeKey</a> operation.</p>
|
|
115
116
|
*
|
|
@@ -4,6 +4,7 @@ export * from "./CreateAliasCommand";
|
|
|
4
4
|
export * from "./CreateCustomKeyStoreCommand";
|
|
5
5
|
export * from "./CreateGrantCommand";
|
|
6
6
|
export * from "./CreateKeyCommand";
|
|
7
|
+
export * from "./DecapsulateCommand";
|
|
7
8
|
export * from "./DecryptCommand";
|
|
8
9
|
export * from "./DeleteAliasCommand";
|
|
9
10
|
export * from "./DeleteCustomKeyStoreCommand";
|
|
@@ -16,6 +17,7 @@ export * from "./DisableKeyRotationCommand";
|
|
|
16
17
|
export * from "./DisconnectCustomKeyStoreCommand";
|
|
17
18
|
export * from "./EnableKeyCommand";
|
|
18
19
|
export * from "./EnableKeyRotationCommand";
|
|
20
|
+
export * from "./EncapsulateCommand";
|
|
19
21
|
export * from "./EncryptCommand";
|
|
20
22
|
export * from "./GenerateDataKeyCommand";
|
|
21
23
|
export * from "./GenerateDataKeyPairCommand";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -28,6 +28,19 @@
|
|
|
28
28
|
* support cipher suites with Perfect Forward Secrecy (PFS) such as Ephemeral Diffie-Hellman
|
|
29
29
|
* (DHE) or Elliptic Curve Ephemeral Diffie-Hellman (ECDHE). Most modern systems such as Java 7
|
|
30
30
|
* and later support these modes.</p>
|
|
31
|
+
* <note>
|
|
32
|
+
* <p>With current technology, brute force attacks on KMS TLS cipher suite key exchange
|
|
33
|
+
* mechanisms are not feasible. However, cipher suites that use Rivest–Shamir–Adleman (RSA)
|
|
34
|
+
* or Diffie-Hellman (DH) key exchange will be susceptible if large-scale quantum computing
|
|
35
|
+
* becomes practical.
|
|
36
|
+
* <a href="https://nvlpubs.nist.gov/nistpubs/ir/2024/NIST.IR.8547.ipd.pdf">NIST IR 8547</a>
|
|
37
|
+
* on the NIST website establishes a timeline to phase out quantum-vulnerable algorithms
|
|
38
|
+
* by 2030 and disallow them entirely by 2035. If your applications rely on the long-term
|
|
39
|
+
* confidentiality of KMS API traffic, we recommend that you
|
|
40
|
+
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/pqtls.html">use post-quantum TLS with KMS</a>.
|
|
41
|
+
* For more information about post-quantum cybersecurity, see <a href="https://www.nsa.gov/Cybersecurity/Post-Quantum-Cybersecurity-Resources/">Post-Quantum Cybersecurity Resources</a> on the
|
|
42
|
+
* National Security Agency (NSA) website.</p>
|
|
43
|
+
* </note>
|
|
31
44
|
* <p>
|
|
32
45
|
* <b>Signing Requests</b>
|
|
33
46
|
* </p>
|