1
0
mirror of https://git.zx2c4.com/wireguard-go synced 2024-11-15 01:05:15 +01:00

constants: recalculate rekey max based on a one minute flood

Discussed-with: Mathias Hall-Andersen <mathias@hall-andersen.dk>
This commit is contained in:
Jason A. Donenfeld 2019-10-30 14:29:32 +01:00
parent f7d0edd2ec
commit 4cdf805b29

View File

@ -12,7 +12,7 @@ import (
/* Specification constants */ /* Specification constants */
const ( const (
RekeyAfterMessages = (1 << 64) - (1 << 16) - 1 RekeyAfterMessages = (1 << 60)
RejectAfterMessages = (1 << 64) - (1 << 4) - 1 RejectAfterMessages = (1 << 64) - (1 << 4) - 1
RekeyAfterTime = time.Second * 120 RekeyAfterTime = time.Second * 120
RekeyAttemptTime = time.Second * 90 RekeyAttemptTime = time.Second * 90