/kernel/linux/linux-5.10/crypto/ |
H 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()
|
H A D | ecdh.c | 98 sg_nents_for_len(req->src, in ecdh_compute_value() 121 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, in ecdh_compute_value()
|
H 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() 320 sg_nents_for_len(req->dst, req->dst_len), in pkcs1pad_decrypt_complete() 494 sg_nents_for_len(req->src, in pkcs1pad_verify_complete()
|
H 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()
|
/kernel/linux/linux-6.6/crypto/ |
H 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()
|
H 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()
|
H 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() 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 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()
|
/kernel/linux/linux-6.6/drivers/crypto/qce/ |
H 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()
|
H 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()
|
/kernel/linux/linux-5.10/arch/arm/crypto/ |
H 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()
|
/kernel/linux/linux-6.6/arch/arm/crypto/ |
H 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()
|
/kernel/linux/linux-6.6/drivers/crypto/allwinner/sun8i-ce/ |
H A D | sun8i-ce-cipher.c | 34 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 D | sun8i-ce-hash.c | 220 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()
|
/kernel/linux/linux-6.6/drivers/crypto/allwinner/sun8i-ss/ |
H A D | sun8i-ss-cipher.c | 38 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()
|
/kernel/linux/linux-5.10/drivers/crypto/ |
H A D | atmel-ecc.c | 65 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, n_sz), in atmel_ecdh_done() 170 sg_nents_for_len(req->dst, nbytes), in atmel_ecdh_generate_public_key()
|
H 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()
|
H A D | picoxcell_crypto.c | 286 nents = sg_nents_for_len(payload, nbytes); in spacc_sg_to_ddt() 326 src_nents = sg_nents_for_len(areq->src, total); in spacc_aead_make_ddts() 336 dst_nents = sg_nents_for_len(areq->dst, total); in spacc_aead_make_ddts() 420 int nents = sg_nents_for_len(areq->src, total); in spacc_aead_free_ddts() 422 /* sg_nents_for_len should not fail since it works when mapping sg */ in spacc_aead_free_ddts() 430 nents = sg_nents_for_len(areq->dst, total); in spacc_aead_free_ddts() 447 int nents = sg_nents_for_len(payload, nbytes); in spacc_free_ddt()
|
/kernel/linux/linux-6.6/drivers/crypto/ |
H 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()
|
H A D | omap-aes-gcm.c | 171 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()
|
/kernel/linux/linux-5.10/drivers/crypto/qce/ |
H A D | skcipher.c | 84 rctx->src_nents = sg_nents_for_len(req->src, req->cryptlen); in qce_skcipher_async_req_handle() 86 rctx->dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in qce_skcipher_async_req_handle()
|
/kernel/linux/linux-6.6/drivers/crypto/intel/keembay/ |
H A D | keembay-ocs-ecc.c | 593 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()
|
/kernel/linux/linux-5.10/drivers/crypto/caam/ |
H 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()
|
/kernel/linux/linux-6.6/drivers/crypto/caam/ |
H A D | caamhash.c | 853 src_nents = sg_nents_for_len(req->src, src_len); in ahash_update_ctx() 1019 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_finup_ctx() 1093 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_digest() 1229 src_nents = sg_nents_for_len(req->src, src_len); in ahash_update_no_ctx() 1329 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_finup_no_ctx() 1423 src_nents = sg_nents_for_len(req->src, in ahash_update_first()
|
/kernel/linux/linux-5.10/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_aead.c | 98 int nents = sg_nents_for_len(src, buflen); in alloc_src_sglist() 120 int nents = sg_nents_for_len(dst, buflen); in alloc_dst_sglist()
|