@@ -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"
2125const 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
2932const ImportAwsKekForm : React . FC = ( ) => {
0 commit comments