iya-sts
    Preparing search index...

    Variable generatePqKeyPair

    generatePqKeyPair: (alg: any) => { priv: any; pub: any } = generatePqKeyPair

    Type Declaration

      • (alg: any): { priv: any; pub: any }
      • Generates a post-quantum signing key through pq_jose.js.

        An ML-DSA private key is the 32-octet seed (RFC 9964 section 3.2). This runtime's OpenSSL has to offer the algorithm; mlDsaAvailable() is the question, and a caller that skipped it meets the same refusal here.

        Parameters

        • alg: any

          a JOSE name pq_jose.generate() accepts, such as ML-DSA-65

        Returns { priv: any; pub: any }

        { pub, priv }, both Buffers

        Error when the algorithm is unknown or ML-DSA cannot be generated