create CryptoSetup for the client, use it in the Session

This commit is contained in:
Marten Seemann
2016-11-07 16:45:00 +07:00
parent f662ce0705
commit 23435253db
4 changed files with 157 additions and 31 deletions

View File

@@ -46,7 +46,7 @@ type cryptoSetupServer struct {
var _ crypto.AEAD = &cryptoSetupServer{}
// NewCryptoSetup creates a new CryptoSetup instance
// NewCryptoSetup creates a new CryptoSetup instance for a server
func NewCryptoSetup(
connID protocol.ConnectionID,
ip net.IP,