Lines Matching refs:alg
646 struct crypto_alg *alg; in vmac_create() local
653 alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_CIPHER, in vmac_create()
655 if (IS_ERR(alg)) in vmac_create()
656 return PTR_ERR(alg); in vmac_create()
658 inst = shash_alloc_instance("vmac", alg); in vmac_create()
663 err = crypto_init_spawn(shash_instance_ctx(inst), alg, in vmac_create()
669 inst->alg.base.cra_priority = alg->cra_priority; in vmac_create()
670 inst->alg.base.cra_blocksize = alg->cra_blocksize; in vmac_create()
671 inst->alg.base.cra_alignmask = alg->cra_alignmask; in vmac_create()
673 inst->alg.digestsize = sizeof(vmac_t); in vmac_create()
674 inst->alg.base.cra_ctxsize = sizeof(struct vmac_ctx_t); in vmac_create()
675 inst->alg.base.cra_init = vmac_init_tfm; in vmac_create()
676 inst->alg.base.cra_exit = vmac_exit_tfm; in vmac_create()
678 inst->alg.init = vmac_init; in vmac_create()
679 inst->alg.update = vmac_update; in vmac_create()
680 inst->alg.final = vmac_final; in vmac_create()
681 inst->alg.setkey = vmac_setkey; in vmac_create()
690 crypto_mod_put(alg); in vmac_create()