Lines Matching refs:inst
208 struct crypto_instance *inst; in eseqiv_alloc() local
215 inst = skcipher_geniv_alloc(&eseqiv_tmpl, tb, 0, 0); in eseqiv_alloc()
216 if (IS_ERR(inst)) in eseqiv_alloc()
220 if (inst->alg.cra_ablkcipher.ivsize != inst->alg.cra_blocksize) in eseqiv_alloc()
223 inst->alg.cra_ablkcipher.givencrypt = eseqiv_givencrypt_first; in eseqiv_alloc()
225 inst->alg.cra_init = eseqiv_init; in eseqiv_alloc()
226 inst->alg.cra_exit = skcipher_geniv_exit; in eseqiv_alloc()
228 inst->alg.cra_ctxsize = sizeof(struct eseqiv_ctx); in eseqiv_alloc()
229 inst->alg.cra_ctxsize += inst->alg.cra_ablkcipher.ivsize; in eseqiv_alloc()
232 return inst; in eseqiv_alloc()
235 skcipher_geniv_free(inst); in eseqiv_alloc()
236 inst = ERR_PTR(err); in eseqiv_alloc()
242 static void eseqiv_free(struct crypto_instance *inst) in eseqiv_free() argument
244 skcipher_geniv_free(inst); in eseqiv_free()