Skip to content

Commit

Permalink
warning and blake update
Browse files Browse the repository at this point in the history
  • Loading branch information
ladnir committed Apr 29, 2024
1 parent 894ddce commit 7d9c84b
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 12 deletions.
2 changes: 1 addition & 1 deletion frontend/benchmark.h
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ namespace osuCrypto
for (u64 t = 0; t < trials; ++t)
{
auto p1 = recver.silentReceiveInplace(n, prng1, sock[1]);
char c;
char c=0;
coproto::sync_wait(sock[1].send(std::move(c)));
coproto::sync_wait(sock[1].recv(c));

Expand Down
3 changes: 2 additions & 1 deletion libOTe/Tools/EACode/EAChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ namespace osuCrypto

if (d < minDis)
{
ii = { { i } };
ii.clear();
ii.push_back( i );
for (u64 j = 0; j < ss.size() - 1; ++j)
{
if (jj & (1ull << j))
Expand Down
2 changes: 1 addition & 1 deletion libOTe/Tools/Pprf/RegularPprf.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ namespace osuCrypto

pprf::validateExpandFormat(oFormat, output, mDomain, mPntCount);

auto tree = span<AlignedArray<block, 8>>{};
//auto tree = span<AlignedArray<block, 8>>{};
auto levels = std::vector<span<AlignedArray<block, 8>> >{};
auto leafIndex = u64{};
auto leafLevelPtr = (VecF*)nullptr;
Expand Down
2 changes: 2 additions & 0 deletions libOTe/TwoChooseOne/Iknp/IknpOtExtReceiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,13 @@ namespace osuCrypto
}
}
#else
std::cout << LOCATION << std::endl;
mAesFixedKey.hashBlocks(messages.data(), messages.size(), messages.data());
#endif

}
static_assert(gOtExtBaseOtCount == 128, "expecting 128");
std::cout << LOCATION << std::endl;
}

}
Expand Down
4 changes: 4 additions & 0 deletions libOTe/TwoChooseOne/Iknp/IknpOtExtSender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,14 @@ namespace osuCrypto
}
}
#else
std::cout << LOCATION << std::endl;

mAesFixedKey.hashBlocks((block*)messages.data(), messages.size() * 2, (block*)messages.data());
}
#endif

std::cout << LOCATION << std::endl;

static_assert(gOtExtBaseOtCount == 128, "expecting 128");
}

Expand Down
2 changes: 1 addition & 1 deletion libOTe/Vole/Noisy/NoisyVoleReceiver.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ namespace osuCrypto {
auto buff = std::vector<u8>{};
auto msg = VecF{};
auto temp = VecF{};
auto prng = std::move(PRNG{});
auto prng = PRNG{};

if (c.size() != a.size())
throw RTE_LOC;
Expand Down
2 changes: 1 addition & 1 deletion libOTe/Vole/Silent/SilentVoleReceiver.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ namespace osuCrypto
auto baseVole = std::vector<block>{};
auto baseOt = BaseOT{};
auto chl2 = Socket{};
auto prng2 = std::move(PRNG{});
auto prng2 = PRNG{};
auto noiseVals = VecG{};
auto baseAs = VecF{};
auto nv = NoisyVoleReceiver<F, G, Ctx>{};
Expand Down
2 changes: 1 addition & 1 deletion libOTe/Vole/Silent/SilentVoleSender.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ namespace osuCrypto

auto msg = AlignedUnVector<std::array<block, 2>>(silentBaseOtCount());
auto baseOt = BaseOT{};
auto prng2 = std::move(PRNG{});
auto prng2 = PRNG{};
auto xx = BitVector{};
auto chl2 = Socket{};
auto nv = NoisyVoleSender<F, G, Ctx>{};
Expand Down
10 changes: 5 additions & 5 deletions libOTe_Tests/ExConvCode_Tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,11 +456,11 @@ namespace osuCrypto

for (u64 i = 0; i < k; ++i)
{
u64 w = 0;
for (u64 j = 0; j < k; ++j)
{
w += g(i, j);
}
//u64 w = 0;
//for (u64 j = 0; j < k; ++j)
//{
// w += g(i, j);
//}
//if (w < k / 2.2)
{
//std::cout << i << " " << w << std::endl;
Expand Down

0 comments on commit 7d9c84b

Please sign in to comment.