From 715c66ecac085e8527c90ada493a70257aa5a0ae Mon Sep 17 00:00:00 2001 From: jnsiemer Date: Wed, 15 Apr 2026 17:48:53 +0100 Subject: [PATCH 1/5] Necessary update --- src/hash/sha256.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hash/sha256.rs b/src/hash/sha256.rs index f9005d5..8114802 100644 --- a/src/hash/sha256.rs +++ b/src/hash/sha256.rs @@ -39,7 +39,7 @@ pub fn sha256(string: &str) -> String { let mut hasher = Sha256::new(); hasher.update(string); let result = hasher.finalize(); - format!("{result:x}") + result.iter().map(|b| format!("{b:02x}")).collect::() } /// Hashes a given String literal into a [`Zq`] using sha256. From d742c5c5636d02085ccaf2fde192a7e81c9c8d96 Mon Sep 17 00:00:00 2001 From: jnsiemer Date: Wed, 15 Apr 2026 17:49:12 +0100 Subject: [PATCH 2/5] Update min rustc version --- Cargo.toml | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4cec7eb..1f948c4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "qfall-schemes" version = "0.1.0" edition = "2024" -rust-version = "1.85" # due to rand and rand_distr dependency +rust-version = "1.87" # due to wit_bindgen dependency description = "Collection of prototype implementations of lattice-based cryptography" readme = "README.md" homepage = "https://qfall.github.io" @@ -17,7 +17,7 @@ autobenches = false [dependencies] qfall-tools = "0" qfall-math = "0" -sha2 = "0" +sha2 = "0.11.0" serde = {version="1", features=["derive"]} serde_json = "1" typetag = "0" diff --git a/README.md b/README.md index d3786c4..8cf8f64 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ This `schemes`-crate collects implementations of lattice-based constructions s.t ## Quick-Start First, ensure that you use a Unix-like distribution (Linux or MacOS). Setup [WSL](https://learn.microsoft.com/en-us/windows/wsl/install) if you're using Windows. This is required due to this crate's dependency on FLINT. -Then, make sure your `rustc --version` is `1.85` or newer. +Then, make sure your `rustc --version` is `1.87` or newer. Furthermore, it's required that `m4`, a C-compiler such as `gcc`, and `make` are installed. ```bash From 684014ad5c1473a2c2495c94df2f17bd7f0d8ea7 Mon Sep 17 00:00:00 2001 From: jnsiemer Date: Wed, 15 Apr 2026 17:49:27 +0100 Subject: [PATCH 3/5] Remove copyright sign --- benches/README.md | 2 +- benches/benchmarks.rs | 2 +- benches/k_pke.rs | 2 +- benches/pfdh.rs | 2 +- benches/regev.rs | 2 +- src/hash.rs | 2 +- src/hash/sha256.rs | 2 +- src/hash/sis.rs | 2 +- src/identity_based_encryption.rs | 2 +- src/identity_based_encryption/dual_regev_ibe.rs | 2 +- src/lib.rs | 2 +- src/pk_encryption.rs | 2 +- src/pk_encryption/ccs_from_ibe.rs | 2 +- src/pk_encryption/ccs_from_ibe/dual_regev_ibe_pfdh.rs | 2 +- src/pk_encryption/dual_regev.rs | 2 +- src/pk_encryption/dual_regev_discrete_gauss.rs | 2 +- src/pk_encryption/k_pke.rs | 2 +- src/pk_encryption/lpr.rs | 2 +- src/pk_encryption/regev.rs | 2 +- src/pk_encryption/regev_discrete_gauss.rs | 2 +- src/pk_encryption/ring_lpr.rs | 2 +- src/signature.rs | 2 +- src/signature/fdh.rs | 2 +- src/signature/fdh/gpv.rs | 2 +- src/signature/fdh/gpv_ring.rs | 2 +- src/signature/pfdh.rs | 2 +- src/signature/pfdh/gpv.rs | 2 +- 27 files changed, 27 insertions(+), 27 deletions(-) diff --git a/benches/README.md b/benches/README.md index 7a3e66d..18e79aa 100644 --- a/benches/README.md +++ b/benches/README.md @@ -1,5 +1,5 @@