Crypto Lib
    Preparing search index...
    • Unwrap a symmetric DEK using hybrid post-quantum keys (X25519 + ML-KEM-768).

      Parameters

      • x25519SecretKey: string | Uint8Array<ArrayBufferLike>

        Recipient's X25519 secret key (hex or bytes, 32 bytes).

      • mlKemSecretKey: string | Uint8Array<ArrayBufferLike>

        Recipient's ML-KEM-768 secret key (hex or bytes).

      • ephemeralPublicKey: string

        Sender's ephemeral X25519 public key (hex, 32 bytes).

      • mlKemCiphertext: string

        ML-KEM-768 ciphertext (hex).

      • wrappedKey: string

        Base64-encoded wrapped DEK.

      Returns Uint8Array