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

Add Hybrid Encryption/Decryption to CLI #1478

Merged
merged 3 commits into from
Dec 5, 2024

Conversation

tyurek
Copy link
Collaborator

@tyurek tyurek commented Dec 5, 2024

I'm going to tidy this up in a bit, but the functionality is there I believe. Let me know if I missed something important

Copy link

codecov bot commented Dec 5, 2024

Codecov Report

Attention: Patch coverage is 97.20430% with 13 lines in your changes missing coverage. Please review.

Project coverage is 93.34%. Comparing base (03a801e) to head (3ac61da).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
ipa-core/src/cli/crypto/hybrid_decrypt.rs 95.91% 8 Missing ⚠️
ipa-core/src/cli/crypto/hybrid_encrypt.rs 97.08% 4 Missing ⚠️
ipa-core/src/bin/crypto_util.rs 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1478      +/-   ##
==========================================
- Coverage   93.74%   93.34%   -0.40%     
==========================================
  Files         235      238       +3     
  Lines       42679    43318     +639     
==========================================
+ Hits        40011    40437     +426     
- Misses       2668     2881     +213     

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

Copy link
Collaborator

@akoshelev akoshelev left a comment

Choose a reason for hiding this comment

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

fair amount of code duplication, but we will get rid of old IPA stuff

Comment on lines 159 to 171
/*let files = [
&output_dir.path().join("helper1.enc"),
&output_dir.path().join("helper2.enc"),
&output_dir.path().join("helper3.enc"),
];

let world = TestWorld::default();

let mk_private_keys = [
"53d58e022981f2edbf55fec1b45dbabd08a3442cb7b7c598839de5d7a5888bff",
"3a0a993a3cfc7e8d381addac586f37de50c2a14b1a6356d71e94ca2afaeb2569",
"1fb5c5274bf85fbe6c7935684ef05499f6cfb89ac21640c28330135cc0e8a0f7",
];*/
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
/*let files = [
&output_dir.path().join("helper1.enc"),
&output_dir.path().join("helper2.enc"),
&output_dir.path().join("helper3.enc"),
];
let world = TestWorld::default();
let mk_private_keys = [
"53d58e022981f2edbf55fec1b45dbabd08a3442cb7b7c598839de5d7a5888bff",
"3a0a993a3cfc7e8d381addac586f37de50c2a14b1a6356d71e94ca2afaeb2569",
"1fb5c5274bf85fbe6c7935684ef05499f6cfb89ac21640c28330135cc0e8a0f7",
];*/

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah, I'm basically trying to avoid relying on the other code at all, so lots of duplication

@tyurek tyurek marked this pull request as ready for review December 5, 2024 07:37
@tyurek tyurek changed the title [Draft] Add Hybrid Encryption/Decryption to CLI Add Hybrid Encryption/Decryption to CLI Dec 5, 2024
@tyurek tyurek merged commit 4c89a62 into private-attribution:main Dec 5, 2024
12 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.

2 participants