ObjFW  Diff

Differences From Artifact [4bdaecb076]:

  • File src/OFSHA224Or256Hash.m — part of check-in [c56b388459] at 2015-01-31 11:46:26 on branch trunk — OF{MD5,RIPEMD160,SHA*}Hash: Small optimization (user: js size: 4575)

To Artifact [1adbe2ccf4]:

  • File src/OFSHA224Or256Hash.m — part of check-in [7c27db9fe0] at 2015-02-01 00:47:18 on branch trunk — Add -[OFHash reset] This is useful to calculate many hashes without allocating new objects. (user: js size: 4763)

196
197
198
199
200
201
202














203
	return (const uint8_t*)_state;
}

- (bool)isCalculated
{
	return _calculated;
}














@end







>
>
>
>
>
>
>
>
>
>
>
>
>
>

196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
	return (const uint8_t*)_state;
}

- (bool)isCalculated
{
	return _calculated;
}

- (void)reset
{
	[self OF_resetState];
	_bits = 0;
	memset(&_buffer, 0, sizeof(_buffer));
	_bufferLength = 0;
	_calculated = false;
}

- (void)OF_resetState
{
	OF_UNRECOGNIZED_SELECTOR
}
@end