Home
last modified time | relevance | path

Searched refs:data_len (Results 1 – 25 of 400) sorted by relevance

12345678910>>...16

/freebsd/contrib/unbound/sldns/
H A Dwire2str.h127 int sldns_wire2str_pkt_buf(uint8_t* data, size_t data_len, char* str,
149 int sldns_wire2str_pkt_scan(uint8_t** data, size_t* data_len, char** str,
164 int sldns_wire2str_rr_scan(uint8_t** data, size_t* data_len, char** str,
179 int sldns_wire2str_rrquestion_scan(uint8_t** data, size_t* data_len, char** str,
194 int sldns_wire2str_rr_unknown_scan(uint8_t** data, size_t* data_len, char** str,
221 int sldns_wire2str_header_scan(uint8_t** data, size_t* data_len, char** str,
239 int sldns_wire2str_rdata_scan(uint8_t** data, size_t* data_len, char** str,
252 int sldns_wire2str_rdata_unknown_scan(uint8_t** data, size_t* data_len,
273 int sldns_wire2str_dname_scan(uint8_t** data, size_t* data_len, char** str,
285 int sldns_wire2str_type_scan(uint8_t** data, size_t* data_len, char** str,
[all …]
/freebsd/contrib/wpa/src/crypto/
H A Daes-eax.c30 u8 *data, size_t data_len, u8 *tag) in aes_128_eax_encrypt() argument
38 if (nonce_len > data_len) in aes_128_eax_encrypt()
41 buf_len = data_len; in aes_128_eax_encrypt()
62 if (aes_128_ctr_encrypt(key, nonce_mac, data, data_len)) in aes_128_eax_encrypt()
65 os_memcpy(buf + 16, data, data_len); in aes_128_eax_encrypt()
66 if (omac1_aes_128(key, buf, 16 + data_len, data_mac)) in aes_128_eax_encrypt()
94 u8 *data, size_t data_len, const u8 *tag) in aes_128_eax_decrypt() argument
102 if (nonce_len > data_len) in aes_128_eax_decrypt()
105 buf_len = data_len; in aes_128_eax_decrypt()
131 os_memcpy(buf + 16, data, data_len); in aes_128_eax_decrypt()
[all …]
H A Daes_wrap.h31 int __must_check omac1_aes_128(const u8 *key, const u8 *data, size_t data_len,
33 int __must_check omac1_aes_256(const u8 *key, const u8 *data, size_t data_len,
37 u8 *data, size_t data_len);
39 u8 *data, size_t data_len);
43 u8 *data, size_t data_len, u8 *tag);
47 u8 *data, size_t data_len, const u8 *tag);
49 size_t data_len);
51 size_t data_len);
/freebsd/contrib/wpa/src/eap_common/
H A Deap_eke_common.c184 size_t data_len, const u8 *data2, size_t data2_len, in eap_eke_prf() argument
192 len[0] = data_len; in eap_eke_prf()
209 size_t data_len, u8 *res, size_t len) in eap_eke_prf_hmac_sha1() argument
221 vlen[1] = data_len; in eap_eke_prf_hmac_sha1()
250 size_t data_len, u8 *res, size_t len) in eap_eke_prf_hmac_sha256() argument
262 vlen[1] = data_len; in eap_eke_prf_hmac_sha256()
291 const u8 *data, size_t data_len, u8 *res, size_t len) in eap_eke_prfplus() argument
294 return eap_eke_prf_hmac_sha1(key, key_len, data, data_len, res, in eap_eke_prfplus()
297 return eap_eke_prf_hmac_sha256(key, key_len, data, data_len, in eap_eke_prfplus()
429 size_t data_len; in eap_eke_derive_ke_ki() local
[all …]
/freebsd/crypto/openssl/test/
H A Drc4test.c34 static unsigned char data_len[6] = { 8, 8, 8, 20, 28, 10 }; variable
71 RC4(&key, data_len[i], &(data[i][0]), obuf); in test_rc4_encrypt()
72 return TEST_mem_eq(obuf, data_len[i] + 1, output[i], data_len[i] + 1); in test_rc4_encrypt()
96 RC4(&key, data_len[3] - i, &(data[3][i]), &(obuf[i])); in test_rc4_multi_call()
97 return TEST_mem_eq(obuf, data_len[3] + 1, output[3], data_len[3] + 1); in test_rc4_multi_call()
128 ADD_ALL_TESTS(test_rc4_encrypt, OSSL_NELEM(data_len)); in setup_tests()
129 ADD_ALL_TESTS(test_rc4_end_processing, data_len[3]); in setup_tests()
130 ADD_ALL_TESTS(test_rc4_multi_call, data_len[3]); in setup_tests()
H A Dhmactest.c39 int data_len; member
92 ebcdic2ascii(test[0].data, test[0].data, test[0].data_len); in test_hmac_md5()
93 ebcdic2ascii(test[1].data, test[1].data, test[1].data_len); in test_hmac_md5()
95 ebcdic2ascii(test[2].data, test[2].data, test[2].data_len); in test_hmac_md5()
100 test[idx].data, test[idx].data_len, NULL, NULL), in test_hmac_md5()
116 || !TEST_false(HMAC_Update(ctx, test[4].data, test[4].data_len)) in test_hmac_bad()
118 || !TEST_false(HMAC_Update(ctx, test[4].data, test[4].data_len))) in test_hmac_bad()
142 || !TEST_false(HMAC_Update(ctx, test[4].data, test[4].data_len)) in test_hmac_run()
147 || !TEST_true(HMAC_Update(ctx, test[4].data, test[4].data_len)) in test_hmac_run()
160 || !TEST_true(HMAC_Update(ctx, test[5].data, test[5].data_len)) in test_hmac_run()
[all …]
H A Dcmactest.c38 int data_len; member
85 || !TEST_false(CMAC_Update(ctx, test[0].data, test[0].data_len)) in test_cmac_bad()
89 || !TEST_false(CMAC_Update(ctx, test[0].data, test[0].data_len)) in test_cmac_bad()
93 || !TEST_true(CMAC_Update(ctx, test[0].data, test[0].data_len)) in test_cmac_bad()
97 || !TEST_false(CMAC_Update(ctx, test[0].data, test[0].data_len))) in test_cmac_bad()
118 || !TEST_true(CMAC_Update(ctx, test[0].data, test[0].data_len)) in test_cmac_run()
128 || !TEST_true(CMAC_Update(ctx, test[1].data, test[1].data_len)) in test_cmac_run()
137 || !TEST_true(CMAC_Update(ctx, test[2].data, test[2].data_len)) in test_cmac_run()
145 || !TEST_true(CMAC_Update(ctx, test[2].data, test[2].data_len)) in test_cmac_run()
155 || !TEST_true(CMAC_Update(ctx, test[2].data, test[2].data_len)) in test_cmac_run()
[all …]
/freebsd/sys/cam/scsi/
H A Dscsi_cd.h211 uint8_t data_len[2]; member
224 uint8_t data_len[2]; member
241 uint8_t data_len[2]; member
372 uint8_t data_len[2]; member
378 uint8_t data_len[2]; member
387 uint8_t data_len[2]; member
395 uint8_t data_len[2]; member
403 uint8_t data_len[2]; member
422 uint8_t data_len[2]; member
430 uint8_t data_len[2]; member
[all …]
/freebsd/sys/cam/ctl/
H A Dctl_util.h46 void ctl_scsi_inquiry(union ctl_io *io, uint8_t *data_ptr, int32_t data_len,
50 int32_t data_len, uint8_t byte2,
53 uint32_t data_len, uint8_t select_report,
56 uint32_t data_len, int read_buffer,
61 uint32_t data_len, int read_op, uint8_t byte2,
66 uint32_t data_len, uint8_t byte2,
70 uint32_t data_len, uint32_t addr, int reladr,
73 uint32_t data_len, uint64_t addr, int reladr,
76 uint32_t data_len, int dbd, int llbaa,
88 uint32_t data_len, int action,
[all …]
H A Dctl_util.c123 ctl_scsi_inquiry(union ctl_io *io, uint8_t *data_ptr, int32_t data_len, in ctl_scsi_inquiry()
140 scsi_ulto2b(data_len, cdb->length); in ctl_scsi_inquiry()
145 ctsio->ext_data_len = data_len; in ctl_scsi_inquiry()
154 int32_t data_len, uint8_t byte2, ctl_tag_type tag_type, in ctl_scsi_request_sense()
169 cdb->length = data_len; in ctl_scsi_request_sense()
175 ctsio->ext_data_len = data_len; in ctl_scsi_request_sense()
182 ctl_scsi_report_luns(union ctl_io *io, uint8_t *data_ptr, uint32_t data_len, in ctl_scsi_report_luns()
197 scsi_ulto4b(data_len, cdb->length); in ctl_scsi_report_luns()
204 ctsio->ext_data_len = data_len; in ctl_scsi_report_luns()
212 uint32_t data_len, in in ctl_scsi_read_write_buffer()
122 ctl_scsi_inquiry(union ctl_io * io,uint8_t * data_ptr,int32_t data_len,uint8_t byte2,uint8_t page_code,ctl_tag_type tag_type,uint8_t control) ctl_scsi_inquiry() argument
153 ctl_scsi_request_sense(union ctl_io * io,uint8_t * data_ptr,int32_t data_len,uint8_t byte2,ctl_tag_type tag_type,uint8_t control) ctl_scsi_request_sense() argument
181 ctl_scsi_report_luns(union ctl_io * io,uint8_t * data_ptr,uint32_t data_len,uint8_t select_report,ctl_tag_type tag_type,uint8_t control) ctl_scsi_report_luns() argument
211 ctl_scsi_read_write_buffer(union ctl_io * io,uint8_t * data_ptr,uint32_t data_len,int read_buffer,uint8_t mode,uint8_t buffer_id,uint32_t buffer_offset,ctl_tag_type tag_type,uint8_t control) ctl_scsi_read_write_buffer() argument
249 ctl_scsi_read_write(union ctl_io * io,uint8_t * data_ptr,uint32_t data_len,int read_op,uint8_t byte2,int minimum_cdb_size,uint64_t lba,uint32_t num_blocks,ctl_tag_type tag_type,uint8_t control) ctl_scsi_read_write() argument
350 ctl_scsi_write_same(union ctl_io * io,uint8_t * data_ptr,uint32_t data_len,uint8_t byte2,uint64_t lba,uint32_t num_blocks,ctl_tag_type tag_type,uint8_t control) ctl_scsi_write_same() argument
381 ctl_scsi_read_capacity(union ctl_io * io,uint8_t * data_ptr,uint32_t data_len,uint32_t addr,int reladr,int pmi,ctl_tag_type tag_type,uint8_t control) ctl_scsi_read_capacity() argument
411 ctl_scsi_read_capacity_16(union ctl_io * io,uint8_t * data_ptr,uint32_t data_len,uint64_t addr,int reladr,int pmi,ctl_tag_type tag_type,uint8_t control) ctl_scsi_read_capacity_16() argument
442 ctl_scsi_mode_sense(union ctl_io * io,uint8_t * data_ptr,uint32_t data_len,int dbd,int llbaa,uint8_t page_code,uint8_t pc,uint8_t subpage,int minimum_cdb_size,ctl_tag_type tag_type,uint8_t control) ctl_scsi_mode_sense() argument
571 ctl_scsi_persistent_res_in(union ctl_io * io,uint8_t * data_ptr,uint32_t data_len,int action,ctl_tag_type tag_type,uint8_t control) ctl_scsi_persistent_res_in() argument
597 ctl_scsi_persistent_res_out(union ctl_io * io,uint8_t * data_ptr,uint32_t data_len,int action,int type,uint64_t key,uint64_t sa_key,ctl_tag_type tag_type,uint8_t control) ctl_scsi_persistent_res_out() argument
654 ctl_scsi_maintenance_in(union ctl_io * io,uint8_t * data_ptr,uint32_t data_len,uint8_t action,ctl_tag_type tag_type,uint8_t control) ctl_scsi_maintenance_in() argument
[all...]
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/nfs/
H A Dtst.call3.c62 args->object.data.data_len = rootfh->fhandle3_len; in getattr_arginit()
72 args->object.data.data_len = rootfh->fhandle3_len; in setattr_arginit()
82 args->what.dir.data.data_len = rootfh->fhandle3_len; in lookup_arginit()
91 args->object.data.data_len = rootfh->fhandle3_len; in access_arginit()
101 args->file.data.data_len = rootfh->fhandle3_len; in commit_arginit()
112 args->where.dir.data.data_len = rootfh->fhandle3_len; in create_arginit()
121 args->fsroot.data.data_len = rootfh->fhandle3_len; in fsinfo_arginit()
130 args->fsroot.data.data_len = rootfh->fhandle3_len; in fsstat_arginit()
139 args->file.data.data_len = rootfh->fhandle3_len; in link_arginit()
141 args->link.dir.data.data_len = rootfh->fhandle3_len; in link_arginit()
[all …]
/freebsd/sbin/nvmecontrol/
H A Dpassthru.c49 uint32_t data_len; member
78 .data_len = 0,
120 ARG("data-len", 'l', arg_uint32, opt, data_len,
168 if (opt.data_len != 0 && !opt.read && !opt.write) in passthru()
185 if (opt.data_len) { in passthru()
186 if (posix_memalign(&data, getpagesize(), opt.data_len)) { in passthru()
187 warn("can't allocate %d bytes for data", opt.data_len); in passthru()
190 memset(data, opt.prefill, opt.data_len); in passthru()
192 (bytes_read = read(ifd, data, opt.data_len)) != in passthru()
193 opt.data_len) { in passthru()
[all …]
/freebsd/contrib/libarchive/libarchive/
H A Darchive_hmac.c59 size_t data_len) in __hmac_sha1_update() argument
61 CCHmacUpdate(ctx, data, data_len); in __hmac_sha1_update()
130 size_t data_len) in __hmac_sha1_update() argument
132 BCryptHashData(ctx->hHash, (PUCHAR)(uintptr_t)data, (ULONG)data_len, 0); in __hmac_sha1_update()
182 size_t data_len) in __hmac_sha1_update() argument
184 mbedtls_md_hmac_update(ctx, data, data_len); in __hmac_sha1_update()
211 size_t data_len) in __hmac_sha1_update() argument
213 hmac_sha1_update(ctx, data_len, data); in __hmac_sha1_update()
260 size_t data_len) in __hmac_sha1_update() argument
263 EVP_MAC_update(*ctx, data, data_len); in __hmac_sha1_update()
[all …]
/freebsd/tools/tools/vhba/lots/
H A Dvhba_lots.c101 uint32_t data_len; in vhbalots_act() local
104 data_len = 0; in vhbalots_act()
253 data_len = min(cdb[4], csio->dxfer_len); in vhbalots_act()
256 data_len = min(tw, csio->dxfer_len); in vhbalots_act()
258 data_len = min(data_len, nbyte); in vhbalots_act()
259 if (data_len) { in vhbalots_act()
260 memcpy(csio->data_ptr, junk, data_len); in vhbalots_act()
262 csio->resid = csio->dxfer_len - data_len; in vhbalots_act()
273 if (vhba_rwparm(cdb, &off, &data_len, DISK_NBLKS, DISK_SHIFT)) { in vhbalots_act()
277 if (data_len) { in vhbalots_act()
[all …]
/freebsd/tools/tools/vhba/medium/
H A Dvhba_medium.c101 uint32_t data_len; in vhbamedium_act() local
104 data_len = 0; in vhbamedium_act()
253 data_len = min(cdb[4], csio->dxfer_len); in vhbamedium_act()
256 data_len = min(tw, csio->dxfer_len); in vhbamedium_act()
258 data_len = min(data_len, nbyte); in vhbamedium_act()
259 if (data_len) { in vhbamedium_act()
260 memcpy(csio->data_ptr, junk, data_len); in vhbamedium_act()
262 csio->resid = csio->dxfer_len - data_len; in vhbamedium_act()
273 if (vhba_rwparm(cdb, &off, &data_len, DISK_NBLKS, DISK_SHIFT)) { in vhbamedium_act()
277 if (data_len) { in vhbamedium_act()
[all …]
/freebsd/tools/tools/vhba/simple/
H A Dvhba_simple.c101 uint32_t data_len; in vhbasimple_act() local
104 data_len = 0; in vhbasimple_act()
253 data_len = min(cdb[4], csio->dxfer_len); in vhbasimple_act()
256 data_len = min(tw, csio->dxfer_len); in vhbasimple_act()
258 data_len = min(data_len, nbyte); in vhbasimple_act()
259 if (data_len) { in vhbasimple_act()
260 memcpy(csio->data_ptr, junk, data_len); in vhbasimple_act()
262 csio->resid = csio->dxfer_len - data_len; in vhbasimple_act()
273 if (vhba_rwparm(cdb, &off, &data_len, DISK_NBLKS, DISK_SHIFT)) { in vhbasimple_act()
277 if (data_len) { in vhbasimple_act()
[all …]
/freebsd/lib/libnvmf/
H A Dnvmf_tcp.c29 size_t data_len; member
49 uint32_t data_len; member
94 uint32_t data_offset, size_t data_len, uint16_t cid, uint16_t ttag, in tcp_alloc_command_buffer() argument
103 cb->data_len = data_len; in tcp_alloc_command_buffer()
227 uint32_t data_len, fei, plen; in nvmf_tcp_validate_pdu() local
242 qp->data_digests, qp->rxpda, &data_len, &fes, &fei); in nvmf_tcp_validate_pdu()
270 digest = compute_digest((const char *)ch + ch->pdo, data_len); in nvmf_tcp_validate_pdu()
279 pdu->data_len = data_len; in nvmf_tcp_validate_pdu()
424 void *data, uint32_t data_len) in nvmf_tcp_construct_pdu() argument
434 if (data_len != 0) { in nvmf_tcp_construct_pdu()
[all …]
/freebsd/contrib/wpa/src/drivers/
H A Ddriver_ndis_.c25 const u8 *data, size_t data_len);
46 size_t data_len = 0; in wpa_driver_ndis_event_process() local
56 data_len = (int) *pos++ << 8; in wpa_driver_ndis_event_process()
57 data_len += *pos++; in wpa_driver_ndis_event_process()
58 if (data_len > (size_t) (buf + len - pos)) { in wpa_driver_ndis_event_process()
63 wpa_hexdump(MSG_MSGDUMP, "NDIS: event data", data, data_len); in wpa_driver_ndis_event_process()
74 wpa_driver_ndis_event_media_specific(drv, data, data_len); in wpa_driver_ndis_event_process()
/freebsd/tools/tools/vhba/
H A Dvhba.c254 uint32_t data_len, nlun; in vhba_default_cmd() local
256 data_len = 0; in vhba_default_cmd()
278 data_len = csio->dxfer_len; in vhba_default_cmd()
280 data_len = cdb[4]; in vhba_default_cmd()
281 if (data_len) { in vhba_default_cmd()
287 (data_len > sizeof junk)? sizeof junk : data_len); in vhba_default_cmd()
289 csio->resid = csio->dxfer_len - data_len; in vhba_default_cmd()
310 data_len = sizeof (niliqd); in vhba_default_cmd()
314 data_len = sizeof (vp0data); in vhba_default_cmd()
324 data_len = sizeof (vp80data); in vhba_default_cmd()
[all …]
/freebsd/tools/tools/vhba/rptluns/
H A Dvhba_rptluns.c122 uint32_t data_len; in vhbarptluns_act() local
126 data_len = 0; in vhbarptluns_act()
282 data_len = min(cdb[4], csio->dxfer_len); in vhbarptluns_act()
285 data_len = min(tw, csio->dxfer_len); in vhbarptluns_act()
287 data_len = min(data_len, nbyte); in vhbarptluns_act()
288 if (data_len) { in vhbarptluns_act()
289 memcpy(csio->data_ptr, junk, data_len); in vhbarptluns_act()
291 csio->resid = csio->dxfer_len - data_len; in vhbarptluns_act()
302 if (vhba_rwparm(cdb, &off, &data_len, DISK_NBLKS, DISK_SHIFT)) { in vhbarptluns_act()
306 if (data_len) { in vhbarptluns_act()
[all …]
/freebsd/tools/tools/vhba/faulty/
H A Dvhba_faulty.c109 uint32_t data_len; in faulty_act() local
112 data_len = 0; in faulty_act()
267 data_len = min(cdb[4], csio->dxfer_len); in faulty_act()
270 data_len = min(tw, csio->dxfer_len); in faulty_act()
272 data_len = min(data_len, nbyte); in faulty_act()
273 if (data_len) { in faulty_act()
274 memcpy(csio->data_ptr, junk, data_len); in faulty_act()
276 csio->resid = csio->dxfer_len - data_len; in faulty_act()
287 if (vhba_rwparm(cdb, &off, &data_len, DISK_NBLKS, DISK_SHIFT)) { in faulty_act()
291 if (data_len) { in faulty_act()
[all …]
/freebsd/contrib/llvm-project/lldb/source/API/
H A DSBData.cpp392 uint32_t data_len = strlen(data); in CreateDataFromCString() local
394 lldb::DataBufferSP buffer_sp(new DataBufferHeap(data, data_len)); in CreateDataFromCString()
412 size_t data_len = array_len * sizeof(uint64_t); in CreateDataFromUInt64Array() local
414 lldb::DataBufferSP buffer_sp(new DataBufferHeap(array, data_len)); in CreateDataFromUInt64Array()
432 size_t data_len = array_len * sizeof(uint32_t); in CreateDataFromUInt32Array() local
434 lldb::DataBufferSP buffer_sp(new DataBufferHeap(array, data_len)); in CreateDataFromUInt32Array()
452 size_t data_len = array_len * sizeof(int64_t); in CreateDataFromSInt64Array() local
454 lldb::DataBufferSP buffer_sp(new DataBufferHeap(array, data_len)); in CreateDataFromSInt64Array()
472 size_t data_len = array_len * sizeof(int32_t); in CreateDataFromSInt32Array() local
474 lldb::DataBufferSP buffer_sp(new DataBufferHeap(array, data_len)); in CreateDataFromSInt32Array()
[all …]
/freebsd/sys/dev/nvmf/
H A Dnvmf_tcp.c42 size_t data_len; member
112 uint32_t data_len; member
175 const struct nvmf_io_request *io, uint32_t data_offset, size_t data_len, in tcp_alloc_command_buffer() argument
184 cb->data_len = data_len; in tcp_alloc_command_buffer()
309 uint32_t data_len, fei, plen; in nvmf_tcp_validate_pdu() local
323 qp->header_digests, qp->data_digests, qp->rxpda, &data_len, &fes, in nvmf_tcp_validate_pdu()
347 digest = mbuf_crc32c(m, ch->pdo, data_len); in nvmf_tcp_validate_pdu()
356 pdu->data_len = data_len; in nvmf_tcp_validate_pdu()
434 struct mbuf *data, uint32_t data_len) in nvmf_tcp_construct_pdu() argument
443 if (data_len != 0) { in nvmf_tcp_construct_pdu()
[all …]
H A Dnvmf_tcp.h39 uint32_t data_len, plen; in nvmf_tcp_validate_pdu_header() local
48 data_len = 0; in nvmf_tcp_validate_pdu_header()
50 data_len = plen - ch->pdo; in nvmf_tcp_validate_pdu_header()
143 if (data_digests && data_len != 0) in nvmf_tcp_validate_pdu_header()
218 if (data_len == 0 && ch->pdo == 0) in nvmf_tcp_validate_pdu_header()
253 data_len <= sizeof(uint32_t)) { in nvmf_tcp_validate_pdu_header()
263 if (data_len != 0) { in nvmf_tcp_validate_pdu_header()
265 ch->pdu_type, data_len); in nvmf_tcp_validate_pdu_header()
274 data_len -= sizeof(uint32_t); in nvmf_tcp_validate_pdu_header()
276 *data_lenp = data_len; in nvmf_tcp_validate_pdu_header()
/freebsd/sys/dev/mfi/
H A Dmfi_debug.c112 hdr->target_id, hdr->sg_count, hdr->data_len, io->lba_lo); in mfi_print_ldio()
186 opcode, hdr->data_len); in mfi_print_dcmd()
243 uint32_t count = 0, data_len; in mfi_validate_sg() local
258 data_len = hdr->data_len; in mfi_validate_sg()
262 data_len = data_len * 512; in mfi_validate_sg()
264 if (count != data_len) { in mfi_validate_sg()
267 function, line, cm, count, data_len, cm->cm_len, in mfi_validate_sg()

12345678910>>...16