@@ -81,8 +81,9 @@ impl Sha256 {
81
81
} ;
82
82
83
83
// Sha256 compression function takes 64 byte blocks as inputs but our blocks in
84
- // `self.chunks` can have arbitrary size to simplify the api. So we need to repartition
85
- // them to 64 byte blocks and feed those into the compression function.
84
+ // `self.chunks` can have arbitrary size to simplify the api. So we need to
85
+ // repartition them to 64 byte blocks and feed those into the
86
+ // compression function.
86
87
let mut remainder = None ;
87
88
let mut block: Vec < Vector < U8 > > = vec ! [ ] ;
88
89
let mut chunk_iter = self . chunks . iter ( ) . copied ( ) ;
@@ -240,8 +241,8 @@ mod tests {
240
241
let input = & inputs[ 2 ] ;
241
242
let reference = references[ 2 ] ;
242
243
243
- // This has to be 64 bytes, because the sha256 compression function operates on 64 byte
244
- // blocks.
244
+ // This has to be 64 bytes, because the sha256 compression function operates on
245
+ // 64 byte blocks.
245
246
let skip = 64 ;
246
247
247
248
let state = compress_256 ( Sha256 :: IV , & input[ ..skip] ) ;
@@ -318,8 +319,8 @@ mod tests {
318
319
let input = & inputs[ 2 ] ;
319
320
let reference = references[ 2 ] ;
320
321
321
- // This has to be 64 bytes, because the sha256 compression function operates on 64 byte
322
- // blocks.
322
+ // This has to be 64 bytes, because the sha256 compression function operates on
323
+ // 64 byte blocks.
323
324
let skip = 64 ;
324
325
325
326
let state = compress_256 ( Sha256 :: IV , & input[ ..skip] ) ;
0 commit comments