Gordian Envelope TypeScript Library - v1.0.0-alpha.20
    Preparing search index...

    Class SealedMessage

    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.

    Index

    Constructors

    Methods

    • Creates a sealed message by encrypting a symmetric key to a recipient. Uses the Encrypter interface which supports both X25519 and MLKEM.

      Parameters

      • contentKey: SymmetricKey

        The symmetric key to encrypt

      • recipient: Encrypter

        The recipient's public key (implements Encrypter)

      • OptionaltestNonce: Nonce

        Optional nonce for deterministic testing

      Returns SealedMessage

      A sealed message containing the encrypted content key