Differences From Artifact [264141bf82]:
- File src/OFSHA1Hash.m — part of check-in [9b2d255a3d] at 2013-02-18 23:05:20 on branch trunk — Make OFHash a protocol. (user: js, size: 5458) [annotate] [blame] [check-ins using]
To Artifact [fbdf78c69a]:
- File
src/OFSHA1Hash.m
— part of check-in
[c5ef582958]
at
2013-03-04 17:20:15
on branch trunk
— Replace BOOL with bool.
The only places where BOOL is left are those where they are required by
the ABI. (user: js, size: 5459) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
189 190 191 192 193 194 195 | /* Should cause a sha1_transform() */ sha1_update(_state, &_count, _buffer, finalcount, 8); for (i = 0; i < OF_SHA1_DIGEST_SIZE; i++) _digest[i] = (char)((_state[i >> 2] >> ((3 - (i & 3)) * 8)) & 255); | | | | 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 | /* Should cause a sha1_transform() */ sha1_update(_state, &_count, _buffer, finalcount, 8); for (i = 0; i < OF_SHA1_DIGEST_SIZE; i++) _digest[i] = (char)((_state[i >> 2] >> ((3 - (i & 3)) * 8)) & 255); _calculated = true; return _digest; } - (bool)isCalculated { return _calculated; } @end |