]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit09c0457430b703ef838ce9d295541e754ac06f90
treebd7ca3a1b9ac1df33fcbb97a7a2f79142970a117
parentf14a488adfdb19bcc85f56db849af750d4ea1902
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