Lines Matching refs:inst
26 static void seqiv_free(struct crypto_instance *inst);
146 struct aead_instance *inst; in seqiv_aead_create() local
151 inst = aead_geniv_alloc(tmpl, tb, 0, 0); in seqiv_aead_create()
153 if (IS_ERR(inst)) in seqiv_aead_create()
154 return PTR_ERR(inst); in seqiv_aead_create()
156 inst->alg.base.cra_alignmask |= __alignof__(u32) - 1; in seqiv_aead_create()
158 spawn = aead_instance_ctx(inst); in seqiv_aead_create()
162 if (inst->alg.ivsize != sizeof(u64)) in seqiv_aead_create()
165 inst->alg.encrypt = seqiv_aead_encrypt; in seqiv_aead_create()
166 inst->alg.decrypt = seqiv_aead_decrypt; in seqiv_aead_create()
168 inst->alg.init = aead_init_geniv; in seqiv_aead_create()
169 inst->alg.exit = aead_exit_geniv; in seqiv_aead_create()
171 inst->alg.base.cra_ctxsize = sizeof(struct aead_geniv_ctx); in seqiv_aead_create()
172 inst->alg.base.cra_ctxsize += inst->alg.ivsize; in seqiv_aead_create()
174 err = aead_register_instance(tmpl, inst); in seqiv_aead_create()
182 aead_geniv_free(inst); in seqiv_aead_create()
200 static void seqiv_free(struct crypto_instance *inst) in seqiv_free() argument
202 aead_geniv_free(aead_instance(inst)); in seqiv_free()