Home
last modified time | relevance | path

Searched refs:digest_size (Results 1 – 6 of 6) sorted by relevance

/drivers/md/
Ddm-verity.c54 unsigned digest_size; /* digest size for the current hash algorithm */ member
110 return (u8 *)(io + 1) + v->shash_descsize + v->digest_size; in io_want_digest()
172 *offset = idx * v->digest_size; in verity_hash_at_level()
253 if (unlikely(memcmp(result, io_want_digest(v, io), v->digest_size))) { in verity_verify_level()
265 memcpy(io_want_digest(v, io), data, v->digest_size); in verity_verify_level()
307 memcpy(io_want_digest(v, io), v->root_digest, v->digest_size); in verity_verify_io()
374 if (unlikely(memcmp(result, io_want_digest(v, io), v->digest_size))) { in verity_verify_io()
539 for (x = 0; x < v->digest_size; x++) in verity_status()
758 v->digest_size = crypto_shash_digestsize(v->tfm); in verity_ctr()
759 if ((1 << v->hash_dev_block_bits) < v->digest_size * 2) { in verity_ctr()
[all …]
/drivers/block/drbd/
Ddrbd_worker.c304 int digest_size; in w_e_send_csum() local
316 digest_size = crypto_hash_digestsize(mdev->csums_tfm); in w_e_send_csum()
317 digest = kmalloc(digest_size, GFP_NOIO); in w_e_send_csum()
331 digest, digest_size, in w_e_send_csum()
1017 int digest_size; in w_e_end_csum_rs_req() local
1039 digest_size = crypto_hash_digestsize(mdev->csums_tfm); in w_e_end_csum_rs_req()
1040 D_ASSERT(digest_size == di->digest_size); in w_e_end_csum_rs_req()
1041 digest = kmalloc(digest_size, GFP_NOIO); in w_e_end_csum_rs_req()
1045 eq = !memcmp(digest, di->digest, digest_size); in w_e_end_csum_rs_req()
1081 int digest_size; in w_e_end_ov_req() local
[all …]
Ddrbd_receiver.c1939 …ic int receive_DataRequest(struct drbd_conf *mdev, enum drbd_packets cmd, unsigned int digest_size) in receive_DataRequest() argument
1988 return drbd_drain_block(mdev, digest_size); in receive_DataRequest()
2017 di = kmalloc(sizeof(*di) + digest_size, GFP_NOIO); in receive_DataRequest()
2021 di->digest_size = digest_size; in receive_DataRequest()
2027 if (drbd_recv(mdev, di->digest, digest_size) != digest_size) in receive_DataRequest()
Ddrbd_int.h762 int digest_size; member
1262 void *digest, int digest_size,
Ddrbd_main.c2470 void *digest, int digest_size, in drbd_send_drequest_csum() argument
2482 p.head.length = cpu_to_be16(sizeof(p) - sizeof(struct p_header80) + digest_size); in drbd_send_drequest_csum()
2487 ok = ok && (digest_size == drbd_send(mdev, mdev->data.socket, digest, digest_size, 0)); in drbd_send_drequest_csum()
/drivers/crypto/
Dn2_core.c247 u8 digest_size; member
510 unsigned int auth_type, unsigned int digest_size, in n2_do_async_digest() argument
554 auth_type, digest_size, in n2_do_async_digest()
604 ds = n2alg->digest_size; in n2_hash_async_digest()
624 ds = n2alg->derived.digest_size; in n2_hmac_async_digest()
1276 u8 digest_size; member
1328 .digest_size = MD5_DIGEST_SIZE,
1336 .digest_size = SHA1_DIGEST_SIZE,
1344 .digest_size = SHA256_DIGEST_SIZE,
1352 .digest_size = SHA224_DIGEST_SIZE,
[all …]