Replace hardcoded 32 tag length in tls-crypt

This commit is contained in:
Davide De Rosa 2018-11-06 10:31:03 +01:00
parent b366925125
commit 36e93651ba
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ extension ControlChannel {
headerLength = PacketOpcodeLength + PacketSessionIdLength
adLength = headerLength + PacketReplayIdLength + PacketReplayTimestampLength
tagLength = 32
tagLength = crypto.tagLength()
currentReplayId = BidirectionalState(withResetValue: 1)
plain = PlainSerializer()