-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new key switch method and support
q>2N
(#135)
* init * first try `ms_ks_ms` * fix `ntt` * rename `SecretKeyType` to `LWESecretKeyType` * try `msks` once again * minor * update * simplify some codes * simplify * update * update * fix * minor fix * fix key switch * simplify codes * clippy * typo * fix * improve `rlwe` `bootstrap` * doc: modulus switch * improve `ntru` `bootstrap`
- Loading branch information
1 parent
2c583b0
commit eb8e633
Showing
45 changed files
with
1,958 additions
and
1,461 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ members = [ | |
"algebra_derive", | ||
"fhe_core", | ||
"lattice", | ||
"fhe", | ||
"pcs", | ||
"zkfhe", | ||
"zkp", | ||
|
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[package] | ||
name = "fhe" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
algebra = { path = "../algebra", default-features = false } | ||
lattice = { path = "../lattice", default-features = false } | ||
fhe_core = { path = "../fhe_core", default-features = false } | ||
|
||
rand = { workspace = true } | ||
rayon = { workspace = true } | ||
once_cell = { workspace = true } | ||
|
||
[features] | ||
default = ["concrete-ntt"] | ||
concrete-ntt = [ | ||
"algebra/concrete-ntt", | ||
"lattice/concrete-ntt", | ||
"fhe_core/concrete-ntt", | ||
] | ||
nightly = ["algebra/nightly", "lattice/nightly", "fhe_core/nightly"] | ||
count_ntt = ["algebra/count_ntt"] | ||
|
||
[dev-dependencies] | ||
criterion = { workspace = true } | ||
|
||
[package.metadata.docs.rs] | ||
all-features = true | ||
# enable unstable features in the documentation | ||
rustdoc-args = ["--cfg", "docsrs"] | ||
# RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --no-deps |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod bfhe; |
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
Oops, something went wrong.