Lines Matching refs:alg
236 struct crypto_alg *alg; in cmac_create() local
253 alg = crypto_spawn_cipher_alg(spawn); in cmac_create()
255 switch (alg->cra_blocksize) { in cmac_create()
264 err = crypto_inst_setname(shash_crypto_instance(inst), tmpl->name, alg); in cmac_create()
268 inst->alg.base.cra_priority = alg->cra_priority; in cmac_create()
269 inst->alg.base.cra_blocksize = alg->cra_blocksize; in cmac_create()
270 inst->alg.base.cra_ctxsize = sizeof(struct cmac_tfm_ctx) + in cmac_create()
271 alg->cra_blocksize * 2; in cmac_create()
273 inst->alg.digestsize = alg->cra_blocksize; in cmac_create()
274 inst->alg.descsize = sizeof(struct cmac_desc_ctx) + in cmac_create()
275 alg->cra_blocksize * 2; in cmac_create()
276 inst->alg.init = crypto_cmac_digest_init; in cmac_create()
277 inst->alg.update = crypto_cmac_digest_update; in cmac_create()
278 inst->alg.final = crypto_cmac_digest_final; in cmac_create()
279 inst->alg.setkey = crypto_cmac_digest_setkey; in cmac_create()
280 inst->alg.init_tfm = cmac_init_tfm; in cmac_create()
281 inst->alg.clone_tfm = cmac_clone_tfm; in cmac_create()
282 inst->alg.exit_tfm = cmac_exit_tfm; in cmac_create()