diff --git a/blockset-lib/src/sha2/hash_state.rs b/blockset-lib/src/sha2/hash_state.rs index e7231257..553f825f 100644 --- a/blockset-lib/src/sha2/hash_state.rs +++ b/blockset-lib/src/sha2/hash_state.rs @@ -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 + ]) + ); } }