Added a tiny improvement from my stupid friends
This commit is contained in:
parent
01b0eca079
commit
c96a0714b6
1 changed files with 2 additions and 3 deletions
|
@ -373,11 +373,10 @@ impl RatchetEncHeader {
|
|||
if self.nr + MAX_SKIP < until {
|
||||
return Err("Skipping went wrong")
|
||||
}
|
||||
if let Some(mut d) = self.ckr {
|
||||
if let Some(d) = &mut self.ckr {
|
||||
while self.nr < until {
|
||||
let (ckr, mk) = kdf_ck(&d);
|
||||
self.ckr = Some(ckr);
|
||||
d = ckr;
|
||||
*d = ckr;
|
||||
self.mkskipped.insert((self.hkr, self.nr), mk);
|
||||
self.nr += 1
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue