Skip to content

Commit 2b4a42b

Browse files
committed
Update encrypt_symmetric
1 parent 257bcf7 commit 2b4a42b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/wrapper.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,12 @@ PYBIND11_MODULE(seal, m)
412412
Ciphertext encrypted;
413413
encryptor.encrypt(plain, encrypted);
414414
return encrypted;
415+
})
416+
.def("encrypt_symmetric", [](const Encryptor &encryptor, const Plaintext &plain){
417+
Ciphertext encrypted;
418+
encryptor.encrypt_symmetric(plain, encrypted);
419+
return encrypted;
415420
});
416-
// symmetric
417421

418422
// evaluator.h
419423
py::class_<Evaluator>(m, "Evaluator")

0 commit comments

Comments
 (0)