Home
last modified time | relevance | path

Searched refs:blen (Results 1 – 25 of 75) sorted by relevance

123

/titanic_41/usr/src/lib/libcryptoutil/common/
H A Dtohexstr.c41 tohexstr(uchar_t *bytes, size_t blen, char *hexstr, size_t hexlen) in tohexstr() argument
46 for (i = 0; i < blen; i++) { in tohexstr()
52 hexstr[2 * blen] = '\0'; in tohexstr()
67 hexstr_to_bytes(char *hexstr, size_t hexlen, uchar_t **bytes, size_t *blen) in hexstr_to_bytes() argument
74 *blen = 0; in hexstr_to_bytes()
84 *blen = (hexlen / 2); in hexstr_to_bytes()
86 b = malloc(*blen); in hexstr_to_bytes()
88 *blen = 0; in hexstr_to_bytes()
118 *blen = 0; in hexstr_to_bytes()
/titanic_41/usr/src/common/net/dhcp/
H A Doctet.c55 octet_to_hexascii(const void *nump, uint_t nlen, char *bufp, uint_t *blen) in octet_to_hexascii() argument
62 if (nump == NULL || bufp == NULL || blen == NULL) in octet_to_hexascii()
65 if ((nlen * 2) >= *blen) { in octet_to_hexascii()
66 *blen = 0; in octet_to_hexascii()
74 *blen = i * 2; in octet_to_hexascii()
84 hexascii_to_octet(const char *asp, uint_t alen, void *bufp, uint_t *blen) in hexascii_to_octet() argument
90 if (asp == NULL || bufp == NULL || blen == NULL) in hexascii_to_octet()
93 if (alen > (*blen * 2)) in hexascii_to_octet()
110 *blen = k; in hexascii_to_octet()
/titanic_41/usr/src/cmd/tail/
H A Dread.c131 int blen; in lines() member
137 int blen, cnt, recno, wrap; in lines() local
143 blen = cnt = recno = wrap = 0; in lines()
147 if (++cnt > blen) { in lines()
148 if ((sp = realloc(sp, blen += 1024)) == NULL) in lines()
154 if ((int)llines[recno].blen < cnt) { in lines()
155 llines[recno].blen = cnt + 256; in lines()
157 llines[recno].blen)) == NULL) in lines()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_rip.c316 int blen, num; in interpret_rip() local
323 blen = get_line_remain(); in interpret_rip()
324 (void) snprintf(cp, blen, "%-16s ", in interpret_rip()
327 blen -= 17; in interpret_rip()
331 (void) snprintf(cp, blen, "metric=%d", in interpret_rip()
333 blen -= strlen(cp); in interpret_rip()
342 (void) snprintf(cp, blen, in interpret_rip()
349 blen); in interpret_rip()
352 blen -= strlen(cp); in interpret_rip()
354 (void) snprintf(cp, blen, in interpret_rip()
[all …]
H A Dsnoop_ether.c135 int blen = MAX(origlen, ETHERMTU); in interpret_ether() local
139 if (data != NULL && datalen != 0 && datalen < blen) { in interpret_ether()
145 data = (char *)malloc(blen); in interpret_ether()
148 datalen = blen; in interpret_ether()
819 int blen = MAX(origlen, 17800); in interpret_tr() local
821 if (data != NULL && datalen != 0 && datalen < blen) { in interpret_tr()
827 data = (char *)malloc(blen); in interpret_tr()
830 datalen = blen; in interpret_tr()
1075 int blen = MAX(origlen, 4500); in interpret_fddi() local
1077 if (data != NULL && datalen != 0 && datalen < blen) { in interpret_fddi()
[all …]
/titanic_41/usr/src/cmd/ssh/sshd/
H A Dauth2-pubkey.c64 u_int alen, blen, slen; in userauth_pubkey() local
75 pkblob = packet_get_string(&blen); in userauth_pubkey()
77 buffer_append(&b, pkblob, blen); in userauth_pubkey()
83 pkblob = packet_get_string(&blen); in userauth_pubkey()
92 key = key_from_blob(pkblob, blen); in userauth_pubkey()
117 if (prev_blen != blen || in userauth_pubkey()
118 memcmp(prev_pkblob, pkblob, blen) != 0) { in userauth_pubkey()
150 buffer_put_string(&b, pkblob, blen); in userauth_pubkey()
178 packet_put_string(pkblob, blen); in userauth_pubkey()
H A Dauth2-hostbased.c64 u_int alen, blen, slen; in userauth_hostbased() local
72 pkblob = packet_get_string(&blen); in userauth_hostbased()
93 key = key_from_blob(pkblob, blen); in userauth_hostbased()
113 buffer_put_string(&b, pkblob, blen); in userauth_hostbased()
/titanic_41/usr/src/tools/ctf/dwarf/common/
H A Dpro_macinfo.c77 size_t blen = BASE_MACINFO_MALLOC_LEN; in libdwarf_compose_begin() local
79 if (blen < maxlen) { in libdwarf_compose_begin()
80 blen = 2 * maxlen; in libdwarf_compose_begin()
82 len = sizeof(struct dw_macinfo_block_s) + blen; in libdwarf_compose_begin()
91 newb->mb_avail_len = blen; in libdwarf_compose_begin()
93 newb->mb_macinfo_data_space_len = blen; in libdwarf_compose_begin()
102 size_t blen = in libdwarf_compose_begin() local
104 if (blen < maxlen) { in libdwarf_compose_begin()
105 blen = 2 * maxlen; in libdwarf_compose_begin()
107 len = sizeof(struct dw_macinfo_block_s) + blen; in libdwarf_compose_begin()
[all …]
/titanic_41/usr/src/lib/libc/port/gen/
H A Dgetgrnam.c64 size_t blen; in get_grbuf() local
69 blen = _nss_get_bufsizes(0); /* default size */ in get_grbuf()
71 blen = sysconf(_SC_GETGR_R_SIZE_MAX); /* max size */ in get_grbuf()
73 if ((*buffer)->buflen >= blen) /* existing size fits */ in get_grbuf()
77 b = NSS_XbyY_ALLOC(buffer, sizeof (struct group), blen); in get_grbuf()
/titanic_41/usr/src/lib/nsswitch/dns/common/
H A Ddns_common.c401 size_t bsize, blen; in _nss_dns_gethost_withttl() local
448 blen = 0; in _nss_dns_gethost_withttl()
631 while (ancount-- > 0 && cp < eom && blen < bsize) { in _nss_dns_gethost_withttl()
727 if (blen + len > bsize) { in _nss_dns_gethost_withttl()
731 (void) strlcpy(bptr, np, bsize - blen); in _nss_dns_gethost_withttl()
732 blen += iplen; in _nss_dns_gethost_withttl()
735 blen++; in _nss_dns_gethost_withttl()
736 (void) strlcpy(bptr, host, bsize - blen); in _nss_dns_gethost_withttl()
737 blen += hlen; in _nss_dns_gethost_withttl()
741 blen++; in _nss_dns_gethost_withttl()
[all …]
/titanic_41/usr/src/lib/libsmbfs/smb/
H A Dnb_name.c141 int len, blen; in nb_encname_len() local
148 blen = *cp; in nb_encname_len()
149 if (blen++ == 0) in nb_encname_len()
151 len += blen; in nb_encname_len()
152 cp += blen; in nb_encname_len()
/titanic_41/usr/src/lib/libresolv2/common/nameser/
H A Dns_name.c982 int b, blen, plen, i; in decode_bitstring() local
984 if ((blen = (*cp & 0xff)) == 0) in decode_bitstring()
985 blen = 256; in decode_bitstring()
986 plen = (blen + 3) / 4; in decode_bitstring()
987 plen += sizeof("\\[x/]") + (blen > 99 ? 3 : (blen > 9) ? 2 : 1); in decode_bitstring()
996 for (b = blen; b > 7; b -= 8, cp++) { in decode_bitstring()
1016 i = SPRINTF((dn, "/%d]", blen)); in decode_bitstring()
1035 int value = 0, count = 0, tbcount = 0, blen = 0; in encode_bitsring() local
1055 blen = (int)strtol(beg_blen, &end_blen, 10); in encode_bitsring()
1107 if (blen > 0) { in encode_bitsring()
[all …]
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dexport_sec_context.c42 size_t bufsize, blen; local
76 blen = bufsize;
79 (krb5_pointer) ctx, &obp, &blen)))
83 interprocess_token->length = bufsize - blen;
/titanic_41/usr/src/cmd/audio/utilities/
H A Dfilehdr.c90 unsigned blen; in audio_write_filehdr() local
94 blen = HEADER_BUFFER + (infop ? ilen : 0) + 4; in audio_write_filehdr()
95 blen = ROUND_DBL(blen); in audio_write_filehdr()
97 if (!(buf = (unsigned char *)calloc(1, blen))) { in audio_write_filehdr()
103 err = audio_encode_au(hdrp, infop, ilen, buf, &blen); in audio_write_filehdr()
106 err = audio_encode_wav(hdrp, buf, &blen); in audio_write_filehdr()
109 err = audio_encode_aiff(hdrp, buf, &blen); in audio_write_filehdr()
120 err = write(fd, (char *)buf, (int)blen); in audio_write_filehdr()
123 if (err != blen) in audio_write_filehdr()
895 audio_encode_aiff(Audio_hdr *hdrp, unsigned char *buf, unsigned int *blen) in audio_encode_aiff() argument
[all …]
/titanic_41/usr/src/cmd/ssh/libssh/common/
H A Dradix.c101 int blen, ret; in radix_to_creds() local
104 blen = strlen(buf); in radix_to_creds()
107 if (blen > 8192) in radix_to_creds()
111 space = buffer_append_space(&b, blen); in radix_to_creds()
114 len = uudecode(buf, space, blen); in radix_to_creds()
H A Dauthfd.c316 u_int blen; in ssh_get_next_identity() local
339 blob = buffer_get_string(&auth->identities, &blen); in ssh_get_next_identity()
341 key = key_from_blob(blob, blen); in ssh_get_next_identity()
420 u_int blen; in ssh_agent_sign() local
424 if (key_to_blob(key, &blob, &blen) == 0) in ssh_agent_sign()
432 buffer_put_string(&msg, blob, blen); in ssh_agent_sign()
561 u_int blen; in ssh_remove_identity() local
571 key_to_blob(key, &blob, &blen); in ssh_remove_identity()
573 buffer_put_string(&msg, blob, blen); in ssh_remove_identity()
/titanic_41/usr/src/common/bignum/i386/
H A Dbignum_i386.c85 (*big_mul_vec_impl)(uint32_t *r, uint32_t *a, int alen, uint32_t *b, int blen)
106 big_mul_vec_init(uint32_t *r, uint32_t *a, int alen, uint32_t *b, int blen) in big_mul_vec_init() argument
109 (*big_mul_vec_impl)(r, a, alen, b, blen); in big_mul_vec_init()
136 big_mul_vec_umul(uint32_t *r, uint32_t *a, int alen, uint32_t *b, int blen) in big_mul_vec_umul() argument
141 for (i = 1; i < blen; ++i) in big_mul_vec_umul()
/titanic_41/usr/src/lib/libmp/common/
H A Dmult.c80 int blen; in m_mult() local
87 blen = b->len; in m_mult()
89 c->len = alen + blen; in m_mult()
111 for (j = blen - 1; j > 0; j--) { in m_mult()
/titanic_41/usr/src/common/bignum/
H A Dbignum.h186 #define BIG_MUL_VEC(r, a, alen, b, blen) \ argument
187 (*big_mul_vec_impl)(r, a, alen, b, blen)
197 int blen);
205 #define BIG_MUL_VEC(r, a, alen, b, blen) big_mul_vec(r, a, alen, b, blen) argument
213 BIG_CHUNK_TYPE *b, int blen);
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dimport_sec_context.c91 size_t blen; local
119 blen = (size_t) interprocess_token->length;
120 kret = kg_ctx_internalize(context, (krb5_pointer *) &ctx, &ibp, &blen);
/titanic_41/usr/src/common/bignum/amd64/
H A Dbignum_amd64.c48 BIG_CHUNK_TYPE *b, int blen) in big_mul_vec() argument
53 for (i = 1; i < blen; ++i) in big_mul_vec()
/titanic_41/usr/src/uts/common/sys/usb/usba/
H A Dwhcdi.h298 const uchar_t *bdata, size_t blen,
301 #define PRF_64(key, klen, nonce, adata, alen, bdata, blen, out) \ argument
302 PRF(key, klen, nonce, adata, alen, bdata, blen, out, 64)
304 #define PRF_128(key, klen, nonce, adata, alen, bdata, blen, out) \ argument
305 PRF(key, klen, nonce, adata, alen, bdata, blen, out, 128)
307 #define PRF_256(key, klen, nonce, adata, alen, bdata, blen, out) \ argument
308 PRF(key, klen, nonce, adata, alen, bdata, blen, out, 256)
/titanic_41/usr/src/cmd/sh/
H A Dblok.c324 size_t blen; local
331 blen = blklen(pp);
333 if (blen < nbytes) { /* need to grow */
335 memcpy(q, pp, blen);
338 } else if (blen == nbytes) { /* do nothing */
/titanic_41/usr/src/cmd/mdb/common/modules/arp/
H A Darp.c93 size_t blen; in arphdr_cmd() local
153 blen = 2 * (arp.arh.arh_hlen + arp.arh.arh_plen); in arphdr_cmd()
154 if (mdb_vread(&arp.addrs, blen, addr + sizeof (arp.arh)) == -1) { in arphdr_cmd()
/titanic_41/usr/src/cmd/oamuser/lib/
H A Dvprojname.c43 valid_projname(char *project, struct project *pptr, void *buf, size_t blen, in valid_projname() argument
69 if ((t_pptr = getprojbyname(project, pptr, buf, blen)) != NULL) in valid_projname()

123