Adds AES256 with 3DES support for priv_protocol. #78
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: