Skip to content

Commit

Permalink
Remove forgotten cfg(not(feature
Browse files Browse the repository at this point in the history
  • Loading branch information
tlepoint committed Sep 7, 2022
1 parent 718f0cd commit 2e247f2
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 24 additions & 1 deletion crates/fhe/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

This release fixes a bug that did not allow to decrypt a modulo-switched ciphertext correctly.

### Commit Statistics

<csr-read-only-do-not-edit/>

- 1 commit contributed to the release.
- 0 commits were understood as [conventional](https://www.conventionalcommits.org).
- 0 issues like '(#ID)' where seen in commit messages

### Commit Details

<csr-read-only-do-not-edit/>

<details><summary>view details</summary>

* **Uncategorized**
- Remove forgotten cfg(not(feature ([`385c6fa`](https://github.com/tlepoint/fhe.rs/commit/385c6fabefbe7c06efbc90cdf4d8455fdfc33396))
</details>

## 0.1.0-beta.1 (2022-09-07)

First version of the `fhe` crate, that includes the BFV cryptosystem.
Expand All @@ -13,7 +35,7 @@ First version of the `fhe` crate, that includes the BFV cryptosystem.

<csr-read-only-do-not-edit/>

- 12 commits contributed to the release over the course of 1 calendar day.
- 13 commits contributed to the release over the course of 1 calendar day.
- 0 commits were understood as [conventional](https://www.conventionalcommits.org).
- 6 unique issues were worked on: [#114](https://github.com/tlepoint/fhe.rs/issues/114), [#115](https://github.com/tlepoint/fhe.rs/issues/115), [#116](https://github.com/tlepoint/fhe.rs/issues/116), [#118](https://github.com/tlepoint/fhe.rs/issues/118), [#120](https://github.com/tlepoint/fhe.rs/issues/120), [#121](https://github.com/tlepoint/fhe.rs/issues/121)

Expand All @@ -36,6 +58,7 @@ First version of the `fhe` crate, that includes the BFV cryptosystem.
* **[#121](https://github.com/tlepoint/fhe.rs/issues/121)**
- Remove features, remove utilities crate, bump versions ([`570943a`](https://github.com/tlepoint/fhe.rs/commit/570943ae1822888a2ccb27412619ab3355b3ea3a))
* **Uncategorized**
- Release fhe v0.1.0-beta.1 ([`718f0cd`](https://github.com/tlepoint/fhe.rs/commit/718f0cdc1e5b75eaf52a5ea1078c1ed9c2bf46f5))
- First version fhe crate ([`3f9e80c`](https://github.com/tlepoint/fhe.rs/commit/3f9e80c9bc91b068d00ec6b03ccafb07f150185a))
- Release fhe-traits v0.1.0-beta.0, fhe-util v0.1.0-beta.0, fhe-math v0.1.0-beta.0, fhe v0.1.0-beta.0 ([`e81e1c6`](https://github.com/tlepoint/fhe.rs/commit/e81e1c60769e63c52ad3885d16249161074ca293))
- Adjusting changelogs prior to release of fhe-traits v0.1.0-beta.0, fhe-util v0.1.0-beta.0, fhe-math v0.1.0-beta.0, fhe v0.1.0-beta.0 ([`4c9ed5b`](https://github.com/tlepoint/fhe.rs/commit/4c9ed5bc57ccaa4a9d9ac98e4883f6c5c2136b5b))
Expand Down
2 changes: 1 addition & 1 deletion crates/fhe/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "fhe"
description = "Fully Homomorphic Encryption in Rust"
version = "0.1.0-beta.1"
version = "0.1.0-beta.2"
edition = "2021"
license = "MIT"
repository = "https://github.com/tlepoint/fhe.rs"
Expand Down
7 changes: 0 additions & 7 deletions crates/fhe/src/bfv/ciphertext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,6 @@ impl TryConvertFrom<&CiphertextProto> for Ciphertext {
return Err(Error::DefaultError("Invalid level".to_string()));
}

#[cfg(not(feature = "leveled_bfv"))]
if value.level != 0 {
return Err(Error::DefaultError(
"Invalid level: did you enable the leveled_bfv feature?".to_string(),
));
}

let ctx = par.ctx_at_level(value.level as usize)?;

let mut seed = None;
Expand Down

0 comments on commit 2e247f2

Please sign in to comment.