API reference for mlkem/main
    Preparing search index...

    Interface MlKemCreateOptions

    Options for the factory functions of an encapsulator and a decapsulator, such as createMlKem768Encapsulator, createMlKem768Decapsulator and generateMlKem768Decapsulator.

    interface MlKemCreateOptions {
        useWebCrypto?: WebCryptoOption;
    }
    Index
    useWebCrypto?: WebCryptoOption

    Whether to delegate encapsulation and decapsulation to the runtime's Web Cryptography API, falling back to this implementation where it cannot:

    • "auto" (default): if available, except where Node.js prints an ExperimentalWarning: before 24.23 and 26.12, and for ML-KEM-512.
    • true: if available.
    • false: never.