zig
zig copied to clipboard
std.crypto: Add public RSA module
RSA is still widely used for general cryptography. As such, it deserves a public module.
- Move RSA functions from Certificate and tls.Client to new rsa module.
- Add serialization
- Fix side channel vulnerabilities
- Add key generation
RSA-KEM[1] is useful to have, and due to arbitrary RSA key length it can serve as a hedge against PQC algos breaking by pushing quantum computer requirements higher.
[1] https://datatracker.ietf.org/doc/html/rfc5990
RSA-KEM[1] is useful to have, and due to arbitrary RSA key length it can serve as a hedge against PQC algos breaking by pushing quantum computer requirements higher.
Post-quantum safe RSA would require 1 terabyte keys. https://cr.yp.to/papers/pqrsa-20170419.pdf
Not exactly practical.
RSA-KEM[1] is useful to have, and due to arbitrary RSA key length it can serve as a hedge against PQC algos breaking by pushing quantum computer requirements higher.
Post-quantum safe RSA would require 1 terabyte keys. https://cr.yp.to/papers/pqrsa-20170419.pdf
Not exactly practical.
On the premise that no quantum computer could ever be constructed to crack them.
With MP-RSA and 1-10 MB keys you can buy decades at the very least.