Lines Matching refs:sg_out
56 struct scatterlist sg_out[3]; in tls_enc_record() local
83 sg_init_table(sg_out, ARRAY_SIZE(sg_out)); in tls_enc_record()
85 sg_set_buf(sg_out, aad, TLS_AAD_SPACE_SIZE); in tls_enc_record()
87 chain_to_walk(sg_out + 1, out); in tls_enc_record()
113 aead_request_set_crypt(aead_req, sg_in, sg_out, len, iv); in tls_enc_record()
142 struct scatterlist *sg_out, char *aad, char *iv, in tls_enc_records() argument
149 scatterwalk_start(&out, sg_out); in tls_enc_records()
292 static void fill_sg_out(struct scatterlist sg_out[3], void *buf, in fill_sg_out()
300 sg_set_buf(&sg_out[0], dummy_buf, sync_size); in fill_sg_out()
301 sg_set_buf(&sg_out[1], nskb->data + tcp_payload_offset, payload_len); in fill_sg_out()
304 sg_set_buf(&sg_out[2], dummy_buf, TLS_CIPHER_AES_GCM_128_TAG_SIZE); in fill_sg_out()
308 struct scatterlist sg_out[3], in tls_enc_skb()
347 fill_sg_out(sg_out, buf, tls_ctx, nskb, tcp_payload_offset, in tls_enc_skb()
350 if (tls_enc_records(aead_req, ctx->aead_send, sg_in, sg_out, aad, iv, in tls_enc_skb()
378 struct scatterlist *sg_in, sg_out[3]; in tls_sw_fallback() local
399 sg_init_table(sg_out, ARRAY_SIZE(sg_out)); in tls_sw_fallback()
408 nskb = tls_enc_skb(tls_ctx, sg_out, sg_in, skb, sync_size, rcd_sn); in tls_sw_fallback()