Lines Matching refs:ahash
378 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_init() local
379 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_init()
392 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hash_cra_init()
404 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_exit() local
405 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_exit()
413 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_init() local
414 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_init()
437 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hmac_cra_init()
453 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_exit() local
454 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_exit()
1363 struct ahash_alg *ahash; in __n2_register_one_hmac() local
1374 ahash = &p->derived.alg; in __n2_register_one_hmac()
1375 ahash->digest = n2_hmac_async_digest; in __n2_register_one_hmac()
1376 ahash->setkey = n2_hmac_async_setkey; in __n2_register_one_hmac()
1378 base = &ahash->halg.base; in __n2_register_one_hmac()
1387 err = crypto_register_ahash(ahash); in __n2_register_one_hmac()
1403 struct ahash_alg *ahash; in __n2_register_one_ahash() local
1416 ahash = &p->alg; in __n2_register_one_ahash()
1417 ahash->init = n2_hash_async_init; in __n2_register_one_ahash()
1418 ahash->update = n2_hash_async_update; in __n2_register_one_ahash()
1419 ahash->final = n2_hash_async_final; in __n2_register_one_ahash()
1420 ahash->finup = n2_hash_async_finup; in __n2_register_one_ahash()
1421 ahash->digest = n2_hash_async_digest; in __n2_register_one_ahash()
1422 ahash->export = n2_hash_async_noexport; in __n2_register_one_ahash()
1423 ahash->import = n2_hash_async_noimport; in __n2_register_one_ahash()
1425 halg = &ahash->halg; in __n2_register_one_ahash()
1441 err = crypto_register_ahash(ahash); in __n2_register_one_ahash()