Lines Matching refs:ictx

265 static int essiv_init_tfm(struct essiv_instance_ctx *ictx,  in essiv_init_tfm()  argument
272 essiv_cipher = crypto_alloc_cipher(ictx->essiv_cipher_name, 0, 0); in essiv_init_tfm()
276 hash = crypto_alloc_shash(ictx->shash_driver_name, 0, 0); in essiv_init_tfm()
295 struct essiv_instance_ctx *ictx = skcipher_instance_ctx(inst); in essiv_skcipher_init_tfm() local
300 skcipher = crypto_spawn_skcipher(&ictx->u.skcipher_spawn); in essiv_skcipher_init_tfm()
307 err = essiv_init_tfm(ictx, tctx); in essiv_skcipher_init_tfm()
320 struct essiv_instance_ctx *ictx = aead_instance_ctx(inst); in essiv_aead_init_tfm() local
329 aead = crypto_spawn_aead(&ictx->u.aead_spawn); in essiv_aead_init_tfm()
340 err = essiv_init_tfm(ictx, tctx); in essiv_aead_init_tfm()
370 struct essiv_instance_ctx *ictx = skcipher_instance_ctx(inst); in essiv_skcipher_free_instance() local
372 crypto_drop_skcipher(&ictx->u.skcipher_spawn); in essiv_skcipher_free_instance()
378 struct essiv_instance_ctx *ictx = aead_instance_ctx(inst); in essiv_aead_free_instance() local
380 crypto_drop_aead(&ictx->u.aead_spawn); in essiv_aead_free_instance()
447 struct essiv_instance_ctx *ictx; in essiv_create() local
475 sizeof(*ictx), GFP_KERNEL); in essiv_create()
480 ictx = crypto_instance_ctx(inst); in essiv_create()
483 err = crypto_grab_skcipher(&ictx->u.skcipher_spawn, inst, in essiv_create()
487 skcipher_alg = crypto_spawn_skcipher_alg(&ictx->u.skcipher_spawn); in essiv_create()
494 sizeof(*ictx), GFP_KERNEL); in essiv_create()
499 ictx = crypto_instance_ctx(inst); in essiv_create()
502 err = crypto_grab_aead(&ictx->u.aead_spawn, inst, in essiv_create()
506 aead_alg = crypto_spawn_aead_alg(&ictx->u.aead_spawn); in essiv_create()
520 if (!parse_cipher_name(ictx->essiv_cipher_name, block_base->cra_name)) { in essiv_create()
537 if (!essiv_supported_algorithms(ictx->essiv_cipher_name, hash_alg, in essiv_create()
546 strscpy(ictx->shash_driver_name, hash_alg->base.cra_driver_name, in essiv_create()
615 crypto_drop_skcipher(&ictx->u.skcipher_spawn); in essiv_create()
617 crypto_drop_aead(&ictx->u.aead_spawn); in essiv_create()