Skip to content

Commit 8386d78

Browse files
committed
remove debug println
1 parent 9c5f8da commit 8386d78

File tree

1 file changed

+0
-3
lines changed
  • cipher/src/algorithm/sha256

1 file changed

+0
-3
lines changed

cipher/src/algorithm/sha256/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ pub struct Sha256 {
1515

1616
impl Default for Sha256 {
1717
fn default() -> Self {
18-
println!("Hash update: {:?}", INITIAL_HASH);
1918
Self {
2019
hash: INITIAL_HASH,
2120
buffer: Buffer::new(),
@@ -79,7 +78,6 @@ impl Sha256 {
7978
} else {
8079
// If the remainder is less than 56 bytes, we can pad the current block
8180
// and write the length at the end.
82-
println!("The total bytes written: {:?}", bit_length_bytes);
8381
block[56..64].copy_from_slice(&bit_length_bytes);
8482
self.process_block(&block_bytes_to_words(&block));
8583
}
@@ -102,7 +100,6 @@ impl Sha256 {
102100

103101
fn process_block(&mut self, block: &[u32; 16]) {
104102
compress_block(block, &mut self.hash);
105-
println!("Hash update: {:?}", self.hash);
106103
}
107104
}
108105

0 commit comments

Comments
 (0)