Lines Matching refs:cipher_sz
58 const struct tls_cipher_size_desc *cipher_sz; in tls_enc_record() local
72 cipher_sz = &tls_cipher_size_desc[prot->cipher_type]; in tls_enc_record()
74 buf_size = TLS_HEADER_SIZE + cipher_sz->iv; in tls_enc_record()
88 len -= cipher_sz->iv; in tls_enc_record()
90 tls_make_aad(aad, len - cipher_sz->tag, (char *)&rcd_sn, buf[0], prot); in tls_enc_record()
92 memcpy(iv + cipher_sz->salt, buf + TLS_HEADER_SIZE, cipher_sz->iv); in tls_enc_record()
103 *in_len += cipher_sz->tag; in tls_enc_record()
124 len -= cipher_sz->tag; in tls_enc_record()
312 const struct tls_cipher_size_desc *cipher_sz = in fill_sg_out() local
319 sg_set_buf(&sg_out[2], dummy_buf, cipher_sz->tag); in fill_sg_out()
331 const struct tls_cipher_size_desc *cipher_sz; in tls_enc_skb() local
351 cipher_sz = &tls_cipher_size_desc[tls_ctx->crypto_send.info.cipher_type]; in tls_enc_skb()
352 buf_len = cipher_sz->salt + cipher_sz->iv + TLS_AAD_SPACE_SIZE + in tls_enc_skb()
353 sync_size + cipher_sz->tag; in tls_enc_skb()
359 memcpy(iv, salt, cipher_sz->salt); in tls_enc_skb()
360 aad = buf + cipher_sz->salt + cipher_sz->iv; in tls_enc_skb()
474 const struct tls_cipher_size_desc *cipher_sz; in tls_sw_fallback_init() local
498 cipher_sz = &tls_cipher_size_desc[crypto_info->cipher_type]; in tls_sw_fallback_init()
500 rc = crypto_aead_setkey(offload_ctx->aead_send, key, cipher_sz->key); in tls_sw_fallback_init()
504 rc = crypto_aead_setauthsize(offload_ctx->aead_send, cipher_sz->tag); in tls_sw_fallback_init()