]> git.baikalelectronics.ru Git - kernel.git/commit
net/tls: make sure tls offload sets salt_size
authorRohit Maheshwari <rohitm@chelsio.com>
Tue, 1 Dec 2020 09:07:52 +0000 (14:37 +0530)
committerJakub Kicinski <kuba@kernel.org>
Wed, 2 Dec 2020 01:51:30 +0000 (17:51 -0800)
commit659a98eee5f9bedca183a08c3ae1ec8a675abeeb
treec6ed7d5e8e40a0e273b1705472056a1ee6ace69b
parenta6ba9bfc7ae1e582ed2a03a971eadb185e1d52e2
net/tls: make sure tls offload sets salt_size

Recent changes made to remove AES constants started using protocol
aware salt_size. ctx->prot_info's salt_size is filled in tls sw case,
but not in tls offload mode, and was working so far because of the
hard coded value was used.

Fixes: 49ffcbb22341 ("net/tls: make inline helpers protocol-aware")
Signed-off-by: Rohit Maheshwari <rohitm@chelsio.com>
Link: https://lore.kernel.org/r/20201201090752.27355-1-rohitm@chelsio.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/tls/tls_device.c