| 873 | } |
| 874 | |
| 875 | static void pt_hex(const unsigned char digest[32], char out[65]) { |
| 876 | static const char digits[] = "0123456789abcdef"; |
| 877 | for (size_t i = 0; i < 32; i++) { |
| 878 | out[2 * i] = digits[digest[i] >> 4]; |
| 879 | out[2 * i + 1] = digits[digest[i] & 15]; |
| 880 | } |
| 881 | out[64] = 0; |
| 882 | } |
| 883 | |
| 884 | static bool pt_golden_control(void) { |
| 885 | cbm_git_facts_identity_t id = { |