Searched refs:buffer (Results 1 - 25 of 241) sorted by relevance

12345678910

/bind-9.11.3/lib/isc/
H A Dbufferlist.c17 #include <isc/buffer.h>
23 isc_buffer_t *buffer; local
29 buffer = ISC_LIST_HEAD(*bl);
30 while (buffer != NULL) {
31 REQUIRE(ISC_BUFFER_VALID(buffer));
32 length += isc_buffer_usedlength(buffer);
33 buffer = ISC_LIST_NEXT(buffer, link);
41 isc_buffer_t *buffer; local
47 buffer
[all...]
H A Drandom.c69 isc_uint8_t buffer[CHACHA_BUFFERSIZE]; member in struct:isc_rng
164 chacha_reinit(isc_rng_t *rng, isc_uint8_t *buffer, size_t n) { argument
170 chacha_keysetup(&rng->cpctx, buffer, CHACHA_KEYSIZE * 8, 0);
171 chacha_ivsetup(&rng->cpctx, buffer + CHACHA_KEYSIZE);
206 memset(rng->buffer, 0, CHACHA_BUFFERSIZE);
280 memset(rng->buffer, 0, CHACHA_BUFFERSIZE);
283 /* Fill buffer with the keystream. */
284 chacha_encrypt_bytes(&rng->cpctx, rng->buffer, rng->buffer,
293 rng->buffer[
[all...]
/bind-9.11.3/lib/dns/include/dns/
H A Dfixedname.h23 * and a dedicated buffer big enough for the longest possible name.
49 #include <isc/buffer.h>
60 isc_buffer_t buffer; member in struct:dns_fixedname
67 isc_buffer_init(&((fn)->buffer), (fn)->data, \
69 dns_name_setbuffer(&((fn)->name), &((fn)->buffer)); \
H A Dtimer.h20 #include <isc/buffer.h>
H A Dtcpmsg.h16 #include <isc/buffer.h>
24 isc_buffer_t buffer; member in struct:dns_tcpmsg
108 dns_tcpmsg_keepbuffer(dns_tcpmsg_t *tcpmsg, isc_buffer_t *buffer);
110 * If a dns buffer is to be kept between calls, this function marks the
111 * internal state-machine buffer as invalid, and copies all the contents
112 * of the state into "buffer".
118 *\li "buffer" be non-NULL.
H A Dds.h32 unsigned int digest_type, unsigned char *buffer,
39 *\li buffer Points to a temporary buffer of at least
45 * to 'buffer'.
H A Dprivate.h46 dns_private_totext(dns_rdata_t *privaterdata, isc_buffer_t *buffer);
49 * and place the result in 'buffer'. The text should indicate
55 * \li 'buffer' is a valid buffer
H A Dtime.h20 #include <isc/buffer.h>
/bind-9.11.3/bin/tests/
H A Dhash_test.c56 unsigned char buffer[1024]; local
65 memmove(buffer, s, strlen(s));
66 isc_sha1_update(&sha1, buffer, strlen(s));
72 memmove(buffer, s, strlen(s));
73 isc_sha1_update(&sha1, buffer, strlen(s));
79 memmove(buffer, s, strlen(s));
80 isc_sha224_update(&sha224, buffer, strlen(s));
86 memmove(buffer, s, strlen(s));
87 isc_sha224_update(&sha224, buffer, strlen(s));
94 memmove(buffer,
[all...]
H A Dentropy_test.c53 unsigned char buffer[512]; local
88 result = isc_entropy_getdata(ent, buffer, 32, &returned, flags);
93 hex_dump("good data only:", buffer, returned);
98 isc_entropy_getdata(ent, buffer, 128, NULL, 0));
99 hex_dump("pseudorandom data", buffer, 128);
105 result = isc_entropy_getdata(ent, buffer, sizeof(buffer), &returned,
108 hex_dump("blocking mode data", buffer, sizeof(buffer));
/bind-9.11.3/lib/dns/
H A Dtcpmsg.c77 isc_buffer_init(&tcpmsg->buffer, region.base, region.length);
114 isc_buffer_add(&tcpmsg->buffer, ev->n);
132 tcpmsg->buffer.base = NULL;
133 tcpmsg->buffer.length = 0;
165 if (tcpmsg->buffer.base != NULL) {
166 isc_mem_put(tcpmsg->mctx, tcpmsg->buffer.base,
167 tcpmsg->buffer.length);
168 tcpmsg->buffer.base = NULL;
169 tcpmsg->buffer.length = 0;
200 dns_tcpmsg_keepbuffer(dns_tcpmsg_t *tcpmsg, isc_buffer_t *buffer) { argument
[all...]
H A Dgssapi_link.c18 #include <isc/buffer.h>
48 isc_buffer_t *buffer; member in struct:dst_gssapi_signverifyctx
65 ctx->buffer = NULL;
66 result = isc_buffer_allocate(dctx->mctx, &ctx->buffer,
86 if (ctx->buffer != NULL)
87 isc_buffer_free(&ctx->buffer);
94 * Add data to our running buffer of data we will be signing or verifying.
95 * This code will see if the new data will fit in our existing buffer, and
97 * buffer and copy old+new into it, and free the old buffer
317 gssapi_dump(dst_key_t *key, isc_mem_t *mctx, char **buffer, int *length) argument
[all...]
H A Dmasterdump.c15 #include <isc/buffer.h>
239 isc_buffer_t *buffer, FILE *f);
360 * buffer is too small, because that would just make
362 * bigger target buffers. That's a different buffer,
696 * times with increasing buffer sizes until it succeeds,
850 * Print an rdataset. 'buffer' is a scratch buffer, which must have been
853 * the buffer will be grown automatically.
859 isc_buffer_t *buffer, FILE *f)
864 REQUIRE(buffer
857 dump_rdataset(isc_mem_t *mctx, dns_name_t *name, dns_rdataset_t *rdataset, dns_totext_ctx_t *ctx, isc_buffer_t *buffer, FILE *f) argument
984 dump_rdatasets_text(isc_mem_t *mctx, dns_name_t *name, dns_rdatasetiter_t *rdsiter, dns_totext_ctx_t *ctx, isc_buffer_t *buffer, FILE *f) argument
1082 dump_rdataset_raw(isc_mem_t *mctx, dns_name_t *name, dns_rdataset_t *rdataset, isc_buffer_t *buffer, FILE *f) argument
1189 dump_rdatasets_raw(isc_mem_t *mctx, dns_name_t *name, dns_rdatasetiter_t *rdsiter, dns_totext_ctx_t *ctx, isc_buffer_t *buffer, FILE *f) argument
1222 dump_rdatasets_map(isc_mem_t *mctx, dns_name_t *name, dns_rdatasetiter_t *rdsiter, dns_totext_ctx_t *ctx, isc_buffer_t *buffer, FILE *f) argument
1533 isc_buffer_t buffer; local
1620 isc_buffer_t buffer; local
1995 isc_buffer_t buffer; local
[all...]
/bind-9.11.3/bin/tools/
H A Dnsec3hash.c17 #include <isc/buffer.h>
64 isc_buffer_t buffer; local
82 isc_buffer_init(&buffer, salt, sizeof(salt));
83 result = isc_hex_decodestring(argv[1], &buffer);
85 salt_length = isc_buffer_usedlength(&buffer);
98 isc_buffer_init(&buffer, argv[4], strlen(argv[4]));
99 isc_buffer_add(&buffer, strlen(argv[4]));
100 result = dns_name_fromtext(name, &buffer, dns_rootname, 0, NULL);
110 isc_buffer_init(&buffer, text, sizeof(text));
111 isc_base32hexnp_totext(&region, 1, "", &buffer);
[all...]
/bind-9.11.3/contrib/idn/idnkit-1.0-src/lib/tests/
H A Dsetenv.c106 char *buffer; local
112 buffer = (char *) malloc(strlen(name) + strlen(value) + 2);
113 if (buffer == NULL)
115 strcpy(buffer, name);
116 strcat(buffer, "=");
117 strcat(buffer, value);
124 mye->pointer = buffer;
131 result = putenv(buffer);
/bind-9.11.3/unit/atf-src/atf-c/
H A Dutils_test.c43 /** Reads the contents of a file into a buffer.
45 * Up to buflen-1 characters are read into buffer. If this function returns,
46 * the contents read into the buffer are guaranteed to be nul-terminated.
51 * \param buffer Buffer into which to store the file contents.
52 * \param buflen Size of the target buffer.
56 read_file(const char *path, void *const buffer, const size_t buflen) argument
60 const ssize_t length = read(fd, buffer, buflen - 1);
63 ((char *)buffer)[length] = '\0';
76 char buffer[1024]; local
77 read_file("captured.txt", buffer, sizeo
90 char buffer[1024]; local
104 char buffer[1024]; local
118 char buffer[1024]; local
213 char buffer[128]; local
251 char buffer[1024]; local
252 read_file(atf_dynstr_cstring(&out_name), buffer, sizeof(buffer)); local
254 read_file(atf_dynstr_cstring(&err_name), buffer, sizeof(buffer)); local
357 char buffer[1024]; local
370 char buffer[1024]; local
383 char buffer[1024]; local
[all...]
H A Dutils.c62 char buffer[1024]; local
63 atf_error_format(error, buffer, sizeof(buffer));
65 atf_tc_fail("Failed to create output file: %s", buffer);
67 err(EXIT_FAILURE, "Failed to create output file: %s", buffer);
107 char buffer[1024]; local
110 while ((count = read(fd, buffer, sizeof(buffer) - 1)) > 0) {
111 buffer[count] = '\0';
116 char *iter = buffer;
151 char buffer[1024]; local
181 char buffer[1024]; local
[all...]
/bind-9.11.3/contrib/idn/idnkit-1.0-src/tools/runidn/
H A Dstub.h15 char *buffer, size_t buflen,
22 char *buffer, int buflen, int *errp);
35 char *buffer, size_t buflen,
49 struct hostent *result, char *buffer,
56 struct hostent *result, char *buffer,
H A Dstub.c213 char *buffer, size_t buflen,
217 char *buffer, size_t buflen,
223 return ((*fp)(name, result, buffer, buflen, rp, errp));
231 char *buffer, size_t buflen,
235 char *buffer, size_t buflen,
241 return ((*fp)(name, af, result, buffer, buflen, rp, errp));
249 struct hostent *result, char *buffer,
253 struct hostent *result, char *buffer,
260 buffer, buflen, rp, errp));
270 char *buffer, in
212 idn_stub_gethostbyname_r(const char *name, struct hostent *result, char *buffer, size_t buflen, struct hostent **rp, int *errp) argument
230 idn_stub_gethostbyname2_r(const char *name, int af, struct hostent *result, char *buffer, size_t buflen, struct hostent **rp, int *errp) argument
248 idn_stub_gethostbyaddr_r(GHBA_ADDR_T addr, GHBA_ADDRLEN_T len, int type, struct hostent *result, char *buffer, size_t buflen, struct hostent **rp, int *errp) argument
269 idn_stub_gethostbyname_r(const char *name, struct hostent *result, char *buffer, int buflen, int *errp) argument
285 idn_stub_gethostbyaddr_r(GHBA_ADDR_T addr, int len, int type, struct hostent *result, char *buffer, int buflen, int *errp) argument
[all...]
/bind-9.11.3/lib/isccc/
H A Dccmsg.c81 isc_buffer_init(&ccmsg->buffer, region.base, region.length);
117 isc_buffer_add(&ccmsg->buffer, ev->n);
134 ccmsg->buffer.base = NULL;
135 ccmsg->buffer.length = 0;
166 if (ccmsg->buffer.base != NULL) {
167 isc_mem_put(ccmsg->mctx, ccmsg->buffer.base,
168 ccmsg->buffer.length);
169 ccmsg->buffer.base = NULL;
170 ccmsg->buffer.length = 0;
205 if (ccmsg->buffer
[all...]
H A Dcc.c104 table_towire(isccc_sexpr_t *alist, isc_buffer_t **buffer);
107 list_towire(isccc_sexpr_t *alist, isc_buffer_t **buffer);
110 value_towire(isccc_sexpr_t *elt, isc_buffer_t **buffer) { argument
118 result = isc_buffer_reserve(buffer, 1 + 4);
121 isc_buffer_putuint8(*buffer, ISCCC_CCMSGTYPE_BINARYDATA);
122 isc_buffer_putuint32(*buffer, len);
124 result = isc_buffer_reserve(buffer, len);
127 isc_buffer_putmem(*buffer, vr->rstart, len);
132 result = isc_buffer_reserve(buffer, 1 + 4);
135 isc_buffer_putuint8(*buffer, ISCCC_CCMSGTYPE_TABL
198 table_towire(isccc_sexpr_t *alist, isc_buffer_t **buffer) argument
233 list_towire(isccc_sexpr_t *list, isc_buffer_t **buffer) argument
343 isccc_cc_towire(isccc_sexpr_t *alist, isc_buffer_t **buffer, isc_uint32_t algorithm, isccc_region_t *secret) argument
[all...]
/bind-9.11.3/lib/lwres/
H A Dlwresutil.c15 * current pointer of lightweight resolver buffer b: i.e. b->current.
18 * given by *len. The buffer's current pointer is advanced to point at
22 * lwres_addr_parse() extracts an address from the buffer b. The
23 * buffer's current pointer b->current is presumed to point at an
28 * next byte of available data in the buffer following the encoded
70 * the buffer is corrupt or #LWRES_R_UNEXPECTEDEND if the buffer has
137 * advance the buffer pointer.
185 * advance the buffer pointer.
208 /*% Extracts an address from the buffer
242 char *buffer; local
358 char *buffer; local
465 char *buffer; local
[all...]
/bind-9.11.3/lib/isccc/include/isccc/
H A Dccmsg.h30 #include <isc/buffer.h>
39 isc_buffer_t buffer; member in struct:isccc_ccmsg
/bind-9.11.3/bin/named/
H A Dlwderror.c30 * The only change this code makes is to set the receive buffer size to the
44 * the receive buffer. This means we won't need to allocate space
54 lwres_buffer_init(&b, client->buffer, LWRES_RECVLENGTH);
61 r.base = client->buffer;
63 client->sendbuf = client->buffer;
/bind-9.11.3/bin/tests/pkcs11/
H A Dpkcs11-hmacmd5.c80 char buffer[BLOCKSIZE + 72]; variable
170 buffer[i >> 1] = (c - '0') << 4;
172 buffer[i >> 1] |= c - '0';
181 buffer[i >> 1] = (c - 'A' + 10) << 4;
183 buffer[i >> 1] |= c - 'A' + 10;
192 buffer[i >> 1] = (c - 'a' + 10) << 4;
194 buffer[i >> 1] |= c - 'a' + 10;
207 keyTemplate[5].pValue = buffer;
257 n = fread(buffer + sum, 1, BLOCKSIZE - sum, stdin);
273 rv = pkcs_C_SignUpdate(hSession, (CK_BYTE_PTR) buffer,
[all...]

Completed in 33 milliseconds

12345678910