Lines Matching refs:alg
227 struct crypto_alg *alg; in cmac_create() local
245 alg = crypto_spawn_cipher_alg(spawn); in cmac_create()
247 switch (alg->cra_blocksize) { in cmac_create()
256 err = crypto_inst_setname(shash_crypto_instance(inst), tmpl->name, alg); in cmac_create()
260 alignmask = alg->cra_alignmask; in cmac_create()
261 inst->alg.base.cra_alignmask = alignmask; in cmac_create()
262 inst->alg.base.cra_priority = alg->cra_priority; in cmac_create()
263 inst->alg.base.cra_blocksize = alg->cra_blocksize; in cmac_create()
265 inst->alg.digestsize = alg->cra_blocksize; in cmac_create()
266 inst->alg.descsize = in cmac_create()
269 + alg->cra_blocksize * 2; in cmac_create()
271 inst->alg.base.cra_ctxsize = in cmac_create()
275 + alg->cra_blocksize * 2; in cmac_create()
277 inst->alg.base.cra_init = cmac_init_tfm; in cmac_create()
278 inst->alg.base.cra_exit = cmac_exit_tfm; in cmac_create()
280 inst->alg.init = crypto_cmac_digest_init; in cmac_create()
281 inst->alg.update = crypto_cmac_digest_update; in cmac_create()
282 inst->alg.final = crypto_cmac_digest_final; in cmac_create()
283 inst->alg.setkey = crypto_cmac_digest_setkey; in cmac_create()