Lines Matching refs:alg
169 struct crypto_alg *alg; in hmac_create() local
190 alg = &salg->base; in hmac_create()
199 if (ds > alg->cra_blocksize || in hmac_create()
200 ss < alg->cra_blocksize) in hmac_create()
203 err = crypto_inst_setname(shash_crypto_instance(inst), tmpl->name, alg); in hmac_create()
207 inst->alg.base.cra_priority = alg->cra_priority; in hmac_create()
208 inst->alg.base.cra_blocksize = alg->cra_blocksize; in hmac_create()
209 inst->alg.base.cra_alignmask = alg->cra_alignmask; in hmac_create()
211 ss = ALIGN(ss, alg->cra_alignmask + 1); in hmac_create()
212 inst->alg.digestsize = ds; in hmac_create()
213 inst->alg.statesize = ss; in hmac_create()
215 inst->alg.base.cra_ctxsize = sizeof(struct hmac_ctx) + in hmac_create()
218 inst->alg.init = hmac_init; in hmac_create()
219 inst->alg.update = hmac_update; in hmac_create()
220 inst->alg.final = hmac_final; in hmac_create()
221 inst->alg.finup = hmac_finup; in hmac_create()
222 inst->alg.export = hmac_export; in hmac_create()
223 inst->alg.import = hmac_import; in hmac_create()
224 inst->alg.setkey = hmac_setkey; in hmac_create()
225 inst->alg.init_tfm = hmac_init_tfm; in hmac_create()
226 inst->alg.exit_tfm = hmac_exit_tfm; in hmac_create()