mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-04-25 18:32:22 +00:00
Fix
This commit is contained in:
parent
79d81c3117
commit
4e004ad0ec
@ -215,7 +215,7 @@ export class XXHandshake {
|
|||||||
return plaintext;
|
return plaintext;
|
||||||
}
|
}
|
||||||
|
|
||||||
private split (ss: SymmetricState): void {
|
private split (ss: SymmetricState) {
|
||||||
const [ tempk1, tempk2 ] = this.getHkdf(ss.ck, Buffer.alloc(0));
|
const [ tempk1, tempk2 ] = this.getHkdf(ss.ck, Buffer.alloc(0));
|
||||||
const cs1 = this.initializeKey(tempk1);
|
const cs1 = this.initializeKey(tempk1);
|
||||||
const cs2 = this.initializeKey(tempk2);
|
const cs2 = this.initializeKey(tempk2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user