Lines Matching refs:ahash
376 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_init() local
377 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_init()
390 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hash_cra_init()
402 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_exit() local
403 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_exit()
411 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_init() local
412 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_init()
435 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hmac_cra_init()
451 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_exit() local
452 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_exit()
1413 struct ahash_alg *ahash; in __n2_register_one_hmac() local
1424 ahash = &p->derived.alg; in __n2_register_one_hmac()
1425 ahash->digest = n2_hmac_async_digest; in __n2_register_one_hmac()
1426 ahash->setkey = n2_hmac_async_setkey; in __n2_register_one_hmac()
1428 base = &ahash->halg.base; in __n2_register_one_hmac()
1437 err = crypto_register_ahash(ahash); in __n2_register_one_hmac()
1453 struct ahash_alg *ahash; in __n2_register_one_ahash() local
1466 ahash = &p->alg; in __n2_register_one_ahash()
1467 ahash->init = n2_hash_async_init; in __n2_register_one_ahash()
1468 ahash->update = n2_hash_async_update; in __n2_register_one_ahash()
1469 ahash->final = n2_hash_async_final; in __n2_register_one_ahash()
1470 ahash->finup = n2_hash_async_finup; in __n2_register_one_ahash()
1471 ahash->digest = n2_hash_async_digest; in __n2_register_one_ahash()
1472 ahash->export = n2_hash_async_noexport; in __n2_register_one_ahash()
1473 ahash->import = n2_hash_async_noimport; in __n2_register_one_ahash()
1475 halg = &ahash->halg; in __n2_register_one_ahash()
1491 err = crypto_register_ahash(ahash); in __n2_register_one_ahash()