RustCrypto / RSA

RSA implementation in pure Rust
Apache License 2.0
536 stars 148 forks source link

Refactor padding modes into submodules #312

Closed tarcieri closed 1 year ago

tarcieri commented 1 year ago

The padding mode modules have gotten quite large.

This commit refactors types into respective submodules, with the toplevel module defining the same-named padding schemes.

cc @lumag

tarcieri commented 1 year ago

Note: this PR is just moving code around in non-public modules and should have only additive changes to re-exports, rather than any other API changes.

One thing it didn't refactor was the tests, although many of them are interdependent in a way it's hard to test anywhere but the toplevel module for a given padding mode.