Searched defs:datalen (Results 1 - 25 of 110) sorted by relevance

12345

/illumos-gate/usr/src/common/crypto/padding/
H A Dpkcs7.c58 * datalen
63 * datalen padbuflen
66 * enough for the padding, and datalen must still be
72 * datalen padbuflen
75 pkcs7_encode(uint8_t *databuf, size_t datalen, uint8_t *padbuf, argument
80 padlen = multiple - (datalen % multiple);
82 datalen = 0;
84 if (padlen > padbuflen - datalen) {
88 bcopy(databuf, padbuf, datalen);
89 (void) memset(padbuf + datalen, padle
[all...]
H A Dpkcs1.c64 pkcs1_encode(int method, uint8_t *databuf, size_t datalen, uint8_t *padbuf, argument
70 padlen = padbuflen - datalen;
101 bcopy(databuf, padbuf + padlen, datalen);
/illumos-gate/usr/src/cmd/ypcmd/
H A Dudpublickey.c58 unsigned datalen; local
92 if (! scanf("%u\n", &datalen)) {
95 if (! fread(data, datalen, 1, stdin)) {
98 data[datalen] = 0;
/illumos-gate/usr/src/lib/libnsl/yp/
H A Dyp_update.c65 char *data, int datalen)
126 args.datum.yp_buf_len = datalen;
64 yp_update(char *domain, char *map, unsigned op, char *key, int keylen, char *data, int datalen) argument
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibmf/
H A Dibmf_utils.c64 size_t datalen,
70 uchar_t *dataend = data + datalen;
205 size_t structlen, uchar_t *data, size_t datalen)
209 uchar_t *dataend = data + datalen;
62 ibmf_utils_unpack_data(char *format, uchar_t *data, size_t datalen, void *structure, size_t structlen) argument
204 ibmf_utils_pack_data(char *format, void *structure, size_t structlen, uchar_t *data, size_t datalen) argument
/illumos-gate/usr/src/lib/libpkg/common/
H A Dnhash.c53 HASH(void *datap, int datalen, int hsz) argument
62 np = ((char *)cp + datalen);
161 lookup_cache(Cache *cp, void *datap, int datalen) argument
174 bp = &cp->bp[(*cp->hfunc)(datap, datalen, cp->hsz)];
177 if (!(*cp->cfunc)((void *)bp->itempp[i]->key, datap, datalen)) {
H A Dncgrpw.c252 uid_hash(void *datap, int datalen, int hsz) argument
255 int i = datalen;
256 datalen = i;
263 uid_comp(void *datap1, void *datap2, int datalen) argument
266 int i = datalen;
267 datalen = i;
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_pkt.c149 uint32_t datalen, int32_t sleep)
187 pkt->pkt_datalen = datalen;
204 datalen = 0;
216 datalen = 0;
226 datalen = 0;
247 datalen = 0;
257 datalen = 0;
270 datalen = 0;
282 datalen = 0;
291 datalen
148 emlxs_pkt_alloc(emlxs_port_t *port, uint32_t cmdlen, uint32_t rsplen, uint32_t datalen, int32_t sleep) argument
[all...]
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfksmb_kdoor.c221 smb_kdoor_sethdr(smb_doorarg_t *da, uint32_t datalen) argument
230 hdr->dh_datalen = datalen;
/illumos-gate/usr/src/uts/common/io/sfxge/
H A Dsfxge_hash.c52 unsigned pos, unsigned datalen)
55 for (; datalen != 0; datalen--, pos++, input++) {
51 toeplitz_hash(const uint32_t *cache, const uint8_t *input, unsigned pos, unsigned datalen) argument
/illumos-gate/usr/src/lib/libnwam/common/
H A Dlibnwam_backend.c109 size_t datalen = 0; local
118 datalen = NWAM_BACKEND_DOOR_ARG_SIZE;
130 datalen = 0;
135 datalen = NWAM_BACKEND_DOOR_ARG_SIZE;
136 /* pack object list for update request, adjusting datalen */
138 &datalen)) != NWAM_SUCCESS)
144 datalen = 0;
153 arg->nwbda_datalen = datalen;
170 * If the arg datalen is non-zero, unpack the object list associated with
258 size_t datalen local
[all...]
/illumos-gate/usr/src/cmd/keyserv/
H A Dupdate.c86 int namelen, datalen; local
93 datalen = strlen(data);
122 (void) fprintf(childargs, "%u\n", datalen);
123 (void) fwrite(data, datalen, 1, childargs);
/illumos-gate/usr/src/lib/scsi/plugins/ses/ses2/common/
H A Dses2_enclosure_ctl.c47 uint_t datalen; local
55 &data, &datalen) != 0)
65 &maxlen) != 0 || datalen > maxlen)
68 datalen, maxlen));
86 for (offset = 0; offset < datalen; offset += chunksz) {
88 len = MIN(datalen - offset, chunksz);
102 SCSI_WRITE32(&uip->sucpi_ucode_image_length, datalen);
166 size_t datalen; local
176 datalen = (size_t)nvlen;
179 SES2_DIAGPAGE_SUBENCLOSURE_STRING_IO, datalen, n
[all...]
/illumos-gate/usr/src/uts/sun/io/dada/impl/
H A Ddcd_resource.c59 struct buf *in_bp, size_t datalen, uint_t bflags,
78 if (datalen) {
80 if (i_ddi_mem_alloc(pdip, &standard_dma_attr, datalen, 0,
88 bp->b_bcount = datalen;
58 dcd_alloc_consistent_buf(struct dcd_address *ap, struct buf *in_bp, size_t datalen, uint_t bflags, int (*callback)(caddr_t), caddr_t callback_arg) argument
/illumos-gate/usr/src/lib/libc/port/gen/
H A Darc4random.c67 arc4_rekey(uint8_t *data, size_t datalen) argument
77 m = MIN(datalen, ARC4_KEYSZ + ARC4_IVSZ);
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_kdoor.c353 smb_kdoor_sethdr(smb_doorarg_t *da, uint32_t datalen) argument
362 hdr->dh_datalen = datalen;
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_mkquery.c116 int datalen, /*!< length of data */
207 if (ep - cp < 1 + RRFIXEDSZ + datalen)
216 ns_put16(datalen, cp);
218 if (datalen) {
219 memcpy(cp, data, datalen);
220 cp += datalen;
111 res_nmkquery(res_state statp, int op, const char *dname, int class, int type, const u_char *data, int datalen, const u_char *newrr_in, u_char *buf, int buflen) argument
/illumos-gate/usr/src/lib/libmlrpc/common/
H A Dndr_heap.c266 ndr_heap_mkvcb(ndr_heap_t *heap, uint8_t *data, uint32_t datalen, argument
271 if (data == NULL || datalen == 0) {
276 vcbuf->len = datalen;
277 vcbuf->size = datalen;
279 mlen = sizeof (ndr_vcbuf_t) + datalen;
285 vcbuf->vcb->vc_length_is = datalen;
286 bcopy(data, vcbuf->vcb->buffer, datalen);
/illumos-gate/usr/src/cmd/cmd-crypto/tpmadm/
H A Dmain.c154 UINT32 datalen; local
158 (BYTE *)&subcap, &datalen, &data);
164 if (datalen > bufsize) {
167 "(expected %u)\n"), cap, datalen, bufsize);
170 bcopy(data, buf, datalen);
/illumos-gate/usr/src/lib/librcm/
H A Dlibrcm_event.c84 get_event_service(char *door_name, void *data, size_t datalen, argument
102 door_arg.data_size = datalen;
330 void (*func)(void **data, size_t *datalen))
329 create_event_service(char *door_name, void (*func)(void **data, size_t *datalen)) argument
/illumos-gate/usr/src/lib/libkmf/ber_der/common/
H A Ddecode.c230 ber_len_t datalen; local
236 if ((tag = kmfber_skip_tag(ber, &datalen)) == KMFBER_DEFAULT)
238 if (datalen > (*len - 1))
242 * datalen is being demoted to a long here -- possible conversion error
245 if (kmfber_read(ber, buf, datalen) != (ber_slen_t)datalen)
248 buf[datalen] = '\0';
251 if (datalen > 0 && (ber->ber_options & KMFBER_OPT_TRANSLATE_STRINGS)
255 ++datalen;
256 if ((*(ber->ber_decode_translate_proc))(&transbuf, &datalen,
277 ber_len_t datalen; local
400 ber_len_t datalen; local
[all...]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/ber/
H A Ddecode.c220 ber_len_t datalen; local
226 if ( (tag = ber_skip_tag( ber, &datalen )) == LBER_DEFAULT )
228 if ( datalen > (*len - 1) )
232 * datalen is being demoted to a long here -- possible conversion error
235 if ( ber_read( ber, buf, datalen ) != (ber_slen_t) datalen )
238 buf[datalen] = '\0';
241 if ( datalen > 0 && ( ber->ber_options & LBER_OPT_TRANSLATE_STRINGS )
244 ++datalen;
245 if ( (*(ber->ber_decode_translate_proc))( &transbuf, &datalen,
267 ber_len_t datalen; local
347 ber_len_t datalen; local
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Dpppoed.c257 handle_input(uint32_t *ctrlbuf, int ctrllen, uint32_t *databuf, int datalen) argument
318 if (datalen < sizeof (*poep)) {
338 retv = locate_service(poep, datalen, ptc->ptc_name, &ptc->ptc_address,
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ntp.c63 unsigned int datalen; local
291 datalen = ntohs(ntpc->count);
292 if (datalen == 0) {
294 } else if (datalen > NTPC_DATA_MAXLEN) {
295 datalen = NTPC_DATA_MAXLEN;
303 show_string(datap, linelen, datalen));
306 if ((sofar + linelen) > datalen) {
307 linelen = datalen - sofar;
309 } while (sofar < datalen);
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Drcm_event.c56 event_service(void **data, size_t *datalen) argument
67 if (data == NULL || datalen == NULL) {
71 if (lerrno = nvlist_unpack(*data, *datalen, &nvl, 0)) {
88 *datalen = 0;
109 *datalen = 0;

Completed in 64 milliseconds

12345