StaticfromCreate a SealedMessage from its components.
StaticnewSeal a message for a recipient (no additional authenticated data).
The message to encrypt
The recipient's public key
A sealed message that only the recipient can decrypt
StaticnewSeal a message for a recipient with additional authenticated data.
The message to encrypt
The recipient's public key
Additional authenticated data (not encrypted but authenticated)
A sealed message that only the recipient can decrypt
StaticnewSeal a message with optional test nonce (for deterministic testing).
The message to encrypt
The recipient's public key
Additional authenticated data
OptionaltestNonce: NonceOptional fixed nonce for testing (DO NOT use in production)
A sealed message
Returns the encrypted message.
Returns the encapsulation ciphertext (ephemeral public key for X25519).
Returns the encapsulation scheme used.
Decrypt the sealed message using the recipient's private key.
The recipient's private key
The decrypted plaintext
Get string representation.
Returns the CBOR tags associated with SealedMessage.
Returns the untagged CBOR encoding. Format: [EncryptedMessage (tagged), EncapsulationCiphertext (tagged)]
Returns the tagged CBOR encoding.
Returns the tagged value in CBOR binary representation.
Creates a SealedMessage by decoding it from untagged CBOR.
Creates a SealedMessage by decoding it from tagged CBOR.
StaticfromStaticfromStatic method to decode from tagged CBOR binary data.
StaticfromStatic method to decode from untagged CBOR binary data.
Returns the UR representation of the SealedMessage. Note: URs use untagged CBOR since the type is conveyed by the UR type itself.
Returns the UR string representation.
StaticfromStaticfrom
A sealed message providing anonymous authenticated encryption.