Lines Matching refs:fallback_tfm
279 struct crypto_ahash *fallback_tfm; member
309 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_init()
321 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_update()
335 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_final()
348 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_finup()
362 struct crypto_ahash *fallback_tfm; in n2_hash_cra_init() local
365 fallback_tfm = crypto_alloc_ahash(fallback_driver_name, 0, in n2_hash_cra_init()
367 if (IS_ERR(fallback_tfm)) { in n2_hash_cra_init()
370 err = PTR_ERR(fallback_tfm); in n2_hash_cra_init()
375 crypto_ahash_reqsize(fallback_tfm))); in n2_hash_cra_init()
377 ctx->fallback_tfm = fallback_tfm; in n2_hash_cra_init()
389 crypto_free_ahash(ctx->fallback_tfm); in n2_hash_cra_exit()
398 struct crypto_ahash *fallback_tfm; in n2_hmac_cra_init() local
402 fallback_tfm = crypto_alloc_ahash(fallback_driver_name, 0, in n2_hmac_cra_init()
404 if (IS_ERR(fallback_tfm)) { in n2_hmac_cra_init()
407 err = PTR_ERR(fallback_tfm); in n2_hmac_cra_init()
420 crypto_ahash_reqsize(fallback_tfm))); in n2_hmac_cra_init()
423 ctx->base.fallback_tfm = fallback_tfm; in n2_hmac_cra_init()
427 crypto_free_ahash(fallback_tfm); in n2_hmac_cra_init()
438 crypto_free_ahash(ctx->base.fallback_tfm); in n2_hmac_cra_exit()
447 struct crypto_ahash *fallback_tfm; in n2_hmac_async_setkey() local
451 fallback_tfm = ctx->base.fallback_tfm; in n2_hmac_async_setkey()
452 err = crypto_ahash_setkey(fallback_tfm, key, keylen); in n2_hmac_async_setkey()
526 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_do_async_digest()
627 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hmac_async_digest()