summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-09-22 17:27:45 -0700
committerJakub Kicinski <kuba@kernel.org>2022-09-22 17:27:46 -0700
commit03d25cf7a0e9e83448a67cd1e3c51712f3273984 (patch)
treea8ddd9adfa7f787556161af4b0d385637dd02f3b /include
parent8db3d514e96715c897fe793c4d5fc0fd86aca517 (diff)
parent4960c414db3582b266dce660bd8eff41157fe2f9 (diff)
downloadlinux-03d25cf7a0e9e83448a67cd1e3c51712f3273984.tar.gz
linux-03d25cf7a0e9e83448a67cd1e3c51712f3273984.zip
Merge branch 'support-256-bit-tls-keys-with-device-offload'
Gal Pressman says: ==================== Support 256 bit TLS keys with device offload This series adds support for 256 bit TLS keys with device offload, and a cleanup patch to remove repeating code: - Patches #1-2 add cipher sizes descriptors which allow reducing the amount of code duplications. - Patch #3 allows 256 bit keys to be TX offloaded in the tls module (RX already supported). - Patch #4 adds 256 bit keys support to the mlx5 driver. ==================== Link: https://lore.kernel.org/r/20220920130150.3546-1-gal@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/tls.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/tls.h b/include/net/tls.h
index cb205f9d9473..154949c7b0c8 100644
--- a/include/net/tls.h
+++ b/include/net/tls.h
@@ -51,6 +51,16 @@
struct tls_rec;
+struct tls_cipher_size_desc {
+ unsigned int iv;
+ unsigned int key;
+ unsigned int salt;
+ unsigned int tag;
+ unsigned int rec_seq;
+};
+
+extern const struct tls_cipher_size_desc tls_cipher_size_desc[];
+
/* Maximum data size carried in a TLS record */
#define TLS_MAX_PAYLOAD_SIZE ((size_t)1 << 14)