Skip to content

Commit

Permalink
6B
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-shandar committed Jul 18, 2024
1 parent 83f2ac4 commit 0bd41e5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions blockset-lib/src/sha2/hash_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,5 +379,27 @@ mod tests {
0x87c074c_bd39fe6f7_0f6cdee1_652a0b5c
])
);
// "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEFabcdefghijk"
// af2bd64ee47c437502fee60861488b70de1fb8a7f614c0c496974e2308703058
assert_eq!(
f(
SHA256,
[
[
0x43444546_38394142_34353637_30313233,
0x43444546_38394142_34353637_30313233
],
[
0x43444546_38394142_34353637_30313233,
0x696A6B00_65666768_61626364
]
],
472
),
u256x::swap32([
0xde1fb8a_7f614c0c4_96974e23_08703058,
0xaf2bd64_ee47c4375_02fee608_61488b70
])
);
}
}

0 comments on commit 0bd41e5

Please sign in to comment.