Skip to content

Commit 36a7559

Browse files
committed
Add panic for non shani path
1 parent 89b91e3 commit 36a7559

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sha2/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ pub fn compress256(state: &mut [u32; 8], block: &[u8; 64]) {
4141
if x.ebx & (1 << 29) != 0 {
4242
compress256_shani(state, block);
4343
} else {
44+
panic!("foo!");
4445
unsafe { sha256_compress(state, block) };
4546
}
4647
}

0 commit comments

Comments
 (0)