Skip to content

snmp: move the RustCrypto crates to their 2026 releases together - #30

Merged
rinjanianalytics merged 2 commits into
mainfrom
deps/rustcrypto-0.11
Oct 23, 2026
Merged

rinjanianalytics merged 2 commits into
mainfrom
deps/rustcrypto-0.11

Conversation

@rinjanianalytics

Copy link
Copy Markdown
Owner

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.

Crate From To
aes 0.8 0.9
cbc 0.1 0.2
cfb-mode 0.8 0.9
des 0.8 0.9
hmac 0.12 0.13
md-5 0.10 0.11
sha1 0.10 0.11
sha2 0.10 0.11

The code change is in crates/flowscope-snmp/src/usm.rs and only follows renames: BlockModeEncrypt and BlockModeDecrypt, encrypt_padded and decrypt_padded, KeyInit for HMAC, and the CFB modes' own encrypt and decrypt. 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 warnings and cargo test --workspace --all-features pass.
  • The SNMPv3 tests against net-snmp (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.

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.
@rinjanianalytics
rinjanianalytics merged commit a9af65f into main Oct 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant