Lines Matching refs:inst
176 struct skcipher_instance *inst;
180 inst = skcipher_alloc_instance_simple(tmpl, tb);
181 if (IS_ERR(inst))
182 return PTR_ERR(inst);
184 alg = skcipher_ialg_simple(inst);
190 inst->alg.encrypt = crypto_cbc_encrypt;
191 inst->alg.decrypt = crypto_cbc_decrypt;
193 err = skcipher_register_instance(tmpl, inst);
196 inst->free(inst);