session: fix store secret
This commit is contained in:
parent
404804809e
commit
a2ad8b3334
@ -133,6 +133,12 @@ impl Session {
|
|||||||
ecdhe_shared_secret.as_bytes()
|
ecdhe_shared_secret.as_bytes()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Store the handshake secret
|
||||||
|
self.latest_secret.replace(
|
||||||
|
Vec::from_slice(&handshake_secret)
|
||||||
|
.unwrap()
|
||||||
|
);
|
||||||
|
|
||||||
let client_handshake_traffic_secret = derive_secret(
|
let client_handshake_traffic_secret = derive_secret(
|
||||||
&handshake_secret_hkdf,
|
&handshake_secret_hkdf,
|
||||||
"c hs traffic",
|
"c hs traffic",
|
||||||
@ -305,6 +311,12 @@ impl Session {
|
|||||||
ecdhe_shared_secret.as_bytes()
|
ecdhe_shared_secret.as_bytes()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Store the handshake secret
|
||||||
|
self.latest_secret.replace(
|
||||||
|
Vec::from_slice(&handshake_secret)
|
||||||
|
.unwrap()
|
||||||
|
);
|
||||||
|
|
||||||
let client_handshake_traffic_secret = derive_secret(
|
let client_handshake_traffic_secret = derive_secret(
|
||||||
&handshake_secret_hkdf,
|
&handshake_secret_hkdf,
|
||||||
"c hs traffic",
|
"c hs traffic",
|
||||||
|
Loading…
Reference in New Issue
Block a user