Skip to content

Commit 1d72b98

Browse files
committed
mac ci debug
1 parent 1568af3 commit 1d72b98

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

frontend/main.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,19 @@
1616
#include "benchmark.h"
1717

1818
#include "ExampleBase.h"
19-
#include "benchmark.h"
2019
#include "ExampleTwoChooseOne.h"
2120
#include "ExampleNChooseOne.h"
2221
#include "ExampleSilent.h"
2322
#include "ExampleVole.h"
2423
#include "ExampleMessagePassing.h"
2524
#include "libOTe/Tools/LDPC/Util.h"
26-
#include "cryptoTools/Crypto/RandomOracle.h"
2725
#include "libOTe/Tools/EACode/EAChecker.h"
2826
#include "libOTe/Tools/ExConvCode/ExConvChecker.h"
2927

3028
#include "libOTe/TwoChooseOne/Iknp/IknpOtExtSender.h"
3129
#include "libOTe/TwoChooseOne/Iknp/IknpOtExtReceiver.h"
3230

31+
3332
using namespace osuCrypto;
3433
#ifdef ENABLE_IKNP
3534
void minimal()

libOTe/Dpf/RegularDpf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ namespace osuCrypto
715715
auto seed = seeds[p][a];
716716
auto temp = mAesFixedKey.ecbEncBlock(seed);
717717
seeds[p][0] = AES::roundEnc(temp, seed);
718-
seeds[p][1] = temp + seed;
718+
seeds[p][1] = temp.add_epi64(seed);
719719
}
720720
}
721721
}

libOTe/Tools/Tools.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ namespace osuCrypto {
691691
auto out0 = outStart + (chunkSize * subBlockHight + hh) * 8 * out.stride() + w * 2;
692692

693693
out0 -= out.stride() * skip;
694-
t.blks[0] = (t.blks[0] << int(skip));
694+
t.blks[0] = t.blks[0].slli_epi64(skip);
695695

696696
for (int j = 0; j < rem; j++)
697697
{

libOTe_Tests/RegularDpf_Tests.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,10 @@ void RegularDpf_Puncture_Test(const oc::CLP& cmd)
258258

259259
if (t == 1 && act == ZeroBlock)
260260
throw RTE_LOC;
261+
if (t)
262+
{
263+
std::cout << act <<" " << output[0][k][i]<<" ^ "<<output[1][k][i] << std::endl;
264+
}
261265

262266
if (t != tAct)
263267
throw RTE_LOC;

0 commit comments

Comments
 (0)