Lines Matching refs:ictx
400 struct adiantum_instance_ctx *ictx = skcipher_instance_ctx(inst); in adiantum_init_tfm() local
408 streamcipher = crypto_spawn_skcipher(&ictx->streamcipher_spawn); in adiantum_init_tfm()
412 blockcipher = crypto_spawn_cipher(&ictx->blockcipher_spawn); in adiantum_init_tfm()
418 hash = crypto_spawn_shash(&ictx->hash_spawn); in adiantum_init_tfm()
460 struct adiantum_instance_ctx *ictx = skcipher_instance_ctx(inst); in adiantum_free_instance() local
462 crypto_drop_skcipher(&ictx->streamcipher_spawn); in adiantum_free_instance()
463 crypto_drop_cipher(&ictx->blockcipher_spawn); in adiantum_free_instance()
464 crypto_drop_shash(&ictx->hash_spawn); in adiantum_free_instance()
497 struct adiantum_instance_ctx *ictx; in adiantum_create() local
507 inst = kzalloc(sizeof(*inst) + sizeof(*ictx), GFP_KERNEL); in adiantum_create()
510 ictx = skcipher_instance_ctx(inst); in adiantum_create()
513 err = crypto_grab_skcipher(&ictx->streamcipher_spawn, in adiantum_create()
518 streamcipher_alg = crypto_spawn_skcipher_alg(&ictx->streamcipher_spawn); in adiantum_create()
521 err = crypto_grab_cipher(&ictx->blockcipher_spawn, in adiantum_create()
526 blockcipher_alg = crypto_spawn_cipher_alg(&ictx->blockcipher_spawn); in adiantum_create()
532 err = crypto_grab_shash(&ictx->hash_spawn, in adiantum_create()
537 hash_alg = crypto_spawn_shash_alg(&ictx->hash_spawn); in adiantum_create()