From 7efc7f79d22fedfb1e97dcf8e07d3f07ffe2ed1f Mon Sep 17 00:00:00 2001 From: Lucas Clemente Date: Wed, 20 Apr 2016 18:30:49 +0200 Subject: [PATCH] validate that CryptoSetup is an AEAD --- handshake/crypto_setup.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/handshake/crypto_setup.go b/handshake/crypto_setup.go index e06130f1b..8aaf5e771 100644 --- a/handshake/crypto_setup.go +++ b/handshake/crypto_setup.go @@ -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)