Lines Matching refs:ahash
375 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_init() local
376 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_init()
389 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hash_cra_init()
401 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_exit() local
402 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_exit()
410 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_init() local
411 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_init()
434 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hmac_cra_init()
450 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_exit() local
451 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_exit()
1421 struct ahash_alg *ahash; in __n2_register_one_hmac() local
1432 ahash = &p->derived.alg; in __n2_register_one_hmac()
1433 ahash->digest = n2_hmac_async_digest; in __n2_register_one_hmac()
1434 ahash->setkey = n2_hmac_async_setkey; in __n2_register_one_hmac()
1436 base = &ahash->halg.base; in __n2_register_one_hmac()
1445 err = crypto_register_ahash(ahash); in __n2_register_one_hmac()
1461 struct ahash_alg *ahash; in __n2_register_one_ahash() local
1474 ahash = &p->alg; in __n2_register_one_ahash()
1475 ahash->init = n2_hash_async_init; in __n2_register_one_ahash()
1476 ahash->update = n2_hash_async_update; in __n2_register_one_ahash()
1477 ahash->final = n2_hash_async_final; in __n2_register_one_ahash()
1478 ahash->finup = n2_hash_async_finup; in __n2_register_one_ahash()
1479 ahash->digest = n2_hash_async_digest; in __n2_register_one_ahash()
1480 ahash->export = n2_hash_async_noexport; in __n2_register_one_ahash()
1481 ahash->import = n2_hash_async_noimport; in __n2_register_one_ahash()
1483 halg = &ahash->halg; in __n2_register_one_ahash()
1499 err = crypto_register_ahash(ahash); in __n2_register_one_ahash()