Swap `ring` for our own in-crate RSA validator
authorMatt Corallo <git@bluematt.me>
Sun, 3 Mar 2024 15:05:08 +0000 (15:05 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 3 Apr 2024 09:14:45 +0000 (09:14 +0000)
commit82f0e7de99a7d8118e6c6a2d938a1f85014b876e
tree969279c11c20643935ccf5943af8e26342649b04
parent9bfff3609162efcca02310d4d9231054b6d824fd
Swap `ring` for our own in-crate RSA validator

While `ring` is great, it struggles with platform support and has a
fairly involved dependency tree due to its reliance on C backends.

Further, while the `RustCrypto` org tries to stick to Rust, in
doing so it takes on more (unnecessary) dependencies and has a
particularly unusable MSRV policy. Finally, its contributor base
has historically not been particularly friendly.

Thus, sadly, there's not really a good option for doing RSA
validation using a third-party crate.

Instead, we go our own way here, adding an in-crate RSA validator.
src/crypto/hash.rs
src/crypto/mod.rs
src/crypto/rsa.rs [new file with mode: 0644]
src/validation.rs