Lines Matching refs:ictx
338 struct hctr2_instance_ctx *ictx = skcipher_instance_ctx(inst); in hctr2_init_tfm() local
346 xctr = crypto_spawn_skcipher(&ictx->xctr_spawn); in hctr2_init_tfm()
350 blockcipher = crypto_spawn_cipher(&ictx->blockcipher_spawn); in hctr2_init_tfm()
356 polyval = crypto_spawn_shash(&ictx->polyval_spawn); in hctr2_init_tfm()
397 struct hctr2_instance_ctx *ictx = skcipher_instance_ctx(inst); in hctr2_free_instance() local
399 crypto_drop_cipher(&ictx->blockcipher_spawn); in hctr2_free_instance()
400 crypto_drop_skcipher(&ictx->xctr_spawn); in hctr2_free_instance()
401 crypto_drop_shash(&ictx->polyval_spawn); in hctr2_free_instance()
412 struct hctr2_instance_ctx *ictx; in hctr2_create_common() local
424 inst = kzalloc(sizeof(*inst) + sizeof(*ictx), GFP_KERNEL); in hctr2_create_common()
427 ictx = skcipher_instance_ctx(inst); in hctr2_create_common()
430 err = crypto_grab_skcipher(&ictx->xctr_spawn, in hctr2_create_common()
435 xctr_alg = crypto_spawn_skcipher_alg(&ictx->xctr_spawn); in hctr2_create_common()
449 err = crypto_grab_cipher(&ictx->blockcipher_spawn, in hctr2_create_common()
454 blockcipher_alg = crypto_spawn_cipher_alg(&ictx->blockcipher_spawn); in hctr2_create_common()
462 err = crypto_grab_shash(&ictx->polyval_spawn, in hctr2_create_common()
467 polyval_alg = crypto_spawn_shash_alg(&ictx->polyval_spawn); in hctr2_create_common()