tls: expand use of tls_cipher_desc in tls_sw_fallback_init
authorSabrina Dubroca <sd@queasysnail.net>
Fri, 25 Aug 2023 21:35:17 +0000 (23:35 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 28 Aug 2023 00:17:42 +0000 (17:17 -0700)
commite907277aeb6caad1c4be96e20195f24531fcfefc
treeee435352d8ded7e1e9b9521c83551b50e8a73314
parentd2322cf5ed59f084ac86d9339f7c3acccd177bfd
tls: expand use of tls_cipher_desc in tls_sw_fallback_init

tls_sw_fallback_init already gets the key and tag size from
tls_cipher_desc. We can now also check that the cipher type is valid,
and stop hard-coding the algorithm name passed to crypto_alloc_aead.

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://lore.kernel.org/r/c8c94b8fcafbfb558e09589c1f1ad48dbdf92f76.1692977948.git.sd@queasysnail.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/tls/tls_device_fallback.c