Skip to content

Commit

Permalink
01234567
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-shandar committed Jul 18, 2024
1 parent d85c3c8 commit 09d876f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions blockset-lib/src/sha2/hash_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ mod tests {
0x1be2e45_2b46d7a0d_9656bbb1_f768e824
])
);
/*
// "01234"
// c565fe03ca9b6242e01dfddefe9bba3d98b270e19cd02fd85ceaf75e2b25bf12
assert_eq!(
Expand All @@ -125,6 +124,14 @@ mod tests {
0xc565fe0_3ca9b6242_e01dfdde_fe9bba3d
])
);
*/
// "01234567"
// 924592b9b103f14f833faafb67f480691f01988aa457c0061769f58cd47311bc
assert_eq!(
f(SHA256, [[0x3435_3637_3031_3233, 0], [0, 0]], 64),
u256x::swap32([
0x1f01988_aa457c006_1769f58c_d47311bc,
0x924592b_9b103f14f_833faafb_67f48069
])
);
}
}

0 comments on commit 09d876f

Please sign in to comment.