Lines Matching refs:digest
287 void drbd_csum_ee(struct crypto_shash *tfm, struct drbd_peer_request *peer_req, void *digest) in drbd_csum_ee() argument
312 crypto_shash_final(desc, digest); in drbd_csum_ee()
316 void drbd_csum_bio(struct crypto_shash *tfm, struct bio *bio, void *digest) in drbd_csum_bio() argument
333 crypto_shash_final(desc, digest); in drbd_csum_bio()
344 void *digest; in w_e_send_csum() local
354 digest = kmalloc(digest_size, GFP_NOIO); in w_e_send_csum()
355 if (digest) { in w_e_send_csum()
358 drbd_csum_ee(peer_device->connection->csums_tfm, peer_req, digest); in w_e_send_csum()
368 digest, digest_size, in w_e_send_csum()
370 kfree(digest); in w_e_send_csum()
1170 void *digest = NULL; in w_e_end_csum_rs_req() local
1184 di = peer_req->digest; in w_e_end_csum_rs_req()
1193 digest = kmalloc(digest_size, GFP_NOIO); in w_e_end_csum_rs_req()
1195 if (digest) { in w_e_end_csum_rs_req()
1196 drbd_csum_ee(peer_device->connection->csums_tfm, peer_req, digest); in w_e_end_csum_rs_req()
1197 eq = !memcmp(digest, di->digest, digest_size); in w_e_end_csum_rs_req()
1198 kfree(digest); in w_e_end_csum_rs_req()
1235 void *digest; in w_e_end_ov_req() local
1242 digest = kmalloc(digest_size, GFP_NOIO); in w_e_end_ov_req()
1243 if (!digest) { in w_e_end_ov_req()
1249 drbd_csum_ee(peer_device->connection->verify_tfm, peer_req, digest); in w_e_end_ov_req()
1251 memset(digest, 0, digest_size); in w_e_end_ov_req()
1261 err = drbd_send_drequest_csum(peer_device, sector, size, digest, digest_size, P_OV_REPLY); in w_e_end_ov_req()
1264 kfree(digest); in w_e_end_ov_req()
1290 void *digest; in w_e_end_ov_reply() local
1310 di = peer_req->digest; in w_e_end_ov_reply()
1314 digest = kmalloc(digest_size, GFP_NOIO); in w_e_end_ov_reply()
1315 if (digest) { in w_e_end_ov_reply()
1316 drbd_csum_ee(peer_device->connection->verify_tfm, peer_req, digest); in w_e_end_ov_reply()
1319 eq = !memcmp(digest, di->digest, digest_size); in w_e_end_ov_reply()
1320 kfree(digest); in w_e_end_ov_reply()