-
Notifications
You must be signed in to change notification settings - Fork 128
Add AES CBC cipher to speed.cc #2315
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
base: main
Are you sure you want to change the base?
Conversation
… CBC mode which adds more padding
@@ -2875,6 +2877,9 @@ bool Speed(const std::vector<std::string> &args) { | |||
!SpeedEvpCipherGeneric(EVP_aes_128_ctr(), "EVP-AES-128-CTR", kTLSADLen, selected) || | |||
!SpeedEvpCipherGeneric(EVP_aes_192_ctr(), "EVP-AES-192-CTR", kTLSADLen, selected) || | |||
!SpeedEvpCipherGeneric(EVP_aes_256_ctr(), "EVP-AES-256-CTR", kTLSADLen, selected) || | |||
!SpeedEvpCipherGeneric(EVP_aes_128_cbc(), "EVP-AES-128-CBC", kTLSADLen, selected) || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what padding is used here? ISO10126 or PKCSv1.5?
Not a concern for this change, but ACCP supports ISO10126 for CBC, and if we could offload that padding to an AWS-LC API, it'd be a nice simplification.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out this isn't obvious what is used: cipher.h says standard padding is used. Reading the code this uses RFC 5652/PKCS 7 padding (each padding byte value is the number of padding bytes).
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2315 +/- ##
==========================================
- Coverage 78.77% 78.76% -0.02%
==========================================
Files 620 620
Lines 107757 107757
Branches 15296 15295 -1
==========================================
- Hits 84884 84873 -11
- Misses 22218 22229 +11
Partials 655 655 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description of changes:
Testing:
Tested locally, will also be covered in CI:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.