Lines Matching refs:fallback_tfm

284 	struct crypto_ahash		*fallback_tfm;  member
314 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_init()
326 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_update()
340 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_final()
353 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_finup()
377 struct crypto_ahash *fallback_tfm; in n2_hash_cra_init() local
380 fallback_tfm = crypto_alloc_ahash(fallback_driver_name, 0, in n2_hash_cra_init()
382 if (IS_ERR(fallback_tfm)) { in n2_hash_cra_init()
385 err = PTR_ERR(fallback_tfm); in n2_hash_cra_init()
390 crypto_ahash_reqsize(fallback_tfm))); in n2_hash_cra_init()
392 ctx->fallback_tfm = fallback_tfm; in n2_hash_cra_init()
404 crypto_free_ahash(ctx->fallback_tfm); in n2_hash_cra_exit()
413 struct crypto_ahash *fallback_tfm; in n2_hmac_cra_init() local
417 fallback_tfm = crypto_alloc_ahash(fallback_driver_name, 0, in n2_hmac_cra_init()
419 if (IS_ERR(fallback_tfm)) { in n2_hmac_cra_init()
422 err = PTR_ERR(fallback_tfm); in n2_hmac_cra_init()
435 crypto_ahash_reqsize(fallback_tfm))); in n2_hmac_cra_init()
438 ctx->base.fallback_tfm = fallback_tfm; in n2_hmac_cra_init()
442 crypto_free_ahash(fallback_tfm); in n2_hmac_cra_init()
453 crypto_free_ahash(ctx->base.fallback_tfm); in n2_hmac_cra_exit()
462 struct crypto_ahash *fallback_tfm; in n2_hmac_async_setkey() local
466 fallback_tfm = ctx->base.fallback_tfm; in n2_hmac_async_setkey()
467 err = crypto_ahash_setkey(fallback_tfm, key, keylen); in n2_hmac_async_setkey()
541 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_do_async_digest()
642 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hmac_async_digest()