Differences From Artifact [ae6cec6554]:
- File
src/OFMD5Hash.m
— part of check-in
[3d16a30f41]
at
2013-06-22 12:12:36
on branch trunk
— Rework exceptions.
This mostly removes the argument for the class in which the exception
occurred. As backtraces were recently added for all platforms, the
passed class does not give any extra information on where the exception
occurred anymore.This also removes a few other arguments which were not too helpful. In
the past, the idea was to pass as many arguments as possible so that it
is easier to find the origin of the exception. However, as backtraces
are a much better way to find the origin, those are not useful anymore
and just make the exception more cumbersome to use. The rule is now to
only pass arguments that might help in recovering from the exception or
provide information that is otherwise not easily accessible. (user: js, size: 7159) [annotate] [blame] [check-ins using]
To Artifact [ffb1eddc7f]:
- File src/OFMD5Hash.m — part of check-in [75f2aa5096] at 2013-12-08 17:43:19 on branch trunk — Clean up OFHash and the Hashing categories. (user: js, size: 7171) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
211 212 213 214 215 216 217 | length -= 64; } /* Handle any remaining bytes of data. */ memcpy(_in.u8, buffer, length); } | | | 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 | length -= 64; } /* Handle any remaining bytes of data. */ memcpy(_in.u8, buffer, length); } - (const uint8_t*)digest { uint8_t *p; size_t count; if (_calculated) return (uint8_t*)_buffer; |
︙ | ︙ | |||
256 257 258 259 260 261 262 | _in.u32[15] = _bits[1]; md5_transform(_buffer, _in.u32); BSWAP32_VEC_IF_BE(_buffer, 4); _calculated = true; | | | 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 | _in.u32[15] = _bits[1]; md5_transform(_buffer, _in.u32); BSWAP32_VEC_IF_BE(_buffer, 4); _calculated = true; return (const uint8_t*)_buffer; } - (bool)isCalculated { return _calculated; } @end |