Skip to content

Commit

Permalink
Fixed some typos and a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim Laine (HE/HIM) committed Jan 4, 2023
1 parent 4286513 commit fd5591f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dotnet/src/Ciphertext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ public double Scale
/// <summary>
/// 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.
/// </summary>
public ulong CorrectionFactor
{
Expand Down
2 changes: 1 addition & 1 deletion native/src/seal/ciphertext.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion native/src/seal/evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit fd5591f

Please sign in to comment.