-
-
Notifications
You must be signed in to change notification settings - Fork 750
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
crypto: use a one-step kdf for session keys, fixes #7953 #7955
crypto: use a one-step kdf for session keys, fixes #7953 #7955
Conversation
c2e29f7
to
9398f97
Compare
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #7955 +/- ##
==========================================
- Coverage 83.65% 83.65% -0.01%
==========================================
Files 66 66
Lines 11860 11861 +1
Branches 2149 2150 +1
==========================================
Hits 9922 9922
- Misses 1363 1364 +1
Partials 575 575 ☔ View full report in Codecov by Sentry. |
Nice:
|
Just a thought, but I know I used the word |
e1b975e
to
ceb6456
Compare
@enkore can you review, please? You added the hkdf code 7y ago for the TAM stuff. In master branch, i removed all the TAM stuff because we have typed repo objects now, so borg actually knows what's metadata and what's user data and verifies that it gets the type of object it requested from the repo. So the session key computation was the last user of that hkdf and after discussion in #7953 a way simpler "one-step kdf" was found. |
also: - fixes, simplifies, speeds up _get_session_key - convert sessionid memoryview to bytes before calling _get_cipher, to avoid TypeError in (crypt_key + sessionid + domain) operation. - add docstring and comments
ceb6456
to
74c34ba
Compare
No description provided.