Home
last modified time | relevance | path

Searched refs:sg_set_buf (Results 1 – 25 of 64) sorted by relevance

123

/Linux-v4.19/net/mac80211/
Daead_api.c38 sg_set_buf(&sg[0], __aad, aad_len); in aead_encrypt()
39 sg_set_buf(&sg[1], data, data_len); in aead_encrypt()
40 sg_set_buf(&sg[2], mic, mic_len); in aead_encrypt()
73 sg_set_buf(&sg[0], __aad, aad_len); in aead_decrypt()
74 sg_set_buf(&sg[1], data, data_len); in aead_decrypt()
75 sg_set_buf(&sg[2], mic, mic_len); in aead_decrypt()
Daes_gmac.c40 sg_set_buf(&sg[0], __aad, GMAC_AAD_LEN); in ieee80211_aes_gmac()
41 sg_set_buf(&sg[1], data, data_len - GMAC_MIC_LEN); in ieee80211_aes_gmac()
42 sg_set_buf(&sg[2], zero, GMAC_MIC_LEN); in ieee80211_aes_gmac()
43 sg_set_buf(&sg[3], mic, GMAC_MIC_LEN); in ieee80211_aes_gmac()
/Linux-v4.19/tools/virtio/
Dvringh_test.c354 sg_set_buf(&sg[0], (void *)dbuf, 1); in parallel_test()
355 sg_set_buf(&sg[1], (void *)dbuf + 1, 2); in parallel_test()
356 sg_set_buf(&sg[2], (void *)dbuf + 3, 1); in parallel_test()
360 sg_set_buf(&sg[0], (void *)dbuf, 1); in parallel_test()
361 sg_set_buf(&sg[1], (void *)dbuf + 1, 3); in parallel_test()
365 sg_set_buf(&sg[0], (void *)dbuf, 4); in parallel_test()
369 sg_set_buf(&sg[0], (void *)dbuf, 1); in parallel_test()
370 sg_set_buf(&sg[1], (void *)dbuf + 1, 1); in parallel_test()
371 sg_set_buf(&sg[2], (void *)dbuf + 2, 1); in parallel_test()
372 sg_set_buf(&sg[3], (void *)dbuf + 3, 1); in parallel_test()
[all …]
/Linux-v4.19/tools/virtio/linux/
Dscatterlist.h160 static inline void sg_set_buf(struct scatterlist *sg, const void *buf, in sg_set_buf() function
170 sg_set_buf(sg, buf, buflen); in sg_init_one()
/Linux-v4.19/net/tls/
Dtls_device_fallback.c83 sg_set_buf(sg_in, aad, TLS_AAD_SPACE_SIZE); in tls_enc_record()
84 sg_set_buf(sg_out, aad, TLS_AAD_SPACE_SIZE); in tls_enc_record()
288 sg_set_buf(&sg_out[0], dummy_buf, sync_size); in fill_sg_out()
289 sg_set_buf(&sg_out[1], nskb->data + tcp_payload_offset, payload_len); in fill_sg_out()
292 sg_set_buf(&sg_out[2], dummy_buf, TLS_CIPHER_AES_GCM_128_TAG_SIZE); in fill_sg_out()
Dtls_sw.c738 sg_set_buf(&sgin[0], aad, TLS_AAD_SPACE_SIZE); in decrypt_internal()
750 sg_set_buf(&sgout[0], aad, TLS_AAD_SPACE_SIZE); in decrypt_internal()
1251 sg_set_buf(&sw_ctx_tx->sg_aead_in[0], sw_ctx_tx->aad_space, in tls_set_sw_offload()
1257 sg_set_buf(&sw_ctx_tx->sg_aead_out[0], sw_ctx_tx->aad_space, in tls_set_sw_offload()
/Linux-v4.19/drivers/crypto/
Domap-crypto.c84 sg_set_buf(new_sg, buf, new_len); in omap_crypto_copy_sgs()
153 sg_set_buf(new_sg, sg_virt(*sg), (*sg)->length); in omap_crypto_align_sg()
Ds5p-sss.c514 sg_set_buf(*dst, pages, len); in s5p_make_sg_cpy()
1040 sg_set_buf(ctx->sgl, buf, len); in s5p_hash_copy_sgs()
1087 sg_set_buf(tmp, ctx->dd->xmit_buf, ctx->bufcnt); in s5p_hash_copy_sg_lists()
1186 sg_set_buf(ctx->sgl, ctx->dd->xmit_buf, ctx->bufcnt); in s5p_hash_prepare_sgs()
1274 sg_set_buf(ctx->sgl, ctx->dd->xmit_buf, xmit_len); in s5p_hash_prepare_request()
/Linux-v4.19/drivers/usb/wusbcore/
Dcrypto.c247 sg_set_buf(&sg[0], &scratch->b0, sizeof(scratch->b0)); in wusb_ccm_mac()
248 sg_set_buf(&sg[1], &scratch->b1, sizeof(scratch->b1)); in wusb_ccm_mac()
249 sg_set_buf(&sg[2], b, blen); in wusb_ccm_mac()
/Linux-v4.19/drivers/crypto/bcm/
Dcipher.c162 sg_set_buf(sg++, rctx->msg_buf.spu_resp_hdr, ctx->spu_resp_hdr_len); in spu_ablkcipher_rx_sg_create()
167 sg_set_buf(sg++, rctx->msg_buf.c.supdt_tweak, in spu_ablkcipher_rx_sg_create()
181 sg_set_buf(sg++, rctx->msg_buf.c.supdt_tweak, SPU_SUPDT_LEN); in spu_ablkcipher_rx_sg_create()
184 sg_set_buf(sg++, rctx->msg_buf.rx_stat_pad, stat_pad_len); in spu_ablkcipher_rx_sg_create()
187 sg_set_buf(sg, rctx->msg_buf.rx_stat, spu->spu_rx_status_len()); in spu_ablkcipher_rx_sg_create()
230 sg_set_buf(sg++, rctx->msg_buf.bcm_spu_req_hdr, in spu_ablkcipher_tx_sg_create()
236 sg_set_buf(sg++, rctx->msg_buf.iv_ctr, SPU_XTS_TWEAK_SIZE); in spu_ablkcipher_tx_sg_create()
248 sg_set_buf(sg++, rctx->msg_buf.spu_req_pad, pad_len); in spu_ablkcipher_tx_sg_create()
253 sg_set_buf(sg, rctx->msg_buf.tx_stat, stat_len); in spu_ablkcipher_tx_sg_create()
590 sg_set_buf(sg++, rctx->msg_buf.spu_resp_hdr, ctx->spu_resp_hdr_len); in spu_ahash_rx_sg_create()
[all …]
Dutil.c226 sg_set_buf(sg_in, src_ptr, block_len); in do_decrypt()
229 sg_set_buf(sg_out, dst_ptr, block_len); in do_decrypt()
/Linux-v4.19/crypto/
Dccm.c197 sg_set_buf(&sg[0], odata, 16); in crypto_ccm_auth()
202 sg_set_buf(&sg[1], idata, ilen); in crypto_ccm_auth()
224 sg_set_buf(&sg[0], idata, ilen); in crypto_ccm_auth()
279 sg_set_buf(pctx->src, tag, 16); in crypto_ccm_init_crypt()
286 sg_set_buf(pctx->dst, tag, 16); in crypto_ccm_init_crypt()
684 sg_set_buf(rctx->src, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
691 sg_set_buf(rctx->dst, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
Dchacha20poly1305.c189 sg_set_buf(preq->src, &preq->tail, sizeof(preq->tail)); in poly_tail()
220 sg_set_buf(preq->src, &preq->pad, padlen); in poly_cipherpad()
281 sg_set_buf(preq->src, preq->pad, padlen); in poly_adpad()
332 sg_set_buf(preq->src, rctx->key, sizeof(rctx->key)); in poly_setkey()
392 sg_set_buf(creq->src, rctx->key, sizeof(rctx->key)); in poly_genkey()
Dtcrypt.c132 sg_set_buf(&sg[0], assoc, aad_size); in sg_init_aead()
137 sg_set_buf(&sg[k + 1], xbuf[k], PAGE_SIZE); in sg_init_aead()
140 sg_set_buf(&sg[k + 1], xbuf[k], rem); in sg_init_aead()
705 sg_set_buf(sg + i, tvmem[i], PAGE_SIZE); in test_hash_sg_init()
852 sg_set_buf(data[i].sg + j, data[i].xbuf[j], PAGE_SIZE); in test_mb_ahash_speed()
1363 sg_set_buf(cur->sg + p, cur->xbuf[p], in test_mb_skcipher_speed()
1370 sg_set_buf(cur->sg + p, cur->xbuf[p], k); in test_mb_skcipher_speed()
1572 sg_set_buf(sg, tvmem[0] + *keysize, in test_skcipher_speed()
1577 sg_set_buf(sg + j, tvmem[j], PAGE_SIZE); in test_skcipher_speed()
1582 sg_set_buf(sg + j, tvmem[j], k); in test_skcipher_speed()
[all …]
Dtestmgr.c440 sg_set_buf(&sg[k], in __test_hash()
727 sg_set_buf(&sg[0], assoc, template[i].alen); in __test_aead()
728 sg_set_buf(&sg[k], input, in __test_aead()
734 sg_set_buf(&sgout[0], assoc, template[i].alen); in __test_aead()
738 sg_set_buf(&sgout[k], output, in __test_aead()
828 sg_set_buf(&sg[k], in __test_aead()
835 sg_set_buf(&sgout[k], in __test_aead()
849 sg_set_buf(&sg[template[i].anp + k], in __test_aead()
858 sg_set_buf(&sgout[template[i].anp + k], in __test_aead()
1275 sg_set_buf(&sg[k], q, template[i].tap[k]); in __test_skcipher()
[all …]
Dgcm.c185 sg_set_buf(pctx->src, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_common()
192 sg_set_buf(pctx->dst, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_common()
822 sg_set_buf(rctx->src, iv + GCM_AES_IV_SIZE, req->assoclen - 8); in crypto_rfc4106_crypt()
829 sg_set_buf(rctx->dst, iv + GCM_AES_IV_SIZE, req->assoclen - 8); in crypto_rfc4106_crypt()
/Linux-v4.19/security/keys/encrypted-keys/
Dencrypted.c479 sg_set_buf(&sg_in[0], epayload->decrypted_data, in derived_key_encrypt()
484 sg_set_buf(sg_out, epayload->encrypted_data, encrypted_datalen); in derived_key_encrypt()
587 sg_set_buf(sg_in, epayload->encrypted_data, encrypted_datalen); in derived_key_decrypt()
588 sg_set_buf(&sg_out[0], epayload->decrypted_data, in derived_key_decrypt()
590 sg_set_buf(&sg_out[1], pad, AES_BLOCK_SIZE); in derived_key_decrypt()
/Linux-v4.19/drivers/scsi/arm/
Dscsi.h36 sg_set_buf(sg, SCp->ptr, SCp->this_residual); in copy_SCp_to_sg()
/Linux-v4.19/drivers/mmc/core/
Dsdio_ops.c164 sg_set_buf(sg_ptr, buf + i * seg_size, in mmc_io_rw_extended()
/Linux-v4.19/net/ipv4/
Dah4.c231 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah_output()
406 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah_input()
/Linux-v4.19/drivers/i2c/busses/
Di2c-mxs.c258 sg_set_buf(&i2c->sg_io[0], &i2c->addr_data, 1); in mxs_i2c_dma_setup_xfer()
259 sg_set_buf(&i2c->sg_io[1], msg->buf, msg->len); in mxs_i2c_dma_setup_xfer()
/Linux-v4.19/include/linux/
Dscatterlist.h139 static inline void sg_set_buf(struct scatterlist *sg, const void *buf, in sg_set_buf() function
/Linux-v4.19/net/ipv6/
Dah6.c435 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah6_output()
620 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah6_input()
/Linux-v4.19/net/sunrpc/xprtrdma/
Dfmr_ops.c231 sg_set_buf(&mr->mr_sg[i], seg->mr_offset, in fmr_op_map()
/Linux-v4.19/drivers/md/
Ddm-crypt.c1108 sg_set_buf(&dmreq->sg_in[0], sector, sizeof(uint64_t)); in crypt_convert_block_aead()
1109 sg_set_buf(&dmreq->sg_in[1], org_iv, cc->iv_size); in crypt_convert_block_aead()
1111 sg_set_buf(&dmreq->sg_in[3], tag, cc->integrity_tag_size); in crypt_convert_block_aead()
1114 sg_set_buf(&dmreq->sg_out[0], sector, sizeof(uint64_t)); in crypt_convert_block_aead()
1115 sg_set_buf(&dmreq->sg_out[1], org_iv, cc->iv_size); in crypt_convert_block_aead()
1117 sg_set_buf(&dmreq->sg_out[3], tag, cc->integrity_tag_size); in crypt_convert_block_aead()

123