Skip to content

Commit

Permalink
Fix: MulCtPt decodes ciphertext before using.
Browse files Browse the repository at this point in the history
  • Loading branch information
james-choncholas committed Oct 14, 2024
1 parent a87da99 commit b4b3d6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tf_shell/cc/kernels/mul_kernels.cc
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ class MulCtPtOp : public OpKernel {
OP_REQUIRES(
op_ctx, ct_var != nullptr,
InvalidArgument("SymmetricCtVariant a did not unwrap successfully."));
OP_REQUIRES_OK(
op_ctx, const_cast<SymmetricCtVariant<T>*>(ct_var)->MaybeLazyDecode(
shell_ctx_var->ct_context_, shell_ctx_var->error_params_));
SymmetricCt const& ct = ct_var->ct;
int num_slots = 1 << ct.LogN();
int num_components = ct.NumModuli();
Expand Down

0 comments on commit b4b3d6d

Please sign in to comment.