Skip to content

Commit

Permalink
Add PQC ML-DSA key generation
Browse files Browse the repository at this point in the history
  • Loading branch information
twiss authored and larabr committed Sep 13, 2024
1 parent 10f0e9d commit 603009f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/key/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ export function sanitizeKeyOptions(options, subkeyDefaults = {}) {
switch (options.type) {
case 'pqc':
if (options.sign) {
throw new Error('Post-quantum signing algorithms are not yet supported.');
options.algorithm = enums.publicKey.pqc_mldsa_ed25519;
} else {
options.algorithm = enums.publicKey.pqc_mlkem_x25519;
}
Expand Down

0 comments on commit 603009f

Please sign in to comment.