mirror of
https://github.com/logos-messaging/js-noise.git
synced 2026-01-02 05:33:09 +00:00
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…
x
Reference in New Issue
Block a user