Skip to content

Commit 7bc156e

Browse files
committed
Fixed security bug: missing shuffling check in PS mod 2^k and Brain.
1 parent 5c26fee commit 7bc156e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Protocols/BrainShare.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class BrainShare : public Rep3Share<SignedZ2<K>>
3939
const static int Z_BITS = 2 * (N_MASK_BITS) + 5 + S;
4040

4141
static const bool has_trunc_pr = false;
42+
static const bool malicious = true;
4243

4344
BrainShare()
4445
{

Protocols/PostSacriRepRingShare.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class PostSacriRepRingShare : public Rep3Share2<K>
2525
static const int SECURITY = S;
2626

2727
static const bool has_trunc_pr = false;
28+
static const bool malicious = true;
2829

2930
typedef SignedZ2<K> clear;
3031
typedef MaliciousRep3Share<Z2<K + S>> prep_type;

0 commit comments

Comments
 (0)