Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some typos in RnsTool #136

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Sources/HomomorphicEncryption/RnsTool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ package struct RnsTool<T: ScalarType>: Sendable {
@usableFromInline let mTildeModQ: [T]
/// `-(Q^{-1}) mod {t, gamma}`.
@usableFromInline let negInverseQModTGamma: [T]
/// `|gamma * t|_qi``.
/// `|gamma * t|_qi`.
@usableFromInline let prodGammaTModQ: [T]
/// Multiplication by `m_tilde^{-1} mod B_sk`, mod `B_sk`.
@usableFromInline let inverseMTildeModBSk: [MultiplyConstantModulus<T>]
/// Multiplication by `Q^{-1} mod B_sk`, mod `B_sk`.
@usableFromInline let inverseQModBSk: [MultiplyConstantModulus<T>]
/// i'th entry stores modulus for multiplcaiton by `floor(Q / t_0) % q_i`, mod `q_i`
/// i'th entry stores modulus for multiplication by `floor(Q / t_0) % q_i`, mod `q_i`
/// Also called `delta` in the literature.
@usableFromInline let qDivT: [MultiplyConstantModulus<T>]
/// Multiplication by `Q mod B_sk`, mod `B_sk`.
Expand Down Expand Up @@ -302,7 +302,7 @@ package struct RnsTool<T: ScalarType>: Sendable {
///
/// The output will be `(floor(x/q) + a_x) % B_sk`, where `a_x \in [-(L-1), L-1]`
/// - Parameter poly: Polynomial with base `[q, Bsk]`.
/// - Returns: Polynomial in base `[Bsk]``.
/// - Returns: Polynomial in base `[Bsk]`.
/// - Throws: Error upon failure to compute the approximate floor.
/// - seealso: Section 4.3 of <https://eprint.iacr.org/2016/510.pdf>.
@inlinable
Expand Down
Loading