diff --git a/dotnet/src/Ciphertext.cs b/dotnet/src/Ciphertext.cs index e663f3c3e..a8645871a 100644 --- a/dotnet/src/Ciphertext.cs +++ b/dotnet/src/Ciphertext.cs @@ -650,7 +650,7 @@ public double Scale /// /// Returns a reference to the correction factor. This is only needed when using the /// BGV encryption scheme. The user should have little or no reason to ever - /// change the scale by hand. + /// change the correction factor by hand. /// public ulong CorrectionFactor { diff --git a/native/src/seal/ciphertext.h b/native/src/seal/ciphertext.h index c1c56954b..d6e7eb415 100644 --- a/native/src/seal/ciphertext.h +++ b/native/src/seal/ciphertext.h @@ -653,7 +653,7 @@ namespace seal /** Returns a reference to the correction factor. This is only needed when using the BGV encryption scheme. The user - should have little or no reason to ever change the scale by hand. + should have little or no reason to ever change the correction factor by hand. */ SEAL_NODISCARD inline std::uint64_t &correction_factor() noexcept { diff --git a/native/src/seal/evaluator.cpp b/native/src/seal/evaluator.cpp index 275f7098b..dabd3babe 100644 --- a/native/src/seal/evaluator.cpp +++ b/native/src/seal/evaluator.cpp @@ -1590,7 +1590,7 @@ namespace seal throw invalid_argument("pool is uninitialized"); } - mod_reduce_to_next(encrypted, encrypted, std::move(pool)); + mod_switch_drop_to_next(encrypted, encrypted, std::move(pool)); #ifdef SEAL_THROW_ON_TRANSPARENT_CIPHERTEXT // Transparent ciphertext output is not allowed. if (encrypted.is_transparent())