Skip to content

Commit

Permalink
Fixed security bug: missing shuffling check in PS mod 2^k and Brain.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkskeller committed Aug 11, 2023
1 parent 5c26fee commit 7bc156e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Protocols/BrainShare.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class BrainShare : public Rep3Share<SignedZ2<K>>
const static int Z_BITS = 2 * (N_MASK_BITS) + 5 + S;

static const bool has_trunc_pr = false;
static const bool malicious = true;

BrainShare()
{
Expand Down
1 change: 1 addition & 0 deletions Protocols/PostSacriRepRingShare.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class PostSacriRepRingShare : public Rep3Share2<K>
static const int SECURITY = S;

static const bool has_trunc_pr = false;
static const bool malicious = true;

typedef SignedZ2<K> clear;
typedef MaliciousRep3Share<Z2<K + S>> prep_type;
Expand Down

0 comments on commit 7bc156e

Please sign in to comment.