Home
last modified time | relevance | path

Searched refs:cipher_desc (Results 1 – 5 of 5) sorted by relevance

/net/tls/
A Dtls_device_fallback.c56 DEBUG_NET_WARN_ON_ONCE(!cipher_desc || !cipher_desc->offloadable); in tls_enc_record()
69 len -= cipher_desc->iv; in tls_enc_record()
73 memcpy(iv + cipher_desc->salt, buf + TLS_HEADER_SIZE, cipher_desc->iv); in tls_enc_record()
84 *in_len += cipher_desc->tag; in tls_enc_record()
103 len -= cipher_desc->tag; in tls_enc_record()
318 DEBUG_NET_WARN_ON_ONCE(!cipher_desc || !cipher_desc->offloadable); in tls_enc_skb()
320 buf_len = cipher_desc->salt + cipher_desc->iv + TLS_AAD_SPACE_SIZE + in tls_enc_skb()
321 sync_size + cipher_desc->tag; in tls_enc_skb()
329 aad = buf + cipher_desc->salt + cipher_desc->iv; in tls_enc_skb()
447 if (!cipher_desc || !cipher_desc->offloadable) in tls_sw_fallback_init()
[all …]
A Dtls.h83 const struct tls_cipher_desc *cipher_desc) in crypto_info_iv() argument
85 return (char *)crypto_info + cipher_desc->iv_offset; in crypto_info_iv()
89 const struct tls_cipher_desc *cipher_desc) in crypto_info_key() argument
91 return (char *)crypto_info + cipher_desc->key_offset; in crypto_info_key()
95 const struct tls_cipher_desc *cipher_desc) in crypto_info_salt() argument
97 return (char *)crypto_info + cipher_desc->salt_offset; in crypto_info_salt()
101 const struct tls_cipher_desc *cipher_desc) in crypto_info_rec_seq() argument
103 return (char *)crypto_info + cipher_desc->rec_seq_offset; in crypto_info_rec_seq()
147 const struct tls_cipher_desc *cipher_desc);
A Dtls_device.c881 const struct tls_cipher_desc *cipher_desc; in tls_device_reencrypt() local
889 DEBUG_NET_WARN_ON_ONCE(!cipher_desc || !cipher_desc->offloadable); in tls_device_reencrypt()
908 rxm->full_len + TLS_HEADER_SIZE + cipher_desc->iv); in tls_device_reencrypt()
920 data_len = rxm->full_len - cipher_desc->tag; in tls_device_reencrypt()
1061 const struct tls_cipher_desc *cipher_desc; in tls_set_device_offload() local
1092 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in tls_set_device_offload()
1093 if (!cipher_desc || !cipher_desc->offloadable) { in tls_set_device_offload()
1098 rc = init_prot_info(prot, crypto_info, cipher_desc); in tls_set_device_offload()
1102 iv = crypto_info_iv(crypto_info, cipher_desc); in tls_set_device_offload()
1105 memcpy(ctx->tx.iv + cipher_desc->salt, iv, cipher_desc->iv); in tls_set_device_offload()
[all …]
A Dtls_main.c442 const struct tls_cipher_desc *cipher_desc; in do_tls_getsockopt_conf() local
481 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in do_tls_getsockopt_conf()
482 if (!cipher_desc || len != cipher_desc->crypto_info) { in do_tls_getsockopt_conf()
487 memcpy(crypto_info_iv(crypto_info, cipher_desc), in do_tls_getsockopt_conf()
488 cctx->iv + cipher_desc->salt, cipher_desc->iv); in do_tls_getsockopt_conf()
489 memcpy(crypto_info_rec_seq(crypto_info, cipher_desc), in do_tls_getsockopt_conf()
490 cctx->rec_seq, cipher_desc->rec_seq); in do_tls_getsockopt_conf()
619 const struct tls_cipher_desc *cipher_desc; in do_tls_setsockopt_conf() local
672 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in do_tls_setsockopt_conf()
673 if (!cipher_desc) { in do_tls_setsockopt_conf()
[all …]
A Dtls_sw.c2717 const struct tls_cipher_desc *cipher_desc) in init_prot_info() argument
2719 u16 nonce_size = cipher_desc->nonce; in init_prot_info()
2737 prot->tag_size = cipher_desc->tag; in init_prot_info()
2739 prot->iv_size = cipher_desc->iv; in init_prot_info()
2740 prot->salt_size = cipher_desc->salt; in init_prot_info()
2741 prot->rec_seq_size = cipher_desc->rec_seq; in init_prot_info()
2761 const struct tls_cipher_desc *cipher_desc; in tls_set_sw_offload() local
2801 if (!cipher_desc) { in tls_set_sw_offload()
2857 memcpy(cctx->iv, salt, cipher_desc->salt); in tls_set_sw_offload()
2858 memcpy(cctx->iv + cipher_desc->salt, iv, cipher_desc->iv); in tls_set_sw_offload()
[all …]

Completed in 155 milliseconds