net/tls: Use cipher sizes structs
authorGal Pressman <gal@nvidia.com>
Tue, 20 Sep 2022 13:01:48 +0000 (16:01 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 23 Sep 2022 00:27:42 +0000 (17:27 -0700)
commitea7a9d88ba21dd9d395d7137b0ca1743c5f5d9c2
tree39d06208e19873d247031905bc35ba02aeb0dc2a
parent2d2c5ea24243eb3ed12f232b2aef43981fa15360
net/tls: Use cipher sizes structs

Use the newly introduced cipher sizes structs instead of the repeated
switch cases churn.

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