Closed Cjyoleon closed 1 year ago
I think the keypair_update function rotates the keys (prev <- curr <- next) if the next key pair has been acknowledged, i.e. if key_is_next in line 454 is true: https://github.com/smartalock/wireguard-lwip/blob/0c44df308984abfb9c9df628002cdf8154c55506/src/wireguard.c#L454
keypair_update
prev
curr
next
key_is_next
So the rotation looks good to me:
I think the
keypair_update
function rotates the keys (prev
<-curr
<-next
) if thenext
key pair has been acknowledged, i.e. ifkey_is_next
in line 454 is true: https://github.com/smartalock/wireguard-lwip/blob/0c44df308984abfb9c9df628002cdf8154c55506/src/wireguard.c#L454So the rotation looks good to me:
prev
withcurr
.curr
withnext
.next
as it has been rotated tocurr
.