Skip to content

Commit

Permalink
update groestl
Browse files Browse the repository at this point in the history
  • Loading branch information
wakiyamap committed Jun 29, 2024
1 parent 5d8a710 commit 88b0ff3
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 17 deletions.
55 changes: 41 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ keywords = ["lyra2", "Lyra2RE", "Lyra2REv2", "Lyra2REv3"]
[dependencies]
sha3 = "0.9.1"
blake-hash = "0.4.1"
groestl = "0.9.0"
groestl = "0.10.1"
byteorder = { version = "1.3.4", default-features = false }
skein-hash = "0.3.1"
digest = "0.9.0"
5 changes: 3 additions & 2 deletions src/lyra2re.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
//! `lyra2re` crate has necessary formulas to calculate `lyra2re`.
use crate::lyra2;
use digest::generic_array::typenum::U32;
use blake_hash::Digest;
use blake_hash::Digest as BlakeDigest;
use groestl::Digest;

/// Returns the calculation result of lyra2re.
/// # Examples
Expand All @@ -30,7 +31,7 @@ pub fn sum(input: Vec<u8>) -> Vec<u8> {

let result_skein = skein_hash::Skein512::<U32>::digest(&result_lyra2);

groestl::Groestl256::digest(&result_skein).to_vec()
groestl::Groestl256::digest(result_skein).to_vec()
}

#[test]
Expand Down

0 comments on commit 88b0ff3

Please sign in to comment.