Searched refs:sg (Results 1 - 15 of 15) sorted by relevance

/crypto/
H A Dscatterwalk.c33 void scatterwalk_start(struct scatter_walk *walk, struct scatterlist *sg) argument
35 walk->sg = sg;
37 BUG_ON(!sg->length);
39 walk->offset = sg->offset;
56 page = sg_page(walk->sg) + ((walk->offset - 1) >> PAGE_SHIFT);
64 if (walk->offset >= walk->sg->offset + walk->sg->length)
65 scatterwalk_start(walk, scatterwalk_sg_next(walk->sg));
103 void scatterwalk_map_and_copy(void *buf, struct scatterlist *sg, argument
[all...]
H A Dalgif_skcipher.c31 struct scatterlist sg[0]; member in struct:skcipher_sg_list
74 struct scatterlist *sg = NULL; local
78 sg = sgl->sg;
80 if (!sg || sgl->cur >= MAX_SGL_ENTS) {
82 sizeof(sgl->sg[0]) * (MAX_SGL_ENTS + 1),
87 sg_init_table(sgl->sg, MAX_SGL_ENTS + 1);
90 if (sg)
91 scatterwalk_sg_chain(sg, MAX_SGL_ENTS + 1, sgl->sg);
104 struct scatterlist *sg; local
290 struct scatterlist *sg; local
427 struct scatterlist *sg; local
[all...]
H A Dtcrypt.c71 struct scatterlist *sg, int blen, int sec)
80 ret = crypto_blkcipher_encrypt(desc, sg, sg, blen);
82 ret = crypto_blkcipher_decrypt(desc, sg, sg, blen);
94 struct scatterlist *sg, int blen)
105 ret = crypto_blkcipher_encrypt(desc, sg, sg, blen);
107 ret = crypto_blkcipher_decrypt(desc, sg, sg, ble
70 test_cipher_jiffies(struct blkcipher_desc *desc, int enc, struct scatterlist *sg, int blen, int sec) argument
93 test_cipher_cycles(struct blkcipher_desc *desc, int enc, struct scatterlist *sg, int blen) argument
176 struct scatterlist sg[TVMEMSIZE]; local
241 test_hash_jiffies_digest(struct hash_desc *desc, struct scatterlist *sg, int blen, char *out, int sec) argument
262 test_hash_jiffies(struct hash_desc *desc, struct scatterlist *sg, int blen, int plen, char *out, int sec) argument
294 test_hash_cycles_digest(struct hash_desc *desc, struct scatterlist *sg, int blen, char *out) argument
337 test_hash_cycles(struct hash_desc *desc, struct scatterlist *sg, int blen, int plen, char *out) argument
399 test_hash_sg_init(struct scatterlist *sg) argument
413 struct scatterlist sg[TVMEMSIZE]; local
651 struct scatterlist sg[TVMEMSIZE]; local
847 struct scatterlist sg[TVMEMSIZE]; local
[all...]
H A Dahash.c64 struct scatterlist *sg; local
66 sg = walk->sg;
67 walk->pg = sg_page(sg);
68 walk->offset = sg->offset;
69 walk->entrylen = sg->length;
111 walk->sg = scatterwalk_sg_next(walk->sg);
126 walk->sg = req->src;
135 struct scatterlist *sg, unsigne
133 crypto_hash_walk_first_compat(struct hash_desc *hdesc, struct crypto_hash_walk *walk, struct scatterlist *sg, unsigned int len) argument
[all...]
H A Dauthencesn.c43 struct scatterlist *sg; member in struct:authenc_esn_request_ctx
126 ahash_request_set_crypt(ahreq, areq_ctx->sg, ahreq->result,
146 scatterwalk_map_and_copy(ahreq->result, areq_ctx->sg,
176 scatterwalk_map_and_copy(ahreq->result, areq_ctx->sg,
197 scatterwalk_map_and_copy(ahreq->result, areq_ctx->sg,
222 ahash_request_set_crypt(ahreq, areq_ctx->sg, ahreq->result,
247 scatterwalk_map_and_copy(ihash, areq_ctx->sg, areq_ctx->cryptlen,
296 scatterwalk_map_and_copy(ihash, areq_ctx->sg, areq_ctx->cryptlen,
336 scatterwalk_map_and_copy(ihash, areq_ctx->sg, areq_ctx->cryptlen,
384 ahash_request_set_crypt(ahreq, areq_ctx->sg, has
[all...]
H A Dalgif_hash.c76 ahash_request_set_crypt(&ctx->req, ctx->sgl.sg, NULL,
118 sg_init_table(ctx->sgl.sg, 1);
119 sg_set_page(ctx->sgl.sg, page, size, offset);
121 ahash_request_set_crypt(&ctx->req, ctx->sgl.sg, ctx->result, size);
H A Dauthenc.c41 struct scatterlist *sg; member in struct:authenc_request_ctx
122 ahash_request_set_crypt(ahreq, areq_ctx->sg, ahreq->result,
132 scatterwalk_map_and_copy(ahreq->result, areq_ctx->sg,
151 scatterwalk_map_and_copy(ahreq->result, areq_ctx->sg,
175 ahash_request_set_crypt(ahreq, areq_ctx->sg, ahreq->result,
188 scatterwalk_map_and_copy(ihash, areq_ctx->sg, areq_ctx->cryptlen,
227 scatterwalk_map_and_copy(ihash, areq_ctx->sg, areq_ctx->cryptlen,
274 ahash_request_set_crypt(ahreq, areq_ctx->sg, hash,
300 ahash_request_set_crypt(ahreq, areq_ctx->sg, hash,
349 areq_ctx->sg
[all...]
H A Dtestmgr.c192 struct scatterlist sg[8]; local
225 sg_init_one(&sg[0], hash_buff, template[i].psize);
239 ahash_request_set_crypt(req, sg, result, template[i].psize);
289 sg_init_table(sg, template[i].np);
295 sg_set_buf(&sg[k],
318 ahash_request_set_crypt(req, sg, result,
371 struct scatterlist *sg; local
394 sg = kmalloc(sizeof(*sg) * 8 * (diff_dst ? 3 : 2), GFP_KERNEL);
395 if (!sg)
830 struct scatterlist sg[8]; local
[all...]
H A Dshash.c276 struct scatterlist *sg = req->src; local
277 unsigned int offset = sg->offset;
281 if (nbytes < min(sg->length, ((unsigned int)(PAGE_SIZE)) - offset)) {
284 data = kmap_atomic(sg_page(sg));
388 static int shash_compat_update(struct hash_desc *hdesc, struct scatterlist *sg, argument
396 for (nbytes = crypto_hash_walk_first_compat(hdesc, &walk, sg, len);
410 static int shash_compat_digest(struct hash_desc *hdesc, struct scatterlist *sg, argument
413 unsigned int offset = sg->offset;
416 if (nbytes < min(sg->length, ((unsigned int)(PAGE_SIZE)) - offset)) {
423 data = kmap_atomic(sg_page(sg));
[all...]
H A Daf_alg.c368 sg_init_table(sgl->sg, npages);
373 sg_set_page(sgl->sg + i, sgl->pages[i], plen, off);
392 } while (!sg_is_last(sgl->sg + (i++)));
H A Dtwofish_common.c500 ctx->s[2][i] = mds[2][q1[(a) ^ sc] ^ sg]; \
508 ctx->s[2][i] = mds[2][q1[q0[(a) ^ sc] ^ sg] ^ sk]; \
516 ctx->s[2][i] = mds[2][q1[q0[q0[(a) ^ sc] ^ sg] ^ sk] ^ so]; \
593 u8 sa = 0, sb = 0, sc = 0, sd = 0, se = 0, sf = 0, sg = 0, sh = 0; local
618 CALC_S (se, sf, sg, sh, 8, 0x00, 0x2D, 0x01, 0x2D); /* 01 A4 02 A4 */
619 CALC_S (se, sf, sg, sh, 9, 0x2D, 0xA4, 0x44, 0x8A); /* A4 56 A1 55 */
620 CALC_S (se, sf, sg, sh, 10, 0x8A, 0xD5, 0xBF, 0xD1); /* 55 82 FC 87 */
621 CALC_S (se, sf, sg, sh, 11, 0xD1, 0x7F, 0x3D, 0x99); /* 87 F3 C1 5A */
622 CALC_S (se, sf, sg, sh, 12, 0x99, 0x46, 0x66, 0x96); /* 5A 1E 47 58 */
623 CALC_S (se, sf, sg, s
[all...]
H A Dablkcipher.c93 scatterwalk_start(&walk->out, scatterwalk_sg_next(walk->out.sg));
295 scatterwalk_start(&walk->in, walk->in.sg);
296 scatterwalk_start(&walk->out, walk->out.sg);
H A Dccm.c205 struct scatterlist *sg, unsigned int len)
211 scatterwalk_start(&walk, sg);
216 scatterwalk_start(&walk, sg_next(walk.sg));
203 get_data_to_compute(struct crypto_cipher *tfm, struct crypto_ccm_req_priv_ctx *pctx, struct scatterlist *sg, unsigned int len) argument
H A Dgcm.c116 struct scatterlist sg[1]; member in struct:__anon17
138 sg_init_one(data->sg, &data->hash, sizeof(data->hash));
144 ablkcipher_request_set_crypt(&data->req, data->sg, data->sg,
H A Dblkcipher.c340 scatterwalk_start(&walk->in, walk->in.sg);
341 scatterwalk_start(&walk->out, walk->out.sg);

Completed in 441 milliseconds