mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
sync: quic-go 0.42.0
Signed-off-by: Gaukas Wang <i@gaukas.wang>
This commit is contained in:
parent
d40dde9b9b
commit
4973374ea5
252 changed files with 13121 additions and 5437 deletions
|
@ -16,7 +16,7 @@ import (
|
|||
)
|
||||
|
||||
var _ = Describe("Long Header AEAD", func() {
|
||||
for _, ver := range []protocol.VersionNumber{protocol.Version1, protocol.Version2} {
|
||||
for _, ver := range []protocol.Version{protocol.Version1, protocol.Version2} {
|
||||
v := ver
|
||||
|
||||
Context(fmt.Sprintf("using version %s", v), func() {
|
||||
|
@ -34,8 +34,8 @@ var _ = Describe("Long Header AEAD", func() {
|
|||
aead, err := cipher.NewGCM(block)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
|
||||
return newLongHeaderSealer(aead, newHeaderProtector(cs, hpKey, true, v)),
|
||||
newLongHeaderOpener(aead, newHeaderProtector(cs, hpKey, true, v))
|
||||
return newLongHeaderSealer(&xorNonceAEAD{aead: aead}, newHeaderProtector(cs, hpKey, true, v)),
|
||||
newLongHeaderOpener(&xorNonceAEAD{aead: aead}, newHeaderProtector(cs, hpKey, true, v))
|
||||
}
|
||||
|
||||
Context("message encryption", func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue