/illumos-gate/usr/src/common/crypto/padding/ |
H A D | pkcs7.c | 58 * 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 D | pkcs1.c | 64 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 D | udpublickey.c | 58 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 D | hmac_test.c | 49 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 D | cbc.c | 66 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 D | yp_update.c | 65 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 D | ibmf_utils.c | 64 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 D | nhash.c | 53 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 D | emlxs_pkt.c | 149 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 D | fksmb_kdoor.c | 221 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 D | sfxge_hash.c | 52 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 D | ses2_enclosure_ctl.c | 47 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 D | ses2_pages.c | 217 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 D | ndr_heap.c | 228 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 D | ndr_marshal.c | 119 * 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 D | res_mkquery.c | 121 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 D | res_data.c | 166 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 D | libnwam_backend.c | 109 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 D | arc4random.c | 67 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 D | med_hash.c | 51 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 D | main.c | 153 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 D | update.c | 86 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 D | dcd_resource.c | 59 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 D | smb_kdoor.c | 353 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 D | softMAC.c | 468 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);
|