Home
last modified time | relevance | path

Searched refs:sg_nents_for_len (Results 1 – 25 of 45) sorted by relevance

12

/openbmc/linux/crypto/
H A Dcurve25519-generic.c35 sg_nents_for_len(req->src, in curve25519_compute_value()
49 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, in curve25519_compute_value()
H A Decdh.c83 sg_nents_for_len(req->src, in ecdh_compute_value()
106 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, in ecdh_compute_value()
H A Drsa-pkcs1pad.c198 sg_copy_to_buffer(req->dst, sg_nents_for_len(req->dst, len), in pkcs1pad_encrypt_sign_complete()
201 sg_nents_for_len(req->dst, ctx->key_size), in pkcs1pad_encrypt_sign_complete()
319 sg_nents_for_len(req->dst, req->dst_len), in pkcs1pad_decrypt_complete()
494 sg_nents_for_len(req->src, sig_size + digest_size), in pkcs1pad_verify_complete()
H A Decrdsa.c104 sg_copy_to_buffer(req->src, sg_nents_for_len(req->src, req->src_len), in ecrdsa_verify()
107 sg_nents_for_len(req->src, in ecrdsa_verify()
H A Decdsa.c159 sg_nents_for_len(req->src, req->src_len + req->dst_len), in ecdsa_verify()
/openbmc/linux/arch/arm/crypto/
H A Dcurve25519-glue.c75 sg_nents_for_len(req->src, in curve25519_compute_value()
89 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, in curve25519_compute_value()
/openbmc/linux/drivers/crypto/qce/
H A Daead.c125 rctx->dst_nents = sg_nents_for_len(req->dst, totallen); in qce_aead_prepare_dst_buf()
175 rctx->dst_nents = sg_nents_for_len(rctx->dst_sg, totallen) + 1; in qce_aead_prepare_dst_buf()
228 if (sg_copy_to_buffer(req->src, sg_nents_for_len(req->src, assoclen), in qce_aead_ccm_prepare_buf_assoclen()
239 rctx->src_nents = sg_nents_for_len(req->src, totallen) + 1; in qce_aead_ccm_prepare_buf_assoclen()
241 rctx->src_nents = sg_nents_for_len(req->src, totallen) + 2; in qce_aead_ccm_prepare_buf_assoclen()
279 rctx->src_nents = sg_nents_for_len(rctx->src_sg, totallen); in qce_aead_ccm_prepare_buf_assoclen()
316 rctx->src_nents = sg_nents_for_len(req->src, totallen); in qce_aead_prepare_buf()
346 rctx->src_nents = sg_nents_for_len(req->src, cryptlen); in qce_aead_ccm_prepare_buf()
352 rctx->src_nents = sg_nents_for_len(req->src, cryptlen); in qce_aead_ccm_prepare_buf()
H A Dskcipher.c85 rctx->src_nents = sg_nents_for_len(req->src, req->cryptlen); in qce_skcipher_async_req_handle()
87 rctx->dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in qce_skcipher_async_req_handle()
/openbmc/linux/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-cipher.c38 if (sg_nents_for_len(areq->src, areq->cryptlen) > 8 || in sun8i_ss_need_fallback()
39 sg_nents_for_len(areq->dst, areq->cryptlen) > 8) { in sun8i_ss_need_fallback()
197 int nsgs = sg_nents_for_len(areq->src, areq->cryptlen); in sun8i_ss_cipher()
198 int nsgd = sg_nents_for_len(areq->dst, areq->cryptlen); in sun8i_ss_cipher()
/openbmc/linux/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-cipher.c34 if (sg_nents_for_len(areq->src, areq->cryptlen) > MAX_SG || in sun8i_ce_cipher_need_fallback()
35 sg_nents_for_len(areq->dst, areq->cryptlen) > MAX_SG) { in sun8i_ce_cipher_need_fallback()
138 int ns = sg_nents_for_len(areq->src, areq->cryptlen); in sun8i_ce_cipher_prepare()
139 int nd = sg_nents_for_len(areq->dst, areq->cryptlen); in sun8i_ce_cipher_prepare()
H A Dsun8i-ce-hash.c220 if (sg_nents_for_len(areq->src, areq->nbytes) > MAX_SG - 1) { in sun8i_ce_hash_need_fallback()
253 nr_sgs = sg_nents_for_len(areq->src, areq->nbytes); in sun8i_ce_hash_digest()
352 int ns = sg_nents_for_len(areq->src, areq->nbytes); in sun8i_ce_hash_run()
/openbmc/linux/drivers/crypto/
H A Datmel-ecc.c62 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, n_sz), in atmel_ecdh_done()
157 sg_nents_for_len(req->dst, nbytes), in atmel_ecdh_generate_public_key()
H A Domap-aes-gcm.c171 dd->in_sg_len = sg_nents_for_len(dd->in_sg, alen + clen); in omap_aes_gcm_copy_buffers()
172 dd->out_sg_len = sg_nents_for_len(dd->out_sg, clen); in omap_aes_gcm_copy_buffers()
H A Datmel-i2c.c122 sg_nents_for_len(pubkey, in atmel_i2c_init_ecdh_cmd()
H A Dsahara.c466 dev->nb_in_sg = sg_nents_for_len(dev->in_sg, dev->total); in sahara_hw_descriptor_create()
471 dev->nb_out_sg = sg_nents_for_len(dev->out_sg, dev->total); in sahara_hw_descriptor_create()
785 dev->nb_in_sg = sg_nents_for_len(dev->in_sg, rctx->total); in sahara_sha_hw_links_create()
/openbmc/linux/drivers/crypto/intel/keembay/
H A Dkeembay-ocs-ecc.c593 sg_nents_for_len(req->src, pubk_len), in kmb_ecc_do_shared_secret()
640 sg_nents_for_len(req->dst, nbytes), in kmb_ecc_do_shared_secret()
693 sg_nents_for_len(req->dst, pubk_len), in kmb_ecc_do_public_key()
H A Dkeembay-ocs-aes-core.c454 rctx->src_nents = sg_nents_for_len(req->src, req->cryptlen); in kmb_ocs_sk_prepare_notinplace()
523 rctx->dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in kmb_ocs_sk_run()
730 rctx->src_nents = sg_nents_for_len(req->src, in kmb_ocs_aead_dma_prepare()
783 rctx->dst_nents = sg_nents_for_len(req->dst, dst_size); in kmb_ocs_aead_dma_prepare()
/openbmc/linux/arch/x86/crypto/
H A Dcurve25519-x86_64.c1644 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, in curve25519_generate_public_key()
1664 sg_nents_for_len(req->src, in curve25519_compute_shared_secret()
1674 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, in curve25519_compute_shared_secret()
/openbmc/linux/lib/crypto/mpi/
H A Dmpicoder.c376 nents = sg_nents_for_len(sgl, nbytes); in mpi_write_to_sgl()
447 ents = sg_nents_for_len(sgl, nbytes); in mpi_read_raw_from_sgl()
/openbmc/linux/drivers/crypto/cavium/nitrox/
H A Dnitrox_aead.c97 int nents = sg_nents_for_len(src, buflen); in alloc_src_sglist()
119 int nents = sg_nents_for_len(dst, buflen); in alloc_dst_sglist()
/openbmc/linux/drivers/crypto/caam/
H A Dcaamhash.c854 src_nents = sg_nents_for_len(req->src, src_len); in ahash_update_ctx()
1020 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_finup_ctx()
1094 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_digest()
1230 src_nents = sg_nents_for_len(req->src, src_len); in ahash_update_no_ctx()
1330 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_finup_no_ctx()
1424 src_nents = sg_nents_for_len(req->src, in ahash_update_first()
H A Dcaampkc.c213 ents = sg_nents_for_len(sgl, nbytes); in caam_rsa_count_leading_zeros()
290 src_nents = sg_nents_for_len(req_ctx->fixup_src, in rsa_edesc_alloc()
292 dst_nents = sg_nents_for_len(req->dst, req->dst_len); in rsa_edesc_alloc()
H A Dcaamalg_qi2.c385 src_nents = sg_nents_for_len(req->src, src_len); in aead_edesc_alloc()
393 dst_nents = sg_nents_for_len(req->dst, dst_len); in aead_edesc_alloc()
430 src_nents = sg_nents_for_len(req->src, src_len); in aead_edesc_alloc()
1130 src_nents = sg_nents_for_len(req->src, req->cryptlen); in skcipher_edesc_alloc()
1138 dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in skcipher_edesc_alloc()
3554 src_nents = sg_nents_for_len(req->src, src_len); in ahash_update_ctx()
3737 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_finup_ctx()
3830 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_digest()
4006 src_nents = sg_nents_for_len(req->src, src_len); in ahash_update_no_ctx()
4119 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_finup_no_ctx()
[all …]
/openbmc/linux/drivers/crypto/marvell/cesa/
H A Dcipher.c433 creq->src_nents = sg_nents_for_len(req->src, req->cryptlen); in mv_cesa_skcipher_req_init()
438 creq->dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in mv_cesa_skcipher_req_init()
/openbmc/linux/include/linux/
H A Dscatterlist.h420 int sg_nents_for_len(struct scatterlist *sg, u64 len);

12