Skip to content
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
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "qfall-schemes"
version = "0.1.0"
version = "0.1.1"
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"
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion benches/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!---
Copyright © 2023 Sven Moog
Copyright 2023 Sven Moog

This file is part of qFALL-schemes.

Expand Down
2 changes: 1 addition & 1 deletion benches/benchmarks.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Sven Moog
// Copyright 2023 Sven Moog
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion benches/k_pke.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2025 Niklas Siemer
// Copyright 2025 Jan Niklas Siemer
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion benches/pfdh.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Marvin Beckmann
// Copyright 2023 Marvin Beckmann
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion benches/regev.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Sven Moog
// Copyright 2023 Sven Moog
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion src/hash.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Niklas Siemer
// Copyright 2023 Jan Niklas Siemer
//
// This file is part of qFALL-schemes.
//
Expand Down
7 changes: 5 additions & 2 deletions src/hash/sha256.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Phil Milewski
// Copyright 2023 Phil Milewski
//
// This file is part of qFALL-schemes.
//
Expand Down Expand Up @@ -39,7 +39,10 @@ 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::<String>()
}

/// Hashes a given String literal into a [`Zq`] using sha256.
Expand Down
2 changes: 1 addition & 1 deletion src/hash/sis.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Niklas Siemer
// Copyright 2023 Jan Niklas Siemer
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion src/identity_based_encryption.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Phil Milewski
// Copyright 2023 Phil Milewski
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion src/identity_based_encryption/dual_regev_ibe.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Phil Milewski
// Copyright 2023 Phil Milewski
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Niklas Siemer, Marvin Beckmann
// Copyright 2023 Jan Niklas Siemer, Marvin Beckmann
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion src/pk_encryption.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Niklas Siemer
// Copyright 2023 Jan Niklas Siemer
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion src/pk_encryption/ccs_from_ibe.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Niklas Siemer
// Copyright 2023 Jan Niklas Siemer
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion src/pk_encryption/ccs_from_ibe/dual_regev_ibe_pfdh.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Niklas Siemer
// Copyright 2023 Jan Niklas Siemer
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion src/pk_encryption/dual_regev.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Niklas Siemer
// Copyright 2023 Jan Niklas Siemer
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion src/pk_encryption/dual_regev_discrete_gauss.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Niklas Siemer
// Copyright 2023 Jan Niklas Siemer
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion src/pk_encryption/k_pke.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2025 Niklas Siemer
// Copyright 2025 Jan Niklas Siemer
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion src/pk_encryption/lpr.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Niklas Siemer
// Copyright 2023 Jan Niklas Siemer
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion src/pk_encryption/regev.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Niklas Siemer
// Copyright 2023 Jan Niklas Siemer
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion src/pk_encryption/regev_discrete_gauss.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Niklas Siemer
// Copyright 2023 Jan Niklas Siemer
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion src/pk_encryption/ring_lpr.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Niklas Siemer
// Copyright 2023 Jan Niklas Siemer
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion src/signature.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Marcel Luca Schmidt, Marvin Beckmann
// Copyright 2023 Marcel Luca Schmidt, Marvin Beckmann
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion src/signature/fdh.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Marvin Beckmann
// Copyright 2023 Marvin Beckmann
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion src/signature/fdh/gpv.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Marvin Beckmann
// Copyright 2023 Marvin Beckmann
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion src/signature/fdh/gpv_ring.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Marvin Beckmann
// Copyright 2023 Marvin Beckmann
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion src/signature/pfdh.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Phil Milewski
// Copyright 2023 Phil Milewski
//
// This file is part of qFALL-schemes.
//
Expand Down
2 changes: 1 addition & 1 deletion src/signature/pfdh/gpv.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2023 Phil Milewski
// Copyright 2023 Phil Milewski
//
// This file is part of qFALL-schemes.
//
Expand Down
Loading