-
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
Trusted Device Encryption #497
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #497 +/- ##
==========================================
+ Coverage 50.08% 50.68% +0.60%
==========================================
Files 161 162 +1
Lines 7881 7998 +117
==========================================
+ Hits 3947 4054 +107
- Misses 3934 3944 +10 ☔ View full report in Codecov by Sentry. |
# Conflicts: # crates/bitwarden-crypto/src/device_key.rs # crates/bitwarden-crypto/src/enc_string/asymmetric.rs # crates/bitwarden-crypto/src/rsa.rs # crates/bitwarden/src/crypto/mod.rs
# Conflicts: # crates/bitwarden-crypto/src/enc_string/asymmetric.rs
Fixed Issues
|
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.
Looks good!
pub struct DeviceKey(SymmetricCryptoKey); | ||
|
||
#[derive(Debug)] | ||
pub struct CreateDeviceKey { |
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.
nit: Not sure of the naming scheme here but at a glance this tells me these are the inputs needed to create a Device Key. Maybe this should be CreatedDeviceKey
?
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.
Good point, I've renamed it to TrustDeviceResponse which is inline with other structs. We'll want to revisit this in the future.
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.
LGTM. Some minor formatting, not sure why rustfmt didn't catch that
Type of change
Objective
Implement trusted device encryption. Verified backwards compatibility with existing device keys from desktop.
Before you submit