Skip to content

crypto: signing and verifying not supported for ed25519/ed448 #26320

@mscdex

Description

@mscdex
  • 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

No one assigned

    Labels

    cryptoIssues and PRs related to the crypto subsystem.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions