Skip to content

Commit

Permalink
6A
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-shandar committed Jul 18, 2024
1 parent 224d573 commit 83f2ac4
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 @@ -357,5 +357,27 @@ mod tests {
0xd4f8ba3_9f2bbf210_e284c3df_1af0f4a8
])
);
// "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEFabcdefghij"
// 87c074cbd39fe6f70f6cdee1652a0b5c87d443838c3110907c8fddb9ea45aa30
assert_eq!(
f(
SHA256,
[
[
0x43444546_38394142_34353637_30313233,
0x43444546_38394142_34353637_30313233
],
[
0x43444546_38394142_34353637_30313233,
0x696A0000_65666768_61626364
]
],
464
),
u256x::swap32([
0x87d4438_38c311090_7c8fddb9_ea45aa30,
0x87c074c_bd39fe6f7_0f6cdee1_652a0b5c
])
);
}
}

0 comments on commit 83f2ac4

Please sign in to comment.