validate that CryptoSetup is an AEAD

This commit is contained in:
Lucas Clemente
2016-04-20 18:30:49 +02:00
parent eb7d812004
commit 7efc7f79d2

View File

@@ -32,6 +32,8 @@ type CryptoSetup struct {
mutex sync.RWMutex
}
var _ crypto.AEAD = &CryptoSetup{}
// NewCryptoSetup creates a new CryptoSetup instance
func NewCryptoSetup(connID protocol.ConnectionID, version protocol.VersionNumber, scfg *ServerConfig, cryptoStream utils.Stream) *CryptoSetup {
nonce := make([]byte, 32)