Lines Matching refs:ictx
399 struct adiantum_instance_ctx *ictx = skcipher_instance_ctx(inst); in adiantum_init_tfm() local
407 streamcipher = crypto_spawn_skcipher(&ictx->streamcipher_spawn); in adiantum_init_tfm()
411 blockcipher = crypto_spawn_cipher(&ictx->blockcipher_spawn); in adiantum_init_tfm()
417 hash = crypto_spawn_shash(&ictx->hash_spawn); in adiantum_init_tfm()
459 struct adiantum_instance_ctx *ictx = skcipher_instance_ctx(inst); in adiantum_free_instance() local
461 crypto_drop_skcipher(&ictx->streamcipher_spawn); in adiantum_free_instance()
462 crypto_drop_cipher(&ictx->blockcipher_spawn); in adiantum_free_instance()
463 crypto_drop_shash(&ictx->hash_spawn); in adiantum_free_instance()
496 struct adiantum_instance_ctx *ictx; in adiantum_create() local
506 inst = kzalloc(sizeof(*inst) + sizeof(*ictx), GFP_KERNEL); in adiantum_create()
509 ictx = skcipher_instance_ctx(inst); in adiantum_create()
512 err = crypto_grab_skcipher(&ictx->streamcipher_spawn, in adiantum_create()
517 streamcipher_alg = crypto_spawn_skcipher_alg(&ictx->streamcipher_spawn); in adiantum_create()
520 err = crypto_grab_cipher(&ictx->blockcipher_spawn, in adiantum_create()
525 blockcipher_alg = crypto_spawn_cipher_alg(&ictx->blockcipher_spawn); in adiantum_create()
531 err = crypto_grab_shash(&ictx->hash_spawn, in adiantum_create()
536 hash_alg = crypto_spawn_shash_alg(&ictx->hash_spawn); in adiantum_create()