Skip to content

Commit 6348f89

Browse files
committed
fixup! crypto: add raw key formats support to the KeyObject APIs
1 parent 9c9357a commit 6348f89

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/api/crypto.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ const { promisify } = await import('node:util');
477477

478478
const generated = await promisify(generateKeyPair)('ml-kem-768');
479479

480-
// Export the raw seed (32 bytes for ML-KEM).
480+
// Export the raw seed (64 bytes for ML-KEM).
481481
const seed = generated.privateKey.export({ format: 'raw-seed' });
482482

483483
// Import the raw seed.
@@ -487,7 +487,6 @@ const privateKey = createPrivateKey({
487487
asymmetricKeyType: 'ml-kem-768',
488488
});
489489

490-
// ML-KEM uses encapsulate/decapsulate instead of sign/verify.
491490
const { ciphertext } = encapsulate(generated.publicKey);
492491
decapsulate(privateKey, ciphertext);
493492
```

0 commit comments

Comments
 (0)