OSDN Git Service

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)
commitd31c080075232a37bf70ddc1fd9ea80433842f43
treec6ed7d5e8e40a0e273b1705472056a1ee6ace69b
parent3d2f670a87b4ef68faa34cf53f8cf2c6695f5e1a
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: 6942a284fb3e ("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