Skip to content

Commit

Permalink
changed base ot to use fewer rounds
Browse files Browse the repository at this point in the history
  • Loading branch information
ladnir committed Jan 23, 2024
1 parent 9390125 commit 17e21f2
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
"ENABLE_BOOST": true,
"ENABLE_BITPOLYMUL": false,
"ENABLE_CIRCUITS": true,
"ENABLE_SIMPLESTOT": true,
"ENABLE_MRR": true,
"ENABLE_MR": true,
"ENABLE_SIMPLESTOT": true,
"ENABLE_RELIC": true,
"LIBOTE_STD_VER": "17",
"CMAKE_PREFIX_PATH": "${sourceDir}/../out/install",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}"
Expand Down
11 changes: 10 additions & 1 deletion libOTe/Vole/Silent/SilentVoleReceiver.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,17 @@ namespace osuCrypto
{
#ifdef LIBOTE_HAS_BASE_OT

#if defined ENABLE_MRR_TWIST && defined ENABLE_SSE
using BaseOT = McRosRoyTwist;
#elif defined ENABLE_MR
using BaseOT = MasnyRindal;
#elif defined ENABLE_MRR
using BaseOT = McRosRoy;
#elif defined ENABLE_NP_KYBER
using BaseOT = MasnyRindalKyber;
#else
using BaseOT = DefaultBaseOT;

#endif

MC_BEGIN(task<>, this, &prng, &chl,
choice = BitVector{},
Expand Down
11 changes: 11 additions & 0 deletions libOTe/Vole/Silent/SilentVoleSender.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,18 @@ namespace osuCrypto
task<> genSilentBaseOts(PRNG& prng, Socket& chl, F delta)
{
#ifdef LIBOTE_HAS_BASE_OT

#if defined ENABLE_MRR_TWIST && defined ENABLE_SSE
using BaseOT = McRosRoyTwist;
#elif defined ENABLE_MR
using BaseOT = MasnyRindal;
#elif defined ENABLE_MRR
using BaseOT = McRosRoy;
#elif defined ENABLE_NP_KYBER
using BaseOT = MasnyRindalKyber;
#else
using BaseOT = DefaultBaseOT;
#endif

MC_BEGIN(task<>, this, delta, &prng, &chl,
msg = AlignedUnVector<std::array<block, 2>>(silentBaseOtCount()),
Expand Down

0 comments on commit 17e21f2

Please sign in to comment.