Lines Matching refs:creq
127 struct chacha_req *creq = &rctx->u.chacha; in chacha_decrypt() local
134 chacha_iv(creq->iv, req, 1); in chacha_decrypt()
141 skcipher_request_set_callback(&creq->req, rctx->flags, in chacha_decrypt()
143 skcipher_request_set_tfm(&creq->req, ctx->chacha); in chacha_decrypt()
144 skcipher_request_set_crypt(&creq->req, src, dst, in chacha_decrypt()
145 rctx->cryptlen, creq->iv); in chacha_decrypt()
146 err = crypto_skcipher_decrypt(&creq->req); in chacha_decrypt()
365 struct chacha_req *creq = &rctx->u.chacha; in poly_genkey() local
377 sg_init_one(creq->src, rctx->key, sizeof(rctx->key)); in poly_genkey()
379 chacha_iv(creq->iv, req, 0); in poly_genkey()
381 skcipher_request_set_callback(&creq->req, rctx->flags, in poly_genkey()
383 skcipher_request_set_tfm(&creq->req, ctx->chacha); in poly_genkey()
384 skcipher_request_set_crypt(&creq->req, creq->src, creq->src, in poly_genkey()
385 POLY1305_KEY_SIZE, creq->iv); in poly_genkey()
387 err = crypto_skcipher_decrypt(&creq->req); in poly_genkey()
403 struct chacha_req *creq = &rctx->u.chacha; in chacha_encrypt() local
410 chacha_iv(creq->iv, req, 1); in chacha_encrypt()
417 skcipher_request_set_callback(&creq->req, rctx->flags, in chacha_encrypt()
419 skcipher_request_set_tfm(&creq->req, ctx->chacha); in chacha_encrypt()
420 skcipher_request_set_crypt(&creq->req, src, dst, in chacha_encrypt()
421 req->cryptlen, creq->iv); in chacha_encrypt()
422 err = crypto_skcipher_encrypt(&creq->req); in chacha_encrypt()