Searched refs:hexlen (Results 1 – 8 of 8) sorted by relevance
/illumos-gate/usr/src/lib/libcryptoutil/common/ |
H A D | tohexstr.c | 41 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 D | cryptoutil.h | 197 extern void tohexstr(uchar_t *bytes, size_t blen, char *hexstr, size_t hexlen); 198 extern int hexstr_to_bytes(char *hexstr, size_t hexlen, uchar_t **bytes,
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_util.c | 145 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()
|
/illumos-gate/usr/src/test/crypto-tests/tests/digest/ |
H A D | parser_runner.c | 81 hex2bytes(const char *hexbuf, size_t hexlen, uchar_t *outbuf, size_t outlen) in hex2bytes() argument 86 while (hexlen > 1) { in hex2bytes() 97 hexlen -= 2; in hex2bytes()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ |
H A D | ipseckey.c | 900 uint_t i, hexlen = 0, bits, alloclen; in parsekey() local 909 if ((strnlen(input, sizeof (hexlen)) > 2) && in parsekey() 914 hexlen++; in parsekey() 927 if (((bits + 3) >> 2) > hexlen) { in parsekey() 935 if ((hexlen << 2) > bits + 3) { in parsekey() 939 hexlen = (bits + 3) >> 2; in parsekey() 940 input[hexlen] = '\0'; in parsekey() 948 alloclen = sizeof (*retval) + roundup((hexlen/2 + (hexlen & 0x1)), 8); in parsekey() 958 retval->sadb_key_bits = (hexlen + (hexlen & 0x1)) << 2; in parsekey()
|
H A D | ikeadm.c | 961 uint_t i, hexlen = 0, bits, alloclen; in parse_key() local 964 hexlen++; in parse_key() 975 if (((bits + 3) >> 2) > hexlen) in parse_key() 982 if ((hexlen << 2) > bits + 3) { in parse_key() 983 hexlen = (bits + 3) >> 2; in parse_key() 984 input[hexlen] = '\0'; in parse_key() 992 alloclen = (hexlen/2 + (hexlen & 0x1)); in parse_key() 1001 *lbits = (hexlen + (hexlen & 0x1)) << 2; in parse_key()
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | linkprop.c | 2840 uint_t hexlen; in dladm_cid2str() local 2881 hexlen = sizeof (tmp_buf); in dladm_cid2str() 2883 cid->dc_len - sizeof (en), tmp_buf, &hexlen) != 0) in dladm_cid2str() 2909 hexlen = sizeof (tmp_buf); in dladm_cid2str() 2912 tmp_buf, &hexlen) != 0) in dladm_cid2str() 2922 hexlen = sizeof (tmp_buf); in dladm_cid2str() 2924 tmp_buf, &hexlen) != 0) in dladm_cid2str() 2954 uint_t hexlen, cidlen; in dladm_str2cid() local 3027 hexlen = sizeof (tmp_buf); in dladm_str2cid() 3029 tmp_buf, &hexlen) != 0) in dladm_str2cid() [all …]
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_crypto.c | 137 hex_key_to_raw(char *hex, int hexlen, uint8_t *out) in hex_key_to_raw() argument 142 for (i = 0; i < hexlen; i += 2) { in hex_key_to_raw()
|