mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-12 15:08:06 -05:00
19 lines
376 B
C++
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
|