• Home
  • Raw
  • Download

Lines Matching refs:fallback_tfm

285 	struct crypto_ahash		*fallback_tfm;  member
315 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_init()
327 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_update()
341 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_final()
354 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_finup()
378 struct crypto_ahash *fallback_tfm; in n2_hash_cra_init() local
381 fallback_tfm = crypto_alloc_ahash(fallback_driver_name, 0, in n2_hash_cra_init()
383 if (IS_ERR(fallback_tfm)) { in n2_hash_cra_init()
386 err = PTR_ERR(fallback_tfm); in n2_hash_cra_init()
391 crypto_ahash_reqsize(fallback_tfm))); in n2_hash_cra_init()
393 ctx->fallback_tfm = fallback_tfm; in n2_hash_cra_init()
405 crypto_free_ahash(ctx->fallback_tfm); in n2_hash_cra_exit()
414 struct crypto_ahash *fallback_tfm; in n2_hmac_cra_init() local
418 fallback_tfm = crypto_alloc_ahash(fallback_driver_name, 0, in n2_hmac_cra_init()
420 if (IS_ERR(fallback_tfm)) { in n2_hmac_cra_init()
423 err = PTR_ERR(fallback_tfm); in n2_hmac_cra_init()
436 crypto_ahash_reqsize(fallback_tfm))); in n2_hmac_cra_init()
439 ctx->base.fallback_tfm = fallback_tfm; in n2_hmac_cra_init()
443 crypto_free_ahash(fallback_tfm); in n2_hmac_cra_init()
454 crypto_free_ahash(ctx->base.fallback_tfm); in n2_hmac_cra_exit()
463 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()
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()