Lines Matching refs:inst
64 struct skcipher_instance *inst;
67 inst = skcipher_alloc_instance_simple(tmpl, tb);
68 if (IS_ERR(inst))
69 return PTR_ERR(inst);
71 inst->alg.ivsize = 0; /* ECB mode doesn't take an IV */
73 inst->alg.encrypt = crypto_ecb_encrypt;
74 inst->alg.decrypt = crypto_ecb_decrypt;
76 err = skcipher_register_instance(tmpl, inst);
78 inst->free(inst);