Lines Matching refs:cipher_desc

48 	const struct tls_cipher_desc *cipher_desc;  in tls_enc_record()  local
55 cipher_desc = get_cipher_desc(prot->cipher_type); in tls_enc_record()
56 DEBUG_NET_WARN_ON_ONCE(!cipher_desc || !cipher_desc->offloadable); in tls_enc_record()
58 buf_size = TLS_HEADER_SIZE + cipher_desc->iv; in tls_enc_record()
69 len -= cipher_desc->iv; in tls_enc_record()
71 tls_make_aad(aad, len - cipher_desc->tag, (char *)&rcd_sn, buf[0], prot); 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()
288 const struct tls_cipher_desc *cipher_desc = in fill_sg_out() local
295 sg_set_buf(&sg_out[2], dummy_buf, cipher_desc->tag); in fill_sg_out()
307 const struct tls_cipher_desc *cipher_desc; in tls_enc_skb() local
317 cipher_desc = get_cipher_desc(tls_ctx->crypto_send.info.cipher_type); in tls_enc_skb()
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()
327 salt = crypto_info_salt(&tls_ctx->crypto_send.info, cipher_desc); in tls_enc_skb()
328 memcpy(iv, salt, cipher_desc->salt); in tls_enc_skb()
329 aad = buf + cipher_desc->salt + cipher_desc->iv; in tls_enc_skb()
443 const struct tls_cipher_desc *cipher_desc; in tls_sw_fallback_init() local
446 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in tls_sw_fallback_init()
447 if (!cipher_desc || !cipher_desc->offloadable) in tls_sw_fallback_init()
451 crypto_alloc_aead(cipher_desc->cipher_name, 0, CRYPTO_ALG_ASYNC); in tls_sw_fallback_init()
460 crypto_info_key(crypto_info, cipher_desc), in tls_sw_fallback_init()
461 cipher_desc->key); in tls_sw_fallback_init()
465 rc = crypto_aead_setauthsize(offload_ctx->aead_send, cipher_desc->tag); in tls_sw_fallback_init()