From 7f3d4b8966067f8ccf8d34ae7f6f6d3e70187c7a Mon Sep 17 00:00:00 2001 From: Bobbin Threadbare Date: Tue, 10 Oct 2023 15:16:51 -0700 Subject: [PATCH] fix: RPO Falcon build on Windows --- CHANGELOG.md | 4 ++++ Cargo.toml | 4 ++-- src/dsa/rpo_falcon512/falcon_c/rpo.c | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3372864..b29477e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.7.1 (2023-10-10) + +* Fixed RPO Falcon signature build on Windows. + ## 0.7.0 (2023-10-05) * Replaced `MerklePathSet` with `PartialMerkleTree` (#165). diff --git a/Cargo.toml b/Cargo.toml index ea53f8e..ec93d06 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "miden-crypto" -version = "0.7.0" +version = "0.7.1" description = "Miden Cryptographic primitives" authors = ["miden contributors"] readme = "README.md" license = "MIT" repository = "https://github.com/0xPolygonMiden/crypto" -documentation = "https://docs.rs/miden-crypto/0.7.0" +documentation = "https://docs.rs/miden-crypto/0.7.1" categories = ["cryptography", "no-std"] keywords = ["miden", "crypto", "hash", "merkle"] edition = "2021" diff --git a/src/dsa/rpo_falcon512/falcon_c/rpo.c b/src/dsa/rpo_falcon512/falcon_c/rpo.c index a33e81d..4879c12 100644 --- a/src/dsa/rpo_falcon512/falcon_c/rpo.c +++ b/src/dsa/rpo_falcon512/falcon_c/rpo.c @@ -79,8 +79,8 @@ static uint64_t mult_mod_p(uint64_t x, uint64_t y) * RPO128 Permutation */ -static const uint64_t STATE_WIDTH = 12; -static const uint64_t NUM_ROUNDS = 7; +#define STATE_WIDTH 12 +#define NUM_ROUNDS 7 /* * MDS matrix