introduce a separate AEAD for short header crypto

This commit is contained in:
Marten Seemann
2019-06-11 09:59:12 +08:00
parent 598628d05b
commit 0dd5a0b91f
6 changed files with 202 additions and 119 deletions

View File

@@ -34,7 +34,7 @@ func NewInitialAEAD(connID protocol.ConnectionID, pers protocol.Perspective) (Lo
if err != nil {
return nil, nil, err
}
return newSealer(encrypter, hpEncrypter, false), newLongHeaderOpener(decrypter, hpDecrypter), nil
return newLongHeaderSealer(encrypter, hpEncrypter), newLongHeaderOpener(decrypter, hpDecrypter), nil
}
func computeSecrets(connID protocol.ConnectionID) (clientSecret, serverSecret []byte) {