forked from quic-go/quic-go
validate that CryptoSetup is an AEAD
This commit is contained in:
@@ -32,6 +32,8 @@ type CryptoSetup struct {
|
|||||||
mutex sync.RWMutex
|
mutex sync.RWMutex
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var _ crypto.AEAD = &CryptoSetup{}
|
||||||
|
|
||||||
// NewCryptoSetup creates a new CryptoSetup instance
|
// NewCryptoSetup creates a new CryptoSetup instance
|
||||||
func NewCryptoSetup(connID protocol.ConnectionID, version protocol.VersionNumber, scfg *ServerConfig, cryptoStream utils.Stream) *CryptoSetup {
|
func NewCryptoSetup(connID protocol.ConnectionID, version protocol.VersionNumber, scfg *ServerConfig, cryptoStream utils.Stream) *CryptoSetup {
|
||||||
nonce := make([]byte, 32)
|
nonce := make([]byte, 32)
|
||||||
|
|||||||
Reference in New Issue
Block a user