-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[psp] Add support for the PSP Security Protocol #4678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hi & thanks for the PR ! Could you:
Thanks ! |
Ack, made the changes as suggested. The unit tests include:
This way, the unit tests ensure that Scapy complies with the RFC as part of its regression |
Hi, is there anything else that requires attention/modification in this PR? Please let me know if I can assist in any way in the review process for this change. |
@gpotter2 is there anything I can assist with for this review? I already contributed code in the past to two other projects you help maintain (xrdp and FreeRDP) and would be happy to assist in this one if possible. |
Hi ! I'm really sorry for the delay. I'm currently under really heavy load and have little time available. Sorry about that. The PR looks honestly very good. Could you just gzip the pcaps ? Scapy can read Thanks again for the PR |
Ack, done and ready for review. @gpotter2 Thanks again for your time reviewing this. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4678 +/- ##
==========================================
+ Coverage 82.15% 82.16% +0.01%
==========================================
Files 361 362 +1
Lines 87283 87344 +61
==========================================
+ Hits 71703 71763 +60
- Misses 15580 15581 +1
🚀 New features to boost your workflow:
|
PSP stands for PSP Security Protocol, and is a lightweight IPSec-Like implementation that was released by Google and is getting traction within data centers. This commit adds support for versions 0 & 1 of the protocol which use AES-GCM in 128 and 265 bits. Support was tested against the testing tool of the RFC which generated the same PCAPs that are now used for unit testing. Signed-off-by: Eyal Itkin <eyal.itkin@gmail.com>
Original commit failed on DNS dissector for the naïve example as DNS is the default port for UDP() and the raw payload that we used was not a valid DNS request. While the tests passed locally for some reason they failed in the C/I. Fix was to update the example (and unit test) to use symbolic port numbers of 1234 and 5678 so to avoid this issue. |
Checklist:
cd test && ./run_tests
ortox
)Description:
PSP stands for PSP Security Protocol, and is a lightweight IPSec-Like implementation that was released by Google and is getting traction within data centers.
This commit adds support for versions 0 & 1 of the protocol which use AES-GCM in 128 and 265 bits. Support was tested against the testing tool of the RFC which is quite cumbersome. Example test vector is found in the usage instructions in the code itself.
The field names are taken from the LUA dissector for Wireshark as was provided by the RFC's GitHub repository.