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
Throws
Error when the algorithm is unknown or ML-DSA cannot be generated
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.