Lines Matching refs:peer_integrity_tfm
1863 if (!trim && peer_device->connection->peer_integrity_tfm) { in read_in_block()
1864 digest_size = crypto_shash_digestsize(peer_device->connection->peer_integrity_tfm); in read_in_block()
1942 drbd_csum_ee_size(peer_device->connection->peer_integrity_tfm, peer_req, dig_vv, data_size); in read_in_block()
1993 if (peer_device->connection->peer_integrity_tfm) { in recv_dless_read()
1994 digest_size = crypto_shash_digestsize(peer_device->connection->peer_integrity_tfm); in recv_dless_read()
2019 drbd_csum_bio(peer_device->connection->peer_integrity_tfm, bio, dig_vv); in recv_dless_read()
3636 struct crypto_shash *peer_integrity_tfm = NULL; in receive_protocol() local
3717 peer_integrity_tfm = crypto_alloc_shash(integrity_alg, 0, 0); in receive_protocol()
3718 if (IS_ERR(peer_integrity_tfm)) { in receive_protocol()
3719 peer_integrity_tfm = NULL; in receive_protocol()
3725 hash_size = crypto_shash_digestsize(peer_integrity_tfm); in receive_protocol()
3753 crypto_free_shash(connection->peer_integrity_tfm); in receive_protocol()
3756 connection->peer_integrity_tfm = peer_integrity_tfm; in receive_protocol()
3770 crypto_free_shash(peer_integrity_tfm); in receive_protocol()