Adjust keccak test.

This commit is contained in:
chriseth
2023-04-20 22:33:22 +02:00
parent 2678b03a93
commit 1d68bd44fa

View File

@@ -13,8 +13,14 @@ pub extern "C" fn main() -> ! {
let input = b"Solidity";
let mut output = [0u8; 32];
let mut hasher = Keccak::v256();
//hasher.update(input);
hasher.update(input);
hasher.finalize(&mut output);
// println!("{output:x?}");
assert_eq!(
output,
[
96, 41, 143, 120, 204, 11, 71, 23, 11, 167, 156, 16, 170, 56, 81, 215, 100, 139, 217,
111, 47, 142, 70, 161, 157, 188, 119, 124, 54, 251, 12, 0,
],
);
loop {}
}