Searched refs:hex (Results 1 - 25 of 211) sorted by relevance

123456789

/freebsd-current/contrib/netbsd-tests/ipf/
H A Dt_nat_ipf_exec.sh47 if [ $outfmt = hex ] ; then
72 test_case ni1 natipftest multi hex hex -T update_ipid=1
73 test_case ni2 natipftest single hex hex -T update_ipid=1
74 test_case ni3 natipftest single hex hex -T update_ipid=1
75 test_case ni4 natipftest single hex hex -T update_ipid=1
76 test_case ni5 natipftest single hex he
[all...]
H A Dt_nat_exec.sh43 if [ $outfmt = hex ] ; then
70 test_case n8 nattest hex hex -T update_ipid=0
71 test_case n9 nattest hex hex -T update_ipid=0
72 test_case n10 nattest hex hex -T update_ipid=0
74 test_case n12 nattest hex hex -T update_ipid=0
78 test_case n16 nattest hex he
[all...]
H A Dt_filter_exec.sh43 if [ $outfmt = hex ] ; then
68 if [ $outfmt = hex ] ; then
91 if [ $outfmt = hex ] ; then
122 test_case f12 dotest hex hex
123 test_case f13 dotest hex hex
127 test_case f17 mtest hex hex
131 test_case f24 mtest hex tex
[all...]
/freebsd-current/sys/contrib/libsodium/test/default/
H A Dstream.c19 static char hex[2 * 192 + 1]; variable
29 sodium_bin2hex(hex, sizeof hex, h, sizeof h);
30 printf("%s\n", hex);
40 sodium_bin2hex(hex, sizeof hex, h, sizeof h);
41 printf("%s\n", hex);
46 sodium_bin2hex(hex, sizeof hex, output, 64);
47 printf("%s\n", hex);
[all...]
H A Dkx.c19 char hex[65]; local
30 sodium_bin2hex(hex, sizeof hex, client_pk, crypto_kx_PUBLICKEYBYTES);
31 printf("client_pk: [%s]\n", hex);
32 sodium_bin2hex(hex, sizeof hex, client_sk, crypto_kx_SECRETKEYBYTES);
33 printf("client_sk: [%s]\n", hex);
92 sodium_bin2hex(hex, sizeof hex, server_rx, crypto_kx_SESSIONKEYBYTES);
93 printf("server_rx: [%s]\n", hex);
[all...]
H A Dscalarmult.c23 static char hex[crypto_scalarmult_BYTES * 2 + 1]; variable
38 sodium_bin2hex(hex, sizeof hex, alicepk, crypto_scalarmult_BYTES);
39 printf("%s\n", hex);
42 sodium_bin2hex(hex, sizeof hex, bobpk, crypto_scalarmult_BYTES);
43 printf("%s\n", hex);
47 sodium_bin2hex(hex, sizeof hex, k, crypto_scalarmult_BYTES);
48 printf("%s\n", hex);
[all...]
H A Dkdf.c11 char hex[crypto_kdf_BYTES_MAX * 2 + 1]; local
27 sodium_bin2hex(hex, sizeof hex, subkey, crypto_kdf_BYTES_MAX);
28 printf("%s\n", hex);
36 sodium_bin2hex(hex, sizeof hex, subkey, (size_t) i);
37 printf("%s\n", hex);
H A Dcodecs.c15 const char *hex; local
24 hex = "Cafe : 6942";
25 sodium_hex2bin(buf4, sizeof buf4, hex, strlen(hex), ": ", &bin_len,
29 printf("dt1: %ld\n", (long) (hex_end - hex));
31 hex = "Cafe : 6942";
32 sodium_hex2bin(buf4, sizeof buf4, hex, strlen(hex), ": ", &bin_len, NULL);
36 hex = "deadbeef";
37 if (sodium_hex2bin(buf1, 1U, hex,
[all...]
/freebsd-current/contrib/wireguard-tools/
H A Dencoding.h19 void key_to_hex(char hex[static WG_KEY_LEN_HEX], const uint8_t key[static WG_KEY_LEN]);
20 bool key_from_hex(uint8_t key[static WG_KEY_LEN], const char *hex);
H A Dencoding.c5 * This is a specialized constant-time base64/hex implementation that resists side-channel attacks.
74 void key_to_hex(char hex[static WG_KEY_LEN_HEX], const uint8_t key[static WG_KEY_LEN])
79 hex[i * 2] = 87U + (key[i] >> 4) + ((((key[i] >> 4) - 10U) >> 8) & ~38U);
80 hex[i * 2 + 1] = 87U + (key[i] & 0xf) + ((((key[i] & 0xf) - 10U) >> 8) & ~38U);
82 hex[i * 2] = '\0';
85 bool key_from_hex(uint8_t key[static WG_KEY_LEN], const char *hex) argument
90 if (strlen(hex) != WG_KEY_LEN_HEX - 1)
94 c = (uint8_t)hex[i];
103 c = (uint8_t)hex[i + 1];
/freebsd-current/contrib/opencsd/decoder/source/
H A Dtrc_gen_elem.cpp134 oss << "exec range=0x" << std::hex << st_addr << ":[0x" << en_addr << "] ";
148 oss << " 0x" << std::hex << st_addr << " ";
152 oss << "first 0x" << std::hex << st_addr << ":[next 0x" << en_addr << "] ";
159 oss << "pref ret addr:0x" << std::hex << en_addr;
166 oss << "excep num (0x" << std::setfill('0') << std::setw(2) << std::hex << exception_number << ") ";
184 oss << "VMID=0x" << std::hex << context.vmid << "; ";
186 oss << "CTXTID=0x" << std::hex << context.context_id << "; ";
194 oss << " [ TS=0x" << std::setfill('0') << std::setw(12) << std::hex << timestamp << "]; ";
215 oss << " [" << s_marker_t[sync_marker.type] << "(0x" << std::setfill('0') << std::setw(8) << std::hex << sync_marker.value << ")]";
224 oss << "EL" << std::dec << (int)sw_ite.el << "; 0x" << std::setfill('0') << std::setw(16) << std::hex << sw_it
261 oss << "0x" << std::setfill('0') << std::hex; member in class:std
[all...]
/freebsd-current/usr.bin/mkimg/tests/
H A DMakefile9 SOURCES!= cd ${.CURDIR}; echo *.hex
10 ${PACKAGE}FILES+= ${SOURCES:S,.hex,,g}
13 $f: $f.hex
/freebsd-current/crypto/openssl/crypto/ec/
H A Dec_print.c50 const char *hex, EC_POINT *point, BN_CTX *ctx)
57 if (group == NULL || hex == NULL)
68 len = strlen(hex) / 2;
73 if (!OPENSSL_hexstr2buf_ex(oct_buf, len, &oct_buf_len, hex, '\0')
49 EC_POINT_hex2point(const EC_GROUP *group, const char *hex, EC_POINT *point, BN_CTX *ctx) argument
/freebsd-current/crypto/openssl/crypto/ts/
H A Dts_lib.c23 char *hex; local
28 if ((hex = BN_bn2hex(num_bn))) {
30 result = result && BIO_write(bio, hex, strlen(hex)) > 0;
31 OPENSSL_free(hex);
/freebsd-current/lib/libiscsiutil/
H A Dchap.c57 chap_hex2int(const char hex) argument
59 switch (hex) {
130 chap_hex2bin(const char *hex, void **binp, size_t *bin_lenp) argument
137 if (strncasecmp(hex, "0b", strlen("0b")) == 0)
138 return (chap_b642bin(hex + 2, binp, bin_lenp));
140 if (strncasecmp(hex, "0x", strlen("0x")) != 0) {
146 hex += strlen("0x");
147 hex_len = strlen(hex);
161 nibble = chap_hex2int(hex[i]);
164 hex[
207 unsigned char *hex, *tmp, ch; local
[all...]
/freebsd-current/contrib/netbsd-tests/bin/sleep/
H A Dt_sleep.sh44 atf_test_case hex
70 atf_add_test_case hex
/freebsd-current/contrib/opencsd/decoder/source/stm/
H A Dtrc_pkt_elem_stm.cpp113 oss << "; TrigData=0x" << std::hex << std::setw(2) << std::setfill('0') << (uint16_t)payload.D8;
118 oss << "; Master=0x" << std::hex << std::setw(2) << std::setfill('0') << (uint16_t)master;
124 oss << "; Chan=0x" << std::hex << std::setw(4) << std::setfill('0') << channel;
129 oss << "; Data=0x" << std::hex << std::setw(1) << (uint16_t)(payload.D8 & 0xF);
134 oss << "; Data=0x" << std::hex << std::setw(2) << std::setfill('0') << (uint16_t)payload.D8;
139 oss << "; Data=0x" << std::hex << std::setw(4) << std::setfill('0') << payload.D16;
144 oss << "; Data=0x" << std::hex << std::setw(8) << std::setfill('0') << payload.D32;
149 oss << "; Data=0x" << std::hex << std::setw(16) << std::setfill('0') << payload.D64;
/freebsd-current/crypto/openssl/apps/
H A Dprime.c31 {"hex", OPT_HEX, '-', "Hex output"},
46 int hex = 0, generate = 0, bits = 0, safe = 0, ret = 1; local
63 hex = 1;
111 s = hex ? BN_bn2hex(bn) : BN_bn2dec(bn);
122 if (hex)
/freebsd-current/contrib/llvm-project/lld/Common/
H A DStrings.cpp49 // Converts a hex string (e.g. "deadbeef") to a vector.
51 SmallVector<uint8_t, 0> hex; local
60 hex.push_back(h);
62 return hex;
/freebsd-current/sys/tools/
H A Darm_kernel_boothdr.awk51 hex[sprintf("%x", i)] = i;
52 hex[sprintf("%X", i)] = i;
66 sum = sum * 16 + hex[substr(str, i, 1)];
/freebsd-current/contrib/sendmail/src/
H A Dtlsh.c19 ** DATA2HEX -- create a printable hex string from binary data ("%02X:")
24 ** hex -- output buffer
29 ** >0: length of data in hex
33 data2hex(buf, blen, hex, hlen)
36 unsigned char *hex;
43 SM_REQUIRE(hex != NULL);
49 hex[h++] = hexcodes[(buf[r] & 0xf0) >> 4];
50 hex[h++] = hexcodes[(buf[r] & 0x0f)];
52 hex[h++] = ':';
56 hex[
[all...]
/freebsd-current/contrib/opencsd/decoder/include/pkt_printers/
H A Dpkt_printer_t.h107 m_oss <<"ID:"<< std::hex << (uint32_t)m_trcID << "\tERROR: FLUSH operation expected after wait on trace decode path\n";
131 m_oss <<"ID:"<< std::hex << (uint32_t)m_trcID << "\tEND OF TRACE DATA\n";
135 m_oss <<"ID:"<< std::hex << (uint32_t)m_trcID << "\tFLUSH operation on trace decode path\n";
139 m_oss <<"ID:"<< std::hex << (uint32_t)m_trcID << "\tRESET operation on trace decode path\n";
166 m_oss << "0x" << std::hex << std::setw(2) << std::setfill('0') << data << " ";
184 m_oss << "Idx:" << std::dec << index_sop << "; ID:"<< std::hex << (uint32_t)m_trcID;
/freebsd-current/contrib/wpa/wpa_supplicant/examples/p2p/
H A Dp2p_invite.py33 print("BSSID = ", hex(bssid[0]) , ":" , \
34 hex(bssid[1]) , ":" , hex(bssid[2]) , ":", \
35 hex(bssid[3]) , ":" , hex(bssid[4]) , ":" , \
36 hex(bssid[5]))
/freebsd-current/lib/librpcsvc/
H A Dxcrypt.c41 static char hex[16] = { variable
53 * The secret key is passed and returned in hex notation.
54 * Its length must be a multiple of 16 hex digits (64 bits).
86 * The secret key is passed and returned in hex notation.
87 * Once again, the length is a multiple of 16 hex digits
149 * Binary to hex conversion
159 hexnum[i*2] = hex[val >> 4];
160 hexnum[i*2+1] = hex[val & 0xf];
/freebsd-current/crypto/heimdal/admin/
H A Dktutil_locl.h63 #include <hex.h>

Completed in 300 milliseconds

123456789