Marcin Wojtas b01edfb515 Fix AES-CTR compatibility issue in ipsec
r361390 decreased blocksize of AES-CTR from 16 to 1.
Because of that ESP payload is no longer aligned to 16 bytes
before being encrypted and sent.
This is a good change since RFC3686 specifies that the last block
doesn't need to be aligned.
Since FreeBSD before r361390 couldn't decrypt partial blocks encrypted
with AES-CTR we need to enforce 16 byte alignment in order to preserve
compatibility.
Add a sysctl(on by default) to control it.

Submitted by: Kornel Duleba <mindal@semihalf.com>
Reviewed by: jhb
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D24999
2020-05-26 14:16:26 +00:00
..
2020-05-26 14:10:53 +00:00
2020-04-24 01:27:25 +00:00
2020-04-14 18:57:00 +00:00
2020-05-23 17:51:06 +00:00
2020-04-23 09:37:22 +00:00
2020-05-21 01:55:35 +00:00
2020-05-14 16:06:54 +00:00
2020-02-03 17:35:11 +00:00