Files
MP-SPDZ/Tools/pprint.h
2025-08-21 19:13:13 +10:00

19 lines
376 B
C++

#ifndef TOOLS_PPRINT_H_
#define TOOLS_PPRINT_H_
#include <iostream>
#include <iomanip>
using namespace std;
inline void pprint_bytes(const char* label, unsigned char* bytes, int len,
ostream& out = cout)
{
out << label << ": ";
for (int j = 0; j < len; j++)
out << setfill('0') << setw(2) << hex << (int) bytes[j];
out << dec << endl;
}
#endif