Skip to content

Commit

Permalink
Use correct length of anemoi round keys (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
confuseSUN authored Aug 3, 2023
1 parent 0cc6d13 commit 6b6c022
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 22 deletions.
Binary file modified api/parameters/abar-to-ar-vk-ed25519.bin
Binary file not shown.
Binary file modified api/parameters/abar-to-ar-vk-secp256k1.bin
Binary file not shown.
Binary file modified api/parameters/abar-to-bar-vk-ed25519.bin
Binary file not shown.
Binary file modified api/parameters/abar-to-bar-vk-secp256k1.bin
Binary file not shown.
Binary file modified api/parameters/ar-to-abar-vk.bin
Binary file not shown.
Binary file modified api/parameters/bar-to-abar-vk.bin
Binary file not shown.
Binary file modified api/parameters/transfer-vk-ed25519-specific.bin
Binary file not shown.
Binary file modified api/parameters/transfer-vk-secp256k1-specific.bin
Binary file not shown.
2 changes: 0 additions & 2 deletions crypto/src/anemoi_jive/tests/bls12_381.rs
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,6 @@ fn test_eval_stream_cipher_flatten() {
x[i] += &y[i];
}

println!("{}", rr);

assert_eq!(x, trace.after_permutation[rr].0);
assert_eq!(y, trace.after_permutation[rr].1);
}
Expand Down
2 changes: 0 additions & 2 deletions crypto/src/anemoi_jive/tests/bn254.rs
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,6 @@ fn test_eval_stream_cipher_flatten() {
x[i] += &y[i];
}

println!("{}", rr);

assert_eq!(x, trace.after_permutation[rr].0);
assert_eq!(y, trace.after_permutation[rr].1);
}
Expand Down
2 changes: 1 addition & 1 deletion plonk/src/plonk/constraint_system/turbo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ impl<F: Scalar> ConstraintSystem for TurboCS<F> {
empty_poly,
];
for i in self.anemoi_constraints_indices.iter() {
for j in 0..12 {
for j in 0..14 {
polys[0][*i + j] = self.anemoi_preprocessed_round_keys_x[j][0];
polys[1][*i + j] = self.anemoi_preprocessed_round_keys_x[j][1];
polys[2][*i + j] = self.anemoi_preprocessed_round_keys_y[j][0];
Expand Down
34 changes: 17 additions & 17 deletions smoke-tests/src/tests/smoke_axfr_compatibility.rs

Large diffs are not rendered by default.

0 comments on commit 6b6c022

Please sign in to comment.