Skip to content

Commit

Permalink
warning fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ladnir committed Jun 13, 2024
1 parent 9f38f90 commit 8b4e0bf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cryptoTools
22 changes: 20 additions & 2 deletions libOTe_Tests/Vole_Tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,15 +323,33 @@ void Vole_Silent_Rounds_test(const oc::CLP& cmd)
#elif defined ENABLE_SIMPLESTOT
u64 expRound = 5;
#elif defined ENABLE_MOCK_OT
using DefaultBaseOT = INSECURE_MOCK_OT;
u64 expRound = 3;
#else
u64 expRound = 5;
#endif

auto rounds = eval(p0, p1, chls[1], chls[0]);
if (rounds != expRound)
throw std::runtime_error(std::to_string(rounds) + "!=" + std::to_string(expRound) + ". " + COPROTO_LOCATION);
{
#ifdef ENABLE_SIMPLESTOT_ASM
std::cout << "using DefaultBaseOT = AsmSimplestOT;" << std::endl;
#elif defined ENABLE_MRR_TWIST && defined ENABLE_SSE
std::cout << "using DefaultBaseOT = McRosRoyTwist;" << std::endl;
#elif defined ENABLE_MR
std::cout << "using DefaultBaseOT = MasnyRindal;" << std::endl;
#elif defined ENABLE_MRR
std::cout << "using DefaultBaseOT = McRosRoy;" << std::endl;
#elif defined ENABLE_NP_KYBER
std::cout << "using DefaultBaseOT = MasnyRindalKyber;" << std::endl;
#elif defined ENABLE_SIMPLESTOT
std::cout << "using DefaultBaseOT = SimplestOT;" << std::endl;
#elif defined ENABLE_MOCK_OT
std::cout << "using DefaultBaseOT = INSECURE_MOCK_OT;" << std::endl;
#else
std::cout << " LIBOTE_HAS_BASE_OT" << std::endl;
#endif
throw std::runtime_error("act " + std::to_string(rounds) + "!= exp " + std::to_string(expRound) + " " + COPROTO_LOCATION);
}


for (u64 i = 0; i < n; ++i)
Expand Down

0 comments on commit 8b4e0bf

Please sign in to comment.