Lines Matching refs:mac

21 	struct crypto_ahash_spawn mac;  member
25 struct crypto_ahash *mac; member
92 struct crypto_ahash *mac = ctx->mac; in crypto_ccm_setkey() local
102 crypto_ahash_clear_flags(mac, CRYPTO_TFM_REQ_MASK); in crypto_ccm_setkey()
103 crypto_ahash_set_flags(mac, crypto_aead_get_flags(aead) & in crypto_ccm_setkey()
105 return crypto_ahash_setkey(mac, key, keylen); in crypto_ccm_setkey()
199 ahash_request_set_tfm(ahreq, ctx->mac); in crypto_ccm_auth()
397 struct crypto_ahash *mac; in crypto_ccm_init_tfm() local
402 mac = crypto_spawn_ahash(&ictx->mac); in crypto_ccm_init_tfm()
403 if (IS_ERR(mac)) in crypto_ccm_init_tfm()
404 return PTR_ERR(mac); in crypto_ccm_init_tfm()
411 ctx->mac = mac; in crypto_ccm_init_tfm()
419 max(crypto_ahash_reqsize(mac), crypto_skcipher_reqsize(ctr))); in crypto_ccm_init_tfm()
424 crypto_free_ahash(mac); in crypto_ccm_init_tfm()
432 crypto_free_ahash(ctx->mac); in crypto_ccm_exit_tfm()
440 crypto_drop_ahash(&ctx->mac); in crypto_ccm_free()
454 struct hash_alg_common *mac; in crypto_ccm_create_common() local
466 err = crypto_grab_ahash(&ictx->mac, aead_crypto_instance(inst), in crypto_ccm_create_common()
470 mac = crypto_spawn_ahash_alg(&ictx->mac); in crypto_ccm_create_common()
473 if (strncmp(mac->base.cra_name, "cbcmac(", 7) != 0 || in crypto_ccm_create_common()
474 mac->digestsize != 16) in crypto_ccm_create_common()
491 if (strcmp(ctr->base.cra_name + 4, mac->base.cra_name + 7) != 0) in crypto_ccm_create_common()
501 mac->base.cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in crypto_ccm_create_common()
504 inst->alg.base.cra_priority = (mac->base.cra_priority + in crypto_ccm_create_common()
507 inst->alg.base.cra_alignmask = mac->base.cra_alignmask | in crypto_ccm_create_common()