From fd5591f04708abad7333bb1181ced189d1eb73b4 Mon Sep 17 00:00:00 2001 From: "Kim Laine (HE/HIM)" Date: Tue, 3 Jan 2023 21:24:42 -0800 Subject: [PATCH] Fixed some typos and a bug --- dotnet/src/Ciphertext.cs | 2 +- native/src/seal/ciphertext.h | 2 +- native/src/seal/evaluator.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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())