@@ -196,7 +196,7 @@ namespace osuCrypto
196
196
bb.randomize (prng);
197
197
choice.append (bb);
198
198
199
- co_await ( mOtExtRecver ->receive (choice, msg, prng, chl) );
199
+ co_await mOtExtRecver ->receive (choice, msg, prng, chl);
200
200
201
201
mOtExtSender ->setBaseOts (
202
202
span<block>(msg).subspan (
@@ -205,18 +205,18 @@ namespace osuCrypto
205
205
bb);
206
206
207
207
msg.resize (msg.size () - mOtExtSender ->baseOtCount ());
208
- co_await ( nv.receive (noiseVals, baseAs, prng, *mOtExtSender , chl, mCtx ) );
208
+ co_await nv.receive (noiseVals, baseAs, prng, *mOtExtSender , chl, mCtx );
209
209
}
210
210
else
211
211
{
212
212
auto chl2 = chl.fork ();
213
213
auto prng2 = prng.fork ();
214
214
215
- co_await (
215
+ co_await
216
216
macoro::when_all_ready (
217
217
nv.receive (noiseVals, baseAs, prng2, *mOtExtSender , chl2, mCtx ),
218
218
mOtExtRecver ->receive (choice, msg, prng, chl)
219
- )) ;
219
+ );
220
220
}
221
221
#else
222
222
throw std::runtime_error (" soft spoken must be enabled" );
@@ -228,11 +228,11 @@ namespace osuCrypto
228
228
auto prng2 = prng.fork ();
229
229
BaseOT baseOt;
230
230
231
- co_await (
231
+ co_await
232
232
macoro::when_all_ready (
233
233
baseOt.receive (choice, msg, prng, chl),
234
234
nv.receive (noiseVals, baseAs, prng2, baseOt, chl2, mCtx ))
235
- ) ;
235
+ ;
236
236
237
237
}
238
238
@@ -400,7 +400,7 @@ namespace osuCrypto
400
400
if (c.size () != a.size ())
401
401
throw std::runtime_error (" input sizes do not match." LOCATION);
402
402
403
- co_await ( silentReceiveInplace (c.size (), prng, chl) );
403
+ co_await silentReceiveInplace (c.size (), prng, chl);
404
404
405
405
mCtx .copy (mC .begin (), mC .begin () + c.size (), c.begin ());
406
406
mCtx .copy (mA .begin (), mA .begin () + a.size (), a.begin ());
@@ -437,7 +437,7 @@ namespace osuCrypto
437
437
438
438
if (hasSilentBaseOts () == false )
439
439
{
440
- co_await ( genSilentBaseOts (prng, chl) );
440
+ co_await genSilentBaseOts (prng, chl);
441
441
}
442
442
443
443
// allocate mA
@@ -473,7 +473,7 @@ namespace osuCrypto
473
473
//
474
474
// mA = mB + mS(mBaseC * mDelta)
475
475
//
476
- co_await ( mGen .expand (chl, mA , PprfOutputFormat::Interleaved, true , mNumThreads ) );
476
+ co_await mGen .expand (chl, mA , PprfOutputFormat::Interleaved, true , mNumThreads );
477
477
478
478
setTimePoint (" SilentVoleReceiver.expand.pprf_transpose" );
479
479
@@ -488,22 +488,22 @@ namespace osuCrypto
488
488
489
489
if (mDebug )
490
490
{
491
- co_await ( checkRT (chl) );
491
+ co_await checkRT (chl);
492
492
setTimePoint (" SilentVoleReceiver.expand.checkRT" );
493
493
}
494
494
495
495
496
496
if (mMalType == SilentSecType::Malicious)
497
497
{
498
- co_await ( chl.send (std::move (mMalCheckSeed ) ));
498
+ co_await chl.send (std::move (mMalCheckSeed ));
499
499
500
500
if constexpr (MaliciousSupported)
501
501
myHash = ferretMalCheck ();
502
502
else {
503
503
throw std::runtime_error (" malicious is currently only supported for GF128 block. " LOCATION);
504
504
}
505
505
506
- co_await ( chl.recv (theirHash) );
506
+ co_await chl.recv (theirHash);
507
507
508
508
if (theirHash != myHash)
509
509
{
@@ -601,19 +601,19 @@ namespace osuCrypto
601
601
// recv delta
602
602
buffer.resize (mCtx .template byteSize <F>());
603
603
mCtx .resize (delta, 1 );
604
- co_await ( chl.recv (buffer) );
604
+ co_await chl.recv (buffer);
605
605
mCtx .deserialize (buffer.begin (), buffer.end (), delta.begin ());
606
606
607
607
// recv B
608
608
buffer.resize (mCtx .template byteSize <F>() * mA .size ());
609
609
mCtx .resize (B, mA .size ());
610
- co_await ( chl.recv (buffer) );
610
+ co_await chl.recv (buffer);
611
611
mCtx .deserialize (buffer.begin (), buffer.end (), B.begin ());
612
612
613
613
// recv the noisy values.
614
614
buffer.resize (mCtx .template byteSize <F>() * mBaseA .size ());
615
615
mCtx .resize (baseB, mBaseA .size ());
616
- co_await ( chl.recvResize (buffer) );
616
+ co_await chl.recvResize (buffer);
617
617
mCtx .deserialize (buffer.begin (), buffer.end (), baseB.begin ());
618
618
619
619
// it shoudl hold that
0 commit comments