Forráskód Böngészése

parameters for bootstrapping example

Rener Oliveira (Ubuntu WSL) 1 éve
szülő
commit
d38afb4f69
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      src/bindings.cpp

+ 3 - 1
src/bindings.cpp

@@ -44,6 +44,9 @@ void bind_parameters(py::module &m)
         .def("SetFirstModSize", &CCParams<CryptoContextCKKSRNS>::SetFirstModSize)
         .def("SetDigitSize", &CCParams<CryptoContextCKKSRNS>::SetDigitSize)
         .def("SetSecretKeyDist", &CCParams<CryptoContextCKKSRNS>::SetSecretKeyDist)
+        .def("SetSecurityLevel", &CCParams<CryptoContextCKKSRNS>::SetSecurityLevel)
+        .def("SetRingDim", &CCParams<CryptoContextCKKSRNS>::SetRingDim)
+        .def("SetScalingModSize", &CCParams<CryptoContextCKKSRNS>::SetScalingModSize)
 
         // getters
         .def("GetPlaintextModulus", &CCParams<CryptoContextCKKSRNS>::GetPlaintextModulus)
@@ -190,7 +193,6 @@ void bind_enums_and_constants(py::module &m)
         .value("HEStd_256_classic", SecurityLevel::HEStd_256_classic)
         .value("HEStd_NotSet", SecurityLevel::HEStd_NotSet);
 
-
     
     //Parameters Type
     /*TODO (Oliveira): If we expose Poly's and ParmType, this block will go somewhere else */