Lines Matching refs:ictx
435 struct ccm_instance_ctx *ictx = crypto_instance_ctx(inst); in crypto_ccm_init_tfm() local
442 cipher = crypto_spawn_cipher(&ictx->cipher); in crypto_ccm_init_tfm()
446 ctr = crypto_spawn_skcipher(&ictx->ctr); in crypto_ccm_init_tfm()
484 struct ccm_instance_ctx *ictx; in crypto_ccm_alloc_common() local
503 inst = kzalloc(sizeof(*inst) + sizeof(*ictx), GFP_KERNEL); in crypto_ccm_alloc_common()
508 ictx = crypto_instance_ctx(inst); in crypto_ccm_alloc_common()
510 err = crypto_init_spawn(&ictx->cipher, cipher, inst, in crypto_ccm_alloc_common()
515 crypto_set_skcipher_spawn(&ictx->ctr, inst); in crypto_ccm_alloc_common()
516 err = crypto_grab_skcipher(&ictx->ctr, ctr_name, 0, in crypto_ccm_alloc_common()
522 ctr = crypto_skcipher_spawn_alg(&ictx->ctr); in crypto_ccm_alloc_common()
563 crypto_drop_skcipher(&ictx->ctr); in crypto_ccm_alloc_common()
565 crypto_drop_spawn(&ictx->cipher); in crypto_ccm_alloc_common()