Searched defs:hex (Results 1 - 7 of 7) sorted by relevance

/bind-9.6-ESV-R11/contrib/idn/idnkit-1.0-src/lib/
H A Ddebug.c57 static char *hex = "0123456789abcdef"; variable
78 *p++ = hex[c >> 4];
79 *p++ = hex[c & 15];
114 *p++ = hex[c >> 4];
115 *p++ = hex[c & 15];
152 *p++ = hex[(*s >> 28) & 0x0f];
153 *p++ = hex[(*s >> 24) & 0x0f];
157 *p++ = hex[(*s >> 20) & 0x0f];
158 *p++ = hex[(*s >> 16) & 0x0f];
162 *p++ = hex[(*
[all...]
/bind-9.6-ESV-R11/lib/isc/
H A Dhex.c18 /* $Id: hex.c,v 1.20 2008/09/25 04:02:39 tbox Exp $ */
27 #include <isc/hex.h>
48 static const char hex[] = "0123456789ABCDEF"; variable
62 buf[0] = hex[(source->base[0] >> 4) & 0xf];
63 buf[1] = hex[(source->base[0]) & 0xf];
79 * State of a hex decoding process in progress.
84 int digits; /*%< Number of buffered hex digits */
100 if ((s = strchr(hex, toupper(c))) == NULL)
102 ctx->val[ctx->digits++] = s - hex;
/bind-9.6-ESV-R11/lib/isc/unix/
H A Dinterfaceiter.c219 static const char hex[] = "0123456789abcdef"; local
220 byte = ((strchr(hex, address[i * 2]) - hex) << 4) |
221 (strchr(hex, address[i * 2 + 1]) - hex);
/bind-9.6-ESV-R11/contrib/idn/idnkit-1.0-src/lib/tests/
H A Dtestsuite.c486 static const char hex[] = {"0123456789abcdef"}; local
501 *dst++ = hex[*(const unsigned char *)src >> 4];
502 *dst++ = hex[*src & 0x0f];
514 static const char hex[] = {"0123456789abcdef"}; local
530 *dst++ = hex[(*src >> 20) & 0x0f];
533 *dst++ = hex[(*src >> 16) & 0x0f];
535 *dst++ = hex[(*src >> 12) & 0x0f];
536 *dst++ = hex[(*src >> 8) & 0x0f];
537 *dst++ = hex[(*src >> 4) & 0x0f];
538 *dst++ = hex[*sr
[all...]
/bind-9.6-ESV-R11/contrib/zkt/
H A Dmisc.c1003 int saltlen = 0; /* current length of salt in hex nibbles */
1005 int hex; local
1016 hex = random () % 16;
1017 assert ( hex >= 0 && hex < 16 );
1018 salt[i] = hexstr[hex];
/bind-9.6-ESV-R11/lib/dns/
H A Dresolver.c6340 static const char hex[17] = "0123456789abcdef"; local
6345 /* Allocate buffer for storing hex version of the NSID */
6351 /* Convert to hex */
6355 *p++ = hex[(nsid[0] >> 4) & 0xf];
6356 *p++ = hex[nsid[0] & 0xf];
H A Dzone.c11847 static const char *hex = "0123456789ABCDEF"; variable
11860 salt[j++] = hex[(nsec3param->salt[i] >> 4) & 0xf];
11861 salt[j++] = hex[nsec3param->salt[i] & 0xf];

Completed in 61 milliseconds