OSDN Git Service

tls: extend tls_cipher_desc to fully describe the ciphers
authorSabrina Dubroca <sd@queasysnail.net>
Fri, 25 Aug 2023 21:35:13 +0000 (23:35 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 28 Aug 2023 00:17:41 +0000 (17:17 -0700)
commit176a3f50bc6a327c82c6b051b0bedd19917081a2
tree66b70d11deb5edacf23b16eefc0c385346bafc21
parent8db44ab26bebe969851468bea6072d9a094b2ace
tls: extend tls_cipher_desc to fully describe the ciphers

- add nonce, usually equal to iv_size but not for chacha
 - add offsets into the crypto_info for each field
 - add algorithm name
 - add offloadable flag

Also add helpers to access each field of a crypto_info struct
described by a tls_cipher_desc.

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