/freebsd/contrib/mtree/ |
H A D | compare.c | 142 char *digestbuf; in compare() local 429 if ((digestbuf = MD5File(p->fts_accpath, NULL)) == NULL) { in compare() 435 if (strcmp(s->md5digest, digestbuf)) { in compare() 440 tab, MD5KEY, s->md5digest, digestbuf); in compare() 443 free(digestbuf); in compare() 449 if ((digestbuf = RMD160File(p->fts_accpath, NULL)) == NULL) { in compare() 455 if (strcmp(s->rmd160digest, digestbuf)) { in compare() 460 tab, RMD160KEY, s->rmd160digest, digestbuf); in compare() 463 free(digestbuf); in compare() 469 if ((digestbuf = SHA1File(p->fts_accpath, NULL)) == NULL) { in compare() [all …]
|
H A D | create.c | 190 char *digestbuf; in statf() local 253 if ((digestbuf = MD5File(p->fts_accpath, NULL)) == NULL) in statf() 256 output(fp, indent, &offset, "%s=%s", MD5KEY, digestbuf); in statf() 257 free(digestbuf); in statf() 262 if ((digestbuf = RMD160File(p->fts_accpath, NULL)) == NULL) in statf() 265 output(fp, indent, &offset, "%s=%s", RMD160KEY, digestbuf); in statf() 266 free(digestbuf); in statf() 271 if ((digestbuf = SHA1File(p->fts_accpath, NULL)) == NULL) in statf() 274 output(fp, indent, &offset, "%s=%s", SHA1KEY, digestbuf); in statf() 275 free(digestbuf); in statf() [all …]
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zio_crypt.c | 625 uint8_t *digestbuf, uint_t digestlen) in zio_crypt_do_hmac() argument 634 memcpy(digestbuf, raw_digestbuf, digestlen); in zio_crypt_do_hmac() 644 uint8_t digestbuf[SHA512_DIGEST_LENGTH]; in zio_crypt_generate_iv_salt_dedup() local 647 digestbuf, SHA512_DIGEST_LENGTH); in zio_crypt_generate_iv_salt_dedup() 651 memcpy(salt, digestbuf, ZIO_DATA_SALT_LEN); in zio_crypt_generate_iv_salt_dedup() 652 memcpy(ivbuf, digestbuf + ZIO_DATA_SALT_LEN, ZIO_DATA_IV_LEN); in zio_crypt_generate_iv_salt_dedup() 1162 uint8_t digestbuf[SHA512_DIGEST_LENGTH]; in zio_crypt_do_indirect_mac_checksum_impl() local 1170 SHA2Final(digestbuf, &ctx); in zio_crypt_do_indirect_mac_checksum_impl() 1173 memcpy(cksum, digestbuf, ZIO_DATA_MAC_LEN); in zio_crypt_do_indirect_mac_checksum_impl() 1177 if (memcmp(digestbuf, cksum, ZIO_DATA_MAC_LEN) != 0) { in zio_crypt_do_indirect_mac_checksum_impl()
|
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zio_crypt.c | 678 uint8_t *digestbuf, uint_t digestlen) in zio_crypt_do_hmac() argument 713 memcpy(digestbuf, raw_digestbuf, digestlen); in zio_crypt_do_hmac() 718 memset(digestbuf, 0, digestlen); in zio_crypt_do_hmac() 727 uint8_t digestbuf[SHA512_DIGEST_LENGTH]; in zio_crypt_generate_iv_salt_dedup() local 730 digestbuf, SHA512_DIGEST_LENGTH); in zio_crypt_generate_iv_salt_dedup() 734 memcpy(salt, digestbuf, ZIO_DATA_SALT_LEN); in zio_crypt_generate_iv_salt_dedup() 735 memcpy(ivbuf, digestbuf + ZIO_DATA_SALT_LEN, ZIO_DATA_IV_LEN); in zio_crypt_generate_iv_salt_dedup() 1333 uint8_t digestbuf[SHA512_DIGEST_LENGTH]; in zio_crypt_do_indirect_mac_checksum_impl() local 1341 SHA2Final(digestbuf, &ctx); in zio_crypt_do_indirect_mac_checksum_impl() 1344 memcpy(cksum, digestbuf, ZIO_DATA_MAC_LEN); in zio_crypt_do_indirect_mac_checksum_impl() [all …]
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | zio_crypt.h | 148 uint8_t *digestbuf, uint_t digestlen);
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | dsl_crypt.c | 2781 uint8_t digestbuf[ZIO_DATA_MAC_LEN]; in spa_do_crypt_mac_abd() local 2790 digestbuf, ZIO_DATA_MAC_LEN); in spa_do_crypt_mac_abd() 2802 memcpy(mac, digestbuf, ZIO_DATA_MAC_LEN); in spa_do_crypt_mac_abd() 2806 if (memcmp(digestbuf, mac, ZIO_DATA_MAC_LEN) != 0) in spa_do_crypt_mac_abd()
|