Repository navigation
Adds AES256 with 3DES support for priv_protocol. - #78
Merged
mashhurs merged 4 commits intoOct 7, 2025
Merged
Conversation
edmocosta
reviewed
Aug 28, 2025
edmocosta
approved these changes
Aug 29, 2025
mashhurs
marked this pull request as draft
September 2, 2025 18:41
mashhurs
force-pushed
the
aes256-with-3des-support
branch
from
October 3, 2025 21:07
90555ca to
4c7084e
Compare
Contributor
Author
|
Rebased after landing CI matrix update: #79 |
mashhurs
marked this pull request as ready for review
October 6, 2025 16:47
This was referenced Oct 7, 2025
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.
Description
This PR adds AES 256 with 3DES key extension support for priv protocol.
How to test?
Investigation details
There are various simulators and a bit after research I found https://github.com/lextudio/snmpsim which is actively maintained (and forked from https://github.com/etingof/snmpsim). The documentation doesn't provide much info and simply mentioned it has
–v3-auth-protowith AES256. Reference: https://docs.lextudio.com/snmpsim/documentation/command-line-options#v3-auth-protoDeep diving into the source code,
AES256binds toconfig.usmAesCfb256Protocol-https://github.com/lextudio/snmpsim/blob/master/snmpsim/commands/cmd2rec.py#L54snmpsimeventually depends onpysnmppackage and it mentionsconfig.usmAesCfb256Protocolis a non-standard option - https://github.com/pysnmp/pysnmp/blob/main/pysnmp/entity/config.py#L44Steps to test
/test-snmpsim/datafolder and createself.snmprecand following data. Make sure your file name is exactlyself.snmprec, otherwise we hit this issue Cannot retrieve data from snmpsim with SNMP V3 etingof/snmpsim#170, with the solution Cannot retrieve data from snmpsim with SNMP V3 etingof/snmpsim#170 (comment)snmpsimresponder with: