-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
704f06a
commit 5f3cf96
Showing
60 changed files
with
525 additions
and
43 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use tfhe_versionable::VersionsDispatch; | ||
|
||
use crate::boolean::ciphertext::{Ciphertext, CompressedCiphertext}; | ||
|
||
#[derive(VersionsDispatch)] | ||
pub enum CiphertextVersions { | ||
V0(Ciphertext), | ||
} | ||
|
||
#[derive(VersionsDispatch)] | ||
pub enum CompressedCiphertextVersions { | ||
V0(CompressedCiphertext), | ||
} |
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,8 @@ | ||
use tfhe_versionable::VersionsDispatch; | ||
|
||
use crate::boolean::client_key::ClientKey; | ||
|
||
#[derive(VersionsDispatch)] | ||
pub enum ClientKeyVersions { | ||
V0(ClientKey), | ||
} |
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,8 @@ | ||
use tfhe_versionable::VersionsDispatch; | ||
|
||
use crate::boolean::key_switching_key::KeySwitchingKey; | ||
|
||
#[derive(VersionsDispatch)] | ||
pub enum KeySwitchingKeyVersions { | ||
V0(KeySwitchingKey), | ||
} |
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,6 @@ | ||
pub mod ciphertext; | ||
pub mod client_key; | ||
pub mod key_switching_key; | ||
pub mod parameters; | ||
pub mod public_key; | ||
pub mod server_key; |
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,13 @@ | ||
use tfhe_versionable::VersionsDispatch; | ||
|
||
use crate::boolean::parameters::{BooleanKeySwitchingParameters, BooleanParameters}; | ||
|
||
#[derive(VersionsDispatch)] | ||
pub enum BooleanParametersVersions { | ||
V0(BooleanParameters), | ||
} | ||
|
||
#[derive(VersionsDispatch)] | ||
pub enum BooleanKeySwitchingParametersVersions { | ||
V0(BooleanKeySwitchingParameters), | ||
} |
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,13 @@ | ||
use tfhe_versionable::VersionsDispatch; | ||
|
||
use crate::boolean::public_key::{CompressedPublicKey, PublicKey}; | ||
|
||
#[derive(VersionsDispatch)] | ||
pub enum PublicKeyVersions { | ||
V0(PublicKey), | ||
} | ||
|
||
#[derive(VersionsDispatch)] | ||
pub enum CompressedPublicKeyVersions { | ||
V0(CompressedPublicKey), | ||
} |
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,13 @@ | ||
use tfhe_versionable::VersionsDispatch; | ||
|
||
use crate::boolean::server_key::{CompressedServerKey, ServerKey}; | ||
|
||
#[derive(VersionsDispatch)] | ||
pub enum ServerKeyVersions { | ||
V0(ServerKey), | ||
} | ||
|
||
#[derive(VersionsDispatch)] | ||
pub enum CompressedServerKeyVersions { | ||
V0(CompressedServerKey), | ||
} |
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
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
7 changes: 7 additions & 0 deletions
7
tfhe/src/core_crypto/backward_compatibility/commons/dispersion.rs
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,7 @@ | ||
use crate::core_crypto::commons::dispersion::StandardDev; | ||
use tfhe_versionable::VersionsDispatch; | ||
|
||
#[derive(VersionsDispatch)] | ||
pub enum StandardDevVersions { | ||
V0(StandardDev), | ||
} |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
pub mod ciphertext_modulus; | ||
pub mod dispersion; | ||
pub mod math; | ||
pub mod parameters; |
8 changes: 8 additions & 0 deletions
8
tfhe/src/core_crypto/backward_compatibility/entities/cleartext.rs
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,8 @@ | ||
use tfhe_versionable::VersionsDispatch; | ||
|
||
use crate::core_crypto::prelude::{Cleartext, Numeric}; | ||
|
||
#[derive(VersionsDispatch)] | ||
pub enum CleartextVersions<T: Numeric> { | ||
V0(Cleartext<T>), | ||
} |
9 changes: 9 additions & 0 deletions
9
...ore_crypto/backward_compatibility/entities/compressed_modulus_switched_glwe_ciphertext.rs
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,9 @@ | ||
use tfhe_versionable::VersionsDispatch; | ||
|
||
use crate::core_crypto::prelude::compressed_modulus_switched_glwe_ciphertext::CompressedModulusSwitchedGlweCiphertext; | ||
use crate::core_crypto::prelude::UnsignedInteger; | ||
|
||
#[derive(VersionsDispatch)] | ||
pub enum CompressedModulusSwitchedGlweCiphertextVersions<Scalar: UnsignedInteger> { | ||
V0(CompressedModulusSwitchedGlweCiphertext<Scalar>), | ||
} |
8 changes: 8 additions & 0 deletions
8
tfhe/src/core_crypto/backward_compatibility/entities/gsw_ciphertext.rs
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,8 @@ | ||
use tfhe_versionable::VersionsDispatch; | ||
|
||
use crate::core_crypto::prelude::{Container, GswCiphertext}; | ||
|
||
#[derive(VersionsDispatch)] | ||
pub enum GswCiphertextVersions<C: Container> { | ||
V0(GswCiphertext<C>), | ||
} |
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
11 changes: 11 additions & 0 deletions
11
tfhe/src/core_crypto/backward_compatibility/entities/ntt_ggsw_ciphertext.rs
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,11 @@ | ||
use tfhe_versionable::VersionsDispatch; | ||
|
||
use crate::core_crypto::prelude::{Container, NttGgswCiphertext, UnsignedInteger}; | ||
|
||
#[derive(VersionsDispatch)] | ||
pub enum NttGgswCiphertextVersions<C: Container> | ||
where | ||
C::Element: UnsignedInteger, | ||
{ | ||
V0(NttGgswCiphertext<C>), | ||
} |
11 changes: 11 additions & 0 deletions
11
tfhe/src/core_crypto/backward_compatibility/entities/ntt_ggsw_ciphertext_list.rs
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,11 @@ | ||
use tfhe_versionable::VersionsDispatch; | ||
|
||
use crate::core_crypto::prelude::{Container, NttGgswCiphertextList, UnsignedInteger}; | ||
|
||
#[derive(VersionsDispatch)] | ||
pub enum NttGgswCiphertextListVersions<C: Container> | ||
where | ||
C::Element: UnsignedInteger, | ||
{ | ||
V0(NttGgswCiphertextList<C>), | ||
} |
11 changes: 11 additions & 0 deletions
11
tfhe/src/core_crypto/backward_compatibility/entities/ntt_lwe_bootstrap_key.rs
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,11 @@ | ||
use tfhe_versionable::VersionsDispatch; | ||
|
||
use crate::core_crypto::prelude::{Container, NttLweBootstrapKey, UnsignedInteger}; | ||
|
||
#[derive(VersionsDispatch)] | ||
pub enum NttLweBootstrapKeyVersions<C: Container> | ||
where | ||
C::Element: UnsignedInteger, | ||
{ | ||
V0(NttLweBootstrapKey<C>), | ||
} |
8 changes: 8 additions & 0 deletions
8
tfhe/src/core_crypto/backward_compatibility/entities/plaintext.rs
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,8 @@ | ||
use tfhe_versionable::VersionsDispatch; | ||
|
||
use crate::core_crypto::prelude::{Numeric, Plaintext}; | ||
|
||
#[derive(VersionsDispatch)] | ||
pub enum PlaintextVersions<T: Numeric> { | ||
V0(Plaintext<T>), | ||
} |
8 changes: 8 additions & 0 deletions
8
tfhe/src/core_crypto/backward_compatibility/entities/plaintext_list.rs
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,8 @@ | ||
use tfhe_versionable::VersionsDispatch; | ||
|
||
use crate::core_crypto::prelude::{Container, PlaintextList}; | ||
|
||
#[derive(VersionsDispatch)] | ||
pub enum PlaintextListVersions<C: Container> { | ||
V0(PlaintextList<C>), | ||
} |
8 changes: 8 additions & 0 deletions
8
tfhe/src/core_crypto/backward_compatibility/entities/polynomial.rs
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,8 @@ | ||
use tfhe_versionable::VersionsDispatch; | ||
|
||
use crate::core_crypto::prelude::{Container, Polynomial}; | ||
|
||
#[derive(VersionsDispatch)] | ||
pub enum PolynomialVersions<C: Container> { | ||
V0(Polynomial<C>), | ||
} |
8 changes: 8 additions & 0 deletions
8
tfhe/src/core_crypto/backward_compatibility/entities/polynomial_list.rs
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,8 @@ | ||
use tfhe_versionable::VersionsDispatch; | ||
|
||
use crate::core_crypto::prelude::{Container, PolynomialList}; | ||
|
||
#[derive(VersionsDispatch)] | ||
pub enum PolynomialListVersions<C: Container> { | ||
V0(PolynomialList<C>), | ||
} |
Oops, something went wrong.