Searched defs:datalen (Results 1 - 25 of 109) 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/common/net/wanboot/crypt/
H A Dhmac_test.c49 int datalen; member in struct:test_data
66 td[0].datalen = 8;
72 td[1].datalen = 28;
79 td[2].datalen = 50;
87 td[3].datalen = 50;
90 td[3].datalen);
96 td[4].datalen = 20;
105 td[5].datalen = 54;
115 td[6].datalen = 73;
127 HMACUpdate(&sha, td[i].data, td[i].datalen);
[all...]
H A Dcbc.c66 cbc_encrypt(cbc_handle_t *ch, uint8_t *data, size_t datalen, argument
73 if (!IS_P2ALIGNED(datalen, ch->blocklen)) {
80 for (i = 0; i < datalen; i += ch->blocklen) {
93 cbc_decrypt(cbc_handle_t *ch, uint8_t *data, size_t datalen, argument
101 if (!IS_P2ALIGNED(datalen, ch->blocklen)) {
108 for (i = 0; i < datalen; i += ch->blocklen) {
/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)) {
/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/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...]
H A Dses2_pages.c217 ses2_ctl_len(uint_t nelem, int page, size_t datalen) argument
262 ses2_stringout_len(uint_t nelem, int page, size_t datalen) argument
266 return (datalen + offsetof(ses2_string_out_page_impl_t, ssopi_data[0]));
271 ses2_threshout_len(uint_t nelem, int page, size_t datalen) argument
309 ses2_substrout_len(uint_t nelem, int page, size_t datalen) argument
313 return (datalen +
319 ses2_ucodeout_len(uint_t nelem, int page, size_t datalen) argument
325 len = datalen +
359 ses2_subnickout_len(uint_t nelem, int page, size_t datalen) argument
/illumos-gate/usr/src/lib/smbsrv/libmlrpc/common/
H A Dndr_heap.c228 ndr_heap_mkvcb(ndr_heap_t *heap, uint8_t *data, uint32_t datalen, argument
233 if (data == NULL || datalen == 0) {
238 vcbuf->len = datalen;
239 vcbuf->size = datalen;
241 mlen = sizeof (ndr_vcbuf_t) + datalen;
247 vcbuf->vcb->vc_length_is = datalen;
248 bcopy(data, vcbuf->vcb->buffer, datalen);
H A Dndr_marshal.c119 * rc = ndr_decode_buf(nbuf, opnum, data, datalen, &info);
126 const char *data, size_t datalen, void *result)
137 if (datalen < NDR_PDU_SIZE_HINT_DEFAULT)
140 pdu_size_hint = datalen;
147 bcopy(data, nbuf->nb_nds.pdu_base_addr, datalen);
125 ndr_buf_decode(ndr_buf_t *nbuf, unsigned hdr_type, unsigned opnum, const char *data, size_t datalen, void *result) argument
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_mkquery.c121 int datalen, /*!< length of data */
212 if (ep - cp < 1 + RRFIXEDSZ + datalen)
221 ns_put16(datalen, cp);
223 if (datalen) {
224 memcpy(cp, data, datalen);
225 cp += datalen;
116 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
H A Dres_data.c166 int datalen, /*!< length of data */
176 data, datalen,
162 res_mkquery(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/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/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/cmd/lvm/rpc.metamedd/
H A Dmed_hash.c51 HASH(void *datap, int datalen, int hsz) argument
56 for (cp = (char *)datap; cp != ((char *)datap + datalen); hv += *cp++)
170 lookup_cache(Cache *cp, void *datap, int datalen) argument
181 bp = &cp->bp[(*cp->hfunc)(datap, datalen, cp->hsz)];
183 if (!(*cp->cfunc)((void *)bp->itempp[i]->key, datap, datalen))
290 int datalen = itemp->keyl; local
299 bidx = (*cp->hfunc)(datap, datalen, cp->hsz);
304 datalen)) {
/illumos-gate/usr/src/cmd/cmd-crypto/tpmadm/
H A Dmain.c153 UINT32 datalen; local
157 (BYTE *)&subcap, &datalen, &data);
163 if (datalen > bufsize) {
166 "(expected %u)\n"), cap, datalen, bufsize);
169 bcopy(data, buf, datalen);
/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/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/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/pkcs11/pkcs11_softtoken/common/
H A DsoftMAC.c468 uint_t datalen = (uint_t)ulDataLen; local
470 uint_t datalen = ulDataLen; local
505 pData, datalen);
517 pData, datalen);
527 pData, datalen);
538 pData, datalen);
551 pData, datalen);

Completed in 81 milliseconds

12345