Home
last modified time | relevance | path

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

12

/f-stack/freebsd/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 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 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()
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()
/f-stack/dpdk/config/arm/
H A Darmv8_machine.py12 ident.append(hex((midr_el1 >> 24) & 0xFF)) # Implementer
13 ident.append(hex((midr_el1 >> 20) & 0xF)) # Variant
14 ident.append(hex((midr_el1 >> 16) & 0XF)) # Architecture
15 ident.append(hex((midr_el1 >> 4) & 0xFFF)) # Primary Part number
16 ident.append(hex(midr_el1 & 0xF)) # Revision
/f-stack/freebsd/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 …]
/f-stack/freebsd/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()
/f-stack/freebsd/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()
/f-stack/freebsd/sys/
H A Dlibkern.h77 hex2ascii(int hex) in hex2ascii() argument
80 KASSERT(hex >= 0 && hex < LIBKERN_LEN_HEX2ASCII, in hex2ascii()
81 ("invalid hex %d", hex)); in hex2ascii()
82 return (hex2ascii_data[hex]); in hex2ascii()
/f-stack/freebsd/contrib/device-tree/Bindings/leds/
H A Dleds-el15203000.txt9 Vending area LED encoded with symbol 'V' (hex code 0x56).
13 encoded with symbol 'S' (hex code 0x53). Supports blinking breathing pattern.
15 Water Pipe LED encoded with symbol 'P' (hex code 0x50) and
/f-stack/app/nginx-1.16.1/src/core/
H A Dngx_string.c191 hex = 0; in ngx_vslprintf()
215 hex = 2; in ngx_vslprintf()
221 hex = 1; in ngx_vslprintf()
426 hex = 2; in ngx_vslprintf()
504 static u_char hex[] = "0123456789abcdef"; in ngx_sprintf_num() local
545 *--p = hex[(uint32_t) (ui64 & 0xf)]; in ngx_sprintf_num()
1126 static u_char hex[] = "0123456789abcdef"; in ngx_hex_dump() local
1129 *dst++ = hex[*src >> 4]; in ngx_hex_dump()
1130 *dst++ = hex[*src++ & 0xf]; in ngx_hex_dump()
1595 *dst++ = hex[*src >> 4]; in ngx_escape_uri()
[all …]
/f-stack/freebsd/contrib/openzfs/cmd/zgenhostid/
H A Dzgenhostid.c99 const char *hex = "0123456789abcdefABCDEF"; in main() local
100 if (strlen(in_s) != 8 || strspn(in_s, hex) != 8) { in main()
/f-stack/freebsd/contrib/libsodium/src/libsodium/include/sodium/
H A Dutils.h58 char *sodium_bin2hex(char * const hex, const size_t hex_maxlen,
63 const char * const hex, const size_t hex_len,
/f-stack/app/redis-5.0.5/deps/lua/src/
H A Dlua_cjson.c739 static int hexdigit2int(char hex) in hexdigit2int() argument
741 if ('0' <= hex && hex <= '9') in hexdigit2int()
742 return hex - '0'; in hexdigit2int()
745 hex |= 0x20; in hexdigit2int()
746 if ('a' <= hex && hex <= 'f') in hexdigit2int()
747 return 10 + hex - 'a'; in hexdigit2int()
752 static int decode_hex4(const char *hex) in decode_hex4() argument
761 digit[i] = hexdigit2int(hex[i]); in decode_hex4()
/f-stack/freebsd/contrib/device-tree/Bindings/arm/altera/
H A Dsocfpga-system.txt6 - cpu1-start-addr : CPU1 start address in hex.
/f-stack/dpdk/usertools/
H A Ddpdk-pmdinfo.py65 devid = hex(devid)[2:]
104 subven = hex(subven)[2:]
105 subdev = hex(subdev)[2:]
174 vid = hex(vid)[2:]
/f-stack/dpdk/doc/guides/tools/
H A Dpmdinfo.rst24 -t, --table Output information on hw support as a hex table
/f-stack/app/redis-5.0.5/deps/lua/test/
H A DREADME25 xd.lua hex dump
/f-stack/freebsd/netgraph/
H A Dng_pptpgre.c366 const char *hex; in ng_pptpgre_newhook() local
375 hex = name + sizeof(NG_PPTPGRE_HOOK_SESSION_P) - 1; in ng_pptpgre_newhook()
377 for (j = 0; j < 16 && hex[i] != hexdig[j]; j++); in ng_pptpgre_newhook()
382 if (hex[i] != '\0') in ng_pptpgre_newhook()
H A Dng_l2tp.c407 const char *hex; in ng_l2tp_newhook() local
415 hex = name + sizeof(NG_L2TP_HOOK_SESSION_P) - 1; in ng_l2tp_newhook()
417 for (j = 0; j < 16 && hex[i] != hexdig[j]; j++); in ng_l2tp_newhook()
422 if (hex[i] != '\0') in ng_l2tp_newhook()
/f-stack/freebsd/contrib/openzfs/lib/libzfs/
H A Dlibzfs_crypto.c143 hex_key_to_raw(char *hex, int hexlen, uint8_t *out) in hex_key_to_raw() argument
149 if (!isxdigit(hex[i]) || !isxdigit(hex[i + 1])) { in hex_key_to_raw()
154 ret = sscanf(&hex[i], "%02x", &c); in hex_key_to_raw()
/f-stack/tools/libxo/doc/
H A Dfield-formatting.rst26 with '0x', typically to indicate a base 16 (hex) value.
63 x unsigned base 16 (hex)
64 X unsigned long base 16 (hex)

12