Renaming shared secret to session key (#133)
This commit is contained in:
@@ -184,13 +184,13 @@ fn open_locker(
|
||||
|
||||
// Server sends locker contents, encrypted under the session key, to the client
|
||||
let encrypted_locker_contents =
|
||||
encrypt(&server_login_finish_result.shared_secret, &locker.contents);
|
||||
encrypt(&server_login_finish_result.session_key, &locker.contents);
|
||||
|
||||
// Client decrypts contents of locker, first under the shared secret, and then under the export key
|
||||
// Client decrypts contents of locker, first under the session key, and then under the export key
|
||||
let plaintext = decrypt(
|
||||
&client_login_finish_result.export_key,
|
||||
&decrypt(
|
||||
&client_login_finish_result.shared_secret,
|
||||
&client_login_finish_result.session_key,
|
||||
&encrypted_locker_contents,
|
||||
),
|
||||
);
|
||||
|
||||
@@ -137,7 +137,7 @@ fn account_login(
|
||||
.finish(CredentialFinalization::deserialize(&credential_finalization_bytes[..]).unwrap())
|
||||
.unwrap();
|
||||
|
||||
client_login_finish_result.shared_secret == server_login_finish_result.shared_secret
|
||||
client_login_finish_result.session_key == server_login_finish_result.session_key
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
||||
Reference in New Issue
Block a user