Crypto Lib
    Preparing search index...

    Function bridgedMlKemKeygen

    • ML-KEM key generation using @noble/post-quantum.

      Always uses

      Parameters

      Returns BridgedMlKemKeygenResult

      Raw public and secret key bytes.

      regardless of native availability because native generateKeyPairSync returns DER-wrapped KeyObject instances that are not byte-compatible with the rest of this library.

      const { publicKey, secretKey } = bridgedMlKemKeygen(768);