Files
MP-SPDZ/Tools/pprint.h
Marcel Keller cc0711c224 MP-SPDZ.
2018-10-11 17:20:26 +11:00

14 lines
294 B
C++

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