Files
MP-SPDZ/BMR/Key.cpp
Marcel Keller 4ef6b6d873 Maintenance.
2020-05-08 21:43:05 +10:00

26 lines
327 B
C++

/*
* Key.cpp
*
*/
#include <string.h>
#include "Key.h"
ostream& operator<<(ostream& o, const Key& key)
{
return o << key.r;
}
ostream& operator<<(ostream& o, const __m128i& x) {
o.fill('0');
o << hex << noshowbase;
for (int i = 0; i < 2; i++)
{
o.width(16);
o << ((int64_t*)&x)[1-i];
}
o << dec;
return o;
}