Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jotabulacios committed Oct 16, 2024
1 parent 2a0338f commit ca9d36b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crypto/src/hash/rescue_prime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ mod tests {
println!("let expected_hashes = vec![");
elements.iter().enumerate().for_each(|(i, _)| {
let input = elements.iter().take(i + 1); // Tomar el prefijo hasta i + 1
let input = elements.iter().take(i + 1);
let hash_output = rescue.hash(input.cloned().collect::<Vec<_>>().as_slice());
print!(" vec![");
Expand Down
2 changes: 1 addition & 1 deletion crypto/src/hash/rescue_prime/parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use super::Fp;
pub const ALPHA: u64 = 7;
pub const ALPHA_INV: u64 = 10540996611094048183;

// Constants for the Rescue hash function, these were obtained using the paper implementation in sage
// Constants obtained using the paper implementation in Sage
// https://github.com/ASDiscreteMathematics/rpo/tree/master/reference_implementation

pub const ROUND_CONSTANTS_128: [Fp; 168] = [
Expand Down

0 comments on commit ca9d36b

Please sign in to comment.