/freebsd/sys/opencrypto/ |
H A D | cryptodeflate.c | 86 z_stream zbuf; in deflate_global() local 124 bzero(&zbuf, sizeof(z_stream)); in deflate_global() 125 zbuf.zalloc = crypto_zalloc; in deflate_global() 126 zbuf.zfree = crypto_zfree; in deflate_global() 127 zbuf.opaque = Z_NULL; in deflate_global() 128 zbuf.next_in = data; /* Data that is going to be processed. */ in deflate_global() 129 zbuf.avail_in = size; /* Total length of data to be processed. */ in deflate_global() 130 zbuf.next_out = bufp->data; in deflate_global() 131 zbuf.avail_out = bufp->size; in deflate_global() 133 error = decomp ? inflateInit2(&zbuf, window_inflate) : in deflate_global() [all …]
|
/freebsd/sys/net/ |
H A D | bpf_zerocopy.c | 93 struct zbuf { struct 138 zbuf_free(struct zbuf *zb) in zbuf_free() 178 struct zbuf **zbp) in zbuf_setup() 180 struct zbuf *zb; in zbuf_setup() 244 struct zbuf *zb; in bpf_zerocopy_append_bytes() 251 zb = (struct zbuf *)buf; in bpf_zerocopy_append_bytes() 296 struct zbuf *zb; in bpf_zerocopy_append_mbuf() 303 zb = (struct zbuf *)buf; in bpf_zerocopy_append_mbuf() 357 struct zbuf *zb; in bpf_zerocopy_buffull() 362 zb = (struct zbuf *)d->bd_sbuf; in bpf_zerocopy_buffull() [all …]
|
H A D | bpfdesc.h | 51 struct zbuf;
|
/freebsd/crypto/openssl/crypto/pkcs12/ |
H A D | p12_decr.c | 131 const ASN1_OCTET_STRING *oct, int zbuf, in PKCS12_item_decrypt_d2i_ex() argument 150 if (zbuf) in PKCS12_item_decrypt_d2i_ex() 160 const ASN1_OCTET_STRING *oct, int zbuf) in PKCS12_item_decrypt_d2i() argument 162 return PKCS12_item_decrypt_d2i_ex(algor, it, pass, passlen, oct, zbuf, in PKCS12_item_decrypt_d2i() 174 void *obj, int zbuf, in PKCS12_item_i2d_encrypt_ex() argument 197 if (zbuf) in PKCS12_item_i2d_encrypt_ex() 209 void *obj, int zbuf) in PKCS12_item_i2d_encrypt() argument 211 return PKCS12_item_i2d_encrypt_ex(algor, it, pass, passlen, obj, zbuf, NULL, NULL); in PKCS12_item_i2d_encrypt()
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | PKCS12_item_decrypt_d2i.pod | 15 const ASN1_OCTET_STRING *oct, int zbuf); 18 const ASN1_OCTET_STRING *oct, int zbuf, 24 void *obj, int zbuf); 28 void *obj, int zbuf, 36 password I<pass> of length I<passlen>. If I<zbuf> is nonzero then the output 41 I<passlen>, returning an encoded object in I<obj>. If I<zbuf> is nonzero then
|
/freebsd/sys/dev/random/ |
H A D | unit_test.c | 178 uint8_t *buf, *zbuf; in ReadCSPRNG() local 197 zbuf = malloc(2*i + 1024); in ReadCSPRNG() 200 if (buf != NULL && zbuf != NULL) { in ReadCSPRNG() 203 zsize = block_deflate(buf, zbuf, i); in ReadCSPRNG() 215 printf(" %02X", zbuf[j]); in ReadCSPRNG() 220 free(zbuf); in ReadCSPRNG()
|
/freebsd/contrib/bzip2/ |
H A D | unzcrash.c | 42 uchar zbuf[M_BLOCK + 600 + (M_BLOCK / 100)]; variable 71 zbuf[byteno] ^= mask; in flip_bit() 97 zbuf, &nZ, inbuf, nIn, 9, 0, 30 ); in main() 107 outbuf, &nOut, zbuf, nZ, 0, 0 ); in main()
|
/freebsd/sys/dev/null/ |
H A D | null.c | 151 void *zbuf; in zero_read() local 157 zbuf = __DECONST(void *, zero_region); in zero_read() 162 error = uiomove(zbuf, len, uio); in zero_read()
|
/freebsd/contrib/ntp/libntp/lib/isc/ |
H A D | netaddr.c | 130 char zbuf[sizeof("%4294967295")]; in isc_netaddr_totext() local 167 zlen = snprintf(zbuf, sizeof(zbuf), "%%%u", netaddr->zone); in isc_netaddr_totext() 170 INSIST((unsigned int)zlen < sizeof(zbuf)); in isc_netaddr_totext() 177 isc_buffer_putmem(target, (unsigned char *)zbuf, zlen); in isc_netaddr_totext()
|
/freebsd/usr.sbin/bhyve/ |
H A D | rfb.c | 131 uint8_t *zbuf; member 515 zbufp = rc->zbuf; in rfb_send_rect() 535 zbufp = rc->zbuf + rc->zstream.total_out; in rfb_send_rect() 548 return (stream_write(cfd, rc->zbuf, rc->zstream.total_out)); in rfb_send_rect() 554 zbufp = rc->zbuf; in rfb_send_rect() 569 total = stream_write(cfd, rc->zbuf, total); in rfb_send_rect() 610 rc->zstream.next_out = (Bytef *)rc->zbuf; in rfb_send_all() 636 return (stream_write(cfd, rc->zbuf, rc->zstream.total_out)); in rfb_send_all() 1149 if (!rc->zbuf) { in rfb_handle() 1150 rc->zbuf = malloc(RFB_ZLIB_BUFSZ + 16); in rfb_handle() [all …]
|
/freebsd/crypto/openssh/regress/misc/fuzz-harness/ |
H A D | kex_fuzz.cc | 422 u_char zbuf[4096] = {0}; in LLVMFuzzerTestOneInput() local 441 sshbuf_put(ts->s_template, zbuf, sizeof(zbuf)) != 0) in LLVMFuzzerTestOneInput() 451 sshbuf_put(ts->c_template, zbuf, sizeof(zbuf)) != 0) in LLVMFuzzerTestOneInput()
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | pkcs12.h | 234 const ASN1_OCTET_STRING *oct, int zbuf); 237 const ASN1_OCTET_STRING *oct, int zbuf, 243 void *obj, int zbuf); 247 void *obj, int zbuf,
|
H A D | pkcs12.h.in | 211 const ASN1_OCTET_STRING *oct, int zbuf); 214 const ASN1_OCTET_STRING *oct, int zbuf, 220 void *obj, int zbuf); 224 void *obj, int zbuf,
|
/freebsd/sbin/savecore/ |
H A D | savecore.c | 540 static char *zbuf; variable 565 z->next_out = zbuf; in GunzipWrite() 572 w = sparsefwrite(zbuf, zbufsize - z->avail_out, fp); in GunzipWrite() 593 Zout.dst = zbuf; in ZstdWrite() 602 w = sparsefwrite(zbuf, Zout.pos, fp); in ZstdWrite() 641 if ((zbuf = malloc(zbufsize)) == NULL) { in DoRegularFile()
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | fallocate.cc | 508 char zbuf[bufsize]; in TEST_P() local 513 bzero(zbuf, bufsize); in TEST_P() 518 expect_read(ino, 0, fsize, fsize, zbuf); in TEST_P() 541 ASSERT_EQ(0, memcmp(buf, zbuf, fsize)); in TEST_P()
|
/freebsd/sys/contrib/openzfs/cmd/zpool/ |
H A D | zpool_main.c | 2731 char zbuf[1024]; in print_status_initialize() local 2747 (void) snprintf(zbuf, sizeof (zbuf), ", %s %s", in print_status_initialize() 2751 (void) snprintf(zbuf, sizeof (zbuf), ", %s %s", in print_status_initialize() 2755 (void) snprintf(zbuf, sizeof (zbuf), ", %s %s", in print_status_initialize() 2761 initialize_pct, zbuf); in print_status_initialize() 2781 char zbuf[1024]; in print_status_trim() local 2796 (void) snprintf(zbuf, sizeof (zbuf), ", %s %s", in print_status_trim() 2800 (void) snprintf(zbuf, sizeof (zbuf), ", %s %s", in print_status_trim() 2804 (void) snprintf(zbuf, sizeof (zbuf), ", %s %s", in print_status_trim() 2810 trim_pct, zbuf); in print_status_trim()
|
/freebsd/sys/dev/bxe/ |
H A D | ecore_init_ops.h | 42 static int ecore_gunzip(struct bxe_softc *sc, const uint8_t *zbuf, int len);
|
H A D | bxe.c | 18570 const uint8_t *zbuf, in ecore_gunzip() argument
|
/freebsd/sys/contrib/openzfs/cmd/ |
H A D | ztest.c | 7359 char *zbuf; in ztest_run_zdb() local 7365 zbuf = umem_alloc(1024, UMEM_NOFAIL); in ztest_run_zdb() 7394 while (fgets(zbuf, 1024, fp) != NULL) in ztest_run_zdb() 7396 (void) printf("%s", zbuf); in ztest_run_zdb() 7412 umem_free(zbuf, 1024); in ztest_run_zdb()
|
/freebsd/crypto/openssl/test/ |
H A D | sslapitest.c | 1695 void *zbuf; in execute_cleanse_plaintext() local 1755 zbuf = &rr->data[rr->off]; in execute_cleanse_plaintext() 1763 if (!TEST_mem_eq(cbuf, sizeof(cbuf), zbuf, sizeof(cbuf))) in execute_cleanse_plaintext() 1775 if (!TEST_mem_eq(cbuf, sizeof(cbuf), zbuf, sizeof(cbuf))) in execute_cleanse_plaintext()
|