/linux/crypto/ |
A D | curve25519-generic.c | 35 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()
|
A D | ecdh.c | 81 sg_nents_for_len(req->src, in ecdh_compute_value() 104 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, in ecdh_compute_value()
|
A D | rsa-pkcs1pad.c | 198 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() 322 sg_nents_for_len(req->dst, req->dst_len), in pkcs1pad_decrypt_complete() 495 sg_nents_for_len(req->src, in pkcs1pad_verify_complete()
|
A D | ecrdsa.c | 104 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()
|
A D | ecdsa.c | 159 sg_nents_for_len(req->src, req->src_len + req->dst_len), in ecdsa_verify()
|
A D | sm2.c | 365 sg_nents_for_len(req->src, req->src_len + req->dst_len), in sm2_verify()
|
/linux/drivers/crypto/qce/ |
A D | aead.c | 125 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()
|
A D | skcipher.c | 85 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()
|
/linux/arch/arm/crypto/ |
A D | curve25519-glue.c | 75 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()
|
/linux/drivers/crypto/ |
A D | atmel-ecc.c | 62 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()
|
A D | omap-aes-gcm.c | 168 dd->in_sg_len = sg_nents_for_len(dd->in_sg, alen + clen); in omap_aes_gcm_copy_buffers() 169 dd->out_sg_len = sg_nents_for_len(dd->out_sg, clen); in omap_aes_gcm_copy_buffers()
|
A D | atmel-i2c.c | 122 sg_nents_for_len(pubkey, in atmel_i2c_init_ecdh_cmd()
|
/linux/drivers/crypto/keembay/ |
A D | keembay-ocs-ecc.c | 598 sg_nents_for_len(req->src, pubk_len), in kmb_ecc_do_shared_secret() 645 sg_nents_for_len(req->dst, nbytes), in kmb_ecc_do_shared_secret() 698 sg_nents_for_len(req->dst, pubk_len), in kmb_ecc_do_public_key()
|
A D | keembay-ocs-aes-core.c | 457 rctx->src_nents = sg_nents_for_len(req->src, req->cryptlen); in kmb_ocs_sk_prepare_notinplace() 526 rctx->dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in kmb_ocs_sk_run() 733 rctx->src_nents = sg_nents_for_len(req->src, in kmb_ocs_aead_dma_prepare() 786 rctx->dst_nents = sg_nents_for_len(req->dst, dst_size); in kmb_ocs_aead_dma_prepare()
|
/linux/arch/x86/crypto/ |
A D | curve25519-x86_64.c | 1433 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, in curve25519_generate_public_key() 1453 sg_nents_for_len(req->src, in curve25519_compute_shared_secret() 1463 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, in curve25519_compute_shared_secret()
|
/linux/lib/mpi/ |
A D | mpicoder.c | 376 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()
|
/linux/drivers/crypto/caam/ |
A D | caamhash.c | 846 src_nents = sg_nents_for_len(req->src, src_len); in ahash_update_ctx() 1012 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_finup_ctx() 1086 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_digest() 1222 src_nents = sg_nents_for_len(req->src, src_len); in ahash_update_no_ctx() 1322 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_finup_no_ctx() 1416 src_nents = sg_nents_for_len(req->src, in ahash_update_first()
|
A D | caampkc.c | 207 ents = sg_nents_for_len(sgl, nbytes); in caam_rsa_count_leading_zeros() 282 src_nents = sg_nents_for_len(req_ctx->fixup_src, in rsa_edesc_alloc() 284 dst_nents = sg_nents_for_len(req->dst, req->dst_len); in rsa_edesc_alloc()
|
A D | caamalg_qi2.c | 383 src_nents = sg_nents_for_len(req->src, src_len); in aead_edesc_alloc() 391 dst_nents = sg_nents_for_len(req->dst, dst_len); in aead_edesc_alloc() 428 src_nents = sg_nents_for_len(req->src, src_len); in aead_edesc_alloc() 1127 src_nents = sg_nents_for_len(req->src, req->cryptlen); in skcipher_edesc_alloc() 1135 dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in skcipher_edesc_alloc() 3543 src_nents = sg_nents_for_len(req->src, src_len); in ahash_update_ctx() 3726 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_finup_ctx() 3819 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_digest() 3995 src_nents = sg_nents_for_len(req->src, src_len); in ahash_update_no_ctx() 4108 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_finup_no_ctx() [all …]
|
A D | caamalg_qi.c | 972 src_nents = sg_nents_for_len(req->src, src_len); in aead_edesc_alloc() 991 src_nents = sg_nents_for_len(req->src, src_len); in aead_edesc_alloc() 999 dst_nents = sg_nents_for_len(req->dst, dst_len); in aead_edesc_alloc() 1265 src_nents = sg_nents_for_len(req->src, req->cryptlen); in skcipher_edesc_alloc() 1273 dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in skcipher_edesc_alloc()
|
/linux/drivers/crypto/cavium/nitrox/ |
A D | nitrox_aead.c | 97 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()
|
/linux/lib/ |
A D | scatterlist.c | 68 int sg_nents_for_len(struct scatterlist *sg, u64 len) in sg_nents_for_len() function 85 EXPORT_SYMBOL(sg_nents_for_len);
|
/linux/drivers/crypto/marvell/cesa/ |
A D | cipher.c | 433 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()
|
/linux/include/linux/ |
A D | scatterlist.h | 274 int sg_nents_for_len(struct scatterlist *sg, u64 len);
|
/linux/drivers/crypto/ccree/ |
A D | cc_buffer_mgr.c | 111 nents = sg_nents_for_len(sg, end); in cc_copy_sg_portion() 600 mapped_nents = sg_nents_for_len(req->src, areq_ctx->assoclen); in cc_aead_chain_assoc() 1241 areq_ctx->in_nents = sg_nents_for_len(src, nbytes); in cc_map_hash_request_update()
|