-
Notifications
You must be signed in to change notification settings - Fork 50
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
Split EncString for asymmetric support #448
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #448 +/- ##
==========================================
+ Coverage 44.81% 45.21% +0.39%
==========================================
Files 151 153 +2
Lines 6881 6918 +37
==========================================
+ Hits 3084 3128 +44
+ Misses 3797 3790 -7 ☔ View full report in Codecov by Sentry. |
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.
Overall looks good, some thoughts.
I think we should rename EncString to SymcEncString
. We should also standardize on our naming conventions, should SymmetricCryptoKey
be SymCryptokey
(separate PR).
I also wonder if we should keep EncString
as an Enum around Sym and Assym.
I chose not to rename About having an enum encompassing both EncString types, should be easy enough to do in the future but at the moment it doesn't look like we have a need for it. Also I'd be worried that it would give people the idea that it's the main one they would need to use, while we should prefer the use of the compile time explicit Symm/AsymmEncString as much as possible. The naming convention in my head is:
For the rest, they would see less use in most common use cases, so I'm fine with going with the |
Type of change
Objective
Split
EncString
into an asymmetric variant. I've left the symmetric variant with the nameEncString
as it's the most common variant to avoid major changes.This is somewhat related to #447 and should be merged first so that PR can take advantage of the symm/asymm separation.
I've moved the
EncString
files into their own folder to organize the crypto directory a bit better too.