Pārlūkot izejas kodu

Secret Key Dist enums

Rener Oliveira (Ubuntu WSL) 2 gadi atpakaļ
vecāks
revīzija
3f89e28d2c
1 mainītis faili ar 8 papildinājumiem un 0 dzēšanām
  1. 8 0
      src/bindings.cpp

+ 8 - 0
src/bindings.cpp

@@ -173,6 +173,14 @@ void bind_enums_and_constants(py::module &m)
         .value("INVALID_KS_TECH", KeySwitchTechnique::INVALID_KS_TECH)
         .value("BV", KeySwitchTechnique::BV)
         .value("HYBRID", KeySwitchTechnique::HYBRID);
+    // Secret Key Dist
+    py::enum_<SecretKeyDist>(m, "SecretKeyDist")
+        .value("GAUSSIAN", SecretKeyDist::GAUSSIAN)
+        .value("UNIFORM_TERNARY", SecretKeyDist::UNIFORM_TERNARY)
+        .value("SPARCE_TERNARY", SecretKeyDist::SPARCE_TERNARY);
+
+
+
 
     //Parameters Type
     using ParmType = typename DCRTPoly::Params;