Home
last modified time | relevance | path

Searched refs:hexlen (Results 1 – 6 of 6) sorted by relevance

/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
47 if (hexlen < (2 * i + 1)) in tohexstr()
67 hexstr_to_bytes(char *hexstr, size_t hexlen, uchar_t **bytes, size_t *blen) in hexstr_to_bytes() argument
76 if (hexstr == NULL || (hexlen % 2 == 1)) in hexstr_to_bytes()
81 hexlen -= 2; in hexstr_to_bytes()
84 *blen = (hexlen / 2); in hexstr_to_bytes()
92 for (i = 0; i < hexlen; i++) { in hexstr_to_bytes()
H A Dcryptoutil.h196 extern void tohexstr(uchar_t *bytes, size_t blen, char *hexstr, size_t hexlen);
197 extern int hexstr_to_bytes(char *hexstr, size_t hexlen, uchar_t **bytes,
/titanic_41/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_util.c145 char *hexbuf, size_t hexlen) in bintohex() argument
152 if (hexlen < outlen) in bintohex()
181 hextobin(const char *hexbuf, size_t hexlen, in hextobin() argument
186 if ((hexlen % 2) != 0) in hextobin()
189 outlen = hexlen >> 1; in hextobin()
193 while (hexlen > 0) { in hextobin()
199 hexlen -= 2; in hextobin()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/
H A Dipseckey.c825 uint_t i, hexlen = 0, bits, alloclen; in parsekey() local
834 if ((strnlen(input, sizeof (hexlen)) > 2) && in parsekey()
839 hexlen++; in parsekey()
852 if (((bits + 3) >> 2) > hexlen) { in parsekey()
860 if ((hexlen << 2) > bits + 3) { in parsekey()
864 hexlen = (bits + 3) >> 2; in parsekey()
865 input[hexlen] = '\0'; in parsekey()
873 alloclen = sizeof (*retval) + roundup((hexlen/2 + (hexlen & 0x1)), 8); in parsekey()
883 retval->sadb_key_bits = (hexlen + (hexlen & 0x1)) << 2; in parsekey()
H A Dikeadm.c958 uint_t i, hexlen = 0, bits, alloclen; in parse_key() local
961 hexlen++; in parse_key()
972 if (((bits + 3) >> 2) > hexlen) in parse_key()
979 if ((hexlen << 2) > bits + 3) { in parse_key()
980 hexlen = (bits + 3) >> 2; in parse_key()
981 input[hexlen] = '\0'; in parse_key()
989 alloclen = (hexlen/2 + (hexlen & 0x1)); in parse_key()
998 *lbits = (hexlen + (hexlen & 0x1)) << 2; in parse_key()
/titanic_41/usr/src/lib/libdladm/common/
H A Dlinkprop.c2671 uint_t hexlen; in dladm_cid2str() local
2712 hexlen = sizeof (tmp_buf); in dladm_cid2str()
2714 cid->dc_len - sizeof (en), tmp_buf, &hexlen) != 0) in dladm_cid2str()
2740 hexlen = sizeof (tmp_buf); in dladm_cid2str()
2743 tmp_buf, &hexlen) != 0) in dladm_cid2str()
2753 hexlen = sizeof (tmp_buf); in dladm_cid2str()
2755 tmp_buf, &hexlen) != 0) in dladm_cid2str()
2785 uint_t hexlen, cidlen; in dladm_str2cid() local
2858 hexlen = sizeof (tmp_buf); in dladm_str2cid()
2860 tmp_buf, &hexlen) != 0) in dladm_str2cid()
[all …]