Skip to content

EncapsulateResponse

Source code in docs_src/capo_kms/types/encapsulate_response.py
class EncapsulateResponse(TypedDict, closed=True):
    key_id: NotRequired["capo_kms.types.key_id_type.KeyIdType"]
    """<p>The identifier of the ML-KEM KMS key used to encapsulate the shared secret.</p>"""
    shared_secret: NotRequired["capo_kms.types.plaintext_type.PlaintextType"]
    """<p>The plaintext shared secret. It is a 32-byte cryptographically random value that both parties can use directly as key material or pass through a key derivation function to generate multiple keys and nonces. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.</p>"""
    shared_secret_ciphertext_blob: NotRequired[
        "capo_kms.types.ciphertext_type.CiphertextType"
    ]
    """<p>The encapsulated form of the shared secret. Pass this value to the <a>Decapsulate</a> operation to recover the shared secret. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded. The length of <code>SharedSecretCiphertextBlob</code> depends on the ML-KEM key spec. Before Base64 encoding, the encapsulated shared secret is 768 bytes for <code>ML_KEM_512</code>, 1088 bytes for <code>ML_KEM_768</code>, and 1568 bytes for <code>ML_KEM_1024</code>. </p>"""
    encapsulation_algorithm: NotRequired[
        "capo_kms.types.encapsulation_algorithm_spec.EncapsulationAlgorithmSpec"
    ]
    """<p>The key encapsulation algorithm used to generate the shared secret.</p>"""

encapsulation_algorithm instance-attribute

encapsulation_algorithm: NotRequired[EncapsulationAlgorithmSpec]

The key encapsulation algorithm used to generate the shared secret.

key_id instance-attribute

key_id: NotRequired[KeyIdType]

The identifier of the ML-KEM KMS key used to encapsulate the shared secret.

shared_secret instance-attribute

shared_secret: NotRequired[PlaintextType]

The plaintext shared secret. It is a 32-byte cryptographically random value that both parties can use directly as key material or pass through a key derivation function to generate multiple keys and nonces. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

shared_secret_ciphertext_blob instance-attribute

shared_secret_ciphertext_blob: NotRequired[CiphertextType]

The encapsulated form of the shared secret. Pass this value to the Decapsulate operation to recover the shared secret. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded. The length of SharedSecretCiphertextBlob depends on the ML-KEM key spec. Before Base64 encoding, the encapsulated shared secret is 768 bytes for ML_KEM_512, 1088 bytes for ML_KEM_768, and 1568 bytes for ML_KEM_1024.