Browse Source

Fixing cryptocontext serialize/deserialize specialization issue

Hovsep Papoyan 1 year ago
parent
commit
211b5d9bdd
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/bindings.cc

+ 5 - 0
src/bindings.cc

@@ -2,6 +2,11 @@
 
 #include "openfhe/pke/gen-cryptocontext.h"
 
+// This inclusion is required for SerializeCryptoContextToFile
+// and DeserializeCryptoContextFromFile functions for calling
+// specialized versions of the corresponding functions.
+#include "openfhe/pke/cryptocontext-ser.h"
+
 namespace openfhe
 {
 PublicKeyDCRTPoly::PublicKeyDCRTPoly()