Home
last modified time | relevance | path

Searched refs:hex (Results 1 – 25 of 559) sorted by relevance

12345678910>>...23

/freebsd-13.1/contrib/netbsd-tests/ipf/
H A Dt_nat_ipf_exec.sh72 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 hex -T update_ipid=1
78 test_case ni7 natipftest single hex hex -T update_ipid=1
79 test_case ni8 natipftest single hex hex -T update_ipid=1
80 test_case ni9 natipftest single hex hex -T update_ipid=1
81 test_case ni10 natipftest single hex hex -T update_ipid=1
82 test_case ni11 natipftest single hex hex -T update_ipid=1
[all …]
H A Dt_nat_exec.sh70 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 hex -D
79 test_case n17 nattest hex hex -D
84 test_case n104 nattest hex hex -T update_ipid=0
85 test_case n105 nattest hex hex -T update_ipid=0
86 test_case n106 nattest hex hex -T update_ipid=0
87 test_case n200 nattest hex hex -T update_ipid=0
[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 text
136 test_case ipv6_1 dotest6 hex hex
137 test_case ipv6_2 dotest6 hex hex
138 test_case ipv6_3 dotest6 hex hex
[all …]
/freebsd-13.1/sys/contrib/libsodium/test/default/
H A Dscalarmult.c23 static char hex[crypto_scalarmult_BYTES * 2 + 1]; variable
38 sodium_bin2hex(hex, sizeof hex, alicepk, crypto_scalarmult_BYTES); in main()
39 printf("%s\n", hex); in main()
42 sodium_bin2hex(hex, sizeof hex, bobpk, crypto_scalarmult_BYTES); in main()
43 printf("%s\n", hex); in main()
47 sodium_bin2hex(hex, sizeof hex, k, crypto_scalarmult_BYTES); in main()
48 printf("%s\n", hex); in main()
52 sodium_bin2hex(hex, sizeof hex, k, crypto_scalarmult_BYTES); in main()
53 printf("%s\n", hex); in main()
H A Dkx.c19 char hex[65]; in tv_kx() local
30 sodium_bin2hex(hex, sizeof hex, client_pk, crypto_kx_PUBLICKEYBYTES); in tv_kx()
31 printf("client_pk: [%s]\n", hex); in tv_kx()
32 sodium_bin2hex(hex, sizeof hex, client_sk, crypto_kx_SECRETKEYBYTES); in tv_kx()
33 printf("client_sk: [%s]\n", hex); in tv_kx()
92 sodium_bin2hex(hex, sizeof hex, server_rx, crypto_kx_SESSIONKEYBYTES); in tv_kx()
93 printf("server_rx: [%s]\n", hex); in tv_kx()
94 sodium_bin2hex(hex, sizeof hex, server_tx, crypto_kx_SESSIONKEYBYTES); in tv_kx()
95 printf("server_tx: [%s]\n", hex); in tv_kx()
101 sodium_bin2hex(hex, sizeof hex, client_rx, crypto_kx_SESSIONKEYBYTES); in tv_kx()
[all …]
H A Dstream.c19 static char hex[2 * 192 + 1]; variable
29 sodium_bin2hex(hex, sizeof hex, h, sizeof h); in main()
30 printf("%s\n", hex); in main()
40 sodium_bin2hex(hex, sizeof hex, h, sizeof h); in main()
41 printf("%s\n", hex); in main()
46 sodium_bin2hex(hex, sizeof hex, output, 64); in main()
47 printf("%s\n", hex); in main()
53 sodium_bin2hex(hex, 192 * 2 + 1, output, 192); in main()
54 printf("%s\n", hex); in main()
H A Dcodecs.c15 const char *hex; in main() local
24 hex = "Cafe : 6942"; in main()
25 sodium_hex2bin(buf4, sizeof buf4, hex, strlen(hex), ": ", &bin_len, in main()
31 hex = "Cafe : 6942"; in main()
32 sodium_hex2bin(buf4, sizeof buf4, hex, strlen(hex), ": ", &bin_len, NULL); in main()
36 hex = "deadbeef"; in main()
42 hex = "de:ad:be:eff"; in main()
50 hex = "de:ad:be:eff"; in main()
57 hex = "de:ad:be:eff"; in main()
64 hex = "de:ad:be:eff"; in main()
[all …]
H A Dkdf.c11 char hex[crypto_kdf_BYTES_MAX * 2 + 1]; in tv_kdf() local
27 sodium_bin2hex(hex, sizeof hex, subkey, crypto_kdf_BYTES_MAX); in tv_kdf()
28 printf("%s\n", hex); in tv_kdf()
36 sodium_bin2hex(hex, sizeof hex, subkey, (size_t) i); in tv_kdf()
37 printf("%s\n", hex); in tv_kdf()
H A Daead_aes256gcm.c3091 char *hex; in tv() local
3148 hex = (char *) sodium_malloc((size_t) ciphertext_len * 2 + 1); in tv()
3149 sodium_bin2hex(hex, (size_t) ciphertext_len * 2 + 1, in tv()
3151 printf("Computed: [%s]\n", hex); in tv()
3152 sodium_free(hex); in tv()
3162 hex = (char *) sodium_malloc((size_t) found_ciphertext_len * 2 + 1); in tv()
3163 sodium_bin2hex(hex, (size_t) found_ciphertext_len * 2 + 1, in tv()
3165 printf("Computed: [%s]\n", hex); in tv()
3166 sodium_free(hex); in tv()
H A Dxchacha20.c105 char *hex; in tv_stream_xchacha20() local
170 hex = (char *) sodium_malloc(192 * 2 + 1); in tv_stream_xchacha20()
171 sodium_bin2hex(hex, 192 * 2 + 1, out, 192); in tv_stream_xchacha20()
172 printf("%s\n", hex); in tv_stream_xchacha20()
178 sodium_free(hex); in tv_stream_xchacha20()
302 char hex[65]; in tv_box_xchacha20poly1305() local
399 sodium_bin2hex(hex, sizeof hex, pk, crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES); in tv_box_xchacha20poly1305()
400 assert(strcmp(hex, "4701d08488451f545a409fb58ae3e58581ca40ac3f7f114698cd71deac73ca01") == 0); in tv_box_xchacha20poly1305()
401 sodium_bin2hex(hex, sizeof hex, sk, crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES); in tv_box_xchacha20poly1305()
402 assert(strcmp(hex, "3d94eea49c580aef816935762be049559d6d1440dede12e6a125f1841fff8e6f") == 0); in tv_box_xchacha20poly1305()
/freebsd-13.1/contrib/opencsd/decoder/source/
H A Dtrc_gen_elem.cpp120 oss << "exec range=0x" << std::hex << st_addr << ":[0x" << en_addr << "] "; in toString()
134 oss << " 0x" << std::hex << st_addr << " "; in toString()
138 oss << "first 0x" << std::hex << st_addr << ":[next 0x" << en_addr << "] "; in toString()
145 oss << "pref ret addr:0x" << std::hex << en_addr; in toString()
152 …oss << "excep num (0x" << std::setfill('0') << std::setw(2) << std::hex << exception_number << ") … in toString()
163 oss << "VMID=0x" << std::hex << context.vmid << "; "; in toString()
165 oss << "CTXTID=0x" << std::hex << context.context_id << "; "; in toString()
173 … oss << " [ TS=0x" << std::setfill('0') << std::setw(12) << std::hex << timestamp << "]; "; in toString()
220 …oss << "Ch:0x" << std::setfill('0') << std::setw(2) << std::hex << sw_trace_info.swt_channel_id <<… in printSWInfoPkt()
227 oss << "0x" << std::setfill('0') << std::hex; in printSWInfoPkt()
[all …]
/freebsd-13.1/usr.sbin/ctld/
H A Dchap.c61 chap_hex2int(const char hex) in chap_hex2int() argument
63 switch (hex) { in chap_hex2int()
150 hex += strlen("0x"); in chap_hex2bin()
151 hex_len = strlen(hex); in chap_hex2bin()
165 nibble = chap_hex2int(hex[i]); in chap_hex2bin()
168 hex[i]); in chap_hex2bin()
211 unsigned char *hex, *tmp, ch; in chap_bin2hex() local
216 hex = malloc(hex_len); in chap_bin2hex()
217 if (hex == NULL) in chap_bin2hex()
220 tmp = hex; in chap_bin2hex()
[all …]
/freebsd-13.1/usr.sbin/iscsid/
H A Dchap.c61 chap_hex2int(const char hex) in chap_hex2int() argument
63 switch (hex) { in chap_hex2int()
150 hex += strlen("0x"); in chap_hex2bin()
151 hex_len = strlen(hex); in chap_hex2bin()
165 nibble = chap_hex2int(hex[i]); in chap_hex2bin()
168 hex[i]); in chap_hex2bin()
211 unsigned char *hex, *tmp, ch; in chap_bin2hex() local
216 hex = malloc(hex_len); in chap_bin2hex()
217 if (hex == NULL) in chap_bin2hex()
220 tmp = hex; in chap_bin2hex()
[all …]
/freebsd-13.1/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; in toString()
118 oss << "; Master=0x" << std::hex << std::setw(2) << std::setfill('0') << (uint16_t)master; in toString()
124 oss << "; Chan=0x" << std::hex << std::setw(4) << std::setfill('0') << channel; in toString()
129 oss << "; Data=0x" << std::hex << std::setw(1) << (uint16_t)(payload.D8 & 0xF); in toString()
134 oss << "; Data=0x" << std::hex << std::setw(2) << std::setfill('0') << (uint16_t)payload.D8; in toString()
139 oss << "; Data=0x" << std::hex << std::setw(4) << std::setfill('0') << payload.D16; in toString()
144 oss << "; Data=0x" << std::hex << std::setw(8) << std::setfill('0') << payload.D32; in toString()
149 oss << "; Data=0x" << std::hex << std::setw(16) << std::setfill('0') << payload.D64; in toString()
/freebsd-13.1/contrib/sendmail/src/
H A Dtlsh.c33 data2hex(buf, blen, hex, hlen)
36 unsigned char *hex; variable
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[h] = '\0';
/freebsd-13.1/contrib/tcpdump/
H A Daddrtoname.c539 *cp++ = hex[*ep >> 4 ]; in etheraddr_string()
540 *cp++ = hex[*ep++ & 0xf]; in etheraddr_string()
543 *cp++ = hex[*ep >> 4 ]; in etheraddr_string()
612 *cp++ = hex[*ep >> 4]; in linkaddr_string()
613 *cp++ = hex[*ep++ & 0xf]; in linkaddr_string()
616 *cp++ = hex[*ep >> 4]; in linkaddr_string()
643 *cp++ = hex[port & 0xf]; in etherproto_string()
665 *cp++ = hex[j]; in protoid_string()
666 *cp++ = hex[*pi++ & 0xf]; in protoid_string()
670 *cp++ = hex[j]; in protoid_string()
[all …]
H A Dprint-esp.c303 if (hex >= '0' && hex <= '9') in hexdigit()
304 return (hex - '0'); in hexdigit()
305 else if (hex >= 'A' && hex <= 'F') in hexdigit()
306 return (hex - 'A' + 10); in hexdigit()
307 else if (hex >= 'a' && hex <= 'f') in hexdigit()
308 return (hex - 'a' + 10); in hexdigit()
328 char *hex) in espprint_decode_hex() argument
333 len = strlen(hex) / 2; in espprint_decode_hex()
341 while (hex[0] != '\0' && hex[1]!='\0') { in espprint_decode_hex()
342 binbuf[i] = hex2byte(ndo, hex); in espprint_decode_hex()
[all …]
/freebsd-13.1/crypto/openssl/crypto/ts/
H A Dts_lib.c23 char *hex; in TS_ASN1_INTEGER_print_bio() local
28 if ((hex = BN_bn2hex(num_bn))) { in TS_ASN1_INTEGER_print_bio()
30 result = result && BIO_write(bio, hex, strlen(hex)) > 0; in TS_ASN1_INTEGER_print_bio()
31 OPENSSL_free(hex); in TS_ASN1_INTEGER_print_bio()
/freebsd-13.1/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 … in PacketDataIn()
131 m_oss <<"ID:"<< std::hex << (uint32_t)m_trcID << "\tEND OF TRACE DATA\n"; in PacketDataIn()
135 m_oss <<"ID:"<< std::hex << (uint32_t)m_trcID << "\tFLUSH operation on trace decode path\n"; in PacketDataIn()
139 m_oss <<"ID:"<< std::hex << (uint32_t)m_trcID << "\tRESET operation on trace decode path\n"; in PacketDataIn()
166 m_oss << "0x" << std::hex << std::setw(2) << std::setfill('0') << data << " "; in RawPacketDataMon()
184 m_oss << "Idx:" << std::dec << index_sop << "; ID:"<< std::hex << (uint32_t)m_trcID; in printIdx_ID()
/freebsd-13.1/sys/contrib/zlib/test/
H A Dinfcover.c245 local unsigned char *h2b(const char *hex, unsigned *len) in h2b() argument
250 in = malloc((strlen(hex) + 1) >> 1); in h2b()
256 if (*hex >= '0' && *hex <= '9') in h2b()
257 val = (val << 4) + *hex - '0'; in h2b()
258 else if (*hex >= 'A' && *hex <= 'F') in h2b()
259 val = (val << 4) + *hex - 'A' + 10; in h2b()
260 else if (*hex >= 'a' && *hex <= 'f') in h2b()
261 val = (val << 4) + *hex - 'a' + 10; in h2b()
311 in = h2b(hex, &have); assert(in != NULL); in inf()
507 local int try(char *hex, char *id, int err) in try() argument
[all …]
/freebsd-13.1/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-13.1/crypto/heimdal/lib/krb5/
H A Dkrb5.moduli2 # comment security-bits-decimal secure-prime(p)-hex generator(g)-hex (q)-hex
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/
H A DScopedPrinter.h94 template <typename T> HexNumber hex(T Value) { return HexNumber(Value); } in hex() function
110 startLine() << Label << ": " << Name << " (" << hex(Value) << ")\n"; in printEnum()
112 startLine() << Label << ": " << hex(Value) << "\n"; in printEnum()
144 startLine() << Label << " [ (" << hex(Value) << ")\n";
152 startLine() << Label << " [ (" << hex(Value) << ")\n"; in printFlags()
157 startLine() << " " << hex(Flag) << "\n"; in printFlags()
233 OS << LS << hex(Item); in printHexList()
238 startLine() << Label << ": " << hex(Value) << "\n"; in printHex()
242 startLine() << Label << ": " << Str << " (" << hex(Value) << ")\n"; in printHex()
247 startLine() << Label << ": " << Symbol << '+' << hex(Value) << '\n'; in printSymbolOffset()
[all …]
/freebsd-13.1/sys/contrib/ngatm/netnatm/misc/
H A Dstraddr.c134 static char hex[16] = "0123456789abcdef"; in uni_prefix2str() local
160 *out++ = hex[(*in >> 4) & 0xf]; in uni_prefix2str()
161 *out++ = hex[*in & 0xf]; in uni_prefix2str()
181 *out++ = hex[(*in >> 4) & 0xf]; in uni_prefix2str()
182 *out++ = hex[*in & 0xf]; in uni_prefix2str()
/freebsd-13.1/contrib/wpa/hostapd/
H A Dhostapd.sim_db4 # Kc: hex, 8 octets
5 # SRES: hex, 4 octets
6 # RAND: hex, 16 octets

12345678910>>...23