Repository navigation
build(crypto): drop unused rsa pkcs5 feature - #1071
Merged
Merged
Conversation
The RustCrypto backend only accepts unencrypted PKCS#8 and PKCS#1 RSA private keys, so rsa's pkcs5 feature is unused. Removing it drops pkcs5, scrypt, salsa20, cbc, pbkdf2, and block-padding from the dependency graph. Part of #1069.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pkcs5feature fromrsainreqsign-crypto-rustcrypto(crypto/rustcrypto/Cargo.toml).Dependency effect
cargo tree -p reqsign-crypto-rustcrypto --edges normalshrinks from 70 to 64 unique packages (175 to 153 tree lines) and removes:block-padding,cbc,pbkdf2,pkcs5,salsa20,scryptrsastill hasdefault+pkcs1v15;p256andaes-gcmremain. The repository does not trackCargo.lock; the local untracked lockfile was refreshed by cargo.RSA behavior
Positive:
cargo test --locked -p reqsign-crypto-rustcrypto --test provider— 14 passed, includingrsa_signs_both_pkcs8_and_pkcs1_pemand the deterministic PKCS#1/PKCS#8 signature vector.cargo test --locked -p reqsign-oracle --test private_key_formats— 10 passed, including PKCS#1 and PKCS#8 signing.Negative:
encrypted_private_keys_are_rejected_without_mutating_requestpasses and assertsCredentialInvalidwithout changing the request.Verification
All pass at head
5619764c9f062d995148b40f1f688c3b3cbb3698on base04cabf2e724f2d02a4c2e1f4ad4986f1de3e65ba:cargo fmt --all -- --checkcargo clippy --workspace --all-targets --all-features -- -D warningscargo test --no-fail-fastcargo test --doc --all-features --workspacecargo test -p reqsign --all-features --testscargo test -p reqsign --no-default-features --features default-context --test crypto_without_default_cryptocargo build --workspacecargo check -p reqsign-crypto-rustcrypto --target wasm32-unknown-unknownPart of #1069. This does not implement full feature slicing or change the OpenDAL SMB lockfile policy.