Lines Matching refs:cipher_desc
58 const struct tls_cipher_desc *cipher_desc;
72 cipher_desc = get_cipher_desc(prot->cipher_type);
74 buf_size = TLS_HEADER_SIZE + cipher_desc->iv;
88 len -= cipher_desc->iv;
90 tls_make_aad(aad, len - cipher_desc->tag, (char *)&rcd_sn, buf[0], prot);
92 memcpy(iv + cipher_desc->salt, buf + TLS_HEADER_SIZE, cipher_desc->iv);
103 *in_len += cipher_desc->tag;
124 len -= cipher_desc->tag;
312 const struct tls_cipher_desc *cipher_desc =
319 sg_set_buf(&sg_out[2], dummy_buf, cipher_desc->tag);
331 const struct tls_cipher_desc *cipher_desc;
351 cipher_desc = get_cipher_desc(tls_ctx->crypto_send.info.cipher_type);
352 buf_len = cipher_desc->salt + cipher_desc->iv + TLS_AAD_SPACE_SIZE +
353 sync_size + cipher_desc->tag;
359 memcpy(iv, salt, cipher_desc->salt);
360 aad = buf + cipher_desc->salt + cipher_desc->iv;
474 const struct tls_cipher_desc *cipher_desc;
477 cipher_desc = get_cipher_desc(crypto_info->cipher_type);
478 if (!cipher_desc || !cipher_desc->offloadable)
482 crypto_alloc_aead(cipher_desc->cipher_name, 0, CRYPTO_ALG_ASYNC);
491 crypto_info_key(crypto_info, cipher_desc),
492 cipher_desc->key);
496 rc = crypto_aead_setauthsize(offload_ctx->aead_send, cipher_desc->tag);