Skip to content

Commit cd2799c

Browse files
committed
Raz extractor
1 parent 8d140d7 commit cd2799c

6 files changed

Lines changed: 526 additions & 9 deletions

File tree

cryptomite/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ include(GNUInstallDirs)
33
include(FetchContent)
44
FetchContent_Declare(
55
pybind11
6-
URL https://github.com/pybind/pybind11/archive/refs/tags/v2.10.4.tar.gz
6+
URL https://github.com/pybind/pybind11/archive/refs/tags/v2.13.6.tar.gz
77
)
88
FetchContent_MakeAvailable(pybind11)
99
pybind11_add_module(_cryptomite MODULE pycryptomite.cpp)

cryptomite/pycryptomite.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ PYBIND11_MODULE(_cryptomite, m) {
2828

2929
py::class_<NTT>(m, "NTT")
3030
.def(py::init<int>())
31-
.def("ntt", &NTT::ntt)
31+
.def("ntt", &NTT::ntt, py::arg("x"), py::arg("inverse"), py::arg("plusone") = false)
3232
.def("mul_vec", &NTT::mul_vec)
33-
.def("conv", &NTT::conv);
33+
.def("conv", &NTT::conv)
34+
.def("conv_and_reduce", &NTT::conv_and_reduce)
35+
.def("raz_iteration", &NTT::raz_iteration);
3436

3537
py::class_<BigNTT>(m, "BigNTT")
3638
.def(py::init<int>())

0 commit comments

Comments
 (0)