Home
last modified time | relevance | path

Searched refs:digestbuf (Results 1 – 4 of 4) sorted by relevance

/f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/
H A Dzio_crypt.c636 uint8_t *digestbuf, uint_t digestlen) in zio_crypt_do_hmac() argument
645 bcopy(raw_digestbuf, digestbuf, digestlen); in zio_crypt_do_hmac()
655 uint8_t digestbuf[SHA512_DIGEST_LENGTH]; in zio_crypt_generate_iv_salt_dedup() local
658 digestbuf, SHA512_DIGEST_LENGTH); in zio_crypt_generate_iv_salt_dedup()
662 bcopy(digestbuf, salt, ZIO_DATA_SALT_LEN); in zio_crypt_generate_iv_salt_dedup()
663 bcopy(digestbuf + ZIO_DATA_SALT_LEN, ivbuf, ZIO_DATA_IV_LEN); in zio_crypt_generate_iv_salt_dedup()
1173 uint8_t digestbuf[SHA512_DIGEST_LENGTH]; in zio_crypt_do_indirect_mac_checksum_impl() local
1181 SHA2Final(digestbuf, &ctx); in zio_crypt_do_indirect_mac_checksum_impl()
1184 bcopy(digestbuf, cksum, ZIO_DATA_MAC_LEN); in zio_crypt_do_indirect_mac_checksum_impl()
1188 if (bcmp(digestbuf, cksum, ZIO_DATA_MAC_LEN) != 0) { in zio_crypt_do_indirect_mac_checksum_impl()
/f-stack/freebsd/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c672 uint8_t *digestbuf, uint_t digestlen) in zio_crypt_do_hmac() argument
707 bcopy(raw_digestbuf, digestbuf, digestlen); in zio_crypt_do_hmac()
712 bzero(digestbuf, digestlen); in zio_crypt_do_hmac()
721 uint8_t digestbuf[SHA512_DIGEST_LENGTH]; in zio_crypt_generate_iv_salt_dedup() local
724 digestbuf, SHA512_DIGEST_LENGTH); in zio_crypt_generate_iv_salt_dedup()
728 bcopy(digestbuf, salt, ZIO_DATA_SALT_LEN); in zio_crypt_generate_iv_salt_dedup()
729 bcopy(digestbuf + ZIO_DATA_SALT_LEN, ivbuf, ZIO_DATA_IV_LEN); in zio_crypt_generate_iv_salt_dedup()
1319 uint8_t digestbuf[SHA512_DIGEST_LENGTH]; in zio_crypt_do_indirect_mac_checksum_impl() local
1327 SHA2Final(digestbuf, &ctx); in zio_crypt_do_indirect_mac_checksum_impl()
1330 bcopy(digestbuf, cksum, ZIO_DATA_MAC_LEN); in zio_crypt_do_indirect_mac_checksum_impl()
[all …]
/f-stack/freebsd/contrib/openzfs/include/sys/
H A Dzio_crypt.h148 uint8_t *digestbuf, uint_t digestlen);
/f-stack/freebsd/contrib/openzfs/module/zfs/
H A Ddsl_crypt.c2723 uint8_t digestbuf[ZIO_DATA_MAC_LEN]; in spa_do_crypt_mac_abd() local
2732 digestbuf, ZIO_DATA_MAC_LEN); in spa_do_crypt_mac_abd()
2744 bcopy(digestbuf, mac, ZIO_DATA_MAC_LEN); in spa_do_crypt_mac_abd()
2748 if (bcmp(digestbuf, mac, ZIO_DATA_MAC_LEN) != 0) in spa_do_crypt_mac_abd()