forked from quic-go/quic-go
refactor initialization of AEADs
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package handshake
|
||||
|
||||
import (
|
||||
"crypto"
|
||||
"crypto/cipher"
|
||||
"crypto/tls"
|
||||
"net"
|
||||
"time"
|
||||
@@ -9,6 +11,13 @@ import (
|
||||
"github.com/marten-seemann/qtls"
|
||||
)
|
||||
|
||||
type cipherSuite interface {
|
||||
Hash() crypto.Hash
|
||||
KeyLen() int
|
||||
IVLen() int
|
||||
AEAD(key, nonce []byte) cipher.AEAD
|
||||
}
|
||||
|
||||
type conn struct {
|
||||
remoteAddr net.Addr
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user