| /freebsd/lib/librpcsec_gss/ |
| H A D | rpcsec_gss_prot.c | 101 gss_buffer_desc databuf, wrapbuf; in xdr_rpc_gss_wrap_data() local 117 databuf.length = end - start - 4; in xdr_rpc_gss_wrap_data() 119 databuf.value = XDR_INLINE(xdrs, databuf.length); in xdr_rpc_gss_wrap_data() 126 len = databuf.length; in xdr_rpc_gss_wrap_data() 132 &databuf, &wrapbuf); in xdr_rpc_gss_wrap_data() 144 maj_stat = gss_wrap(&min_stat, ctx, TRUE, qop, &databuf, in xdr_rpc_gss_wrap_data() 164 gss_buffer_desc databuf, wrapbuf; in xdr_rpc_gss_unwrap_data() local 172 memset(&databuf, 0, sizeof(databuf)); in xdr_rpc_gss_unwrap_data() 177 if (!xdr_gss_buffer_desc(xdrs, &databuf)) { in xdr_rpc_gss_unwrap_data() 183 mem_free(databuf.value, databuf.length); in xdr_rpc_gss_unwrap_data() [all …]
|
| /freebsd/sys/contrib/openzfs/tests/unit/ |
| H A D | test_fletcher.c | 35 static uint8_t databuf[DATA_SIZE] __attribute__((aligned(64))); variable 42 databuf[i] = (uint8_t)i; in fill_data() 71 fletcher_4_native(databuf, 0, NULL, &zc); in test_fletcher4_known() 87 fletcher_4_native(databuf, DATA_SIZE, NULL, &once); in test_fletcher4_incremental() 90 (void) fletcher_4_incremental_native(databuf, 2048, &inc); in test_fletcher4_incremental() 91 (void) fletcher_4_incremental_native(databuf + 2048, 2048, &inc); in test_fletcher4_incremental() 92 (void) fletcher_4_incremental_native(databuf + 4096, DATA_SIZE - 4096, in test_fletcher4_incremental() 107 fletcher_4_native(databuf, 4096, NULL, &native); in test_fletcher4_varsize() 108 fletcher_4_native_varsize(databuf, 4096, &var); in test_fletcher4_varsize() 112 fletcher_4_native_varsize(databuf, 4098, &var_unaligned); in test_fletcher4_varsize() [all …]
|
| H A D | test_sha2.c | 29 static uint8_t databuf[DATA_SIZE] __attribute__((aligned(64))); variable 35 databuf[i] = (uint8_t)i; in fill_data() 330 hash_buf(algos[a], databuf, DATA_SIZE, once); in test_incremental() 334 SHA2Update(&ctx, databuf + off, chunks[c]); in test_incremental() 337 SHA2Update(&ctx, databuf + off, DATA_SIZE - off); in test_incremental() 380 hash_buf(algotypes[a], databuf, DATA_SIZE, digest); in test_impls()
|
| /freebsd/crypto/krb5/src/lib/rpc/ |
| H A D | authgss_prot.c | 135 gss_buffer_desc databuf, wrapbuf; in xdr_rpc_gss_wrap_data() local 149 databuf.length = xdr_getpos(&tmpxdrs); in xdr_rpc_gss_wrap_data() 150 databuf.value = xdralloc_getdata(&tmpxdrs); in xdr_rpc_gss_wrap_data() 153 if (!xdr_rpc_gss_buf(xdrs, &databuf, (unsigned int)-1)) in xdr_rpc_gss_wrap_data() 158 &databuf, &wrapbuf); in xdr_rpc_gss_wrap_data() 169 maj_stat = gss_wrap(&min_stat, ctx, TRUE, qop, &databuf, in xdr_rpc_gss_wrap_data() 190 gss_buffer_desc databuf, wrapbuf; in xdr_rpc_gss_unwrap_data() local 200 memset(&databuf, 0, sizeof(databuf)); in xdr_rpc_gss_unwrap_data() 205 if (!xdr_rpc_gss_buf(xdrs, &databuf, (unsigned int)-1)) { in xdr_rpc_gss_unwrap_data() 211 gss_release_buffer(&min_stat, &databuf); in xdr_rpc_gss_unwrap_data() [all …]
|
| /freebsd/contrib/netbsd-tests/crypto/opencrypto/ |
| H A D | h_gcm.c | 57 unsigned char databuf[16]; in main() local 76 memset(databuf, 0, sizeof(databuf)); in main() 82 co.dst = databuf; in main() 96 for (i = 0; i < sizeof(databuf); i++) in main() 97 printf("%02x ", databuf[i]); in main() 111 co.len = sizeof(databuf); in main() 112 co.src = databuf; in main()
|
| /freebsd/lib/libc/tests/stdio/ |
| H A D | eintr_test.c | 42 static char databuf[256]; in getdata() local 51 sprintf(databuf, "%08d xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n", seq++); in getdata() 52 return (databuf); in getdata()
|
| /freebsd/contrib/tcp_wrappers/ |
| H A D | tli-sequent.c | 95 peek.databuf.maxlen = -1; in tli_host() 96 peek.databuf.len = 0; in tli_host() 97 peek.databuf.buf = 0; in tli_host()
|
| /freebsd/include/ |
| H A D | res_update.h | 50 struct databuf *r_dp; /*%< databuf to process */ 51 struct databuf *r_deldp; /*%< databuf's deleted/overwritten */
|
| /freebsd/sys/cam/scsi/ |
| H A D | scsi_cd.c | 3506 uint8_t *databuf; in cdreportkey() local 3512 databuf = NULL; in cdreportkey() 3544 databuf = malloc(length, M_DEVBUF, M_WAITOK | M_ZERO); in cdreportkey() 3546 databuf = NULL; in cdreportkey() 3558 /* data_ptr */ databuf, in cdreportkey() 3578 agid_data = (struct scsi_report_key_data_agid *)databuf; in cdreportkey() 3587 chal_data = (struct scsi_report_key_data_challenge *)databuf; in cdreportkey() 3597 key1_data = (struct scsi_report_key_data_key1_key2 *)databuf; in cdreportkey() 3606 title_data = (struct scsi_report_key_data_title *)databuf; in cdreportkey() 3622 asf_data = (struct scsi_report_key_data_asf *)databuf; in cdreportkey() [all …]
|
| /freebsd/lib/libc/net/ |
| H A D | ip6opt.c | 492 inet6_opt_set_val(void *databuf, int offset, void *val, socklen_t vallen) in inet6_opt_set_val() argument 495 memcpy((u_int8_t *)databuf + offset, val, vallen); in inet6_opt_set_val() 591 inet6_opt_get_val(void *databuf, int offset, void *val, socklen_t vallen) in inet6_opt_get_val() argument 595 memcpy(val, (u_int8_t *)databuf + offset, vallen); in inet6_opt_get_val()
|
| /freebsd/sys/contrib/openzfs/module/zcommon/ |
| H A D | zfs_fletcher.c | 762 char *databuf = vmem_alloc(data_size, KM_SLEEP); in fletcher_4_benchmark() local 765 ((uint64_t *)databuf)[i] = (uintptr_t)(databuf+i); /* warm-up */ in fletcher_4_benchmark() 767 fletcher_4_benchmark_impl(B_FALSE, databuf, data_size); in fletcher_4_benchmark() 768 fletcher_4_benchmark_impl(B_TRUE, databuf, data_size); in fletcher_4_benchmark() 770 vmem_free(databuf, data_size); in fletcher_4_benchmark()
|
| /freebsd/contrib/ntp/sntp/libevent/include/event2/ |
| H A D | http.h | 419 const char *reason, struct evbuffer *databuf); 454 struct evbuffer *databuf);
|
| /freebsd/contrib/libevent/include/event2/ |
| H A D | http.h | 419 const char *reason, struct evbuffer *databuf); 454 struct evbuffer *databuf);
|
| /freebsd/contrib/ntp/sntp/libevent/ |
| H A D | http.c | 2833 evhttp_send(struct evhttp_request *req, struct evbuffer *databuf) in evhttp_send() argument 2848 if (databuf != NULL) in evhttp_send() 2849 evbuffer_add_buffer(req->output_buffer, databuf); in evhttp_send() 2859 struct evbuffer *databuf) in evhttp_send_reply() argument 2863 evhttp_send(req, databuf); in evhttp_send_reply() 2894 evhttp_send_reply_chunk_with_cb(struct evhttp_request *req, struct evbuffer *databuf, in evhttp_send_reply_chunk_with_cb() argument 2905 if (evbuffer_get_length(databuf) == 0) in evhttp_send_reply_chunk_with_cb() 2911 (unsigned)evbuffer_get_length(databuf)); in evhttp_send_reply_chunk_with_cb() 2913 evbuffer_add_buffer(output, databuf); in evhttp_send_reply_chunk_with_cb() 2921 evhttp_send_reply_chunk(struct evhttp_request *req, struct evbuffer *databuf) in evhttp_send_reply_chunk() argument [all …]
|
| /freebsd/contrib/libevent/ |
| H A D | http.c | 2833 evhttp_send(struct evhttp_request *req, struct evbuffer *databuf) in evhttp_send() argument 2848 if (databuf != NULL) in evhttp_send() 2849 evbuffer_add_buffer(req->output_buffer, databuf); in evhttp_send() 2859 struct evbuffer *databuf) in evhttp_send_reply() argument 2863 evhttp_send(req, databuf); in evhttp_send_reply() 2894 evhttp_send_reply_chunk_with_cb(struct evhttp_request *req, struct evbuffer *databuf, in evhttp_send_reply_chunk_with_cb() argument 2905 if (evbuffer_get_length(databuf) == 0) in evhttp_send_reply_chunk_with_cb() 2911 (unsigned)evbuffer_get_length(databuf)); in evhttp_send_reply_chunk_with_cb() 2913 evbuffer_add_buffer(output, databuf); in evhttp_send_reply_chunk_with_cb() 2921 evhttp_send_reply_chunk(struct evhttp_request *req, struct evbuffer *databuf) in evhttp_send_reply_chunk() argument [all …]
|
| /freebsd/share/doc/psd/21.ipc/ |
| H A D | spell.ok | 141 databuf
|
| /freebsd/sbin/ping/ |
| H A D | ping6.c | 1872 void *databuf; in pr_ip6opt() local 1896 &type, &len, &databuf); in pr_ip6opt() 1906 offset = inet6_opt_get_val(databuf, offset, in pr_ip6opt() 1913 offset = inet6_opt_get_val(databuf, offset, in pr_ip6opt()
|
| /freebsd/crypto/openssl/test/ |
| H A D | quic_multistream_test.c | 5244 unsigned char databuf[64]; in script_80_send_stateless_reset() local 5253 RAND_bytes(databuf, 64); in script_80_send_stateless_reset() 5254 databuf[0] = 0x40; in script_80_send_stateless_reset() 5255 memcpy(&databuf[48], test_reset_token.token, in script_80_send_stateless_reset() 5258 if (!TEST_int_eq(SSL_inject_net_dgram(h->c_conn, databuf, sizeof(databuf), in script_80_send_stateless_reset()
|