net/tls: Describe ciphers sizes by const structs
authorTariq Toukan <tariqt@nvidia.com>
Tue, 20 Sep 2022 13:01:47 +0000 (16:01 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 23 Sep 2022 00:27:41 +0000 (17:27 -0700)
commit2d2c5ea24243eb3ed12f232b2aef43981fa15360
treebd7ca3a1b9ac1df33fcbb97a7a2f79142970a117
parent8db3d514e96715c897fe793c4d5fc0fd86aca517
net/tls: Describe ciphers sizes by const structs

Introduce cipher sizes descriptor. It helps reducing the amount of code
duplications and repeated switch/cases that assigns the proper sizes
according to the cipher type.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/tls.h
net/tls/tls_main.c