Lines Matching refs:creq
129 struct chacha_req *creq = &rctx->u.chacha; in chacha_decrypt() local
133 chacha_iv(creq->iv, req, 1); in chacha_decrypt()
144 ablkcipher_request_set_callback(&creq->req, aead_request_flags(req), in chacha_decrypt()
146 ablkcipher_request_set_tfm(&creq->req, ctx->chacha); in chacha_decrypt()
147 ablkcipher_request_set_crypt(&creq->req, src, dst, in chacha_decrypt()
148 rctx->cryptlen, creq->iv); in chacha_decrypt()
149 err = crypto_ablkcipher_decrypt(&creq->req); in chacha_decrypt()
375 struct chacha_req *creq = &rctx->u.chacha; in poly_genkey() local
386 sg_init_table(creq->src, 1); in poly_genkey()
388 sg_set_buf(creq->src, rctx->key, sizeof(rctx->key)); in poly_genkey()
390 chacha_iv(creq->iv, req, 0); in poly_genkey()
392 ablkcipher_request_set_callback(&creq->req, aead_request_flags(req), in poly_genkey()
394 ablkcipher_request_set_tfm(&creq->req, ctx->chacha); in poly_genkey()
395 ablkcipher_request_set_crypt(&creq->req, creq->src, creq->src, in poly_genkey()
396 POLY1305_KEY_SIZE, creq->iv); in poly_genkey()
398 err = crypto_ablkcipher_decrypt(&creq->req); in poly_genkey()
414 struct chacha_req *creq = &rctx->u.chacha; in chacha_encrypt() local
418 chacha_iv(creq->iv, req, 1); in chacha_encrypt()
429 ablkcipher_request_set_callback(&creq->req, aead_request_flags(req), in chacha_encrypt()
431 ablkcipher_request_set_tfm(&creq->req, ctx->chacha); in chacha_encrypt()
432 ablkcipher_request_set_crypt(&creq->req, src, dst, in chacha_encrypt()
433 req->cryptlen, creq->iv); in chacha_encrypt()
434 err = crypto_ablkcipher_encrypt(&creq->req); in chacha_encrypt()