treat the connection ID as a big endian value

This commit is contained in:
Marten Seemann
2017-10-24 16:03:52 +07:00
parent 816cf90ea7
commit ac82aeda8b
8 changed files with 40 additions and 42 deletions

View File

@@ -92,7 +92,7 @@ var _ = Describe("QUIC Crypto Key Derivation", func() {
false,
[]byte("0123456789012345678901"),
[]byte("nonce"),
protocol.ConnectionID(42),
protocol.ConnectionID(0x2a00000000000000), // this was 42 before the connection ID was changed to big endian
[]byte("chlo"),
[]byte("scfg"),
[]byte("cert"),
@@ -142,7 +142,7 @@ var _ = Describe("QUIC Crypto Key Derivation", func() {
false,
[]byte("0123456789012345678901"),
[]byte("nonce"),
protocol.ConnectionID(42),
protocol.ConnectionID(0x2a00000000000000), // this was 42 before the connection ID was changed to big endian
[]byte("chlo"),
[]byte("scfg"),
[]byte("cert"),
@@ -161,7 +161,7 @@ var _ = Describe("QUIC Crypto Key Derivation", func() {
true,
[]byte("0123456789012345678901"),
[]byte("nonce"),
protocol.ConnectionID(42),
protocol.ConnectionID(0x2a00000000000000), // this was 42 before the connection ID was changed to big endian
[]byte("chlo"),
[]byte("scfg"),
[]byte("cert"),
@@ -180,7 +180,7 @@ var _ = Describe("QUIC Crypto Key Derivation", func() {
true,
[]byte("0123456789012345678901"),
[]byte("nonce"),
protocol.ConnectionID(42),
protocol.ConnectionID(0x2a00000000000000), // this was 42 before the connection ID was changed to big endian
[]byte("chlo"),
[]byte("scfg"),
[]byte("cert"),