Searched refs:halg (Results 1 – 6 of 6) sorted by relevance
/linux-4.19.296/crypto/ |
D | mcryptd.c | 490 struct hash_alg_common *halg; in mcryptd_create_hash() local 499 halg = ahash_attr_alg(tb[1], type, mask); in mcryptd_create_hash() 500 if (IS_ERR(halg)) in mcryptd_create_hash() 501 return PTR_ERR(halg); in mcryptd_create_hash() 503 alg = &halg->base; in mcryptd_create_hash() 514 err = crypto_init_ahash_spawn(&ctx->spawn, halg, in mcryptd_create_hash() 519 inst->alg.halg.base.cra_flags = CRYPTO_ALG_ASYNC | in mcryptd_create_hash() 523 inst->alg.halg.digestsize = halg->digestsize; in mcryptd_create_hash() 524 inst->alg.halg.statesize = halg->statesize; in mcryptd_create_hash() 525 inst->alg.halg.base.cra_ctxsize = sizeof(struct mcryptd_hash_ctx); in mcryptd_create_hash() [all …]
|
D | ahash.c | 42 halg); in crypto_ahash_alg() 561 struct crypto_alg *base = &alg->halg.base; in ahash_prepare_alg() 563 if (alg->halg.digestsize > PAGE_SIZE / 8 || in ahash_prepare_alg() 564 alg->halg.statesize > PAGE_SIZE / 8 || in ahash_prepare_alg() 565 alg->halg.statesize == 0) in ahash_prepare_alg() 577 struct crypto_alg *base = &alg->halg.base; in crypto_register_ahash() 590 return crypto_unregister_alg(&alg->halg.base); in crypto_unregister_ahash() 661 bool crypto_hash_alg_has_setkey(struct hash_alg_common *halg) in crypto_hash_alg_has_setkey() argument 663 struct crypto_alg *alg = &halg->base; in crypto_hash_alg_has_setkey()
|
D | cryptd.c | 900 inst->alg.halg.base.cra_flags = CRYPTO_ALG_ASYNC | in cryptd_create_hash() 904 inst->alg.halg.digestsize = salg->digestsize; in cryptd_create_hash() 905 inst->alg.halg.statesize = salg->statesize; in cryptd_create_hash() 906 inst->alg.halg.base.cra_ctxsize = sizeof(struct cryptd_hash_ctx); in cryptd_create_hash() 908 inst->alg.halg.base.cra_init = cryptd_hash_init_tfm; in cryptd_create_hash() 909 inst->alg.halg.base.cra_exit = cryptd_hash_exit_tfm; in cryptd_create_hash()
|
/linux-4.19.296/include/crypto/internal/ |
D | hash.h | 87 bool crypto_hash_alg_has_setkey(struct hash_alg_common *halg); 133 halg); in __crypto_ahash_alg() 145 return container_of(&inst->alg.halg.base, struct crypto_instance, alg); in ahash_crypto_instance() 151 return container_of(&inst->alg, struct ahash_instance, alg.halg.base); in ahash_instance()
|
/linux-4.19.296/drivers/char/tpm/eventlog/ |
D | tpm2.c | 49 u16 halg; in calc_tpm2_event_size() local 66 memcpy(&halg, marker, halg_size); in calc_tpm2_event_size() 69 if (halg == efispecid->digest_sizes[j].alg_id) { in calc_tpm2_event_size()
|
/linux-4.19.296/include/crypto/ |
D | hash.h | 144 struct hash_alg_common halg; member
|