> Should there be padding between 1408 and the default MTU of 1420?

WireGuard _always_ requires padding when the plaintext length isn’t a multiple 
of 16. Special handling needs to happen if said padding would cause the wg(4) 
MTU to be exceeded namely padding is truncated to fit the MTU. Thus if the MTU 
is 1420, and the plaintext before padding has length inclusively between 1409 
and 1419 it must be padded to have length 1420. When it has length 1420, it’s 
“padded” with nothing since it’s already at the boundary.

Reply via email to