]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Correctly set the initial vector for TLS v1.3 for mlx5en(4).
authorhselasky <hselasky@FreeBSD.org>
Mon, 25 May 2020 12:34:15 +0000 (12:34 +0000)
committerhselasky <hselasky@FreeBSD.org>
Mon, 25 May 2020 12:34:15 +0000 (12:34 +0000)
commite94f8ae561ca8ae61b6a5456e3c9e12392180291
treeb6391887835c1d875f37d47c6323771637870c7a
parentc077147cc92ee827b3ecdd59190dc8b301eec57b
Correctly set the initial vector for TLS v1.3 for mlx5en(4).

For TLS v1.3 the 12 bytes of the initial vector, IV, should just be copied
as-is from the kernel to the gcm_iv field, which hold the first 4 bytes,
and the remaining 8 bytes go to the subsequent implicit_iv field.
There is no need to consider the byte order on the 12 bytes of IV like
initially done.

Sponsored by: Mellanox Technologies
sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c