Crypto Lib
    Preparing search index...

    Function probe

    • The native form of name, or undefined when the runtime lacks it. Probed once, on first use. innerOctetString is the standard's PKCS#8 layout: ML-KEM and ML-DSA keys are the expandedKey choice, an OCTET STRING inside the PKCS#8 privateKey; SLH-DSA keys are the raw key itself (RFC 9909).

      A runtime that exports private keys as the seed alone (Node.js 24.22+ and 26 for ML-KEM and ML-DSA) cannot hand back the expanded secret key from native key generation, which stays with noble; it still runs every other operation natively if it reads an expanded key from expand as noble does.

      Parameters

      • name: string
      • sizes: Sizes
      • innerOctetString: boolean
      • crypto: __module | null = nodeCrypto
      • Optionalexpand: Expand

      Returns Native | undefined