Skip to content

Commit c918c30

Browse files
committed
Correct the names of hash wrappers.
1 parent dda84c6 commit c918c30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

concordium-std/src/test_infrastructure.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ impl HasCryptoPrimitives for TestCryptoPrimitives {
889889
#[cfg(feature = "crypto-primitives")]
890890
{
891891
use sha2::Digest;
892-
Hash256Sha2(sha2::Sha256::digest(data).into())
892+
HashSha2256(sha2::Sha256::digest(data).into())
893893
}
894894
#[cfg(not(feature = "crypto-primitives"))]
895895
{
@@ -905,7 +905,7 @@ impl HasCryptoPrimitives for TestCryptoPrimitives {
905905
#[cfg(feature = "crypto-primitives")]
906906
{
907907
use sha3::Digest;
908-
Hash256Sha3(sha3::Sha3_256::digest(data).into())
908+
HashSha3256(sha3::Sha3_256::digest(data).into())
909909
}
910910
#[cfg(not(feature = "crypto-primitives"))]
911911
{
@@ -921,7 +921,7 @@ impl HasCryptoPrimitives for TestCryptoPrimitives {
921921
#[cfg(feature = "crypto-primitives")]
922922
{
923923
use sha3::Digest;
924-
Hash256Keccak(sha3::Keccak256::digest(data).into())
924+
HashKeccak256(sha3::Keccak256::digest(data).into())
925925
}
926926
#[cfg(not(feature = "crypto-primitives"))]
927927
{

0 commit comments

Comments
 (0)