Lines Matching defs:inst
63 struct skcipher_instance *inst;
66 inst = skcipher_alloc_instance_simple(tmpl, tb);
67 if (IS_ERR(inst))
68 return PTR_ERR(inst);
70 inst->alg.ivsize = 0; /* ECB mode doesn't take an IV */
72 inst->alg.encrypt = crypto_ecb_encrypt;
73 inst->alg.decrypt = crypto_ecb_decrypt;
75 err = skcipher_register_instance(tmpl, inst);
77 inst->free(inst);