Replace hardcoded 32 tag length in tls-crypt
This commit is contained in:
parent
b366925125
commit
36e93651ba
|
@ -233,7 +233,7 @@ extension ControlChannel {
|
|||
|
||||
headerLength = PacketOpcodeLength + PacketSessionIdLength
|
||||
adLength = headerLength + PacketReplayIdLength + PacketReplayTimestampLength
|
||||
tagLength = 32
|
||||
tagLength = crypto.tagLength()
|
||||
|
||||
currentReplayId = BidirectionalState(withResetValue: 1)
|
||||
plain = PlainSerializer()
|
||||
|
|
Loading…
Reference in New Issue