-
Notifications
You must be signed in to change notification settings - Fork 172
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
Sub-package for CKKS bootstrapping with improved parameters and new functionalities #139
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… + removed dbfv.dbfvContext
…moved unused elements
ChristianMct
reviewed
Sep 2, 2021
…ds. Fixed a bug in homomorphic mod.
5c08964
to
e1de976
Compare
Improved godoc for sub-package /advanced
ChristianMct
approved these changes
Sep 13, 2021
jrtroncoso
approved these changes
Sep 17, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made some minor changes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BFV
floor(Q/T)*m
toround((Q*m)/T)
which reduces the initial noise.CKKS
ckks/advanced
that provides homomorphic encoding, decoding and modular reduction.ckks/bootstrapping
that provides bootstrapping for CKKS and is built usingckks
andckks/advanced
packages.Poly
now replacesChebyshevInterpolation
.EvaluateCheby
API (replaced by already existingEvaluatePoly
).EvaluatePoly
.EvaluatePoly
internal scale management that was reducing the precision for some values of polynomial degrees.RLWE
GenSwitchingKey
now accepts as input or output key a key of smaller dimension with different level (overlapping parameters). I can be used to generate a switching key that can re-encrypt a ciphertext from a smaller dimension secret-key to a larger dimension secret-key, and vice-versa.SwitchCiphertextRingDegreeNTT
andSwitchCiphertextRingDegree
to switch ciphertext ring degrees.Q
andP
(e.g. keys) are now stored asrlwe.PolyQP
. This change allows to easily operate onQ
andP
independently.ring.RingQP
by a newrlwe.RingQP
that is a wrapper ofring.RingQ
andring.RingP
and provides arithmetic forrlwe.PolyQP
. This reduces memory footprint and increases code readability.DRLWE
drlwe.UniformSampler
that can be used to sample uniform polynomials and vectors of polynomials fordbfv
anddckks
packages.DBFV/DCKKS
drlwe.UniformSamplwer
using the.Read(*)
API.Ring
MapSmallDimensionToLargerDimensionNTT
API which maps from Y = X^{N/n} to X in the NTT domain.FastBasisExtender
can not extend the basis of polynomials of any level in base Q to polynomials of any level in base P.MFormVector
API to switch a vector in the Montgomery domain.Div[floor/round]BylastModulus[NTT]
toDiv[floor/round]BylastModulus[NTT]Lvl
.Examples
ckks/advanced/main.go
example that showcases theckks/advanced
sub-package with a bridge between CKKS and FHEW ciphertexts using homomorphic decoding, ring dimension switching, homomorphic matrix multiplication and homomorphic modular reduction.