-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Closed
Labels
cryptoIssues and PRs related to the crypto subsystem.Issues and PRs related to the crypto subsystem.
Description
- Version: master
- Platform: n/a
- Subsystem: crypto
From https://www.openssl.org/docs/manmaster/man7/Ed25519.html:
The PureEdDSA algorithm does not support the streaming mechanism of other signature algorithms using, for example, EVP_DigestUpdate(). The message to sign or verify must be passed using the one-shot EVP_DigestSign() and EVP_DigestVerify() functions.
When calling EVP_DigestSignInit() or EVP_DigestVerifyInit(), the digest type parameter MUST be set to NULL.
I'm not sure how we want to implement support for this in node, perhaps with special algorithm names for crypto.createSign()/crypto.createVerify() that only permit a single call to .update() or that buffer all data passed to each .update() for the one-shot sign/verify at the end?
Metadata
Metadata
Assignees
Labels
cryptoIssues and PRs related to the crypto subsystem.Issues and PRs related to the crypto subsystem.