Skip to content

Commit

Permalink
Update cryptocontextimpl.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ArseniyKholod committed Aug 2, 2024
1 parent 1d21fd2 commit 1c03d62
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/cryptocontextimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,19 @@ void wrap_CryptoContextImpl(jlcxx::Module& mod) {
lbcrypto::ConstCiphertext<lbcrypto::DCRTPoly>) const>(&WrappedT::EvalSub));

wrapped.method("EvalMultKeyGen", &WrappedT::EvalMultKeyGen);
// static_cast is not applicable to static functions, so wrap overloaded static function
// using lambda expressions
// static_cast is not applicable to static functions, so wrap overloaded static function
// using lambda expressions
wrapped.method("ClearEvalMultKeys", [](){
return WrappedT::ClearEvalMultKeys();
});
wrapped.method("ClearEvalMultKeys", [](const lbcrypto::CryptoContext<lbcrypto::DCRTPoly> cc){
return WrappedT::ClearEvalMultKeys(cc);
});
wrapped.method("ClearEvalMultKeys", [](const std::string& id){
return WrappedT::ClearEvalMultKeys(id);
});

// EvalMult
return WrappedT::ClearEvalMultKeys();
});
wrapped.method("ClearEvalMultKeys", [](const lbcrypto::CryptoContext<lbcrypto::DCRTPoly> cc){
return WrappedT::ClearEvalMultKeys(cc);
});
wrapped.method("ClearEvalMultKeys", [](const std::string& id){
return WrappedT::ClearEvalMultKeys(id);
});

// EvalMult
// ConstCiphertext * ConstCiphertext
wrapped.method("EvalMult",
static_cast<lbcrypto::Ciphertext<lbcrypto::DCRTPoly>
Expand Down Expand Up @@ -184,7 +184,7 @@ void wrap_CryptoContextImpl(jlcxx::Module& mod) {
wrapped.method("EvalDivide", &WrappedT::EvalDivide);

wrapped.method("EvalSumKeyGen", &WrappedT::EvalSumKeyGen);
// static_cast is not applicable to static functions, so wrap overloaded static function
// static_cast is not applicable to static functions, so wrap overloaded static function
// using lambda expressions
wrapped.method("ClearEvalSumKeys", [](){
return WrappedT::ClearEvalSumKeys();
Expand Down

0 comments on commit 1c03d62

Please sign in to comment.