Skip to content
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

Better support legacy DES customers #1671

Merged
merged 3 commits into from
Jul 1, 2024

Conversation

andrewhop
Copy link
Contributor

Issues:

Addresses CryptoAlg-2421

Description of changes:

No one should start using these DES functions, or continue using DES in general. However, for legacy customers that can't change this PR adds a few small utility functions and aligns AWS-LC with the behavior they expect from OpenSSL.

Call-outs:

I updated DES_set_key to perform the same checks as OpenSSL and updated internal usages to use DES_set_key_unchecked.

Testing:

Added new tests and ensured existing tests still pass.

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.

@andrewhop andrewhop requested a review from a team as a code owner June 28, 2024 01:15
@codecov-commenter
Copy link

codecov-commenter commented Jun 28, 2024

Codecov Report

Attention: Patch coverage is 97.95918% with 1 line in your changes missing coverage. Please review.

Project coverage is 78.26%. Comparing base (772e22d) to head (e68d90e).
Report is 2 commits behind head on main.

Files Patch % Lines
crypto/des/des.c 96.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1671      +/-   ##
==========================================
- Coverage   78.27%   78.26%   -0.02%     
==========================================
  Files         566      567       +1     
  Lines       95185    95224      +39     
  Branches    13664    13671       +7     
==========================================
+ Hits        74502    74523      +21     
- Misses      20088    20107      +19     
+ Partials      595      594       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@torben-hansen
Copy link
Contributor

FYI mariadb_integration_* CI dimension breaks by this change

@torben-hansen torben-hansen self-requested a review June 28, 2024 13:43
to perform expected checks before using the key. Update exisitin internal
usage to DES_set_key_unchecked to maintain existing behavior.
@andrewhop andrewhop force-pushed the des_utility_functions branch 2 times, most recently from 670f27e to e1cb0d5 Compare June 28, 2024 17:50
@andrewhop andrewhop merged commit ba94617 into aws:main Jul 1, 2024
96 of 99 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.

5 participants