Lines Matching refs:dst
238 * req->dst), or whether they'll merely point to two separate scatterlists
239 * (req->src != req->dst) that reference the same underlying memory.
285 * @dst_divs: description of how to arrange the dst scatterlist, if applicable
360 .name = "one src, two even splits dst",
731 struct test_sglist dst;
744 if (init_test_sglist(&tsgls->dst) != 0)
760 destroy_test_sglist(&tsgls->dst);
765 /* Build the src and dst scatterlists for an skcipher or AEAD test */
788 * source and destination (req->src == req->dst), or can use separate
789 * scatterlists (req->src != req->dst) which point to the same
793 tsgls->dst.sgl_ptr = tsgls->src.sgl;
794 tsgls->dst.nents = tsgls->src.nents;
803 memcpy(tsgls->dst.sgl, tsgls->src.sgl,
805 memcpy(tsgls->dst.sgl_saved, tsgls->src.sgl,
807 tsgls->dst.sgl_ptr = tsgls->dst.sgl;
808 tsgls->dst.nents = tsgls->src.nents;
812 return build_test_sglist(&tsgls->dst,
2094 /* Build the src/dst scatterlists */
2114 aead_request_set_crypt(req, tsgls->src.sgl_ptr, tsgls->dst.sgl_ptr,
2129 req->dst != tsgls->dst.sgl_ptr ||
2144 if (req->dst != tsgls->dst.sgl_ptr)
2145 pr_err("alg: aead: changed 'req->dst'\n");
2161 if (tsgls->dst.sgl_ptr != tsgls->src.sgl &&
2162 is_test_sglist_corrupted(&tsgls->dst)) {
2163 pr_err("alg: aead: %s %s corrupted dst sgl on test vector %s, cfg=\"%s\"\n",
2195 err = verify_correct_output(&tsgls->dst, enc ? vec->ctext : vec->ptext,
2200 pr_err("alg: aead: %s %s overran dst buffer on test vector %s, cfg=\"%s\"\n",
2332 struct scatterlist src[2], dst;
2344 sg_init_one(&dst, vec->ctext, vec->alen + vec->clen);
2347 aead_request_set_crypt(req, src, &dst, vec->plen, iv);
2869 /* Build the src/dst scatterlists */
2883 skcipher_request_set_crypt(req, tsgls->src.sgl_ptr, tsgls->dst.sgl_ptr,
2896 req->dst != tsgls->dst.sgl_ptr ||
2909 if (req->dst != tsgls->dst.sgl_ptr)
2910 pr_err("alg: skcipher: changed 'req->dst'\n");
2926 if (tsgls->dst.sgl_ptr != tsgls->src.sgl &&
2927 is_test_sglist_corrupted(&tsgls->dst)) {
2928 pr_err("alg: skcipher: %s %s corrupted dst sgl on test vector %s, cfg=\"%s\"\n",
2948 err = verify_correct_output(&tsgls->dst, enc ? vec->ctext : vec->ptext,
2951 pr_err("alg: skcipher: %s %s overran dst buffer on test vector %s, cfg=\"%s\"\n",
3030 struct scatterlist src, dst;
3054 sg_init_one(&dst, vec->ctext, vec->len);
3057 skcipher_request_set_crypt(req, &src, &dst, vec->len, iv);
3413 struct scatterlist src, dst;
3441 sg_init_one(&dst, output, dlen);
3452 acomp_request_set_params(req, &src, &dst, ilen, dlen);
3468 sg_init_one(&dst, decomp_out, dlen);
3470 acomp_request_set_params(req, &src, &dst, ilen, dlen);
3507 pr_err("alg: acomp: compression failed on NULL dst buffer test %d for %s: ret=%d\n",
3533 sg_init_one(&dst, output, dlen);
3544 acomp_request_set_params(req, &src, &dst, ilen, dlen);
3582 pr_err("alg: acomp: decompression failed on NULL dst buffer test %d for %s: ret=%d\n",
3903 struct scatterlist src, dst;
3924 sg_init_one(&dst, output_buf, out_len_max);
3925 kpp_request_set_output(req, &dst, out_len_max);
3939 a_public = kmemdup(sg_virt(req->dst), out_len_max, GFP_KERNEL);
3946 if (memcmp(vec->expected_a_public, sg_virt(req->dst),
3963 sg_init_one(&dst, output_buf, out_len_max);
3965 kpp_request_set_output(req, &dst, out_len_max);
3977 a_ss = kmemdup(sg_virt(req->dst), vec->expected_ss_size, GFP_KERNEL);
3993 sg_init_one(&dst, output_buf, out_len_max);
3995 kpp_request_set_output(req, &dst, out_len_max);
4015 if (memcmp(shared_secret, sg_virt(req->dst),
4069 static u8 *test_pack_u32(u8 *dst, u32 val)
4071 memcpy(dst, &val, sizeof(val));
4072 return dst + sizeof(val);
4085 struct scatterlist src, dst, src_tab[3];
4159 sg_init_one(&dst, outbuf_enc, out_len_max);
4160 akcipher_request_set_crypt(req, src_tab, &dst, m_size,
4218 sg_init_one(&dst, outbuf_dec, out_len_max);
4220 akcipher_request_set_crypt(req, &src, &dst, c_size, out_len_max);