diff options
| author | Sabrina Dubroca <[email protected]> | 2023-10-09 20:50:48 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-10-13 10:26:10 +0000 |
| commit | 1a074f7618e8b82a7cebf45df6e005d2284446ce (patch) | |
| tree | e87977b94d9aeea66d5e61670a8a42dff3520452 /net/tls/tls.h | |
| parent | tls: move tls_prot_info initialization out of tls_set_sw_offload (diff) | |
| download | kernel-1a074f7618e8b82a7cebf45df6e005d2284446ce.tar.gz kernel-1a074f7618e8b82a7cebf45df6e005d2284446ce.zip | |
tls: also use init_prot_info in tls_set_device_offload
Most values are shared. Nonce size turns out to be equal to IV size
for all offloadable ciphers.
Signed-off-by: Sabrina Dubroca <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tls/tls.h')
| -rw-r--r-- | net/tls/tls.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/tls/tls.h b/net/tls/tls.h index 16830aa2d6ec..756ed6cbc3df 100644 --- a/net/tls/tls.h +++ b/net/tls/tls.h @@ -142,6 +142,10 @@ void update_sk_prot(struct sock *sk, struct tls_context *ctx); int wait_on_pending_writer(struct sock *sk, long *timeo); void tls_err_abort(struct sock *sk, int err); +int init_prot_info(struct tls_prot_info *prot, + const struct tls_crypto_info *crypto_info, + const struct tls_cipher_desc *cipher_desc, + int mode); int tls_set_sw_offload(struct sock *sk, struct tls_context *ctx, int tx); void tls_update_rx_zc_capable(struct tls_context *tls_ctx); void tls_sw_strparser_arm(struct sock *sk, struct tls_context *ctx); |
