Lines Matching refs:alg
193 struct crypto_alg *alg; in xcbc_create() local
211 alg = crypto_spawn_cipher_alg(spawn); in xcbc_create()
214 if (alg->cra_blocksize != XCBC_BLOCKSIZE) in xcbc_create()
217 err = crypto_inst_setname(shash_crypto_instance(inst), tmpl->name, alg); in xcbc_create()
221 alignmask = alg->cra_alignmask | 3; in xcbc_create()
222 inst->alg.base.cra_alignmask = alignmask; in xcbc_create()
223 inst->alg.base.cra_priority = alg->cra_priority; in xcbc_create()
224 inst->alg.base.cra_blocksize = alg->cra_blocksize; in xcbc_create()
226 inst->alg.digestsize = alg->cra_blocksize; in xcbc_create()
227 inst->alg.descsize = ALIGN(sizeof(struct xcbc_desc_ctx), in xcbc_create()
231 alg->cra_blocksize * 2; in xcbc_create()
233 inst->alg.base.cra_ctxsize = ALIGN(sizeof(struct xcbc_tfm_ctx), in xcbc_create()
235 alg->cra_blocksize * 2; in xcbc_create()
236 inst->alg.base.cra_init = xcbc_init_tfm; in xcbc_create()
237 inst->alg.base.cra_exit = xcbc_exit_tfm; in xcbc_create()
239 inst->alg.init = crypto_xcbc_digest_init; in xcbc_create()
240 inst->alg.update = crypto_xcbc_digest_update; in xcbc_create()
241 inst->alg.final = crypto_xcbc_digest_final; in xcbc_create()
242 inst->alg.setkey = crypto_xcbc_digest_setkey; in xcbc_create()