Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement deterministic ECDSA sign (RFC6979) #258

Open
seblu opened this issue Nov 16, 2024 · 0 comments
Open

Implement deterministic ECDSA sign (RFC6979) #258

seblu opened this issue Nov 16, 2024 · 0 comments

Comments

@seblu
Copy link

seblu commented Nov 16, 2024

Description:

When using ldns-signzone to sign zones with ECDSA, the resulting NSEC3 records and signatures are not stable. Signing the same zone multiple times produces different signed zones, even when the input zone remains unchanged.

The current non-deterministic behavior complicates scenarios where consistent signed zones are required for reproducibility, testing, or version control.

Technical Context:

RFC 8624 recommends using deterministic digital signature generation for ECDSA to address such issues:

It is RECOMMENDED to use the deterministic digital signature generation procedure of the Elliptic Curve Digital Signature Algorithm (ECDSA), specified in [RFC6979], when implementing ECDSAP256SHA256 (and ECDSAP384SHA384).

Deterministic ECDSA signatures eliminate randomness by deriving the per-signature value ( k ) deterministically from the private key and input data. This ensures consistent signatures for identical inputs, resolving the instability in signed zones.

OpenSSL introduced support for RFC 6979 deterministic ECDSA signatures in version 3.2.0 (released at the end of 2023):
Commit: Deterministic ECDSA Signatures

This enhancement provides a foundation for implementing deterministic ECDSA signatures in ldns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant