Skip to content

Commit c9bedf5

Browse files
author
Shai Halevi
committed
removed 'protected' context, should be private
1 parent bff976b commit c9bedf5

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/FHE.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ void readSecKeyBinary(istream& str, FHESecKey& sk)
925925
// N.B. This does not read the public key part as the ASCII version does!!!
926926
#error This is a bug, needs to read also the public key part
927927

928-
DoubleCRT blankDCRT(sk.context, IndexSet::emptySet());
928+
DoubleCRT blankDCRT(sk.getContext(), IndexSet::emptySet());
929929
read_raw_vector<DoubleCRT>(str, sk.sKeys, blankDCRT);
930930

931931
readEyeCatcher(str, BINIO_EYE_SK_END);

src/FHE.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@ ostream& operator<<(ostream& str, const KeySwitch& matrix);
137137
* @brief The public key
138138
********************************************************************/
139139
class FHEPubKey { // The public key
140-
141-
protected:
142-
143140
const FHEcontext& context; // The context
144141

145142
private:

0 commit comments

Comments
 (0)