update Retry key and nonce to the values used in draft-25

This commit is contained in:
Marten Seemann
2020-01-22 10:51:32 +07:00
parent 62d3a4166a
commit 52f9811046

View File

@@ -13,7 +13,7 @@ import (
var retryAEAD cipher.AEAD
func init() {
var key = [16]byte{0xf5, 0xed, 0x46, 0x42, 0xe0, 0xe4, 0xc8, 0xd8, 0x78, 0xbb, 0xbc, 0x8a, 0x82, 0x88, 0x21, 0xc9}
var key = [16]byte{0x4d, 0x32, 0xec, 0xdb, 0x2a, 0x21, 0x33, 0xc8, 0x41, 0xe4, 0x04, 0x3d, 0xf2, 0x7d, 0x44, 0x30}
aes, err := aes.NewCipher(key[:])
if err != nil {
@@ -28,7 +28,7 @@ func init() {
var retryBuf bytes.Buffer
var retryMutex sync.Mutex
var retryNonce [12]byte
var retryNonce = [12]byte{0x4d, 0x16, 0x11, 0xd0, 0x55, 0x13, 0xa5, 0x52, 0xc5, 0x87, 0xd5, 0x75}
// GetRetryIntegrityTag calculates the integrity tag on a Retry packet
func GetRetryIntegrityTag(retry []byte, origDestConnID protocol.ConnectionID) *[16]byte {