Home
last modified time | relevance | path

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

12345678910>>...24

/freebsd/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 hex -T update_ipid=1
77 test_case ni6 natipftest multi hex text -T update_ipid=1 -D
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
[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 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
[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
132 test_case f25 mtest hex text -D
134 failing_test_case f27 dotest "Known to be broken" hex text
136 test_case ipv6_1 dotest6 hex hex
[all …]
/freebsd/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 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()
29 printf("dt1: %ld\n", (long) (hex_end - hex)); 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()
37 if (sodium_hex2bin(buf1, 1U, hex, 8U, NULL, &bin_len, &hex_end) != -1) { in main()
40 printf("dt2: %ld\n", (long) (hex_end - hex)); in main()
42 hex = "de:ad:be:eff"; in main()
[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 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/contrib/opencsd/decoder/source/
H A Dtrc_gen_elem.cpp134 oss << "exec range=0x" << std::hex << st_addr << ":[0x" << en_addr << "] "; in toString()
148 oss << " 0x" << std::hex << st_addr << " "; in toString()
152 oss << "first 0x" << std::hex << st_addr << ":[next 0x" << en_addr << "] "; in toString()
159 oss << "pref ret addr:0x" << std::hex << en_addr; in toString()
166 …oss << "excep num (0x" << std::setfill('0') << std::setw(2) << std::hex << exception_number << ") … in toString()
184 oss << "VMID=0x" << std::hex << context.vmid << "; "; in toString()
186 oss << "CTXTID=0x" << std::hex << context.context_id << "; "; in toString()
194 … oss << " [ TS=0x" << std::setfill('0') << std::setw(12) << std::hex << timestamp << "]; "; in toString()
215 …_t[sync_marker.type] << "(0x" << std::setfill('0') << std::setw(8) << std::hex << sync_marker.valu… in toString()
224 …:dec << (int)sw_ite.el << "; 0x" << std::setfill('0') << std::setw(16) << std::hex << sw_ite.value; in toString()
[all …]
/freebsd/lib/libiscsiutil/
H A Dchap.c57 chap_hex2int(const char hex) in chap_hex2int() argument
59 switch (hex) { in chap_hex2int()
130 chap_hex2bin(const char *hex, void **binp, size_t *bin_lenp) in chap_hex2bin() argument
137 if (strncasecmp(hex, "0b", strlen("0b")) == 0) in chap_hex2bin()
138 return (chap_b642bin(hex + 2, binp, bin_lenp)); in chap_hex2bin()
140 if (strncasecmp(hex, "0x", strlen("0x")) != 0) { in chap_hex2bin()
146 hex += strlen("0x"); in chap_hex2bin()
147 hex_len = strlen(hex); in chap_hex2bin()
161 nibble = chap_hex2int(hex[i]); in chap_hex2bin()
164 hex[i]); in chap_hex2bin()
[all …]
/freebsd/contrib/wireguard-tools/
H A Dencoding.c74 void key_to_hex(char hex[static WG_KEY_LEN_HEX], const uint8_t key[static WG_KEY_LEN]) in key_to_hex()
79 hex[i * 2] = 87U + (key[i] >> 4) + ((((key[i] >> 4) - 10U) >> 8) & ~38U); in key_to_hex()
80 hex[i * 2 + 1] = 87U + (key[i] & 0xf) + ((((key[i] & 0xf) - 10U) >> 8) & ~38U); in key_to_hex()
82 hex[i * 2] = '\0'; in key_to_hex()
85 bool key_from_hex(uint8_t key[static WG_KEY_LEN], const char *hex) in key_from_hex() argument
90 if (strlen(hex) != WG_KEY_LEN_HEX - 1) in key_from_hex()
94 c = (uint8_t)hex[i]; in key_from_hex()
103 c = (uint8_t)hex[i + 1]; in key_from_hex()
/freebsd/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/contrib/tcpdump/
H A Dprint-esp.c355 static u_int hexdigit(netdissect_options *ndo, char hex) in hexdigit() argument
357 if (hex >= '0' && hex <= '9') in hexdigit()
358 return (hex - '0'); in hexdigit()
359 else if (hex >= 'A' && hex <= 'F') in hexdigit()
360 return (hex - 'A' + 10); in hexdigit()
361 else if (hex >= 'a' && hex <= 'f') in hexdigit()
362 return (hex - 'a' + 10); in hexdigit()
365 "invalid hex digit %c in espsecret\n", hex); in hexdigit()
382 u_char *binbuf, unsigned int binbuf_len, char *hex) in espprint_decode_hex() argument
387 len = strlen(hex) / 2; in espprint_decode_hex()
[all …]
/freebsd/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/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/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()
268 } while (*hex++); /* go through the loop with the terminating null */ in h2b()
284 local void inf(char *hex, char *what, unsigned step, int win, unsigned len, in inf() argument
[all …]
/freebsd/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/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/crypto/heimdal/lib/krb5/
H A Dkrb5.moduli2 # comment security-bits-decimal secure-prime(p)-hex generator(g)-hex (q)-hex
/freebsd/sys/contrib/libsodium/src/libsodium/sodium/
H A Dcodecs.c14 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()
/freebsd/crypto/openssl/crypto/ec/
H A Dec_print.c50 const char *hex, EC_POINT *point, BN_CTX *ctx) in EC_POINT_hex2point() argument
57 if (group == NULL || hex == NULL) in EC_POINT_hex2point()
68 len = strlen(hex) / 2; in EC_POINT_hex2point()
73 if (!OPENSSL_hexstr2buf_ex(oct_buf, len, &oct_buf_len, hex, '\0') in EC_POINT_hex2point()
/freebsd/contrib/wpa/hostapd/
H A Dhostapd.sim_db4 # Kc: hex, 8 octets
5 # SRES: hex, 4 octets
6 # RAND: hex, 16 octets
/freebsd/crypto/openssl/test/
H A Dbntests.pl20 my ($sign, $hex) = ($x =~ /^([+\-]?)(.*)$/);
22 $hex = '0x' . $hex if $hex !~ /^0x/;
23 return Math::BigInt->from_hex($sign.$hex);

12345678910>>...24