Home
last modified time | relevance | path

Searched refs:cd_length (Results 1 – 11 of 11) sorted by relevance

/freebsd/sys/contrib/openzfs/module/zfs/
H A Dhkdf.c46 input_cd.cd_length = km_len; in hkdf_sha512_extract()
48 input_cd.cd_raw.iov_len = input_cd.cd_length; in hkdf_sha512_extract()
52 output_cd.cd_length = SHA512_DIGEST_LENGTH; in hkdf_sha512_extract()
54 output_cd.cd_raw.iov_len = output_cd.cd_length; in hkdf_sha512_extract()
96 c_cd.cd_length = 1; in hkdf_sha512_expand()
98 c_cd.cd_raw.iov_len = c_cd.cd_length; in hkdf_sha512_expand()
102 info_cd.cd_length = info_len; in hkdf_sha512_expand()
104 info_cd.cd_raw.iov_len = info_cd.cd_length; in hkdf_sha512_expand()
109 T_cd.cd_length = T_len; in hkdf_sha512_expand()
110 T_cd.cd_raw.iov_len = T_cd.cd_length; in hkdf_sha512_expand()
[all …]
/freebsd/sys/contrib/openzfs/module/icp/io/
H A Daes.c197 length_needed = plaintext->cd_length + aes_ctx.ac_mac_len; in aes_encrypt_atomic()
200 length_needed = plaintext->cd_length + aes_ctx.ac_tag_len; in aes_encrypt_atomic()
207 if (ciphertext->cd_length < length_needed) { in aes_encrypt_atomic()
208 ciphertext->cd_length = length_needed; in aes_encrypt_atomic()
214 saved_length = ciphertext->cd_length; in aes_encrypt_atomic()
252 ciphertext->cd_length = in aes_encrypt_atomic()
256 ciphertext->cd_length = saved_length; in aes_encrypt_atomic()
299 length_needed = ciphertext->cd_length - aes_ctx.ac_tag_len; in aes_decrypt_atomic()
306 if (plaintext->cd_length < length_needed) { in aes_decrypt_atomic()
307 plaintext->cd_length = length_needed; in aes_decrypt_atomic()
[all …]
H A Dsha2_mod.c155 size_t length = data->cd_length; in sha2_digest_update_uio()
444 data->cd_length); in sha2_mac_update()
479 if ((mac->cd_length == 0) || (mac->cd_length < digest_len)) { in sha2_mac_final()
480 mac->cd_length = digest_len; in sha2_mac_final()
528 mac->cd_length = digest_len; in sha2_mac_final()
530 mac->cd_length = 0; in sha2_mac_final()
544 data->cd_offset, data->cd_length); \
648 mac->cd_length = digest_len; in sha2_mac_atomic()
653 mac->cd_length = 0; in sha2_mac_atomic()
704 if (mac->cd_length != digest_len) { in sha2_mac_verify_atomic()
[all …]
/freebsd/sys/contrib/openzfs/module/icp/core/
H A Dkcf_prov_lib.c87 data->cd_length = len; in crypto_uio_copy_to_data()
100 output->cd_length = len; in crypto_put_output_data()
122 if (input->cd_raw.iov_len < input->cd_length) in crypto_update_iov()
126 input->cd_length, output)); in crypto_update_iov()
135 size_t length = input->cd_length; in crypto_update_uio()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c459 plaindata.cd_length = plain_full_len; in zio_do_crypt_uio()
464 cipherdata.cd_length = datalen + maclen; in zio_do_crypt_uio()
696 in_data.cd_length = datalen; in zio_crypt_do_hmac()
698 in_data.cd_raw.iov_len = in_data.cd_length; in zio_crypt_do_hmac()
702 digest_data.cd_length = SHA512_DIGEST_LENGTH; in zio_crypt_do_hmac()
704 digest_data.cd_raw.iov_len = digest_data.cd_length; in zio_crypt_do_hmac()
1010 cd.cd_length = bab_len; in zio_crypt_bp_do_hmac_updates()
1012 cd.cd_raw.iov_len = cd.cd_length; in zio_crypt_bp_do_hmac_updates()
1081 cd.cd_length = dn_core_size; in zio_crypt_do_dnode_hmac_updates()
1083 cd.cd_raw.iov_len = cd.cd_length; in zio_crypt_do_dnode_hmac_updates()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/crypto/
H A Dcommon.h99 size_t cd_length; /* # of bytes in use */ member
/freebsd/sys/geom/raid/
H A Dmd_ddf.c254 printf("Controller Data %u:%u\n", GET32(meta, hdr->cd_section), GET32(meta, hdr->cd_length)); in g_raid_md_ddf_print()
604 SET32(meta, hdr->cd_length, in ddf_meta_create()
605 howmany(GET32(sample, hdr->cd_length) * in ddf_meta_create()
643 SET32(meta, hdr->cd_length, in ddf_meta_create()
664 pos += GET32(meta, hdr->cd_length); in ddf_meta_create()
690 size = GET32(meta, hdr->cd_length) * ss; in ddf_meta_create()
766 dst->cdr = malloc(GET32(src, hdr->cd_length) * ss, M_MD_DDF, M_WAITOK); in ddf_meta_copy()
767 memcpy(dst->cdr, src->cdr, GET32(src, hdr->cd_length) * ss); in ddf_meta_copy()
852 meta->cdr = malloc(GET32(sample, hdr->cd_length) * ss, M_MD_DDF, M_WAITOK); in ddf_vol_meta_create()
853 memcpy(meta->cdr, sample->cdr, GET32(sample, hdr->cd_length) * ss); in ddf_vol_meta_create()
[all …]
H A Dmd_ddf.h69 uint32_t cd_length; /* Controller_Data_Section_Length */ member
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dcrypto_test.c667 .cd_length = msglen, in encrypt_one()
677 .cd_length = outlen, in encrypt_one()
730 .cd_length = ctlen + taglen, in decrypt_one()
740 .cd_length = outlen, in decrypt_one()
/freebsd/sys/contrib/openzfs/module/icp/algs/modes/
H A Dccm.c206 if (out->cd_length < (ctx->ccm_remainder_len + ctx->ccm_mac_len)) { in ccm_encrypt_final()
530 if (out->cd_length < pt_len) { in ccm_decrypt_final()
H A Dgcm.c222 if (out->cd_length < in gcm_encrypt_final()
1407 if (out->cd_length < (rem_len + ctx->gcm_tag_len)) { in gcm_encrypt_final_avx()