ftu/debugprint.h

14 lines
680 B
C

#ifndef __DEBUGPRINT_H_
#define __DEBUGPRINT_H_
#include "blst/blst.h"
// 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);
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);
#endif