forked from quic-go/quic-go
update the initial salt for draft-22
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
|||||||
"github.com/marten-seemann/qtls"
|
"github.com/marten-seemann/qtls"
|
||||||
)
|
)
|
||||||
|
|
||||||
var quicVersion1Salt = []byte{0xef, 0x4f, 0xb0, 0xab, 0xb4, 0x74, 0x70, 0xc4, 0x1b, 0xef, 0xcf, 0x80, 0x31, 0x33, 0x4f, 0xae, 0x48, 0x5e, 0x09, 0xa0}
|
var quicVersion1Salt = []byte{0x7f, 0xbc, 0xdb, 0x0e, 0x7c, 0x66, 0xbb, 0xe9, 0x19, 0x3a, 0x96, 0xcd, 0x21, 0x51, 0x9e, 0xbd, 0x7a, 0x02, 0x64, 0x4a}
|
||||||
|
|
||||||
// NewInitialAEAD creates a new AEAD for Initial encryption / decryption.
|
// NewInitialAEAD creates a new AEAD for Initial encryption / decryption.
|
||||||
func NewInitialAEAD(connID protocol.ConnectionID, pers protocol.Perspective) (LongHeaderSealer, LongHeaderOpener, error) {
|
func NewInitialAEAD(connID protocol.ConnectionID, pers protocol.Perspective) (LongHeaderSealer, LongHeaderOpener, error) {
|
||||||
|
|||||||
@@ -31,7 +31,8 @@ var _ = Describe("Initial AEAD using AES-GCM", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// values taken from https://github.com/quicwg/base-drafts/wiki/Test-Vector-for-the-Clear-Text-AEAD-key-derivation
|
// values taken from https://github.com/quicwg/base-drafts/wiki/Test-Vector-for-the-Clear-Text-AEAD-key-derivation
|
||||||
Context("using the test vector from the QUIC draft", func() {
|
// The draft didn't update the test vectors for -22.
|
||||||
|
PContext("using the test vector from the QUIC draft", func() {
|
||||||
var connID protocol.ConnectionID
|
var connID protocol.ConnectionID
|
||||||
|
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
|
|||||||
Reference in New Issue
Block a user