mirror of
https://github.com/tladesignz/dnstt.git
synced 2026-10-13 17:48:11 +03:00
Use a global CipherSuite.
This commit is contained in:
+3
-1
@@ -95,9 +95,11 @@ func (rw *ReadWriter) Close() error {
|
||||
return rw.rw.Close()
|
||||
}
|
||||
|
||||
var cipherSuite = noise.NewCipherSuite(noise.DH25519, noise.CipherChaChaPoly, noise.HashBLAKE2s)
|
||||
|
||||
func newConfig(initiator bool) noise.Config {
|
||||
return noise.Config{
|
||||
CipherSuite: noise.NewCipherSuite(noise.DH25519, noise.CipherChaChaPoly, noise.HashBLAKE2s),
|
||||
CipherSuite: cipherSuite,
|
||||
Pattern: noise.HandshakeNK,
|
||||
Initiator: initiator,
|
||||
Prologue: []byte("dnstt 2020-04-13"),
|
||||
|
||||
Reference in New Issue
Block a user