File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ fn sha1() -> sha1 {
61
61
work_buf : @~[ mut u32] } ;
62
62
63
63
fn add_input ( st : sha1state , msg : ~[ u8 ] ) {
64
- /* FIXME: Should be typestate precondition (#2345) */
65
64
assert ( !st. computed ) ;
66
65
for vec:: each( msg) |element| {
67
66
st. msg_block [ st. msg_block_idx ] = element;
@@ -78,7 +77,6 @@ fn sha1() -> sha1 {
78
77
}
79
78
}
80
79
fn process_msg_block ( st : sha1state ) {
81
- // FIXME: Make precondition (#2345)
82
80
assert ( vec:: len ( st. h ) == digest_buf_len) ;
83
81
assert ( vec:: len ( * st. work_buf ) == work_buf_len) ;
84
82
let mut t: int ; // Loop counter
@@ -180,7 +178,6 @@ fn sha1() -> sha1 {
180
178
* can be assumed that the message digest has been computed.
181
179
*/
182
180
fn pad_msg ( st : sha1state ) {
183
- // FIXME: Should be a precondition (#2345)
184
181
assert ( vec:: len ( st. msg_block ) == msg_block_len) ;
185
182
186
183
/*
@@ -219,7 +216,6 @@ fn sha1() -> sha1 {
219
216
220
217
impl sha1state : sha1 {
221
218
fn reset ( ) {
222
- // FIXME: Should be typestate precondition (#2345)
223
219
assert ( vec:: len ( self . h ) == digest_buf_len) ;
224
220
self . len_low = 0u32 ;
225
221
self . len_high = 0u32 ;
You can’t perform that action at this time.
0 commit comments