ソースを参照

CERAL_REGISTER bugfix

Rener Oliveira (Ubuntu WSL) 2 年 前
コミット
9eb3ea68df
2 ファイル変更1 行追加1 行削除
  1. 0 1
      src/pke/examples/simple-integers-serial.py
  2. 1 0
      src/pke/serialization.cpp

+ 0 - 1
src/pke/examples/simple-integers-serial.py

@@ -17,7 +17,6 @@ cryptoContext.Enable(PKESchemeFeature.PKE)
 cryptoContext.Enable(PKESchemeFeature.KEYSWITCH)
 cryptoContext.Enable(PKESchemeFeature.LEVELEDSHE)
 
-## Not working yet
 if not SerializeToFile(datafolder + "/cryptocontext.txt", cryptoContext, 'binary'):
    raise Exception("Error writing serialization of the crypto context to cryptocontext.txt")
 

+ 1 - 0
src/pke/serialization.cpp

@@ -1,6 +1,7 @@
 #include <pybind11/pybind11.h>
 #include <pybind11/stl.h>
 #include <openfhe/pke/openfhe.h>
+#include <openfhe/pke/scheme/bfvrns/bfvrns-ser.h>
 #include "bindings.h"
 #include "serialization.h"