Lines Matching refs:poly
21 struct crypto_ahash_spawn poly; member
27 struct crypto_ahash *poly; member
65 struct poly_req poly; member
174 struct poly_req *preq = &rctx->u.poly; in poly_tail()
183 ahash_request_set_tfm(&preq->req, ctx->poly); in poly_tail()
203 struct poly_req *preq = &rctx->u.poly; in poly_cipherpad()
213 ahash_request_set_tfm(&preq->req, ctx->poly); in poly_cipherpad()
232 struct poly_req *preq = &rctx->u.poly; in poly_cipher()
243 ahash_request_set_tfm(&preq->req, ctx->poly); in poly_cipher()
262 struct poly_req *preq = &rctx->u.poly; in poly_adpad()
272 ahash_request_set_tfm(&preq->req, ctx->poly); in poly_adpad()
291 struct poly_req *preq = &rctx->u.poly; in poly_ad()
296 ahash_request_set_tfm(&preq->req, ctx->poly); in poly_ad()
315 struct poly_req *preq = &rctx->u.poly; in poly_setkey()
322 ahash_request_set_tfm(&preq->req, ctx->poly); in poly_setkey()
341 struct poly_req *preq = &rctx->u.poly; in poly_init()
346 ahash_request_set_tfm(&preq->req, ctx->poly); in poly_init()
506 struct crypto_ahash *poly; in chachapoly_init() local
509 poly = crypto_spawn_ahash(&ictx->poly); in chachapoly_init()
510 if (IS_ERR(poly)) in chachapoly_init()
511 return PTR_ERR(poly); in chachapoly_init()
515 crypto_free_ahash(poly); in chachapoly_init()
520 ctx->poly = poly; in chachapoly_init()
533 crypto_ahash_reqsize(poly))); in chachapoly_init()
542 crypto_free_ahash(ctx->poly); in chachapoly_exit()
551 crypto_drop_ahash(&ctx->poly); in chachapoly_free()
562 struct hash_alg_common *poly; in chachapoly_create() local
584 err = crypto_grab_ahash(&ctx->poly, aead_crypto_instance(inst), in chachapoly_create()
588 poly = crypto_spawn_ahash_alg(&ctx->poly); in chachapoly_create()
591 if (poly->digestsize != POLY1305_DIGEST_SIZE) in chachapoly_create()
603 poly->base.cra_name) >= CRYPTO_MAX_ALG_NAME) in chachapoly_create()
607 poly->base.cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in chachapoly_create()
611 poly->base.cra_priority) / 2; in chachapoly_create()
614 poly->base.cra_alignmask; in chachapoly_create()