Crypto Lib
    Preparing search index...

    Function hybridKemEncapsulate

    • Hybrid encapsulate — performs X25519 ECDH + ML-KEM encapsulation, then derives the combined shared secret with the v2 combiner (see module docs).

      Parameters

      • kemLevel: MlKemLevel

        ML-KEM security level (512, 768, or 1024).

      • theirX25519Public: string

        Recipient's X25519 public key (hex).

      • theirMlKemPublic: string

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

      Returns HybridKemEncapsulateResult