Lines Matching refs:fallback_tfm
288 struct crypto_ahash *fallback_tfm; member
318 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_init()
330 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_update()
344 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_final()
357 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_finup()
381 struct crypto_ahash *fallback_tfm; in n2_hash_cra_init() local
384 fallback_tfm = crypto_alloc_ahash(fallback_driver_name, 0, in n2_hash_cra_init()
386 if (IS_ERR(fallback_tfm)) { in n2_hash_cra_init()
389 err = PTR_ERR(fallback_tfm); in n2_hash_cra_init()
394 crypto_ahash_reqsize(fallback_tfm))); in n2_hash_cra_init()
396 ctx->fallback_tfm = fallback_tfm; in n2_hash_cra_init()
408 crypto_free_ahash(ctx->fallback_tfm); in n2_hash_cra_exit()
417 struct crypto_ahash *fallback_tfm; in n2_hmac_cra_init() local
421 fallback_tfm = crypto_alloc_ahash(fallback_driver_name, 0, in n2_hmac_cra_init()
423 if (IS_ERR(fallback_tfm)) { in n2_hmac_cra_init()
426 err = PTR_ERR(fallback_tfm); in n2_hmac_cra_init()
439 crypto_ahash_reqsize(fallback_tfm))); in n2_hmac_cra_init()
442 ctx->base.fallback_tfm = fallback_tfm; in n2_hmac_cra_init()
446 crypto_free_ahash(fallback_tfm); in n2_hmac_cra_init()
457 crypto_free_ahash(ctx->base.fallback_tfm); in n2_hmac_cra_exit()
466 struct crypto_ahash *fallback_tfm; in n2_hmac_async_setkey() local
469 fallback_tfm = ctx->base.fallback_tfm; in n2_hmac_async_setkey()
470 err = crypto_ahash_setkey(fallback_tfm, key, keylen); in n2_hmac_async_setkey()
540 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_do_async_digest()
641 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hmac_async_digest()