Compare commits

...

3 Commits

Author SHA1 Message Date
Arthur Meyre
94b9f62c17 chore(tfhe): update version to 0.1.2 2022-11-10 20:18:04 +01:00
J-B Orfila
62f8ecc568 fix(thfe): update public key parameters 2022-11-10 20:17:24 +01:00
Arthur Meyre
aa7129baf1 chore(crate): fix description metadata 2022-11-10 19:18:32 +01:00
3 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "tfhe"
version = "0.1.0"
version = "0.1.2"
edition = "2021"
readme = "../README.md"
keywords = ["fully", "homomorphic", "encryption", "fhe", "cryptography"]
@@ -8,7 +8,7 @@ homepage = "https://zama.ai/"
documentation = "https://docs.zama.ai/tfhe-rs"
repository = "https://github.com/zama-ai/tfhe-rs"
license = "BSD-3-Clause-Clear"
description = "Concrete is a fully homomorphic encryption (FHE) library that implements Zama's variant of TFHE."
description = "TFHE-rs is a fully homomorphic encryption (FHE) library that implements Zama's variant of TFHE."
build = "build.rs"
exclude = ["/docs/", "/c_api_tests/", "/CMakeLists.txt"]

View File

@@ -92,8 +92,8 @@ impl BooleanEngine<CudaBootstrapper> {
}
}
// We have q = 32 so log2q = 5
const LOG2_Q_32: usize = 5;
// We have q = 2^32 so log2q = 32
const LOG2_Q_32: usize = 32;
impl<B> BooleanEngine<B> {
pub fn create_client_key(&mut self, parameters: BooleanParameters) -> ClientKey {

View File

@@ -5,8 +5,8 @@ use crate::shortint::ciphertext::Degree;
use crate::shortint::parameters::{CarryModulus, MessageModulus};
use crate::shortint::{Ciphertext, ClientKey, PublicKey, ServerKey};
// We have q = 64 so log2q = 6
const LOG2_Q_64: usize = 6;
// We have q = 2^64 so log2q = 64
const LOG2_Q_64: usize = 64;
impl ShortintEngine {
pub(crate) fn new_public_key(&mut self, client_key: &ClientKey) -> EngineResult<PublicKey> {