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

v6: add S2K Argon2 and AEAD s2k usage #2296

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TJ-91
Copy link
Contributor

@TJ-91 TJ-91 commented Dec 4, 2024

implements Argon2 for S2K (secret keys, SKESKs), as well as AEAD encryption for secret keys.

Does not add new API functionality, however, that might be desired to give the user fine-grained control.

key->material->write(material_body);
// also add the key material length for v6
if (key->version == PGP_V6) {
// write_uint32(bytes, body.size());

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
Copy link

codecov bot commented Dec 4, 2024

Codecov Report

Attention: Patch coverage is 73.13433% with 18 lines in your changes missing coverage. Please review.

Project coverage is 84.82%. Comparing base (ddcbaa9) to head (ef7ee3a).

Files with missing lines Patch % Lines
src/lib/crypto/s2k.cpp 18.75% 13 Missing ⚠️
src/librepgp/stream-packet.cpp 75.00% 4 Missing ⚠️
src/librepgp/stream-key.cpp 91.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             main    #2296     +/-   ##
=========================================
  Coverage   84.81%   84.82%             
=========================================
  Files         116      102     -14     
  Lines       23346    21533   -1813     
=========================================
- Hits        19802    18265   -1537     
+ Misses       3544     3268    -276     

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

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.

1 participant