Skip to content

Conversation

@nhatnghiho
Copy link
Contributor

Description of changes:

Add EVP_bf_cfb64 cipher to public API

Testing:

Unit test added

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.

@nhatnghiho nhatnghiho requested a review from a team as a code owner November 19, 2025 23:30
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

SCOPED_TRACE(test_num);

uint8_t out[sizeof(test.cfb_ciphertext)];
int out_bytes, final_bytes;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: variable 'final_bytes' is not initialized [cppcoreguidelines-init-variables]

Suggested change
int out_bytes, final_bytes;
int out_bytes, final_bytes = 0;

SCOPED_TRACE(test_num);

uint8_t out[sizeof(test.cfb_ciphertext)];
int out_bytes, final_bytes;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: variable 'out_bytes' is not initialized [cppcoreguidelines-init-variables]

Suggested change
int out_bytes, final_bytes;
int out_bytes = 0, final_bytes;

@codecov-commenter
Copy link

codecov-commenter commented Nov 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.25%. Comparing base (8009085) to head (0a64bc3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2851   +/-   ##
=======================================
  Coverage   78.24%   78.25%           
=======================================
  Files         683      683           
  Lines      117346   117362   +16     
  Branches    16488    16487    -1     
=======================================
+ Hits        91821    91836   +15     
- Misses      24641    24642    +1     
  Partials      884      884           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines +643 to +644

const EVP_CIPHER *EVP_bf_cfb64(void) { return &bf_cfb; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is the only required change in this file, with the others just being formatting. To reduce the noise, could the non-essential changes above be reverted?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's my autoformatter using our clang-format config. But I'd imagine that anyone with the same formatting config will also inadvertently change the file later on?

@justsmth justsmth merged commit 6de0cdb into aws:main Nov 21, 2025
504 of 509 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.

4 participants