Lines Matching refs:ictx
408 struct adiantum_instance_ctx *ictx = skcipher_instance_ctx(inst); in adiantum_init_tfm() local
416 streamcipher = crypto_spawn_skcipher(&ictx->streamcipher_spawn); in adiantum_init_tfm()
420 blockcipher = crypto_spawn_cipher(&ictx->blockcipher_spawn); in adiantum_init_tfm()
426 hash = crypto_spawn_shash(&ictx->hash_spawn); in adiantum_init_tfm()
468 struct adiantum_instance_ctx *ictx = skcipher_instance_ctx(inst); in adiantum_free_instance() local
470 crypto_drop_skcipher(&ictx->streamcipher_spawn); in adiantum_free_instance()
471 crypto_drop_spawn(&ictx->blockcipher_spawn); in adiantum_free_instance()
472 crypto_drop_shash(&ictx->hash_spawn); in adiantum_free_instance()
507 struct adiantum_instance_ctx *ictx; in adiantum_create() local
535 inst = kzalloc(sizeof(*inst) + sizeof(*ictx), GFP_KERNEL); in adiantum_create()
538 ictx = skcipher_instance_ctx(inst); in adiantum_create()
541 crypto_set_skcipher_spawn(&ictx->streamcipher_spawn, in adiantum_create()
543 err = crypto_grab_skcipher(&ictx->streamcipher_spawn, streamcipher_name, in adiantum_create()
548 streamcipher_alg = crypto_spawn_skcipher_alg(&ictx->streamcipher_spawn); in adiantum_create()
551 crypto_set_spawn(&ictx->blockcipher_spawn, in adiantum_create()
553 err = crypto_grab_spawn(&ictx->blockcipher_spawn, blockcipher_name, in adiantum_create()
557 blockcipher_alg = ictx->blockcipher_spawn.alg; in adiantum_create()
568 err = crypto_init_shash_spawn(&ictx->hash_spawn, hash_alg, in adiantum_create()
632 crypto_drop_shash(&ictx->hash_spawn); in adiantum_create()
636 crypto_drop_spawn(&ictx->blockcipher_spawn); in adiantum_create()
638 crypto_drop_skcipher(&ictx->streamcipher_spawn); in adiantum_create()