Lines Matching refs:fallback_tfm
287 struct crypto_ahash *fallback_tfm; member
317 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_init()
329 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_update()
343 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_final()
356 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_finup()
380 struct crypto_ahash *fallback_tfm; in n2_hash_cra_init() local
383 fallback_tfm = crypto_alloc_ahash(fallback_driver_name, 0, in n2_hash_cra_init()
385 if (IS_ERR(fallback_tfm)) { in n2_hash_cra_init()
388 err = PTR_ERR(fallback_tfm); in n2_hash_cra_init()
393 crypto_ahash_reqsize(fallback_tfm))); in n2_hash_cra_init()
395 ctx->fallback_tfm = fallback_tfm; in n2_hash_cra_init()
407 crypto_free_ahash(ctx->fallback_tfm); in n2_hash_cra_exit()
416 struct crypto_ahash *fallback_tfm; in n2_hmac_cra_init() local
420 fallback_tfm = crypto_alloc_ahash(fallback_driver_name, 0, in n2_hmac_cra_init()
422 if (IS_ERR(fallback_tfm)) { in n2_hmac_cra_init()
425 err = PTR_ERR(fallback_tfm); in n2_hmac_cra_init()
438 crypto_ahash_reqsize(fallback_tfm))); in n2_hmac_cra_init()
441 ctx->base.fallback_tfm = fallback_tfm; in n2_hmac_cra_init()
445 crypto_free_ahash(fallback_tfm); in n2_hmac_cra_init()
456 crypto_free_ahash(ctx->base.fallback_tfm); in n2_hmac_cra_exit()
465 struct crypto_ahash *fallback_tfm; in n2_hmac_async_setkey() local
468 fallback_tfm = ctx->base.fallback_tfm; in n2_hmac_async_setkey()
469 err = crypto_ahash_setkey(fallback_tfm, key, keylen); in n2_hmac_async_setkey()
539 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_do_async_digest()
640 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hmac_async_digest()