Lines Matching refs:alg
181 struct crypto_alg *alg; in hmac_create() local
202 alg = &salg->base; in hmac_create()
211 if (ds > alg->cra_blocksize || in hmac_create()
212 ss < alg->cra_blocksize) in hmac_create()
215 err = crypto_inst_setname(shash_crypto_instance(inst), tmpl->name, alg); in hmac_create()
219 inst->alg.base.cra_priority = alg->cra_priority; in hmac_create()
220 inst->alg.base.cra_blocksize = alg->cra_blocksize; in hmac_create()
221 inst->alg.base.cra_ctxsize = sizeof(struct hmac_ctx) + (ss * 2); in hmac_create()
223 inst->alg.digestsize = ds; in hmac_create()
224 inst->alg.statesize = ss; in hmac_create()
225 inst->alg.init = hmac_init; in hmac_create()
226 inst->alg.update = hmac_update; in hmac_create()
227 inst->alg.final = hmac_final; in hmac_create()
228 inst->alg.finup = hmac_finup; in hmac_create()
229 inst->alg.export = hmac_export; in hmac_create()
230 inst->alg.import = hmac_import; in hmac_create()
231 inst->alg.setkey = hmac_setkey; in hmac_create()
232 inst->alg.init_tfm = hmac_init_tfm; in hmac_create()
233 inst->alg.clone_tfm = hmac_clone_tfm; in hmac_create()
234 inst->alg.exit_tfm = hmac_exit_tfm; in hmac_create()