Fix out-of-phase key update

We were returning keys from the previous phase rather than the current
one.
This commit is contained in:
Benjamin Saunders 2020-05-23 21:01:13 -07:00 committed by ctz
parent b940acce5e
commit cf457c4315
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ fn next_1rtt_keys(this: &mut SessionCommon) -> PacketKeySet {
let next = next_1rtt_secrets(hkdf_alg, secrets);
let (local, remote) = secrets.local_remote(this.is_client);
let (local, remote) = next.local_remote(this.is_client);
let keys = PacketKeySet {
local: PacketKey::new(this.get_suite_assert(), local),
remote: PacketKey::new(this.get_suite_assert(), remote),