瀏覽代碼

Secret Key Dist enums

Rener Oliveira (Ubuntu WSL) 2 年之前
父節點
當前提交
3f89e28d2c
共有 1 個文件被更改,包括 8 次插入0 次删除
  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;