diff --git a/src/handshake.ts b/src/handshake.ts index 6a9623c..0580081 100644 --- a/src/handshake.ts +++ b/src/handshake.ts @@ -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.