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 Mar 18, 2024
1 parent f155477 commit 07b692b
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 @@ -336,7 +336,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 07b692b

Please sign in to comment.