| /netbsd-src/tests/ipf/ |
| H A D | t_nat_ipf_exec.sh | 47 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 D | t_nat_exec.sh | 43 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 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 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 …]
|
| /netbsd-src/external/lgpl3/gmp/dist/tests/cxx/ |
| H A D | t-ostream.cc | 62 cout << " flags: " << hex << (unsigned long) got.flags() << "\n"; \ 89 { "0", "0", ios::hex }, in check_mpz() 90 { "0", "0x0", ios::hex | ios::showbase }, in check_mpz() 91 { "0", "0X0", ios::hex | ios::showbase | ios::uppercase }, in check_mpz() 99 { "1", " 0x1", ios::hex | ios::showbase | ios::right, 6 }, in check_mpz() 100 { "1", "0x 1", ios::hex | ios::showbase | ios::internal, 6 }, in check_mpz() 101 { "1", "0x1 ", ios::hex | ios::showbase | ios::left, 6 }, in check_mpz() 103 { "1", " +0x1", ios::hex | ios::showbase | ios::showpos | ios::right, in check_mpz() 105 { "1", "+0x 1", ios::hex | ios::showbase | ios::showpos | ios::internal, in check_mpz() 107 { "1", "+0x1 ", ios::hex | ios::showbase | ios::showpos | ios::left, in check_mpz() [all …]
|
| H A D | t-istream.cc | 74 cout << " flags: " << hex << input.flags() << dec << "\n"; \ 115 { "0", -1, "0", ios::hex }, in check_mpz() 116 { "123", -1, "291", ios::hex }, in check_mpz() 117 { "ff", -1, "255", ios::hex }, in check_mpz() 118 { "FF", -1, "255", ios::hex }, in check_mpz() 119 { "-123", -1, "-291", ios::hex }, in check_mpz() 120 { "-ff", -1, "-255", ios::hex }, in check_mpz() 121 { "-FF", -1, "-255", ios::hex }, in check_mpz() 122 { "+123", -1, "291", ios::hex }, in check_mpz() 123 { "+ff", -1, "255", ios::hex }, in check_mpz() [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/util/ |
| H A D | hex_code.c | 139 unsigned int hex; in hex_decode_opt() local 146 hex = cp[0]; in hex_decode_opt() 147 if (hex >= '0' && hex <= '9') in hex_decode_opt() 148 bin = (hex - '0') << 4; in hex_decode_opt() 149 else if (hex >= 'A' && hex <= 'F') in hex_decode_opt() 150 bin = (hex - 'A' + 10) << 4; in hex_decode_opt() 151 else if (hex >= 'a' && hex <= 'f') in hex_decode_opt() 152 bin = (hex - 'a' + 10) << 4; in hex_decode_opt() 155 hex = cp[1]; in hex_decode_opt() 156 if (hex >= '0' && hex <= '9') in hex_decode_opt() [all …]
|
| H A D | hex_quote.c | 65 VSTRING *hex_quote(VSTRING *hex, const char *raw) in hex_quote() argument 70 VSTRING_RESET(hex); in hex_quote() 73 VSTRING_ADDCH(hex, ch); in hex_quote() 75 vstring_sprintf_append(hex, "%%%02X", ch); in hex_quote() 78 VSTRING_TERMINATE(hex); in hex_quote() 79 return (hex); in hex_quote() 84 VSTRING *hex_unquote(VSTRING *raw, const char *hex) in hex_unquote() argument 90 for (cp = hex; (ch = *cp) != 0; cp++) { in hex_unquote() 137 VSTRING *hex = vstring_alloc(100); in main() local 141 hex_quote(hex, STR(raw)); in main() [all …]
|
| /netbsd-src/sys/external/isc/libsodium/dist/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 | 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() 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 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 | 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 26 sodium_bin2hex(hex, sizeof hex, subkey, crypto_kdf_BYTES_MAX); in tv_kdf() 27 printf("%s\n", hex); in tv_kdf() 35 sodium_bin2hex(hex, sizeof hex, subkey, (size_t) i); in tv_kdf() 36 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()
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/asn1/ |
| H A D | README.template | 38 __TEXT __DATA __OBJC others dec hex 43 __TEXT __DATA __OBJC others dec hex 48 __TEXT __DATA __OBJC others dec hex 53 __TEXT __DATA __OBJC others dec hex 71 __TEXT __DATA __OBJC others dec hex 88 __TEXT __DATA __OBJC others dec hex 93 __TEXT __DATA __OBJC others dec hex 98 __TEXT __DATA __OBJC others dec hex 102 __TEXT __DATA __OBJC others dec hex 111 __TEXT __DATA __OBJC others dec hex [all …]
|
| /netbsd-src/external/gpl2/dtc/dist/tests/ |
| H A D | base01.dts | 17 d10 = < 10>; // hex: 0xa 18 d23 = < 23>; // hex: 0x17 19 b101 = < 0x5>; // hex: 0x5 20 o17 = < 017>; // hex: 0xf 21 hd00d = < 0xd00d>; // hex: 0xd00d 23 // hex: 0x4d2 0x163e 0x2334 0xd80
|
| /netbsd-src/external/bsd/libbind/dist/isc/ |
| H A D | hex.c | 27 static const char hex[17] = "0123456789abcdef"; variable 65 if ((s = strchr(hex, tolower(c))) == NULL) in isc_gethexstring() 67 x = (x<<4) | (s - hex); in isc_gethexstring() 97 fputc(hex[(buf[0]>>4)&0xf], fp); in isc_puthexstring() 98 fputc(hex[buf[0]&0xf], fp); in isc_puthexstring() 113 *t++ = hex[(buf[0]>>4)&0xf]; in isc_tohex() 114 *t++ = hex[buf[0]&0xf]; in isc_tohex()
|
| /netbsd-src/external/mpl/dhcp/dist/keama/tests/ |
| H A D | subclassguard6.out | 31 "test": "option[1251].hex == 0x0001" 40 "test": "(option[1251].hex == 0x0001) and (option[1250].hex == 'system1')" 57 "test": "(option[1251].hex == 0x0001) and (option[1250].hex == 'system2')" 80 "test": "(option[1251].hex == 0x0001) and (option[1250].hex == 'system3')"
|
| H A D | subclassguard4.out | 31 "test": "option[251].hex == 0x0001" 40 "test": "(option[251].hex == 0x0001) and (option[250].hex == 'system1')" 57 "test": "(option[251].hex == 0x0001) and (option[250].hex == 'system2')" 75 "test": "(option[251].hex == 0x0001) and (option[250].hex == 'system3')"
|
| /netbsd-src/external/gpl3/binutils.old/dist/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() 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 …]
|
| /netbsd-src/external/gpl3/gdb/dist/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() 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 …]
|
| /netbsd-src/external/gpl3/gdb.old/dist/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() 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 …]
|
| /netbsd-src/external/gpl3/binutils/dist/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() 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 …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/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()
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/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()
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/digest/ |
| H A D | hmac.d | 328 alias hex = toHexString!(LetterCase.lower); 331 assert(hex(hmac!MD5 (nada, nada)) == "74e6f7298a9c2d168935f58c001bad88"); 332 assert(hex(hmac!SHA1 (nada, nada)) == "fbdb1d1b18aa6c08324b7d64b71fb76370690e1d"); 333 …assert(hex(hmac!SHA256(nada, nada)) == "b613679a0814d9ec772f95d778c35fc5ff1697c493715653c6c7121442… 343 assert(hex(data.hmac!MD5 (key)) == "80070713463e7749b90c2dc24911e275"); 344 assert(hex(data.hmac!SHA1 (key)) == "de7c9b85b8b78aa6bc8a7a36f70a90701c9db4d9"); 345 …assert(hex(data.hmac!SHA256(key)) == "f7bc83f430538424b13298e6aa6fb143ef4d59a14946175997479dbc2d1a… 347 assert(hex(data.hmac!MD5 (long_key)) == "e1728d68e05beae186ea768561963778"); 348 assert(hex(data.hmac!SHA1 (long_key)) == "560d3cd77316e57ab4bba0c186966200d2b37ba3"); 349 …assert(hex(data.hmac!SHA256(long_key)) == "a1b0065a5d1edd93152c677e1bc1b1e3bc70d3a76619842e7f733f0…
|