• Home
  • Raw
  • Download

Lines Matching refs:mac

22 	struct crypto_ahash_spawn mac;  member
26 struct crypto_ahash *mac; member
93 struct crypto_ahash *mac = ctx->mac; in crypto_ccm_setkey() local
105 crypto_ahash_clear_flags(mac, CRYPTO_TFM_REQ_MASK); in crypto_ccm_setkey()
106 crypto_ahash_set_flags(mac, crypto_aead_get_flags(aead) & in crypto_ccm_setkey()
108 err = crypto_ahash_setkey(mac, key, keylen); in crypto_ccm_setkey()
109 crypto_aead_set_flags(aead, crypto_ahash_get_flags(mac) & in crypto_ccm_setkey()
207 ahash_request_set_tfm(ahreq, ctx->mac); in crypto_ccm_auth()
406 struct crypto_ahash *mac; in crypto_ccm_init_tfm() local
411 mac = crypto_spawn_ahash(&ictx->mac); in crypto_ccm_init_tfm()
412 if (IS_ERR(mac)) in crypto_ccm_init_tfm()
413 return PTR_ERR(mac); in crypto_ccm_init_tfm()
420 ctx->mac = mac; in crypto_ccm_init_tfm()
428 max(crypto_ahash_reqsize(mac), crypto_skcipher_reqsize(ctr))); in crypto_ccm_init_tfm()
433 crypto_free_ahash(mac); in crypto_ccm_init_tfm()
441 crypto_free_ahash(ctx->mac); in crypto_ccm_exit_tfm()
449 crypto_drop_ahash(&ctx->mac); in crypto_ccm_free()
463 struct hash_alg_common *mac; in crypto_ccm_create_common() local
481 mac = __crypto_hash_alg_common(mac_alg); in crypto_ccm_create_common()
483 if (strncmp(mac->base.cra_name, "cbcmac(", 7) != 0 || in crypto_ccm_create_common()
484 mac->digestsize != 16) in crypto_ccm_create_common()
493 err = crypto_init_ahash_spawn(&ictx->mac, mac, in crypto_ccm_create_common()
515 if (strcmp(ctr->base.cra_name + 4, mac->base.cra_name + 7) != 0) in crypto_ccm_create_common()
525 mac->base.cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in crypto_ccm_create_common()
529 inst->alg.base.cra_priority = (mac->base.cra_priority + in crypto_ccm_create_common()
532 inst->alg.base.cra_alignmask = mac->base.cra_alignmask | in crypto_ccm_create_common()
558 crypto_drop_ahash(&ictx->mac); in crypto_ccm_create_common()