| /freebsd-12.1/contrib/netbsd-tests/ipf/ |
| H A D | t_nat_ipf_exec.sh | 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 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 D | t_nat_exec.sh | 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 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 D | t_filter_exec.sh | 43 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-12.1/sys/contrib/libsodium/test/default/ |
| H A D | kx.c | 19 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 D | scalarmult.c | 23 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 D | codecs.c | 15 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 D | stream.c | 19 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 D | kdf.c | 11 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 D | aead_aes256gcm.c | 3091 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 D | xchacha20.c | 105 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-12.1/contrib/gdb/gdb/ |
| H A D | auxv.c | 199 enum { dec, hex, str } flavor = hex; in fprint_target_auxv() enumerator 205 TAG (AT_NULL, "End of vector", hex); in fprint_target_auxv() 206 TAG (AT_IGNORE, "Entry should be ignored", hex); in fprint_target_auxv() 208 TAG (AT_PHDR, "Program headers for program", hex); in fprint_target_auxv() 212 TAG (AT_BASE, "Base address of interpreter", hex); in fprint_target_auxv() 213 TAG (AT_FLAGS, "Flags", hex); in fprint_target_auxv() 214 TAG (AT_ENTRY, "Entry point of program", hex); in fprint_target_auxv() 228 TAG (AT_SYSINFO, "Special system info/entry points", hex); in fprint_target_auxv() 235 TAG (AT_SUN_LDELF, "Dynamic linker's ELF header", hex); in fprint_target_auxv() 243 TAG (AT_SUN_EMUL_ENTRY, "COFF entry point address", hex); in fprint_target_auxv() [all …]
|
| H A D | rom68k-rom.c | 88 rom68k_supply_one_register (int regno, unsigned char *hex) in rom68k_supply_one_register() argument 94 while (*hex != '\0') in rom68k_supply_one_register() 95 if (is_hex_digit (*hex)) in rom68k_supply_one_register() 96 value = (value * 16) + hex_digit_value (*hex++); in rom68k_supply_one_register() 101 while (is_whitespace (*hex)) in rom68k_supply_one_register() 102 hex++; in rom68k_supply_one_register() 107 return hex; in rom68k_supply_one_register()
|
| /freebsd-12.1/contrib/opencsd/decoder/source/ |
| H A D | trc_gen_elem.cpp | 107 oss << "exec range=0x" << std::hex << st_addr << ":[0x" << en_addr << "] "; in toString() 117 oss << " 0x" << std::hex << st_addr << " "; in toString() 123 oss << "pref ret addr:0x" << std::hex << en_addr << "; "; in toString() 125 …oss << "excep num (0x" << std::setfill('0') << std::setw(2) << std::hex << exception_number << ") … in toString() 136 oss << "VMID=0x" << std::hex << context.vmid << "; "; in toString() 138 oss << "CTXTID=0x" << std::hex << context.context_id << "; "; in toString() 146 … oss << " [ TS=0x" << std::setfill('0') << std::setw(12) << std::hex << timestamp << "]; "; in toString() 179 …oss << " (Ma:0x" << std::setfill('0') << std::setw(2) << std::hex << sw_trace_info.swt_master_id <… in printSWInfoPkt() 180 …oss << "Ch:0x" << std::setfill('0') << std::setw(2) << std::hex << sw_trace_info.swt_channel_id <<… in printSWInfoPkt() 187 oss << "0x" << std::setfill('0') << std::hex; in printSWInfoPkt() [all …]
|
| /freebsd-12.1/usr.sbin/iscsid/ |
| H A D | chap.c | 62 chap_hex2int(const char hex) in chap_hex2int() argument 64 switch (hex) { in chap_hex2int() 151 hex += strlen("0x"); in chap_hex2bin() 152 hex_len = strlen(hex); in chap_hex2bin() 166 nibble = chap_hex2int(hex[i]); in chap_hex2bin() 169 hex[i]); in chap_hex2bin() 212 unsigned char *hex, *tmp, ch; in chap_bin2hex() local 217 hex = malloc(hex_len); in chap_bin2hex() 218 if (hex == NULL) in chap_bin2hex() 221 tmp = hex; in chap_bin2hex() [all …]
|
| /freebsd-12.1/usr.sbin/ctld/ |
| H A D | chap.c | 62 chap_hex2int(const char hex) in chap_hex2int() argument 64 switch (hex) { in chap_hex2int() 151 hex += strlen("0x"); in chap_hex2bin() 152 hex_len = strlen(hex); in chap_hex2bin() 166 nibble = chap_hex2int(hex[i]); in chap_hex2bin() 169 hex[i]); in chap_hex2bin() 212 unsigned char *hex, *tmp, ch; in chap_bin2hex() local 217 hex = malloc(hex_len); in chap_bin2hex() 218 if (hex == NULL) in chap_bin2hex() 221 tmp = hex; in chap_bin2hex() [all …]
|
| /freebsd-12.1/contrib/tcpdump/ |
| H A D | addrtoname.c | 539 *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 D | print-esp.c | 282 if (hex >= '0' && hex <= '9') in hexdigit() 283 return (hex - '0'); in hexdigit() 284 else if (hex >= 'A' && hex <= 'F') in hexdigit() 285 return (hex - 'A' + 10); in hexdigit() 286 else if (hex >= 'a' && hex <= 'f') in hexdigit() 287 return (hex - 'a' + 10); in hexdigit() 308 char *hex) in espprint_decode_hex() argument 313 len = strlen(hex) / 2; in espprint_decode_hex() 321 while (hex[0] != '\0' && hex[1]!='\0') { in espprint_decode_hex() 322 binbuf[i] = hex2byte(ndo, hex); in espprint_decode_hex() [all …]
|
| /freebsd-12.1/contrib/opencsd/decoder/source/stm/ |
| H A D | trc_pkt_elem_stm.cpp | 113 … 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-12.1/crypto/openssl/crypto/ts/ |
| H A D | ts_lib.c | 23 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-12.1/sys/contrib/zlib/test/ |
| H A D | infcover.c | 245 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-12.1/contrib/opencsd/decoder/include/pkt_printers/ |
| H A D | pkt_printer_t.h | 107 …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-12.1/contrib/wpa/wpa_supplicant/examples/p2p/ |
| H A D | p2p_invite.py | 33 print("BSSID = ", hex(bssid[0]) , ":" , \ 34 hex(bssid[1]) , ":" , hex(bssid[2]) , ":", \ 35 hex(bssid[3]) , ":" , hex(bssid[4]) , ":" , \ 36 hex(bssid[5]))
|
| /freebsd-12.1/contrib/llvm/include/llvm/Support/ |
| H A D | ScopedPrinter.h | 93 template <typename T> HexNumber hex(T Value) { return HexNumber(Value); } in hex() function 109 startLine() << Label << ": " << Name << " (" << hex(Value) << ")\n"; in printEnum() 111 startLine() << Label << ": " << hex(Value) << "\n"; in printEnum() 143 startLine() << Label << " [ (" << hex(Value) << ")\n"; 151 startLine() << Label << " [ (" << hex(Value) << ")\n"; in printFlags() 156 startLine() << " " << hex(Flag) << "\n"; in printFlags() 240 OS << hex(Item); in printHexList() 247 startLine() << Label << ": " << hex(Value) << "\n"; in printHex() 251 startLine() << Label << ": " << Str << " (" << hex(Value) << ")\n"; in printHex() 256 startLine() << Label << ": " << Symbol << '+' << hex(Value) << '\n'; in printSymbolOffset() [all …]
|
| /freebsd-12.1/sys/contrib/ngatm/netnatm/misc/ |
| H A D | straddr.c | 134 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-12.1/sys/contrib/libsodium/src/libsodium/sodium/ |
| H A D | codecs.c | 14 sodium_bin2hex(char *const hex, const size_t hex_maxlen, in sodium_bin2hex() argument 30 hex[i * 2U] = (char) x; in sodium_bin2hex() 32 hex[i * 2U + 1U] = (char) x; in sodium_bin2hex() 35 hex[i * 2U] = 0U; in sodium_bin2hex() 37 return hex; in sodium_bin2hex() 42 const char *const hex, const size_t hex_len, in sodium_hex2bin() argument 57 c = (unsigned char) hex[hex_pos]; in sodium_hex2bin() 92 *hex_end = &hex[hex_pos]; in sodium_hex2bin()
|