• Home
  • Raw
  • Download

Lines Matching refs:ghash

24 	struct crypto_ahash_spawn ghash;  member
29 struct crypto_ahash *ghash; member
96 struct crypto_ahash *ghash = ctx->ghash; in crypto_gcm_setkey() local
137 crypto_ahash_clear_flags(ghash, CRYPTO_TFM_REQ_MASK); in crypto_gcm_setkey()
138 crypto_ahash_set_flags(ghash, crypto_aead_get_flags(aead) & in crypto_gcm_setkey()
140 err = crypto_ahash_setkey(ghash, (u8 *)&data->hash, sizeof(be128)); in crypto_gcm_setkey()
404 ahash_request_set_tfm(ahreq, ctx->ghash); in gcm_hash()
527 struct crypto_ahash *ghash; in crypto_gcm_init_tfm() local
531 ghash = crypto_spawn_ahash(&ictx->ghash); in crypto_gcm_init_tfm()
532 if (IS_ERR(ghash)) in crypto_gcm_init_tfm()
533 return PTR_ERR(ghash); in crypto_gcm_init_tfm()
541 ctx->ghash = ghash; in crypto_gcm_init_tfm()
550 crypto_ahash_reqsize(ghash))); in crypto_gcm_init_tfm()
555 crypto_free_ahash(ghash); in crypto_gcm_init_tfm()
563 crypto_free_ahash(ctx->ghash); in crypto_gcm_exit_tfm()
572 crypto_drop_ahash(&ctx->ghash); in crypto_gcm_free()
585 struct hash_alg_common *ghash; in crypto_gcm_create_common() local
597 err = crypto_grab_ahash(&ctx->ghash, aead_crypto_instance(inst), in crypto_gcm_create_common()
601 ghash = crypto_spawn_ahash_alg(&ctx->ghash); in crypto_gcm_create_common()
604 if (strcmp(ghash->base.cra_name, "ghash") != 0 || in crypto_gcm_create_common()
605 ghash->digestsize != 16) in crypto_gcm_create_common()
628 ghash->base.cra_driver_name) >= in crypto_gcm_create_common()
632 inst->alg.base.cra_priority = (ghash->base.cra_priority + in crypto_gcm_create_common()
635 inst->alg.base.cra_alignmask = ghash->base.cra_alignmask | in crypto_gcm_create_common()