Skip to content

Commit fd5591f

Browse files
author
Kim Laine (HE/HIM)
committed
Fixed some typos and a bug
1 parent 4286513 commit fd5591f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dotnet/src/Ciphertext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ public double Scale
650650
/// <summary>
651651
/// Returns a reference to the correction factor. This is only needed when using the
652652
/// BGV encryption scheme. The user should have little or no reason to ever
653-
/// change the scale by hand.
653+
/// change the correction factor by hand.
654654
/// </summary>
655655
public ulong CorrectionFactor
656656
{

native/src/seal/ciphertext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ namespace seal
653653

654654
/**
655655
Returns a reference to the correction factor. This is only needed when using the BGV encryption scheme. The user
656-
should have little or no reason to ever change the scale by hand.
656+
should have little or no reason to ever change the correction factor by hand.
657657
*/
658658
SEAL_NODISCARD inline std::uint64_t &correction_factor() noexcept
659659
{

native/src/seal/evaluator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ namespace seal
15901590
throw invalid_argument("pool is uninitialized");
15911591
}
15921592

1593-
mod_reduce_to_next(encrypted, encrypted, std::move(pool));
1593+
mod_switch_drop_to_next(encrypted, encrypted, std::move(pool));
15941594
#ifdef SEAL_THROW_ON_TRANSPARENT_CIPHERTEXT
15951595
// Transparent ciphertext output is not allowed.
15961596
if (encrypted.is_transparent())

0 commit comments

Comments
 (0)