Appearance
@pqc-sdk/core / GenerateOptions
Interface: GenerateOptions<A>
Options for generate.
Type Parameters
A
A extends Algorithm = Algorithm
Properties
algorithm?
readonlyoptionalalgorithm?:A
Algorithm of the pair. Default: 'x-wing' (the X25519 + ML-KEM-768 hybrid KEM). Pass 'ml-kem-768' for the pure post-quantum KEM, or 'ml-dsa-65' for signing.
For signatures, the recommended choice is 'ml-dsa-65' (NIST security category 3, roughly AES-192 equivalent). 'ml-dsa-44' is category 2 (AES-128 equivalent) and emits a console warning at key-generation time. 'ml-dsa-87' is category 5 (AES-256 equivalent) and produces larger signatures (4627 bytes vs 3309 for ml-dsa-65).