Lines Matching refs:ahash
377 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_init() local
378 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_init()
391 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hash_cra_init()
403 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_exit() local
404 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_exit()
412 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_init() local
413 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_init()
436 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hmac_cra_init()
452 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_exit() local
453 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_exit()
1362 struct ahash_alg *ahash; in __n2_register_one_hmac() local
1373 ahash = &p->derived.alg; in __n2_register_one_hmac()
1374 ahash->digest = n2_hmac_async_digest; in __n2_register_one_hmac()
1375 ahash->setkey = n2_hmac_async_setkey; in __n2_register_one_hmac()
1377 base = &ahash->halg.base; in __n2_register_one_hmac()
1386 err = crypto_register_ahash(ahash); in __n2_register_one_hmac()
1402 struct ahash_alg *ahash; in __n2_register_one_ahash() local
1415 ahash = &p->alg; in __n2_register_one_ahash()
1416 ahash->init = n2_hash_async_init; in __n2_register_one_ahash()
1417 ahash->update = n2_hash_async_update; in __n2_register_one_ahash()
1418 ahash->final = n2_hash_async_final; in __n2_register_one_ahash()
1419 ahash->finup = n2_hash_async_finup; in __n2_register_one_ahash()
1420 ahash->digest = n2_hash_async_digest; in __n2_register_one_ahash()
1421 ahash->export = n2_hash_async_noexport; in __n2_register_one_ahash()
1422 ahash->import = n2_hash_async_noimport; in __n2_register_one_ahash()
1424 halg = &ahash->halg; in __n2_register_one_ahash()
1440 err = crypto_register_ahash(ahash); in __n2_register_one_ahash()