Lines Matching refs:ahash
379 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_init() local
380 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_init()
393 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hash_cra_init()
405 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_exit() local
406 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_exit()
414 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_init() local
415 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_init()
438 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hmac_cra_init()
454 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_exit() local
455 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_exit()
1369 struct ahash_alg *ahash; in __n2_register_one_hmac() local
1380 ahash = &p->derived.alg; in __n2_register_one_hmac()
1381 ahash->digest = n2_hmac_async_digest; in __n2_register_one_hmac()
1382 ahash->setkey = n2_hmac_async_setkey; in __n2_register_one_hmac()
1384 base = &ahash->halg.base; in __n2_register_one_hmac()
1393 err = crypto_register_ahash(ahash); in __n2_register_one_hmac()
1409 struct ahash_alg *ahash; in __n2_register_one_ahash() local
1422 ahash = &p->alg; in __n2_register_one_ahash()
1423 ahash->init = n2_hash_async_init; in __n2_register_one_ahash()
1424 ahash->update = n2_hash_async_update; in __n2_register_one_ahash()
1425 ahash->final = n2_hash_async_final; in __n2_register_one_ahash()
1426 ahash->finup = n2_hash_async_finup; in __n2_register_one_ahash()
1427 ahash->digest = n2_hash_async_digest; in __n2_register_one_ahash()
1428 ahash->export = n2_hash_async_noexport; in __n2_register_one_ahash()
1429 ahash->import = n2_hash_async_noimport; in __n2_register_one_ahash()
1431 halg = &ahash->halg; in __n2_register_one_ahash()
1448 err = crypto_register_ahash(ahash); in __n2_register_one_ahash()