Skip to content

Commit 8748da3

Browse files
committed
fix: work
1 parent 60eb127 commit 8748da3

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

documentation/docs/aws/byok.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Supported wrapping algorithms:
2121
| **RSA_AES_KEY_WRAP_SHA_256**<br>**RSA_AES_KEY_WRAP_SHA_1** | Hybrid wrapping (RSA + AES Key Wrap) with SHA-256 or SHA-1 hash function. | • Asymmetric RSA private keys<br>• Asymmetric ECC private keys |
2222

2323
**Wrapping Key Specs :**
24+
2425
- RSA_2048 (***Note**: cannot be used to wrap _ECC_NIST_P521_ keys with _RSAES_OAEP_SHA_*_ )
2526
- RSA_3072
2627
- RSA_4096
@@ -84,7 +85,6 @@ You should have the following response :
8485

8586
```
8687
symmetric_key_material has been created.
87-
```
8888
arn:aws:kms:eu-west-3:447182645454:key/a68f40da-85e6-4798-b147-2bf096d29a70
8989
9090
{
@@ -98,7 +98,7 @@ arn:aws:kms:eu-west-3:447182645454:key/a68f40da-85e6-4798-b147-2bf096d29a70
9898
~
9999
~
100100
(END)
101-
101+
```
102102

103103
## 3. Download the wrapping public key and import token from AWS
104104

@@ -149,6 +149,3 @@ You
149149
- [AWS KMS Developer Guide – Importing Key Material](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html)
150150
- [AWS KMS – Requirements for Imported Key Material](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-conceptual.html#importing-keys-material-requirements)
151151
- [AWS KMS – Get Public Key and Import Token](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-get-public-key-and-token.html)
152-
- [RFC 3447 – PKCS #1: RSA Cryptography Specifications](https://tools.ietf.org/html/rfc3447)
153-
- [RFC 5208 – PKCS #8: Private-Key Information Syntax](https://tools.ietf.org/html/rfc5208)
154-
- [RFC 5649 – AES Key Wrap with Padding](https://tools.ietf.org/html/rfc5649)

ui/src/AwsImportKek.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@ type KeyImportResponse = {
1818
UniqueIdentifier: string;
1919
};
2020

21+
// These values MUST match the WrappingAlgorithm enum's strum kebab-case serialization
22+
// in crate/client_utils/src/export_utils.rs (used by wasm.export_ttlv_request).
23+
// RsaOaepSha1 -> "rsa-oaep-sha1", RsaOaep (SHA-256) -> "rsa-oaep",
24+
// RsaAesKeyWrapSha1 -> "rsa-aes-key-wrap-sha1", RsaAesKeyWrap (SHA-256) -> "rsa-aes-key-wrap"
2125
const WRAPPING_ALGORITHMS = [
22-
{ label: "RSAES_OAEP_SHA_1", value: "rsaes-oaep-sha1" },
23-
{ label: "RSAES_OAEP_SHA_256", value: "rsaes-oaep-sha256" },
26+
{ label: "RSAES_OAEP_SHA_1", value: "rsa-oaep-sha1" },
27+
{ label: "RSAES_OAEP_SHA_256", value: "rsa-oaep" },
2428
{ label: "RSA_AES_KEY_WRAP_SHA_1", value: "rsa-aes-key-wrap-sha1" },
25-
{ label: "RSA_AES_KEY_WRAP_SHA_256", value: "rsa-aes-key-wrap-sha256" },
26-
{ label: "SM2PKE (China region only)", value: "sm2pke" },
29+
{ label: "RSA_AES_KEY_WRAP_SHA_256", value: "rsa-aes-key-wrap" },
2730
];
2831

2932
const ImportAwsKekForm: React.FC = () => {

0 commit comments

Comments
 (0)