Crypto Lib
    Preparing search index...

    Function hybridEncapsulate

    • Hybrid encapsulate — performs X25519 ECDH + ML-KEM encapsulation, then derives a combined shared secret via HKDF.

      Parameters

      • theirX25519Public: string

        Recipient's X25519 public key (hex).

      • theirMlKemPublic: string

        Recipient's ML-KEM public key (hex).

      Returns HybridEncapsulateResult

      Uses the unbound pre-0.0.7 combiner, whose secrets do not match hybridKemEncapsulate (v2), which also binds the ciphertexts and public keys. Use hybridKemEncapsulate(768, ...).