Skip to content

Verify 1024-bit RSA and SHA-1 PKCS#1 - #34

Merged
turkananation merged 3 commits into
mainfrom
feat/rsa-dnssec-verify
Nov 8, 2026
Merged

turkananation merged 3 commits into
mainfrom
feat/rsa-dnssec-verify

Conversation

@turkananation

Copy link
Copy Markdown
Owner

Summary

PqRsa.verifyPkcs1 and verifyPss accept a 1024, 2048, 3072, or 4096 bit modulus. PqRsaHash.sha1 is the PKCS#1 digest DNSSEC algorithms 5 and 7 name. generateKeyPair still refuses 1024.

No wire-format change. Not tagged. 0.4.12 stays the brainpool and FFDHE release.

Test

dart run tool/agent/verify.dart full exited 0. The RSA matrix covers 1024, 2048, 3072, and 4096 by SHA-1, SHA-256, SHA-384, and SHA-512. PSS SHA-512 on a 1024-bit key is refused because the modulus is too small.

Validators need moduli of 1024, 2048, 3072, and 4096 bits, and SHA-1
for DNSSEC algorithms 5 and 7. Generation stays 2048 and up. Not tagged.
Pure Ed448 with an empty context, which is DNSSEC algorithm 16.
Ed448ph is opt-in. RFC 8032 vectors and OpenSSL agree.
PKCS#1 and PSS, including a 1024-bit modulus. OpenSSL matches every
hash. A lambda-reduced private exponent still signs.
@turkananation
turkananation merged commit b1d6e6a into main Nov 8, 2026
12 checks passed
@turkananation
turkananation deleted the feat/rsa-dnssec-verify branch November 8, 2026 09:54
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

Successfully merging this pull request may close these issues.

1 participant