use the updated salt for draft-34

This commit is contained in:
Marten Seemann
2021-02-05 13:34:24 +08:00
parent d5025b1373
commit f01a2c6b96
6 changed files with 143 additions and 65 deletions

View File

@@ -65,7 +65,7 @@ func ComposeAckFrame(smallest protocol.PacketNumber, largest protocol.PacketNumb
// ComposeInitialPacket returns an Initial packet encrypted under key
// (the original destination connection ID) containing specified frames
func ComposeInitialPacket(srcConnID protocol.ConnectionID, destConnID protocol.ConnectionID, version protocol.VersionNumber, key protocol.ConnectionID, frames []wire.Frame) []byte {
sealer, _ := handshake.NewInitialAEAD(key, protocol.PerspectiveServer)
sealer, _ := handshake.NewInitialAEAD(key, protocol.PerspectiveServer, version)
// compose payload
var payload []byte