Lines Matching refs:preq
174 struct poly_req *preq = &rctx->u.poly; in poly_tail() local
177 preq->tail.assoclen = cpu_to_le64(rctx->assoclen); in poly_tail()
178 preq->tail.cryptlen = cpu_to_le64(rctx->cryptlen); in poly_tail()
179 sg_init_one(preq->src, &preq->tail, sizeof(preq->tail)); in poly_tail()
181 ahash_request_set_callback(&preq->req, rctx->flags, in poly_tail()
183 ahash_request_set_tfm(&preq->req, ctx->poly); in poly_tail()
184 ahash_request_set_crypt(&preq->req, preq->src, in poly_tail()
185 rctx->tag, sizeof(preq->tail)); in poly_tail()
187 err = crypto_ahash_finup(&preq->req); in poly_tail()
203 struct poly_req *preq = &rctx->u.poly; in poly_cipherpad() local
208 memset(preq->pad, 0, sizeof(preq->pad)); in poly_cipherpad()
209 sg_init_one(preq->src, preq->pad, padlen); in poly_cipherpad()
211 ahash_request_set_callback(&preq->req, rctx->flags, in poly_cipherpad()
213 ahash_request_set_tfm(&preq->req, ctx->poly); in poly_cipherpad()
214 ahash_request_set_crypt(&preq->req, preq->src, NULL, padlen); in poly_cipherpad()
216 err = crypto_ahash_update(&preq->req); in poly_cipherpad()
232 struct poly_req *preq = &rctx->u.poly; in poly_cipher() local
241 ahash_request_set_callback(&preq->req, rctx->flags, in poly_cipher()
243 ahash_request_set_tfm(&preq->req, ctx->poly); in poly_cipher()
244 ahash_request_set_crypt(&preq->req, crypt, NULL, rctx->cryptlen); in poly_cipher()
246 err = crypto_ahash_update(&preq->req); in poly_cipher()
262 struct poly_req *preq = &rctx->u.poly; in poly_adpad() local
267 memset(preq->pad, 0, sizeof(preq->pad)); in poly_adpad()
268 sg_init_one(preq->src, preq->pad, padlen); in poly_adpad()
270 ahash_request_set_callback(&preq->req, rctx->flags, in poly_adpad()
272 ahash_request_set_tfm(&preq->req, ctx->poly); in poly_adpad()
273 ahash_request_set_crypt(&preq->req, preq->src, NULL, padlen); in poly_adpad()
275 err = crypto_ahash_update(&preq->req); in poly_adpad()
291 struct poly_req *preq = &rctx->u.poly; in poly_ad() local
294 ahash_request_set_callback(&preq->req, rctx->flags, in poly_ad()
296 ahash_request_set_tfm(&preq->req, ctx->poly); in poly_ad()
297 ahash_request_set_crypt(&preq->req, req->src, NULL, rctx->assoclen); in poly_ad()
299 err = crypto_ahash_update(&preq->req); in poly_ad()
315 struct poly_req *preq = &rctx->u.poly; in poly_setkey() local
318 sg_init_one(preq->src, rctx->key, sizeof(rctx->key)); in poly_setkey()
320 ahash_request_set_callback(&preq->req, rctx->flags, in poly_setkey()
322 ahash_request_set_tfm(&preq->req, ctx->poly); in poly_setkey()
323 ahash_request_set_crypt(&preq->req, preq->src, NULL, sizeof(rctx->key)); in poly_setkey()
325 err = crypto_ahash_update(&preq->req); in poly_setkey()
341 struct poly_req *preq = &rctx->u.poly; in poly_init() local
344 ahash_request_set_callback(&preq->req, rctx->flags, in poly_init()
346 ahash_request_set_tfm(&preq->req, ctx->poly); in poly_init()
348 err = crypto_ahash_init(&preq->req); in poly_init()