mirror of https://github.com/waku-org/js-noise.git
feat: Add `getCSOutbound` & `getCSInbound` methods to `HandshakeResult`
This commit is contained in:
parent
4d6d4ca5bd
commit
e436becaf7
|
@ -47,6 +47,14 @@ export class HandshakeResult {
|
|||
|
||||
constructor(private csOutbound: CipherState, private csInbound: CipherState) {}
|
||||
|
||||
getCSOutbound(): CipherState {
|
||||
return this.csOutbound;
|
||||
}
|
||||
|
||||
getCSInbound(): CipherState {
|
||||
return this.csInbound;
|
||||
}
|
||||
|
||||
// Noise specification, Section 5:
|
||||
// Transport messages are then encrypted and decrypted by calling EncryptWithAd()
|
||||
// and DecryptWithAd() on the relevant CipherState with zero-length associated data.
|
||||
|
|
Loading…
Reference in New Issue