Searched refs:datalen (Results 1 - 25 of 159) sorted by relevance

1234567

/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);
H A Dpadding.h68 int pkcs1_encode(int method, uint8_t *databuf, size_t datalen, uint8_t *padbuf,
72 int pkcs7_encode(uint8_t *databuf, size_t datalen, uint8_t *padbuf,
/illumos-gate/usr/src/uts/common/sys/ib/mgt/ibmf/
H A Dibmf_utils.h41 ibmf_utils_unpack_data(char *format, uchar_t *data, size_t datalen,
46 uchar_t *data, size_t datalen);
/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/librcm/
H A Dlibrcm_event.h44 int get_event_service(char *door_name, void *data, size_t datalen,
/illumos-gate/usr/src/lib/libresolv/
H A Dres_mkquery.c123 res_mkquery(op, dname, class, type, data, datalen, newrr, buf, buflen)
128 int datalen; /* length of data */
224 if (buflen < 1 + RRFIXEDSZ + datalen)
233 putshort(datalen, cp);
235 if (datalen) {
237 (void) memcpy((void *)cp, (void *)data, datalen);
239 bcopy(data, cp, datalen);
241 cp += datalen;
261 buflen -= RRFIXEDSZ + datalen;
272 putshort(datalen, c
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_sctp.c66 * void parse(int flags, uint8_t cflags, void *data, int datalen);
70 * parameter header), and datalen is the length of the chunk or
396 parse_ip4_param(int flags, uint8_t notused, const void *data, int datalen) argument
401 if (datalen < sizeof (in_addr_t)) {
417 parse_ip6_param(int flags, uint8_t notused, const void *data, int datalen) argument
422 if (datalen < sizeof (in6_addr_t)) {
438 parse_int32_param(int flags, uint8_t notused, const void *data, int datalen) argument
440 if (datalen < 4) {
502 parse_unrec_chunk(int flags, uint8_t cflags, const void *data, int datalen) argument
508 if (datalen < sizeo
532 parse_opaque_param(int flags, uint8_t cflags, const void *data, int datalen) argument
546 interpret_params(const void *data, int datalen, char *type, const dispatch_t *tbl, int tbl_size, int flags) argument
627 parse_ftsn_chunk(int flags, uint8_t cflags, const void *data, int datalen) argument
661 parse_asconf_chunk(int flags, uint8_t cflags, const void *data, int datalen) argument
685 parse_init_chunk(int flags, uint8_t cflags, const void *data, int datalen) argument
725 parse_data_chunk(int flags, uint8_t cflags, const void *data, int datalen) argument
804 parse_sack_chunk(int flags, uint8_t cflags, const void *data, int datalen) argument
873 parse_shutdown_chunk(int flags, uint8_t cflags, const void *data, int datalen) argument
896 parse_error_chunk(int flags, uint8_t cflags, const void *data, int datalen) argument
907 parse_abort_chunk(int flags, uint8_t cflags, const void *data, int datalen) argument
924 parse_shutdone_chunk(int flags, uint8_t cflags, const void *data, int datalen) argument
938 parse_opaque_chunk(int flags, uint8_t cflags, const void *data, int datalen) argument
[all...]
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/uts/common/fs/zfs/sys/
H A Dzio_crypt.h121 uint_t datalen, uint8_t *ivbuf, uint8_t *salt);
129 void zio_crypt_copy_dnode_bonus(abd_t *src_abd, uint8_t *dst, uint_t datalen);
132 uint_t datalen, boolean_t byteswap, uint8_t *cksum);
134 uint_t datalen, boolean_t byteswap, uint8_t *cksum);
135 int zio_crypt_do_hmac(zio_crypt_key_t *key, uint8_t *data, uint_t datalen,
137 int zio_crypt_do_objset_hmacs(zio_crypt_key_t *key, void *data, uint_t datalen,
141 uint8_t *mac, uint_t datalen, uint8_t *plainbuf, uint8_t *cipherbuf,
145 uint8_t *mac, uint_t datalen, abd_t *pabd, abd_t *cabd,
/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/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/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/lib/libpkg/common/
H A Dnhash.h69 extern Item *lookup_cache(Cache *cp, void *datap, int datalen);
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)) {
/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/uts/common/fs/zfs/
H A Dzio_crypt.c381 * ciphertext + room for a MAC. datalen should be the length of the
387 crypto_ctx_template_t tmpl, uint8_t *ivbuf, uint_t datalen,
418 plain_full_len = datalen;
420 plain_full_len = datalen + maclen;
460 cipherdata.cd_length = datalen + maclen;
684 zio_crypt_do_hmac(zio_crypt_key_t *key, uint8_t *data, uint_t datalen, argument
702 in_data.cd_length = datalen;
731 uint_t datalen, uint8_t *ivbuf, uint8_t *salt)
736 ret = zio_crypt_do_hmac(key, data, datalen,
888 * buffers to the same offsets in the dst buffer. datalen shoul
386 zio_do_crypt_uio(boolean_t encrypt, uint64_t crypt, crypto_key_t *key, crypto_ctx_template_t tmpl, uint8_t *ivbuf, uint_t datalen, uio_t *puio, uio_t *cuio, uint8_t *authbuf, uint_t auth_len) argument
730 zio_crypt_generate_iv_salt_dedup(zio_crypt_key_t *key, uint8_t *data, uint_t datalen, uint8_t *ivbuf, uint8_t *salt) argument
893 zio_crypt_copy_dnode_bonus(abd_t *src_abd, uint8_t *dst, uint_t datalen) argument
1137 zio_crypt_do_objset_hmacs(zio_crypt_key_t *key, void *data, uint_t datalen, boolean_t should_bswap, uint8_t *portable_mac, uint8_t *local_mac) argument
1304 zio_crypt_do_indirect_mac_checksum_impl(boolean_t generate, void *buf, uint_t datalen, uint64_t version, boolean_t byteswap, uint8_t *cksum) argument
1332 zio_crypt_do_indirect_mac_checksum(boolean_t generate, void *buf, uint_t datalen, boolean_t byteswap, uint8_t *cksum) argument
1357 zio_crypt_do_indirect_mac_checksum_abd(boolean_t generate, abd_t *abd, uint_t datalen, boolean_t byteswap, uint8_t *cksum) argument
1381 zio_crypt_init_uios_zil(boolean_t encrypt, uint8_t *plainbuf, uint8_t *cipherbuf, uint_t datalen, boolean_t byteswap, uio_t *puio, uio_t *cuio, uint_t *enc_len, uint8_t **authbuf, uint_t *auth_len, boolean_t *no_crypt) argument
1579 zio_crypt_init_uios_dnode(boolean_t encrypt, uint64_t version, uint8_t *plainbuf, uint8_t *cipherbuf, uint_t datalen, boolean_t byteswap, uio_t *puio, uio_t *cuio, uint_t *enc_len, uint8_t **authbuf, uint_t *auth_len, boolean_t *no_crypt) argument
1762 zio_crypt_init_uios_normal(boolean_t encrypt, uint8_t *plainbuf, uint8_t *cipherbuf, uint_t datalen, uio_t *puio, uio_t *cuio, uint_t *enc_len) argument
1822 zio_crypt_init_uios(boolean_t encrypt, uint64_t version, dmu_object_type_t ot, uint8_t *plainbuf, uint8_t *cipherbuf, uint_t datalen, boolean_t byteswap, uint8_t *mac, uio_t *puio, uio_t *cuio, uint_t *enc_len, uint8_t **authbuf, uint_t *auth_len, boolean_t *no_crypt) argument
1874 zio_do_crypt_data(boolean_t encrypt, zio_crypt_key_t *key, dmu_object_type_t ot, boolean_t byteswap, uint8_t *salt, uint8_t *iv, uint8_t *mac, uint_t datalen, uint8_t *plainbuf, uint8_t *cipherbuf, boolean_t *no_crypt) argument
1974 zio_do_crypt_abd(boolean_t encrypt, zio_crypt_key_t *key, dmu_object_type_t ot, boolean_t byteswap, uint8_t *salt, uint8_t *iv, uint8_t *mac, uint_t datalen, abd_t *pabd, abd_t *cabd, boolean_t *no_crypt) argument
[all...]
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/
H A Ddnssd_clientlib.c170 uint16_t datalen; // Length currently in use member in struct:_TXTRecordRefRealType
192 txtRec->datalen = 0;
218 if (txtRec->datalen + keyvalsize > txtRec->buflen)
221 unsigned long newlen = txtRec->datalen + keyvalsize;
225 memcpy(newbuf, txtRec->buffer, txtRec->datalen);
231 start = txtRec->buffer + txtRec->datalen;
242 txtRec->datalen += p - start;
253 uint8_t *item = InternalTXTRecordSearch(txtRec->datalen, txtRec->buffer, key, &keylen);
256 remainder = (unsigned long)((txtRec->buffer + txtRec->datalen) - (item + itemlen));
259 txtRec->datalen
[all...]
/illumos-gate/usr/src/lib/libdlpi/common/
H A Dlibdlpi.c269 t_uscalar_t dataoff, datalen; local
317 datalen = infoackp->dl_qos_length;
319 if (dataoff != 0 && datalen != 0) {
321 if (datalen > sizeof (dl_qos_cl_sel1_t) ||
322 dataoff < DL_INFO_ACK_SIZE || datap + datalen > ackendp)
325 (void) memcpy(&infop->di_qos_sel, datap, datalen);
331 datalen = infoackp->dl_qos_range_length;
333 if (dataoff != 0 && datalen != 0) {
335 if (datalen > sizeof (dl_qos_cl_range1_t) ||
336 dataoff < DL_INFO_ACK_SIZE || datap + datalen > ackend
590 t_uscalar_t dataoff, datalen; local
723 t_uscalar_t dataoff, datalen; local
1260 i_dlpi_strputmsg(dlpi_impl_t *dip, const dlpi_msg_t *dlreqp, const void *databuf, size_t datalen, int flags) argument
1736 t_uscalar_t dataoff, datalen; local
[all...]
/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/common/smbsrv/
H A Dsmb_msgbuf.c384 int datalen; // OtW data len local
394 * datalen is how much we move mb->scan
396 datalen = 0;
399 if (datalen >= max_bytes)
402 if ((mb->scan + datalen) >= mb->end)
404 datalen++;
405 if (mb->scan[datalen - 1] == 0)
411 * Get datalen bytes into a temp buffer
415 oembuf = smb_msgbuf_malloc(mb, datalen + 1);
418 bcopy(mb->scan, oembuf, datalen);
454 int datalen; // OtW data len local
[all...]
/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/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/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/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

Completed in 275 milliseconds

1234567