Repository navigation
snmp: move the RustCrypto crates to their 2026 releases together - #30
Merged
Merged
Conversation
des 0.9, sha1 0.11 and sha2 0.11 build on digest 0.11 and cipher 0.5, so they only work beside hmac 0.13, md-5 0.11, aes 0.9, cbc 0.2 and cfb-mode 0.9. All eight move in this change. The SNMPv3 code follows the renamed traits: BlockModeEncrypt and BlockModeDecrypt, encrypt_padded and decrypt_padded, KeyInit for HMAC, and CFB's own encrypt and decrypt. Replaces #15, #16 and #18.
This was referenced Oct 22, 2026
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.
Replaces #15 (des 0.9), #16 (sha2 0.11) and #18 (sha1 0.11). Each of them failed alone: these crates now build on digest 0.11 and cipher 0.5, so they only compile beside the matching hmac, md-5, aes, cbc and cfb-mode. This change moves all eight together.
The code change is in
crates/flowscope-snmp/src/usm.rsand only follows renames:BlockModeEncryptandBlockModeDecrypt,encrypt_paddedanddecrypt_padded,KeyInitfor HMAC, and the CFB modes' ownencryptanddecrypt. The HTTP cache's SHA-256 needed no change.sqlx 0.8 still uses digest 0.10, sha2 0.10 and hmac 0.12, so those stay in the lockfile beside the new versions.
Checked locally
cargo fmt --check, clippy with-D warningsandcargo test --workspace --all-featurespass.tests/snmpd.rs, ignored in CI) pass: MD5 with DES, SHA with AES, SHA-256 with AES, SHA-512 without privacy, and a wrong password refused. This is what proves DES and AES still match a real agent, since the unit tests only round-trip.