Commit 1d72b98 1 parent 1568af3 commit 1d72b98 Copy full SHA for 1d72b98
File tree 4 files changed +7
-4
lines changed
4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 16
16
#include " benchmark.h"
17
17
18
18
#include " ExampleBase.h"
19
- #include " benchmark.h"
20
19
#include " ExampleTwoChooseOne.h"
21
20
#include " ExampleNChooseOne.h"
22
21
#include " ExampleSilent.h"
23
22
#include " ExampleVole.h"
24
23
#include " ExampleMessagePassing.h"
25
24
#include " libOTe/Tools/LDPC/Util.h"
26
- #include " cryptoTools/Crypto/RandomOracle.h"
27
25
#include " libOTe/Tools/EACode/EAChecker.h"
28
26
#include " libOTe/Tools/ExConvCode/ExConvChecker.h"
29
27
30
28
#include " libOTe/TwoChooseOne/Iknp/IknpOtExtSender.h"
31
29
#include " libOTe/TwoChooseOne/Iknp/IknpOtExtReceiver.h"
32
30
31
+
33
32
using namespace osuCrypto ;
34
33
#ifdef ENABLE_IKNP
35
34
void minimal ()
Original file line number Diff line number Diff line change @@ -715,7 +715,7 @@ namespace osuCrypto
715
715
auto seed = seeds[p][a];
716
716
auto temp = mAesFixedKey .ecbEncBlock (seed);
717
717
seeds[p][0 ] = AES::roundEnc (temp, seed);
718
- seeds[p][1 ] = temp + seed;
718
+ seeds[p][1 ] = temp. add_epi64 ( seed) ;
719
719
}
720
720
}
721
721
}
Original file line number Diff line number Diff line change @@ -691,7 +691,7 @@ namespace osuCrypto {
691
691
auto out0 = outStart + (chunkSize * subBlockHight + hh) * 8 * out.stride () + w * 2 ;
692
692
693
693
out0 -= out.stride () * skip;
694
- t.blks [0 ] = ( t.blks [0 ] << int (skip) );
694
+ t.blks [0 ] = t.blks [0 ]. slli_epi64 (skip);
695
695
696
696
for (int j = 0 ; j < rem; j++)
697
697
{
Original file line number Diff line number Diff line change @@ -258,6 +258,10 @@ void RegularDpf_Puncture_Test(const oc::CLP& cmd)
258
258
259
259
if (t == 1 && act == ZeroBlock)
260
260
throw RTE_LOC;
261
+ if (t)
262
+ {
263
+ std::cout << act <<" " << output[0 ][k][i]<<" ^ " <<output[1 ][k][i] << std::endl;
264
+ }
261
265
262
266
if (t != tAct)
263
267
throw RTE_LOC;
You can’t perform that action at this time.
0 commit comments