Lines Matching refs:nhash
546 struct crypto_ahash *nhash;
558 nhash = crypto_clone_tfm(&crypto_ahash_type, tfm);
560 if (IS_ERR(nhash))
561 return nhash;
563 nhash->init = hash->init;
564 nhash->update = hash->update;
565 nhash->final = hash->final;
566 nhash->finup = hash->finup;
567 nhash->digest = hash->digest;
568 nhash->export = hash->export;
569 nhash->import = hash->import;
570 nhash->setkey = hash->setkey;
571 nhash->reqsize = hash->reqsize;
572 nhash->statesize = hash->statesize;
575 return crypto_clone_shash_ops_async(nhash, hash);
582 err = alg->clone_tfm(nhash, hash);
586 return nhash;
589 crypto_free_ahash(nhash);