Lines Matching refs:hex
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()
43 if (sodium_hex2bin(buf1, 4U, hex, 12U, ":", &bin_len, &hex_end) != -1) { in main()
48 printf("dt3: %ld\n", (long) (hex_end - hex)); in main()
50 hex = "de:ad:be:eff"; in main()
51 if (sodium_hex2bin(buf1, sizeof buf1, hex, 12U, ":", in main()
55 printf("dt4: %ld\n", (long) (hex_end - hex)); in main()
57 hex = "de:ad:be:eff"; in main()
58 if (sodium_hex2bin(buf1, sizeof buf1, hex, 13U, ":", in main()
62 printf("dt5: %ld\n", (long) (hex_end - hex)); in main()
64 hex = "de:ad:be:eff"; in main()
65 if (sodium_hex2bin(buf1, sizeof buf1, hex, 12U, ":", in main()
70 hex = "de:ad:be:ef*"; in main()
71 if (sodium_hex2bin(buf1, sizeof buf1, hex, 12U, ":", in main()
75 printf("dt6: %ld\n", (long) (hex_end - hex)); in main()
77 hex = "de:ad:be:ef*"; in main()
78 if (sodium_hex2bin(buf1, sizeof buf1, hex, 12U, ":", in main()