Searched refs:cd_length (Results 1 – 11 of 11) sorted by relevance
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | hkdf.c | 45 input_cd.cd_length = km_len; in hkdf_sha512_extract() 47 input_cd.cd_raw.iov_len = input_cd.cd_length; in hkdf_sha512_extract() 51 output_cd.cd_length = SHA512_DIGEST_LENGTH; in hkdf_sha512_extract() 53 output_cd.cd_raw.iov_len = output_cd.cd_length; in hkdf_sha512_extract() 95 c_cd.cd_length = 1; in hkdf_sha512_expand() 97 c_cd.cd_raw.iov_len = c_cd.cd_length; in hkdf_sha512_expand() 101 info_cd.cd_length = info_len; in hkdf_sha512_expand() 103 info_cd.cd_raw.iov_len = info_cd.cd_length; in hkdf_sha512_expand() 108 T_cd.cd_length = T_len; in hkdf_sha512_expand() 109 T_cd.cd_raw.iov_len = T_cd.cd_length; in hkdf_sha512_expand() [all …]
|
/freebsd/sys/contrib/openzfs/module/icp/io/ |
H A D | aes.c | 196 length_needed = plaintext->cd_length + aes_ctx.ac_mac_len; in aes_encrypt_atomic() 199 length_needed = plaintext->cd_length + aes_ctx.ac_tag_len; in aes_encrypt_atomic() 206 if (ciphertext->cd_length < length_needed) { in aes_encrypt_atomic() 207 ciphertext->cd_length = length_needed; in aes_encrypt_atomic() 213 saved_length = ciphertext->cd_length; in aes_encrypt_atomic() 251 ciphertext->cd_length = in aes_encrypt_atomic() 255 ciphertext->cd_length = saved_length; in aes_encrypt_atomic() 298 length_needed = ciphertext->cd_length - aes_ctx.ac_tag_len; in aes_decrypt_atomic() 305 if (plaintext->cd_length < length_needed) { in aes_decrypt_atomic() 306 plaintext->cd_length = length_needed; in aes_decrypt_atomic() [all …]
|
H A D | sha2_mod.c | 154 size_t length = data->cd_length; in sha2_digest_update_uio() 443 data->cd_length); in sha2_mac_update() 478 if ((mac->cd_length == 0) || (mac->cd_length < digest_len)) { in sha2_mac_final() 479 mac->cd_length = digest_len; in sha2_mac_final() 527 mac->cd_length = digest_len; in sha2_mac_final() 529 mac->cd_length = 0; in sha2_mac_final() 543 data->cd_offset, data->cd_length); \ 647 mac->cd_length = digest_len; in sha2_mac_atomic() 652 mac->cd_length = 0; in sha2_mac_atomic() 703 if (mac->cd_length != digest_len) { in sha2_mac_verify_atomic() [all …]
|
/freebsd/sys/contrib/openzfs/module/icp/core/ |
H A D | kcf_prov_lib.c | 86 data->cd_length = len; in crypto_uio_copy_to_data() 99 output->cd_length = len; in crypto_put_output_data() 121 if (input->cd_raw.iov_len < input->cd_length) in crypto_update_iov() 125 input->cd_length, output)); in crypto_update_iov() 134 size_t length = input->cd_length; in crypto_update_uio()
|
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zio_crypt.c | 458 plaindata.cd_length = plain_full_len; in zio_do_crypt_uio() 463 cipherdata.cd_length = datalen + maclen; in zio_do_crypt_uio() 695 in_data.cd_length = datalen; in zio_crypt_do_hmac() 697 in_data.cd_raw.iov_len = in_data.cd_length; in zio_crypt_do_hmac() 701 digest_data.cd_length = SHA512_DIGEST_LENGTH; in zio_crypt_do_hmac() 703 digest_data.cd_raw.iov_len = digest_data.cd_length; in zio_crypt_do_hmac() 1009 cd.cd_length = bab_len; in zio_crypt_bp_do_hmac_updates() 1011 cd.cd_raw.iov_len = cd.cd_length; in zio_crypt_bp_do_hmac_updates() 1080 cd.cd_length = dn_core_size; in zio_crypt_do_dnode_hmac_updates() 1082 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 D | common.h | 96 size_t cd_length; /* # of bytes in use */ member
|
/freebsd/sys/geom/raid/ |
H A D | md_ddf.c | 254 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 D | md_ddf.h | 69 uint32_t cd_length; /* Controller_Data_Section_Length */ member
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | crypto_test.c | 665 .cd_length = msglen, in encrypt_one() 675 .cd_length = outlen, in encrypt_one() 728 .cd_length = ctlen + taglen, in decrypt_one() 738 .cd_length = outlen, in decrypt_one()
|
/freebsd/sys/contrib/openzfs/module/icp/algs/modes/ |
H A D | ccm.c | 205 if (out->cd_length < (ctx->ccm_remainder_len + ctx->ccm_mac_len)) { in ccm_encrypt_final() 529 if (out->cd_length < pt_len) { in ccm_decrypt_final()
|
H A D | gcm.c | 219 if (out->cd_length < in gcm_encrypt_final() 1252 if (out->cd_length < (rem_len + ctx->gcm_tag_len)) { in gcm_encrypt_final_avx()
|