Lines Matching defs:cipher_desc
48 const struct tls_cipher_desc *cipher_desc;
55 cipher_desc = get_cipher_desc(prot->cipher_type);
56 DEBUG_NET_WARN_ON_ONCE(!cipher_desc || !cipher_desc->offloadable);
58 buf_size = TLS_HEADER_SIZE + cipher_desc->iv;
69 len -= cipher_desc->iv;
71 tls_make_aad(aad, len - cipher_desc->tag, (char *)&rcd_sn, buf[0], prot);
73 memcpy(iv + cipher_desc->salt, buf + TLS_HEADER_SIZE, cipher_desc->iv);
84 *in_len += cipher_desc->tag;
103 len -= cipher_desc->tag;
288 const struct tls_cipher_desc *cipher_desc =
295 sg_set_buf(&sg_out[2], dummy_buf, cipher_desc->tag);
307 const struct tls_cipher_desc *cipher_desc;
317 cipher_desc = get_cipher_desc(tls_ctx->crypto_send.info.cipher_type);
318 DEBUG_NET_WARN_ON_ONCE(!cipher_desc || !cipher_desc->offloadable);
320 buf_len = cipher_desc->salt + cipher_desc->iv + TLS_AAD_SPACE_SIZE +
321 sync_size + cipher_desc->tag;
327 salt = crypto_info_salt(&tls_ctx->crypto_send.info, cipher_desc);
328 memcpy(iv, salt, cipher_desc->salt);
329 aad = buf + cipher_desc->salt + cipher_desc->iv;
443 const struct tls_cipher_desc *cipher_desc;
446 cipher_desc = get_cipher_desc(crypto_info->cipher_type);
447 if (!cipher_desc || !cipher_desc->offloadable)
451 crypto_alloc_aead(cipher_desc->cipher_name, 0, CRYPTO_ALG_ASYNC);
460 crypto_info_key(crypto_info, cipher_desc),
461 cipher_desc->key);
465 rc = crypto_aead_setauthsize(offload_ctx->aead_send, cipher_desc->tag);