StaticsealCreates a sealed message by encrypting a symmetric key to a recipient. Uses the Encrypter interface which supports both X25519 and MLKEM.
The symmetric key to encrypt
The recipient's public key (implements Encrypter)
OptionaltestNonce: NonceOptional nonce for deterministic testing
A sealed message containing the encrypted content key
Decrypts this sealed message using recipient's private key.
The recipient's private key (implements Decrypter)
The decrypted content key data
Returns the underlying SealedMessage from components.
Returns the CBOR-encoded data of this sealed message.
Staticfrom
SealedMessage wrapping the sealed content key for a recipient. This is the proper implementation from @bcts/components that supports both X25519 and MLKEM encryption schemes.