ftu/debugprint.h

14 lines
689 B
C
Raw Permalink Normal View History

2022-09-09 06:47:49 +00:00
#ifndef __DEBUGPRINT_H_
#define __DEBUGPRINT_H_
#include "blst/bindings/blst.h"
2022-09-09 06:47:49 +00:00
// Uncomment the line below to enable debug prints (including private keys!) - use for development only, this is insecure
#define INSECURE_CTM_DEBUG_PRINT
void print_bytes(const char* label, void *toprint, int length, char separator);
void debug_print_bytes(__attribute__((unused)) const char* label, __attribute__((unused)) void *toprint, __attribute__((unused)) int length);
2022-09-09 06:47:49 +00:00
void print_scalar(const char* label, blst_scalar *toprint);
void debug_print_scalar(__attribute__((unused)) const char* label, __attribute__((unused)) blst_scalar *toprint);
void print_base64(void *toprint, int input_len);
2022-09-09 06:47:49 +00:00
#endif