Lines Matching refs:fallback_tfm

286 	struct crypto_ahash		*fallback_tfm;  member
316 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_init()
328 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_update()
342 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_final()
355 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_finup()
379 struct crypto_ahash *fallback_tfm; in n2_hash_cra_init() local
382 fallback_tfm = crypto_alloc_ahash(fallback_driver_name, 0, in n2_hash_cra_init()
384 if (IS_ERR(fallback_tfm)) { in n2_hash_cra_init()
387 err = PTR_ERR(fallback_tfm); in n2_hash_cra_init()
392 crypto_ahash_reqsize(fallback_tfm))); in n2_hash_cra_init()
394 ctx->fallback_tfm = fallback_tfm; in n2_hash_cra_init()
406 crypto_free_ahash(ctx->fallback_tfm); in n2_hash_cra_exit()
415 struct crypto_ahash *fallback_tfm; in n2_hmac_cra_init() local
419 fallback_tfm = crypto_alloc_ahash(fallback_driver_name, 0, in n2_hmac_cra_init()
421 if (IS_ERR(fallback_tfm)) { in n2_hmac_cra_init()
424 err = PTR_ERR(fallback_tfm); in n2_hmac_cra_init()
437 crypto_ahash_reqsize(fallback_tfm))); in n2_hmac_cra_init()
440 ctx->base.fallback_tfm = fallback_tfm; in n2_hmac_cra_init()
444 crypto_free_ahash(fallback_tfm); in n2_hmac_cra_init()
455 crypto_free_ahash(ctx->base.fallback_tfm); in n2_hmac_cra_exit()
464 struct crypto_ahash *fallback_tfm; in n2_hmac_async_setkey() local
467 fallback_tfm = ctx->base.fallback_tfm; in n2_hmac_async_setkey()
468 err = crypto_ahash_setkey(fallback_tfm, key, keylen); in n2_hmac_async_setkey()
538 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_do_async_digest()
639 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hmac_async_digest()