Files
MP-SPDZ/Tools/pprint.h
Marcel Keller 2008a8782d Overdrive.
2018-03-02 14:33:03 +00:00

16 lines
346 B
C++

// (C) 2018 University of Bristol. See License.txt
#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;
}