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.c42 input_cd.cd_length = km_len; in hkdf_sha512_extract()
44 input_cd.cd_raw.iov_len = input_cd.cd_length; in hkdf_sha512_extract()
48 output_cd.cd_length = SHA512_DIGEST_LENGTH; in hkdf_sha512_extract()
50 output_cd.cd_raw.iov_len = output_cd.cd_length; in hkdf_sha512_extract()
92 c_cd.cd_length = 1; in hkdf_sha512_expand()
94 c_cd.cd_raw.iov_len = c_cd.cd_length; in hkdf_sha512_expand()
98 info_cd.cd_length = info_len; in hkdf_sha512_expand()
100 info_cd.cd_raw.iov_len = info_cd.cd_length; in hkdf_sha512_expand()
105 T_cd.cd_length = T_len; in hkdf_sha512_expand()
106 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.c187 length_needed = plaintext->cd_length + aes_ctx.ac_mac_len; in aes_encrypt_atomic()
190 length_needed = plaintext->cd_length + aes_ctx.ac_tag_len; in aes_encrypt_atomic()
197 if (ciphertext->cd_length < length_needed) { in aes_encrypt_atomic()
198 ciphertext->cd_length = length_needed; in aes_encrypt_atomic()
204 saved_length = ciphertext->cd_length; in aes_encrypt_atomic()
242 ciphertext->cd_length = in aes_encrypt_atomic()
246 ciphertext->cd_length = saved_length; in aes_encrypt_atomic()
289 length_needed = ciphertext->cd_length - aes_ctx.ac_tag_len; in aes_decrypt_atomic()
296 if (plaintext->cd_length < length_needed) { in aes_decrypt_atomic()
297 plaintext->cd_length = length_needed; in aes_decrypt_atomic()
[all …]
H A Dsha2_mod.c145 size_t length = data->cd_length; in sha2_digest_update_uio()
434 data->cd_length); in sha2_mac_update()
469 if ((mac->cd_length == 0) || (mac->cd_length < digest_len)) { in sha2_mac_final()
470 mac->cd_length = digest_len; in sha2_mac_final()
518 mac->cd_length = digest_len; in sha2_mac_final()
520 mac->cd_length = 0; in sha2_mac_final()
534 data->cd_offset, data->cd_length); \
638 mac->cd_length = digest_len; in sha2_mac_atomic()
643 mac->cd_length = 0; in sha2_mac_atomic()
694 if (mac->cd_length != digest_len) { in sha2_mac_verify_atomic()
[all …]
/freebsd/sys/contrib/openzfs/module/icp/core/
H A Dkcf_prov_lib.c77 data->cd_length = len; in crypto_uio_copy_to_data()
90 output->cd_length = len; in crypto_put_output_data()
112 if (input->cd_raw.iov_len < input->cd_length) in crypto_update_iov()
116 input->cd_length, output)); in crypto_update_iov()
125 size_t length = input->cd_length; in crypto_update_uio()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c455 plaindata.cd_length = plain_full_len; in zio_do_crypt_uio()
460 cipherdata.cd_length = datalen + maclen; in zio_do_crypt_uio()
692 in_data.cd_length = datalen; in zio_crypt_do_hmac()
694 in_data.cd_raw.iov_len = in_data.cd_length; in zio_crypt_do_hmac()
698 digest_data.cd_length = SHA512_DIGEST_LENGTH; in zio_crypt_do_hmac()
700 digest_data.cd_raw.iov_len = digest_data.cd_length; in zio_crypt_do_hmac()
1006 cd.cd_length = bab_len; in zio_crypt_bp_do_hmac_updates()
1008 cd.cd_raw.iov_len = cd.cd_length; in zio_crypt_bp_do_hmac_updates()
1077 cd.cd_length = dn_core_size; in zio_crypt_do_dnode_hmac_updates()
1079 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.h89 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.c196 if (out->cd_length < (ctx->ccm_remainder_len + ctx->ccm_mac_len)) { in ccm_encrypt_final()
520 if (out->cd_length < pt_len) { in ccm_decrypt_final()
H A Dgcm.c213 if (out->cd_length < in gcm_encrypt_final()
1398 if (out->cd_length < (rem_len + ctx->gcm_tag_len)) { in gcm_encrypt_final_avx()