forked from quic-go/quic-go
send KEXS and AEAD value in full client hello
This commit is contained in:
@@ -325,6 +325,8 @@ func (h *cryptoSetupClient) getTags() (map[Tag][]byte, error) {
|
||||
|
||||
tags[TagNONC] = h.nonc
|
||||
tags[TagXLCT] = xlct
|
||||
tags[TagKEXS] = []byte("C255")
|
||||
tags[TagAEAD] = []byte("AESG")
|
||||
tags[TagPUBS] = h.serverConfig.kex.PublicKey() // TODO: check if 3 bytes need to be prepended
|
||||
}
|
||||
}
|
||||
|
||||
@@ -420,7 +420,7 @@ var _ = Describe("Crypto setup", func() {
|
||||
Expect(cs.getTags()).To(Equal(tags))
|
||||
})
|
||||
|
||||
It("sends a client nonce, a public value and the cert hash after reading the certificate and the server config", func() {
|
||||
It("sends a the values needed for a full CHLO after reading the certificate and the server config", func() {
|
||||
certManager.leafCert = []byte("leafcert")
|
||||
cs.nonc = []byte("client-nonce")
|
||||
kex, err := crypto.NewCurve25519KEX()
|
||||
@@ -433,6 +433,8 @@ var _ = Describe("Crypto setup", func() {
|
||||
Expect(tags[TagNONC]).To(Equal(cs.nonc))
|
||||
Expect(tags[TagPUBS]).To(Equal(kex.PublicKey()))
|
||||
Expect(tags[TagXLCT]).To(Equal(xlct))
|
||||
Expect(tags[TagKEXS]).To(Equal([]byte("C255")))
|
||||
Expect(tags[TagAEAD]).To(Equal([]byte("AESG")))
|
||||
})
|
||||
|
||||
It("doesn't send more than MaxClientHellos CHLOs", func() {
|
||||
|
||||
Reference in New Issue
Block a user