Lines Matching refs:hash_desc
608 struct hash_desc hash_desc; member
745 s->hash_desc.flags = CRYPTO_TFM_REQ_MAY_SLEEP; in ecryptfs_write_tag_70_packet()
746 s->hash_desc.tfm = crypto_alloc_hash(ECRYPTFS_TAG_70_DIGEST, 0, in ecryptfs_write_tag_70_packet()
748 if (IS_ERR(s->hash_desc.tfm)) { in ecryptfs_write_tag_70_packet()
749 rc = PTR_ERR(s->hash_desc.tfm); in ecryptfs_write_tag_70_packet()
755 rc = crypto_hash_init(&s->hash_desc); in ecryptfs_write_tag_70_packet()
763 &s->hash_desc, &s->hash_sg, in ecryptfs_write_tag_70_packet()
771 rc = crypto_hash_final(&s->hash_desc, s->hash); in ecryptfs_write_tag_70_packet()
785 rc = crypto_hash_init(&s->hash_desc); in ecryptfs_write_tag_70_packet()
792 rc = crypto_hash_update(&s->hash_desc, &s->hash_sg, in ecryptfs_write_tag_70_packet()
800 rc = crypto_hash_final(&s->hash_desc, s->tmp_hash); in ecryptfs_write_tag_70_packet()
864 crypto_free_hash(s->hash_desc.tfm); in ecryptfs_write_tag_70_packet()