Something went wrong. Try again.
What Zig's std.crypto leaves out: DES, 3DES, AES-192, CBC, CFB, ECB, RSA signing, XChaCha20 box, CPace, MD4, crypt(3), Argon2 1.0.
Something went wrong. Try again.
rsa: make SecretKey.fromComponents public
An OpenPGP RSA secret key carries n, e, d, p, q and u = p^-1 mod q as bare integers rather than DER, so a signer reading one had no way to build a SecretKey. fromComponents takes n, e and d and was already the first half of fromPkcs1Der; it is now public and documented. It gives a key without the CRT: OpenPGP does not store d mod (p-1) or d mod (q-1), and ff's Montgomery arithmetic cannot reduce by the even p - 1 to compute them. The test rebuilds a DER key from its numbers and checks the two sign identically. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuezSGJ4rfoAKyUrZAbmQW
Author
jcollie.dev Co-author Claude Opus 5.5 (1M context) Date (Sep 29, 2026, 7:00 PM UTC) Commit
Copy SHA
Parent 44422b76 44422b767293dd917f05223d609c1f3cb50ebeb6