Lines Matching refs:alg
188 struct crypto_alg *alg; in hmac_create() local
209 alg = &salg->base; in hmac_create()
218 if (ds > alg->cra_blocksize || in hmac_create()
219 ss < alg->cra_blocksize) in hmac_create()
222 err = crypto_inst_setname(shash_crypto_instance(inst), tmpl->name, alg); in hmac_create()
226 inst->alg.base.cra_priority = alg->cra_priority; in hmac_create()
227 inst->alg.base.cra_blocksize = alg->cra_blocksize; in hmac_create()
228 inst->alg.base.cra_alignmask = alg->cra_alignmask; in hmac_create()
230 ss = ALIGN(ss, alg->cra_alignmask + 1); in hmac_create()
231 inst->alg.digestsize = ds; in hmac_create()
232 inst->alg.statesize = ss; in hmac_create()
234 inst->alg.base.cra_ctxsize = sizeof(struct hmac_ctx) + in hmac_create()
237 inst->alg.init = hmac_init; in hmac_create()
238 inst->alg.update = hmac_update; in hmac_create()
239 inst->alg.final = hmac_final; in hmac_create()
240 inst->alg.finup = hmac_finup; in hmac_create()
241 inst->alg.export = hmac_export; in hmac_create()
242 inst->alg.import = hmac_import; in hmac_create()
243 inst->alg.setkey = hmac_setkey; in hmac_create()
244 inst->alg.init_tfm = hmac_init_tfm; in hmac_create()
245 inst->alg.clone_tfm = hmac_clone_tfm; in hmac_create()
246 inst->alg.exit_tfm = hmac_exit_tfm; in hmac_create()