Lines Matching refs:alg
188 struct crypto_alg *alg; in xcbc_create() local
205 alg = crypto_spawn_cipher_alg(spawn); in xcbc_create()
208 if (alg->cra_blocksize != XCBC_BLOCKSIZE) in xcbc_create()
211 err = crypto_inst_setname(shash_crypto_instance(inst), tmpl->name, alg); in xcbc_create()
215 inst->alg.base.cra_priority = alg->cra_priority; in xcbc_create()
216 inst->alg.base.cra_blocksize = alg->cra_blocksize; in xcbc_create()
217 inst->alg.base.cra_ctxsize = sizeof(struct xcbc_tfm_ctx) + in xcbc_create()
218 alg->cra_blocksize * 2; in xcbc_create()
220 inst->alg.digestsize = alg->cra_blocksize; in xcbc_create()
221 inst->alg.descsize = sizeof(struct xcbc_desc_ctx) + in xcbc_create()
222 alg->cra_blocksize * 2; in xcbc_create()
224 inst->alg.base.cra_init = xcbc_init_tfm; in xcbc_create()
225 inst->alg.base.cra_exit = xcbc_exit_tfm; in xcbc_create()
227 inst->alg.init = crypto_xcbc_digest_init; in xcbc_create()
228 inst->alg.update = crypto_xcbc_digest_update; in xcbc_create()
229 inst->alg.final = crypto_xcbc_digest_final; in xcbc_create()
230 inst->alg.setkey = crypto_xcbc_digest_setkey; in xcbc_create()