lib/libc/hash/helper.c
43
static const char hex[] = "0123456789abcdef";
lib/libc/hash/helper.c
50
buf[i + i] = hex[digest[i] >> 4];
lib/libc/hash/helper.c
51
buf[i + i + 1] = hex[digest[i] & 0x0f];
lib/libc/stdio/vfprintf.c
903
goto hex;
lib/libc/stdio/vfprintf.c
906
hex: _umax = UARG();
lib/libc/stdio/vfwprintf.c
881
goto hex;
lib/libc/stdio/vfwprintf.c
884
hex: _umax = UARG();
lib/libcrypto/bn/bn_print.c
119
freezero(hex, hex_len);
lib/libcrypto/bn/bn_print.c
154
char *hex = NULL;
lib/libcrypto/bn/bn_print.c
158
if (!bn_bn2hex_nibbles(bn, &hex, &hex_len))
lib/libcrypto/bn/bn_print.c
160
if (BIO_printf(bio, "%s", hex) <= 0)
lib/libcrypto/bn/bn_print.c
166
freezero(hex, hex_len);
lib/libcrypto/bn/bn_print.c
175
char *hex = NULL;
lib/libcrypto/bn/bn_print.c
179
if (!bn_bn2hex_nibbles(bn, &hex, &hex_len))
lib/libcrypto/bn/bn_print.c
181
if (fprintf(fp, "%s", hex) < 0)
lib/libcrypto/bn/bn_print.c
187
freezero(hex, hex_len);
lib/libcrypto/bn/bn_print.c
65
char *hex = NULL;
lib/libcrypto/bn/bn_print.c
82
if (!bn_bn2hex_nosign(bn, &hex, &hex_len))
lib/libcrypto/bn/bn_print.c
85
CBS_init(&cbs, hex, hex_len);
lib/libcrypto/ec/ec_convert.c
544
char *hex = NULL;
lib/libcrypto/ec/ec_convert.c
548
if ((hex = BN_bn2hex(bn)) == NULL)
lib/libcrypto/ec/ec_convert.c
554
return hex;
lib/libcrypto/ec/ec_convert.c
559
EC_POINT_hex2point(const EC_GROUP *group, const char *hex,
lib/libcrypto/ec/ec_convert.c
565
if (BN_hex2bn(&bn, hex) == 0)
lib/libcrypto/evp/evp_local.h
363
int EVP_PKEY_CTX_hex2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *hex);
lib/libcrypto/evp/pmeth_lib.c
281
unsigned char *hex = NULL;
lib/libcrypto/evp/pmeth_lib.c
285
if ((hex = string_to_hex(hexstr, &length)) == NULL)
lib/libcrypto/evp/pmeth_lib.c
292
ret = ctx->pmeth->ctrl(ctx, cmd, length, hex);
lib/libcrypto/evp/pmeth_lib.c
295
free(hex);
lib/libcrypto/ts/ts_lib.c
78
char *hex = NULL;
lib/libcrypto/ts/ts_lib.c
84
if ((hex = BN_bn2hex(bn)) == NULL)
lib/libcrypto/ts/ts_lib.c
86
if (BIO_printf(bio, "0x%s", hex) <= 0)
lib/libcrypto/ts/ts_lib.c
93
free(hex);
lib/libcrypto/x509/x509_obj.c
102
if (!CBB_add_u8(cbb, hex[u8 >> 4]))
lib/libcrypto/x509/x509_obj.c
104
if (!CBB_add_u8(cbb, hex[u8 & 0xf]))
lib/libcrypto/x509/x509_obj.c
93
static const char hex[] = "0123456789ABCDEF";
lib/libcrypto/x509/x509_utl.c
176
char *bnstr, *hex;
lib/libcrypto/x509/x509_utl.c
183
if ((hex = bnstr = BN_bn2hex(bn)) == NULL)
lib/libcrypto/x509/x509_utl.c
188
hex++;
lib/libcrypto/x509/x509_utl.c
191
if (asprintf(&ret, "%s0x%s", sign, hex) == -1)
lib/libedit/parse.c
176
const wchar_t hex[] = L"0123456789ABCDEF";
lib/libedit/parse.c
183
h = wcschr(hex, *p++);
lib/libedit/parse.c
187
c = (c << 4) | ((int)(h - hex));
lib/libkeynote/signature.c
109
if (strlen(hex) % 2) /* Should be even */
lib/libkeynote/signature.c
115
decodedlen = strlen(hex) / 2;
lib/libkeynote/signature.c
126
ptr[0] = hex[2 * i];
lib/libkeynote/signature.c
127
ptr[1] = hex[(2 * i) + 1];
lib/libkeynote/signature.c
97
kn_decode_hex(char *hex, char **dest)
lib/libtls/tls_conninfo.c
48
static const char hex[] = "0123456789abcdef";
lib/libtls/tls_conninfo.c
63
p[len++] = hex[(in[i] >> 4) & 0x0f];
lib/libtls/tls_conninfo.c
64
p[len++] = hex[in[i] & 0x0f];
libexec/login_ldap/aldap.c
1349
char hex[3];
libexec/login_ldap/aldap.c
1358
strlcpy(hex, p + j + 1, sizeof(hex));
libexec/login_ldap/aldap.c
1359
buffer[i] = (char)strtoumax(hex, NULL, 16);
libexec/snmpd/snmpd_metrics/util.c
197
static const char hex[] = "0123456789abcdef";
libexec/snmpd/snmpd_metrics/util.c
203
hstr[i + i] = hex[bstr[i] >> 4];
libexec/snmpd/snmpd_metrics/util.c
204
hstr[i + i + 1] = hex[bstr[i] & 0x0f];
libexec/snmpd/snmpd_metrics/util.c
214
char hex[3];
libexec/snmpd/snmpd_metrics/util.c
219
hex[2] = '\0';
libexec/snmpd/snmpd_metrics/util.c
223
hex[0] = hstr[i];
libexec/snmpd/snmpd_metrics/util.c
224
hex[1] = hstr[i + 1];
libexec/snmpd/snmpd_metrics/util.c
225
bstr[i / 2] = strtol(hex, NULL, 16);
regress/lib/libcrypto/bn/bn_convert.c
236
const char *hex;
regress/lib/libcrypto/bn/bn_convert.c
247
.hex = "0",
regress/lib/libcrypto/bn/bn_convert.c
256
.hex = "01",
regress/lib/libcrypto/bn/bn_convert.c
265
.hex = "-01",
regress/lib/libcrypto/bn/bn_convert.c
274
.hex = "7FFFFF",
regress/lib/libcrypto/bn/bn_convert.c
283
.hex = "-7FFFFF",
regress/lib/libcrypto/bn/bn_convert.c
292
.hex = "01020304",
regress/lib/libcrypto/bn/bn_convert.c
301
.hex = "04030201",
regress/lib/libcrypto/bn/bn_convert.c
310
.hex = "FFFFFFFF",
regress/lib/libcrypto/bn/bn_convert.c
322
.hex = "-FFFFFFFF",
regress/lib/libcrypto/bn/bn_convert.c
334
.hex = "FFFFFFFF00000000",
regress/lib/libcrypto/bn/bn_convert.c
346
.hex = "-FFFFFFFF00000000",
regress/lib/libcrypto/bn/bn_convert.c
358
.hex = "8001800180018001",
regress/lib/libcrypto/bn/bn_convert.c
370
.hex = "-8001800180018001",
regress/lib/libcrypto/bn/bn_convert.c
385
.hex = "018001800180018001",
regress/lib/libcrypto/bn/bn_convert.c
400
.hex = "-018001800180018001",
regress/lib/libcrypto/bn/bn_convert.c
417
.hex = "7FFF7FFF7FFF7FFF7FFF7FFF7FFF7FFF7FFF7FFF7FFF7FFF7FFF7FFF7FFF7FFF",
regress/lib/libcrypto/bn/bn_convert.c
437
.hex = "-7FFF7FFF7FFF7FFF7FFF7FFF7FFF7FFF7FFF7FFF7FFF7FFF7FFF7FFF7FFF7FFF",
regress/lib/libcrypto/bn/bn_convert.c
508
if (strcmp(out_str, bct->hex) != 0) {
regress/lib/libcrypto/bn/bn_convert.c
510
"'%s', want '%s'", i, out_str, bct->hex);
regress/lib/libcrypto/bn/bn_convert.c
552
if (BN_hex2bn(&bn, bct->hex) != (int)strlen(bct->hex)) {
regress/lib/libcrypto/cast/casttest.c
146
static char *hex = "0123456789ABCDEF";
regress/lib/libcrypto/cast/casttest.c
166
printf("%c", hex[i & 0x0f]);
regress/lib/libcrypto/ec/ec_asn1_test.c
1172
const char *hex;
regress/lib/libcrypto/ec/ec_asn1_test.c
1195
.hex = "0451C469DF2D497B"
regress/lib/libcrypto/ec/ec_asn1_test.c
1234
.hex = "049484B0CD65EFC5"
regress/lib/libcrypto/ec/ec_asn1_test.c
1274
.hex = "049FD2BECCF800E8"
regress/lib/libcrypto/ec/ec_asn1_test.c
1322
.hex = "04CE9A3B4B01E6C4"
regress/lib/libcrypto/ec/ec_asn1_test.c
1385
.hex = "0401D2C37841B186"
regress/lib/libcrypto/ec/ec_asn1_test.c
1444
.hex = "04968AC3661EF7CF"
regress/lib/libcrypto/ec/ec_asn1_test.c
1485
.hex = "04308820B3472E40"
regress/lib/libcrypto/ec/ec_asn1_test.c
1524
.hex = "040BBF95EA8BA824"
regress/lib/libcrypto/ec/ec_asn1_test.c
1565
.hex = "0408D777F510A983"
regress/lib/libcrypto/ec/ec_asn1_test.c
1608
.hex = "047B1D55290B0A0D"
regress/lib/libcrypto/ec/ec_asn1_test.c
1654
.hex = "04A33785E2F25FA1"
regress/lib/libcrypto/ec/ec_asn1_test.c
1704
.hex = "043D8C4CBB303FA0"
regress/lib/libcrypto/ec/ec_asn1_test.c
1757
.hex = "044F79E0E7F95733"
regress/lib/libcrypto/ec/ec_asn1_test.c
1814
.hex = "0485DB574B71B165"
regress/lib/libcrypto/ec/ec_asn1_test.c
1877
.hex = "041E99EA54B61A4F"
regress/lib/libcrypto/ec/ec_asn1_test.c
1948
.hex = "045B2B478361EA80"
regress/lib/libcrypto/ec/ec_asn1_test.c
2007
.hex = "0417C7AE1BE4C6D6"
regress/lib/libcrypto/ec/ec_asn1_test.c
2094
char *hex = NULL;
regress/lib/libcrypto/ec/ec_asn1_test.c
2108
if ((hex = EC_POINT_point2hex(group, ec_public_point,
regress/lib/libcrypto/ec/ec_asn1_test.c
2114
if ((hex_len = strlen(hex)) != 2 * key->oct_len) {
regress/lib/libcrypto/ec/ec_asn1_test.c
2120
if (compare_data(key->name, hex, hex_len, key->hex, hex_len) == -1) {
regress/lib/libcrypto/ec/ec_asn1_test.c
2140
free(hex);
regress/lib/libcrypto/ec/ec_asn1_test.c
2177
if (BN_hex2bn(&hex_bn, key->hex) == 0) {
regress/lib/libcrypto/ec/ec_asn1_test.c
2192
if ((point = EC_POINT_hex2point(group, key->hex, NULL, NULL)) == NULL) {
regress/lib/libcrypto/ec/ec_asn1_test.c
2237
if (EC_POINT_hex2point(group, key->hex, point, NULL) == NULL) {
regress/lib/libcrypto/pbkdf2/pbkdf2.c
133
const char *hex)
regress/lib/libcrypto/pbkdf2/pbkdf2.c
147
keylen = strlen(hex);
regress/lib/libcrypto/pbkdf2/pbkdf2.c
159
if (convert(expected, (const unsigned char *)hex, keylen) != 0) {
regress/lib/libcrypto/pbkdf2/pbkdf2.c
160
fprintf(stderr, "invalid hex string %s, digest %u\n", hex, n);
regress/lib/libz/infcover.c
245
local unsigned char *h2b(const char *hex, unsigned *len)
regress/lib/libz/infcover.c
250
in = malloc((strlen(hex) + 1) >> 1);
regress/lib/libz/infcover.c
256
if (*hex >= '0' && *hex <= '9')
regress/lib/libz/infcover.c
257
val = (val << 4) + *hex - '0';
regress/lib/libz/infcover.c
258
else if (*hex >= 'A' && *hex <= 'F')
regress/lib/libz/infcover.c
259
val = (val << 4) + *hex - 'A' + 10;
regress/lib/libz/infcover.c
260
else if (*hex >= 'a' && *hex <= 'f')
regress/lib/libz/infcover.c
261
val = (val << 4) + *hex - 'a' + 10;
regress/lib/libz/infcover.c
268
} while (*hex++); /* go through the loop with the terminating null */
regress/lib/libz/infcover.c
284
local void inf(char *hex, char *what, unsigned step, int win, unsigned len,
regress/lib/libz/infcover.c
311
in = h2b(hex, &have); assert(in != NULL);
regress/lib/libz/infcover.c
507
local int try(char *hex, char *id, int err)
regress/lib/libz/infcover.c
516
in = h2b(hex, &len);
regress/sbin/iked/test_helper/test_helper.c
252
const char *hex = "0123456789abcdef";
regress/sbin/iked/test_helper/test_helper.c
257
r[j++] = hex[(s[i] >> 4) & 0xf];
regress/sbin/iked/test_helper/test_helper.c
258
r[j++] = hex[s[i] & 0xf];
regress/sys/crypto/aes/aestest.c
101
parsehex(const char *hex, u_char **s, u_int *lenp)
regress/sys/crypto/aes/aestest.c
110
while ((c = *(hex++)) != '\0') {
regress/usr.bin/ssh/unittests/misc/test_misc.c
317
char *hex;
regress/usr.bin/ssh/unittests/misc/test_misc.c
320
hex = tohex("foo", 3);
regress/usr.bin/ssh/unittests/misc/test_misc.c
321
ASSERT_STRING_EQ(hex, "666f6f");
regress/usr.bin/ssh/unittests/misc/test_misc.c
322
free(hex);
regress/usr.bin/ssh/unittests/misc/test_misc.c
326
hex = tohex("a\0b", 3);
regress/usr.bin/ssh/unittests/misc/test_misc.c
327
ASSERT_STRING_EQ(hex, "610062");
regress/usr.bin/ssh/unittests/misc/test_misc.c
328
free(hex);
regress/usr.bin/ssh/unittests/misc/test_misc.c
332
hex = tohex("", 0);
regress/usr.bin/ssh/unittests/misc/test_misc.c
333
ASSERT_STRING_EQ(hex, "");
regress/usr.bin/ssh/unittests/misc/test_misc.c
334
free(hex);
sbin/atactl/atactl.c
1633
static const char hex[]="0123456789abcdef";
sbin/atactl/atactl.c
1679
raw[k + k] = hex[b >> 4];
sbin/atactl/atactl.c
1680
raw[k + k + 1] = hex[b & 0x0f];
sbin/dhcpleased/parse.y
217
char buf[256], *hex, *p, excess;
sbin/dhcpleased/parse.y
225
if ((hex = strdup($4)) == NULL) {
sbin/dhcpleased/parse.y
230
for (i = 0; (p = strsep(&hex, ":")) != NULL && i <
sbin/dhcpleased/parse.y
241
free(hex);
sbin/iked/chap_ms.c
206
const uint8_t hex[] = "0123456789ABCDEF";
sbin/iked/chap_ms.c
254
*ptr++ = hex[md[i] >> 4];
sbin/iked/chap_ms.c
255
*ptr++ = hex[md[i] & 0x0f];
sbin/iked/parse.y
1185
uint8_t *hex;
sbin/iked/parse.y
1189
hex = $1;
sbin/iked/parse.y
1190
if (strncmp(hex, "0x", 2) == 0) {
sbin/iked/parse.y
1191
hex += 2;
sbin/iked/parse.y
1192
if (parsekey(hex, strlen(hex), &$$) != 0) {
sbin/iked/parse.y
2192
unsigned char *hex;
sbin/iked/parse.y
2203
if ((hex = calloc(sb.st_size, sizeof(unsigned char))) == NULL)
sbin/iked/parse.y
2205
if (read(fd, hex, sb.st_size) < sb.st_size)
sbin/iked/parse.y
2208
ret = parsekey(hex, sb.st_size, auth);
sbin/iked/parse.y
2209
free(hex);
sbin/ipsecctl/parse.y
1612
unsigned char *hex;
sbin/ipsecctl/parse.y
1621
if ((hex = calloc(sb.st_size, sizeof(unsigned char))) == NULL)
sbin/ipsecctl/parse.y
1623
if (read(fd, hex, sb.st_size) < sb.st_size)
sbin/ipsecctl/parse.y
1626
return (parsekey(hex, sb.st_size));
sbin/ipsecctl/parse.y
885
unsigned char *hex;
sbin/ipsecctl/parse.y
897
hex = $1;
sbin/ipsecctl/parse.y
898
if (!strncmp(hex, "0x", 2))
sbin/ipsecctl/parse.y
899
hex += 2;
sbin/ipsecctl/parse.y
900
$$.keyout = parsekey(hex, strlen(hex));
sbin/pfctl/pfctl_parser.c
533
static const char hex[] = "0123456789abcdef";
sbin/pfctl/pfctl_parser.c
564
buf[i + i] = hex[s->pf_chksum[i] >> 4];
sbin/pfctl/pfctl_parser.c
565
buf[i + i + 1] = hex[s->pf_chksum[i] & 0x0f];
sbin/sysctl/sysctl.c
401
unsigned char hex[SYSCTL_BUFSIZ];
sbin/sysctl/sysctl.c
863
len = parse_hex_string(hex, sizeof(hex),
sbin/sysctl/sysctl.c
870
if (len > sizeof(hex)) {
sbin/sysctl/sysctl.c
876
newval = hex;
sbin/unwind/libunbound/sldns/wire2str.c
415
const char* hex = "0123456789ABCDEF";
sbin/unwind/libunbound/sldns/wire2str.c
418
(void)sldns_str_print(s, slen, "%c%c", hex[(buf[i]&0xf0)>>4],
sbin/unwind/libunbound/sldns/wire2str.c
419
hex[buf[i]&0x0f]);
sbin/unwind/libunbound/util/config_file.c
2747
const char* hex = "0123456789abcdef";
sbin/unwind/libunbound/util/config_file.c
2754
*p++ = hex[ (b&0x0f) ];
sbin/unwind/libunbound/util/config_file.c
2756
*p++ = hex[ (b&0xf0) >> 4 ];
sys/arch/luna88k/dev/if_le.c
203
unsigned u, l, hex;
sys/arch/luna88k/dev/if_le.c
209
hex = (u < '9') ? l : l + 9;
sys/arch/luna88k/dev/if_le.c
216
ether[i] = ((u < '9') ? l : l + 9) | (hex << 4);
sys/arch/luna88k/stand/boot/if_le.c
257
unsigned int u, l, hex;
sys/arch/luna88k/stand/boot/if_le.c
263
hex = (u < '9') ? l : l + 9;
sys/arch/luna88k/stand/boot/if_le.c
270
ether[i] = ((u < '9') ? l : l + 9) | (hex << 4);
sys/dev/isa/isapnp.c
451
static const char hex[] = "0123456789ABCDEF";
sys/dev/isa/isapnp.c
457
*p++ = hex[id[2] >> 4];
sys/dev/isa/isapnp.c
458
*p++ = hex[id[2] & 0x0f];
sys/dev/isa/isapnp.c
459
*p++ = hex[id[3] >> 4];
sys/dev/isa/isapnp.c
460
*p++ = hex[id[3] & 0x0f];
sys/kern/subr_prf.c
938
goto hex;
sys/kern/subr_prf.c
941
hex: _uquad = UARG();
usr.bin/dig/lib/isc/hex.c
36
static const char hex[] = "0123456789ABCDEF";
usr.bin/dig/lib/isc/hex.c
50
buf[0] = hex[(source->base[0] >> 4) & 0xf];
usr.bin/dig/lib/isc/hex.c
51
buf[1] = hex[(source->base[0]) & 0xf];
usr.bin/dig/lib/isc/hex.c
88
if ((s = strchr(hex, toupper(c))) == NULL)
usr.bin/dig/lib/isc/hex.c
90
ctx->val[ctx->digits++] = (int)(s - hex);
usr.bin/ldap/aldap.c
1349
char hex[3];
usr.bin/ldap/aldap.c
1358
strlcpy(hex, p + j + 1, sizeof(hex));
usr.bin/ldap/aldap.c
1359
buffer[i] = (char)strtoumax(hex, NULL, 16);
usr.bin/ldap/ldapclient.c
759
char hex[3];
usr.bin/ldap/ldapclient.c
762
hex[2] = '\0';
usr.bin/ldap/ldapclient.c
773
hex[0] = p[1];
usr.bin/ldap/ldapclient.c
774
hex[1] = p[2];
usr.bin/ldap/ldapclient.c
780
x = strtoul(hex, NULL, 16);
usr.bin/mandoc/cgi.c
295
char hex[3];
usr.bin/mandoc/cgi.c
299
hex[2] = '\0';
usr.bin/mandoc/cgi.c
304
if ('\0' == (hex[0] = *(p + 1)))
usr.bin/mandoc/cgi.c
306
if ('\0' == (hex[1] = *(p + 2)))
usr.bin/mandoc/cgi.c
308
if (1 != sscanf(hex, "%x", &c))
usr.bin/openssl/prime.c
163
s = cfg.hex ? BN_bn2hex(bn) : BN_bn2dec(bn);
usr.bin/openssl/prime.c
171
if (cfg.hex) {
usr.bin/openssl/prime.c
63
int hex;
usr.bin/openssl/prime.c
92
.opt.flag = &cfg.hex,
usr.bin/openssl/rand.c
131
if (cfg.hex && cfg.base64)
usr.bin/openssl/rand.c
163
if (cfg.hex) {
usr.bin/openssl/rand.c
171
if (cfg.hex)
usr.bin/openssl/rand.c
67
int hex;
usr.bin/openssl/rand.c
82
.opt.flag = &cfg.hex,
usr.bin/ssh/ssh-keygen.c
2006
char *name, *arg, *hex;
usr.bin/ssh/ssh-keygen.c
2038
hex = sshbuf_dtob16(option);
usr.bin/ssh/ssh-keygen.c
2040
hex, sshbuf_len(option));
usr.bin/ssh/ssh-keygen.c
2042
free(hex);
usr.bin/ssh/ssh-pkcs11.c
1093
char *hex = NULL;
usr.bin/ssh/ssh-pkcs11.c
1148
hex = tohex(d, len);
usr.bin/ssh/ssh-pkcs11.c
1149
logit_f("unsupported CKA_EC_PARAMS: %s (len %zu)", hex, len);
usr.bin/ssh/ssh-pkcs11.c
1164
hex = tohex(key_attr[1].pValue, key_attr[1].ulValueLen);
usr.bin/ssh/ssh-pkcs11.c
1166
hex, (u_long)key_attr[1].ulValueLen);
usr.bin/ssh/ssh-pkcs11.c
1185
free(hex);
usr.bin/ssh/ssh-pkcs11.c
1704
pkcs11_decode_hex(const char *hex, unsigned char **dest, size_t *rlen)
usr.bin/ssh/ssh-pkcs11.c
1713
if ((len = strlen(hex)) % 2)
usr.bin/ssh/ssh-pkcs11.c
1722
hi = h2i(hex[2 * i]);
usr.bin/ssh/ssh-pkcs11.c
1723
lo = h2i(hex[(2 * i) + 1]);
usr.bin/ssh/ssh-pkcs11.c
401
char *hex;
usr.bin/ssh/ssh-pkcs11.c
403
hex = tohex(keyid_attrib->pValue, keyid_attrib->ulValueLen);
usr.bin/ssh/ssh-pkcs11.c
405
sshkey_type(key), provider->name, (u_long)slotidx, hex);
usr.bin/ssh/ssh-pkcs11.c
406
free(hex);
usr.bin/ssh/ssh-pkcs11.c
416
hex = tohex(k11->keyid, k11->keyid_len);
usr.bin/ssh/ssh-pkcs11.c
419
k11->provider->name, k11->slotidx, hex);
usr.bin/ssh/ssh-pkcs11.c
420
free(hex);
usr.bin/ssh/sshbuf-misc.c
75
const char hex[] = "0123456789abcdef";
usr.bin/ssh/sshbuf-misc.c
82
ret[j++] = hex[(p[i] >> 4) & 0xf];
usr.bin/ssh/sshbuf-misc.c
83
ret[j++] = hex[p[i] & 0xf];
usr.bin/ssh/sshkey.c
1007
snprintf(hex, sizeof(hex), "%s%02x",
usr.bin/ssh/sshkey.c
1009
strlcat(retval, hex, rlen);
usr.bin/ssh/sshkey.c
999
char *retval, hex[5];
usr.bin/ssh/sshsig.c
406
char *hex, hash[SSH_DIGEST_MAX_LENGTH];
usr.bin/ssh/sshsig.c
423
if ((hex = tohex(hash, ssh_digest_bytes(alg))) != NULL) {
usr.bin/ssh/sshsig.c
424
debug3_f("final hash: %s", hex);
usr.bin/ssh/sshsig.c
425
freezero(hex, strlen(hex));
usr.bin/ssh/sshsig.c
506
char *hex, rbuf[8192], hash[SSH_DIGEST_MAX_LENGTH];
usr.bin/ssh/sshsig.c
548
if ((hex = tohex(hash, ssh_digest_bytes(alg))) != NULL) {
usr.bin/ssh/sshsig.c
549
debug3_f("final hash: %s", hex);
usr.bin/ssh/sshsig.c
550
freezero(hex, strlen(hex));
usr.bin/x99token/x99token.c
167
if (!hex)
usr.bin/x99token/x99token.c
44
int hex = 1;
usr.bin/x99token/x99token.c
61
hex = 0;
usr.sbin/bgpd/logmsg.c
134
const char hex[] = "0123456789ABCDEF";
usr.sbin/bgpd/logmsg.c
143
out[o++] = hex[in[i] >> 4];
usr.sbin/bgpd/logmsg.c
144
out[o++] = hex[in[i] & 0xf];
usr.sbin/bgplgd/qs.c
92
c = hex(s[i + 1]) << 4 | hex(s[i + 2]);
usr.sbin/httpd/httpd.c
561
char hex[3];
usr.sbin/httpd/httpd.c
564
hex[2] = '\0';
usr.sbin/httpd/httpd.c
575
hex[0] = p[1];
usr.sbin/httpd/httpd.c
576
hex[1] = p[2];
usr.sbin/httpd/httpd.c
582
x = strtoul(hex, NULL, 16);
usr.sbin/httpd/httpd.c
685
static char hex[] = "0123456789ABCDEF";
usr.sbin/httpd/httpd.c
698
*dp++ = hex[c >> 4];
usr.sbin/httpd/httpd.c
699
*dp++ = hex[c & 0x0f];
usr.sbin/npppd/npppd/chap_ms.c
199
const u_int8_t hex[] = "0123456789ABCDEF";
usr.sbin/npppd/npppd/chap_ms.c
245
*ptr++ = hex[md[i] >> 4];
usr.sbin/npppd/npppd/chap_ms.c
246
*ptr++ = hex[md[i] & 0x0f];
usr.sbin/pcidump/pcidump.c
194
hex++;
usr.sbin/pcidump/pcidump.c
217
if (hex > 1)
usr.sbin/pcidump/pcidump.c
219
if (hex > 2)
usr.sbin/pcidump/pcidump.c
353
if (hex > 0)
usr.sbin/pcidump/pcidump.c
90
int hex = 0;
usr.sbin/radiusctl/chap_ms.c
199
const u_int8_t hex[] = "0123456789ABCDEF";
usr.sbin/radiusctl/chap_ms.c
245
*ptr++ = hex[md[i] >> 4];
usr.sbin/radiusctl/chap_ms.c
246
*ptr++ = hex[md[i] & 0x0f];
usr.sbin/radiusctl/radiusctl.c
969
static const char hex[] = "0123456789abcdef";
usr.sbin/radiusctl/radiusctl.c
974
str[off++] = hex[(data[i] & 0xf0) >> 4];
usr.sbin/radiusctl/radiusctl.c
975
str[off++] = hex[(data[i] & 0x0f)];
usr.sbin/radiusd/chap_ms.c
199
const u_int8_t hex[] = "0123456789ABCDEF";
usr.sbin/radiusd/chap_ms.c
245
*ptr++ = hex[md[i] >> 4];
usr.sbin/radiusd/chap_ms.c
246
*ptr++ = hex[md[i] & 0x0f];
usr.sbin/relayd/ca.c
78
static const char hex[] = "0123456789abcdef";
usr.sbin/relayd/ca.c
92
hash[off++] = hex[(digest[i] >> 4) & 0x0f];
usr.sbin/relayd/ca.c
93
hash[off++] = hex[digest[i] & 0x0f];
usr.sbin/rpki-client/encoding.c
232
const char hex[] = "0123456789ABCDEF";
usr.sbin/rpki-client/encoding.c
240
out[i * 2] = hex[in[i] >> 4];
usr.sbin/rpki-client/encoding.c
241
out[i * 2 + 1] = hex[in[i] & 0xf];
usr.sbin/rpki-client/print.c
34
pretty_key_id(const char *hex)
usr.sbin/rpki-client/print.c
39
for (i = 0; i < sizeof(buf) && *hex != '\0'; i++) {
usr.sbin/rpki-client/print.c
43
buf[i] = *hex++;
usr.sbin/sasyncd/conf.y
314
if ((yylval.hex.data = calloc(len, sizeof(unsigned char)))
usr.sbin/sasyncd/conf.y
320
yylval.hex.data[i] = x2i(p + 2 * i);
usr.sbin/sasyncd/conf.y
321
yylval.hex.len = len;
usr.sbin/sasyncd/conf.y
63
} hex;
usr.sbin/sasyncd/conf.y
70
%token <hex> HEX
usr.sbin/smtpd/ssl.c
228
static const char hex[] = "0123456789abcdef";
usr.sbin/smtpd/ssl.c
242
hash[off++] = hex[(digest[i] >> 4) & 0x0f];
usr.sbin/smtpd/ssl.c
243
hash[off++] = hex[digest[i] & 0x0f];
usr.sbin/snmpd/util.c
169
static const char hex[] = "0123456789abcdef";
usr.sbin/snmpd/util.c
175
hstr[i + i] = hex[bstr[i] >> 4];
usr.sbin/snmpd/util.c
176
hstr[i + i + 1] = hex[bstr[i] & 0x0f];
usr.sbin/snmpd/util.c
186
char hex[3];
usr.sbin/snmpd/util.c
191
hex[2] = '\0';
usr.sbin/snmpd/util.c
195
hex[0] = hstr[i];
usr.sbin/snmpd/util.c
196
hex[1] = hstr[i + 1];
usr.sbin/snmpd/util.c
197
bstr[i / 2] = strtol(hex, NULL, 16);
usr.sbin/tcpdump/addrtoname.c
289
static char hex[] = "0123456789abcdef";
usr.sbin/tcpdump/addrtoname.c
482
*cp++ = hex[j];
usr.sbin/tcpdump/addrtoname.c
483
*cp++ = hex[*ep++ & 0xf];
usr.sbin/tcpdump/addrtoname.c
487
*cp++ = hex[j];
usr.sbin/tcpdump/addrtoname.c
488
*cp++ = hex[*ep++ & 0xf];
usr.sbin/tcpdump/addrtoname.c
511
*cp++ = hex[port >> 12 & 0xf];
usr.sbin/tcpdump/addrtoname.c
512
*cp++ = hex[port >> 8 & 0xf];
usr.sbin/tcpdump/addrtoname.c
513
*cp++ = hex[port >> 4 & 0xf];
usr.sbin/tcpdump/addrtoname.c
514
*cp++ = hex[port & 0xf];
usr.sbin/tcpdump/addrtoname.c
534
*cp++ = hex[j];
usr.sbin/tcpdump/addrtoname.c
535
*cp++ = hex[*pi++ & 0xf];
usr.sbin/tcpdump/addrtoname.c
539
*cp++ = hex[j];
usr.sbin/tcpdump/addrtoname.c
540
*cp++ = hex[*pi++ & 0xf];
usr.sbin/tcpdump/addrtoname.c
584
*cp++ = hex[*nsap >> 4];
usr.sbin/tcpdump/addrtoname.c
585
*cp++ = hex[*nsap++ & 0xf];
usr.sbin/tcpdump/print-ofp.c
623
oxm_print_byte(const u_char *bp, u_int length, int hasmask, int hex)
usr.sbin/tcpdump/print-ofp.c
633
if (hex)
usr.sbin/tcpdump/print-ofp.c
647
oxm_print_halfword(const u_char *bp, u_int length, int hasmask, int hex)
usr.sbin/tcpdump/print-ofp.c
657
if (hex)
usr.sbin/tcpdump/print-ofp.c
671
oxm_print_word(const u_char *bp, u_int length, int hasmask, int hex)
usr.sbin/tcpdump/print-ofp.c
681
if (hex)
usr.sbin/tcpdump/print-ofp.c
695
oxm_print_quad(const u_char *bp, u_int length, int hasmask, int hex)
usr.sbin/tcpdump/print-ofp.c
705
if (hex)
usr.sbin/tcpdump/print-ofp.c
741
char hex[8];
usr.sbin/tcpdump/print-ofp.c
750
snprintf(hex, sizeof(hex), "%02x", ptr[i]);
usr.sbin/tcpdump/print-ofp.c
751
printf("%s", hex);
usr.sbin/unbound/cachedb/cachedb.c
338
const char* hex = "0123456789ABCDEF";
usr.sbin/unbound/cachedb/cachedb.c
373
buf[i*2] = hex[(hash[i]&0xf0)>>4];
usr.sbin/unbound/cachedb/cachedb.c
374
buf[i*2+1] = hex[hash[i]&0x0f];
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
580
const char* hex = "0123456789ABCDEF";
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
584
res[i*2] = hex[(str.data[i]&0xf0)>>4];
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
585
res[i*2+1] = hex[str.data[i]&0x0f];
usr.sbin/unbound/sldns/wire2str.c
415
const char* hex = "0123456789ABCDEF";
usr.sbin/unbound/sldns/wire2str.c
418
(void)sldns_str_print(s, slen, "%c%c", hex[(buf[i]&0xf0)>>4],
usr.sbin/unbound/sldns/wire2str.c
419
hex[buf[i]&0x0f]);
usr.sbin/unbound/smallapp/unbound-host.c
140
const char* hex = "0123456789abcdef";
usr.sbin/unbound/smallapp/unbound-host.c
150
*p++ = hex[ (b&0x0f) ];
usr.sbin/unbound/smallapp/unbound-host.c
152
*p++ = hex[ (b&0xf0) >> 4 ];
usr.sbin/unbound/testcode/readhex.c
65
void hex_to_buf(sldns_buffer* pkt, const char* hex)
usr.sbin/unbound/testcode/readhex.c
67
const char* p = hex;
usr.sbin/unbound/testcode/readhex.h
50
void hex_to_buf(struct sldns_buffer* pkt, const char* hex);
usr.sbin/unbound/testcode/streamtcp.c
364
const char* hex = "0123456789ABCDEF";
usr.sbin/unbound/testcode/streamtcp.c
365
printf("%c%c", hex[(sldns_buffer_read_u8_at(buf, i)&0xf0)>>4],
usr.sbin/unbound/testcode/streamtcp.c
366
hex[sldns_buffer_read_u8_at(buf, i)&0x0f]);
usr.sbin/unbound/testcode/unitmsgparse.c
201
const char* hex)
usr.sbin/unbound/testcode/unitmsgparse.c
212
hex_to_buf(pkt, hex);
usr.sbin/unbound/testcode/unitmsgparse.c
315
const char* hex)
usr.sbin/unbound/testcode/unitmsgparse.c
326
hex_to_buf(pkt, hex);
usr.sbin/unbound/util/config_file.c
2747
const char* hex = "0123456789abcdef";
usr.sbin/unbound/util/config_file.c
2754
*p++ = hex[ (b&0x0f) ];
usr.sbin/unbound/util/config_file.c
2756
*p++ = hex[ (b&0xf0) >> 4 ];
usr.sbin/ypldap/aldap.c
1385
char hex[3];
usr.sbin/ypldap/aldap.c
1394
strlcpy(hex, p + j + 1, sizeof(hex));
usr.sbin/ypldap/aldap.c
1395
buffer[i] = (char)strtoumax(hex, NULL, 16);