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

Ns/release/0.7.2 #1382

Merged
merged 3 commits into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion tfhe/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tfhe"
version = "0.7.1"
version = "0.7.2"
edition = "2021"
readme = "../README.md"
keywords = ["fully", "homomorphic", "encryption", "fhe", "cryptography"]
Expand Down
2 changes: 1 addition & 1 deletion tfhe/docs/fundamentals/serialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Here is a full example:

[dependencies]
# ...
tfhe = { version = "0.7.1", features = ["integer","x86_64-unix"]}
tfhe = { version = "0.7.2", features = ["integer","x86_64-unix"]}
bincode = "1.3.3"
```

Expand Down
4 changes: 2 additions & 2 deletions tfhe/docs/getting_started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ First, add **TFHE-rs** as a dependency in your `Cargo.toml`.
**For `x86_64` machine running a Unix-like OS:**

```toml
tfhe = { version = "0.7.1", features = [ "boolean", "shortint", "integer", "x86_64-unix" ] }
tfhe = { version = "0.7.2", features = [ "boolean", "shortint", "integer", "x86_64-unix" ] }
```

**For `ARM` machine running a Unix-like OS:**

```toml
tfhe = { version = "0.7.1", features = [ "boolean", "shortint", "integer", "aarch64-unix" ] }
tfhe = { version = "0.7.2", features = [ "boolean", "shortint", "integer", "aarch64-unix" ] }
```

**For `x86_64` machines with the** [**`rdseed instruction`**](https://en.wikipedia.org/wiki/RDRAND) **running Windows:**
Expand Down
2 changes: 1 addition & 1 deletion tfhe/docs/getting_started/quick_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fn main() {
The default configuration for x86 Unix machines is as follows:

```toml
tfhe = { version = "0.7.1", features = ["integer", "x86_64-unix"]}
tfhe = { version = "0.7.2", features = ["integer", "x86_64-unix"]}
```

Refer to the [installation documentation](installation.md) for configuration options of different platforms.Learn more about homomorphic types features in the [configuration documentation.](../guides/rust\_configuration.md)
Expand Down
2 changes: 1 addition & 1 deletion tfhe/docs/guides/data_versioning.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You can load serialized data with the `unversionize` function, even in newer ver

[dependencies]
# ...
tfhe = { version = "0.7.1", features = ["integer","x86_64-unix"]}
tfhe = { version = "0.7.2", features = ["integer","x86_64-unix"]}
tfhe-versionable = "0.2.0"
bincode = "1.3.3"
```
Expand Down
4 changes: 2 additions & 2 deletions tfhe/docs/guides/run_on_gpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ To use the **TFHE-rs** GPU backend in your project, add the following dependency
If you are using an `x86` machine:

```toml
tfhe = { version = "0.7.1", features = [ "boolean", "shortint", "integer", "x86_64-unix", "gpu" ] }
tfhe = { version = "0.7.2", features = [ "boolean", "shortint", "integer", "x86_64-unix", "gpu" ] }
```

If you are using an `ARM` machine:

```toml
tfhe = { version = "0.7.1", features = [ "boolean", "shortint", "integer", "aarch64-unix", "gpu" ] }
tfhe = { version = "0.7.2", features = [ "boolean", "shortint", "integer", "aarch64-unix", "gpu" ] }
```

{% hint style="success" %}
Expand Down
8 changes: 4 additions & 4 deletions tfhe/docs/references/core-crypto-api/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Welcome to this tutorial about `TFHE-rs` `core_crypto` module.
To use `TFHE-rs`, it first has to be added as a dependency in the `Cargo.toml`:

```toml
tfhe = { version = "0.7.1", features = [ "x86_64-unix" ] }
tfhe = { version = "0.7.2", features = [ "x86_64-unix" ] }
```

This enables the `x86_64-unix` feature to have efficient implementations of various algorithms for `x86_64` CPUs on a Unix-like system. The 'unix' suffix indicates that the `UnixSeeder`, which uses `/dev/random` to generate random numbers, is activated as a fallback if no hardware number generator is available (like `rdseed` on `x86_64` or if the [`Randomization Services`](https://developer.apple.com/documentation/security/1399291-secrandomcopybytes?language=objc) on Apple platforms are not available). To avoid having the `UnixSeeder` as a potential fallback or to run on non-Unix systems (e.g., Windows), the `x86_64` feature is sufficient.
Expand All @@ -19,19 +19,19 @@ For Apple Silicon, the `aarch64-unix` or `aarch64` feature should be enabled. `a
In short: For `x86_64`-based machines running Unix-like OSes:

```toml
tfhe = { version = "0.7.1", features = ["x86_64-unix"] }
tfhe = { version = "0.7.2", features = ["x86_64-unix"] }
```

For Apple Silicon or aarch64-based machines running Unix-like OSes:

```toml
tfhe = { version = "0.7.1", features = ["aarch64-unix"] }
tfhe = { version = "0.7.2", features = ["aarch64-unix"] }
```

For `x86_64`-based machines with the [`rdseed instruction`](https://en.wikipedia.org/wiki/RDRAND) running Windows:

```toml
tfhe = { version = "0.7.1", features = ["x86_64"] }
tfhe = { version = "0.7.2", features = ["x86_64"] }
```

### Commented code to double a 2-bit message in a leveled fashion and using a PBS with the `core_crypto` module.
Expand Down
2 changes: 1 addition & 1 deletion tfhe/docs/tutorials/ascii_fhe_string.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ To use the `FheUint8` type, enable the `integer` feature:

[dependencies]
# Default configuration for x86 Unix machines:
tfhe = { version = "0.7.1", features = ["integer", "x86_64-unix"]}
tfhe = { version = "0.7.2", features = ["integer", "x86_64-unix"]}
```

Refer to the [installation guide](../getting\_started/installation.md) for other configurations.
Expand Down
2 changes: 1 addition & 1 deletion tfhe/docs/tutorials/parity_bit.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This function returns a Boolean (`true` or `false`) so that the total count of `
# Cargo.toml

# Default configuration for x86 Unix machines:
tfhe = { version = "0.7.1", features = ["integer", "x86_64-unix"]}
tfhe = { version = "0.7.2", features = ["integer", "x86_64-unix"]}
```

Refer to the [installation](../getting\_started/installation.md) for other configurations.
Expand Down
4 changes: 2 additions & 2 deletions tfhe/src/high_level_api/backward_compatibility/booleans.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub enum CompactFheBoolListVersions {

#[derive(Versionize)]
#[versionize(CompactFheBoolVersions)]
#[deprecated(since = "0.7.1", note = "Use CompactCiphertextList instead")]
#[deprecated(since = "0.7.0", note = "Use CompactCiphertextList instead")]
pub struct CompactFheBool {
pub(in crate::high_level_api) list: CompactCiphertextList,
}
Expand Down Expand Up @@ -71,7 +71,7 @@ impl CompactFheBool {

#[derive(Versionize)]
#[versionize(CompactFheBoolListVersions)]
#[deprecated(since = "0.7.1", note = "Use CompactCiphertextList instead")]
#[deprecated(since = "0.7.0", note = "Use CompactCiphertextList instead")]
pub struct CompactFheBoolList {
list: CompactCiphertextList,
}
Expand Down
8 changes: 4 additions & 4 deletions tfhe/src/high_level_api/backward_compatibility/integers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ pub enum CompactFheUintListVersions<Id: FheUintId> {

#[derive(Clone, Versionize)]
#[versionize(CompactFheIntVersions)]
#[deprecated(since = "0.7.1", note = "Use CompactCiphertextList instead")]
#[deprecated(since = "0.7.0", note = "Use CompactCiphertextList instead")]
pub struct CompactFheInt<Id: FheIntId> {
list: CompactCiphertextList,
id: Id,
Expand Down Expand Up @@ -198,7 +198,7 @@ where

#[derive(Clone, Versionize)]
#[versionize(CompactFheIntListVersions)]
#[deprecated(since = "0.7.1", note = "Use CompactCiphertextList instead")]
#[deprecated(since = "0.7.0", note = "Use CompactCiphertextList instead")]
pub struct CompactFheIntList<Id: FheIntId> {
list: CompactCiphertextList,
id: Id,
Expand Down Expand Up @@ -235,7 +235,7 @@ where

#[derive(Clone, Versionize)]
#[versionize(CompactFheUintVersions)]
#[deprecated(since = "0.7.1", note = "Use CompactCiphertextList instead")]
#[deprecated(since = "0.7.0", note = "Use CompactCiphertextList instead")]
pub struct CompactFheUint<Id: FheUintId> {
list: CompactCiphertextList,
id: Id,
Expand Down Expand Up @@ -266,7 +266,7 @@ where

#[derive(Clone, Versionize)]
#[versionize(CompactFheUintListVersions)]
#[deprecated(since = "0.7.1", note = "Use CompactCiphertextList instead")]
#[deprecated(since = "0.7.0", note = "Use CompactCiphertextList instead")]
pub struct CompactFheUintList<Id: FheUintId> {
list: CompactCiphertextList,
id: Id,
Expand Down
2 changes: 1 addition & 1 deletion tfhe/src/high_level_api/compressed_ciphertext_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl CompressedCiphertextListBuilder {
pub struct CompressedCiphertextList(crate::integer::ciphertext::CompressedCiphertextList);

impl Named for CompressedCiphertextList {
const NAME: &'static str = "high_level_api::CompactCiphertextList";
const NAME: &'static str = "high_level_api::CompressedCiphertextList";
}

impl CompressedCiphertextList {
Expand Down
Loading