mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 20:57:36 +03:00
35 lines
581 B
Go
35 lines
581 B
Go
package handshake
|
|
|
|
import (
|
|
"crypto"
|
|
|
|
"github.com/golang/mock/gomock"
|
|
"github.com/marten-seemann/qtls"
|
|
|
|
. "github.com/onsi/ginkgo"
|
|
. "github.com/onsi/gomega"
|
|
|
|
"testing"
|
|
)
|
|
|
|
func TestHandshake(t *testing.T) {
|
|
RegisterFailHandler(Fail)
|
|
RunSpecs(t, "Handshake Suite")
|
|
}
|
|
|
|
var mockCtrl *gomock.Controller
|
|
|
|
var _ = BeforeEach(func() {
|
|
mockCtrl = gomock.NewController(GinkgoT())
|
|
})
|
|
|
|
var _ = AfterEach(func() {
|
|
mockCtrl.Finish()
|
|
})
|
|
|
|
var aesSuite = &qtls.CipherSuiteTLS13{
|
|
ID: qtls.TLS_AES_128_GCM_SHA256,
|
|
KeyLen: 16,
|
|
AEAD: qtls.AEADAESGCMTLS13,
|
|
Hash: crypto.SHA256,
|
|
}
|