Overview
Comment: | Clean up OFHash and the Hashing categories. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
75f2aa50965d2f9c258815081223a81a |
User & Date: | js on 2013-12-08 17:43:19 |
Other Links: | manifest | tags |
Context
2013-12-09
| ||
22:07 | Fix createSymbolicLinkAtPath:withDestinationPath:. check-in: ba2b4661de user: js tags: trunk | |
2013-12-08
| ||
17:43 | Clean up OFHash and the Hashing categories. check-in: 75f2aa5096 user: js tags: trunk | |
2013-12-07
| ||
17:30 | macros.h: Add OF_BIGGEST_ALIGNMENT. check-in: fdfb2be253 user: js tags: trunk | |
Changes
Modified src/OFDataArray+Hashing.m from [2171c1b800] to [4c3a34c5e7].
︙ | |||
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | + - + - - - + + + + - + - + - + - - - - - - + - - - - + - - - - - + - - - - + - - + - - - | * file. */ #include "config.h" #import "OFDataArray.h" #import "OFString.h" #import "OFHash.h" #import "OFMD5Hash.h" #import "OFSHA1Hash.h" #import "autorelease.h" int _OFDataArray_Hashing_reference; @implementation OFDataArray (Hashing) |
Modified src/OFHash.h from [ecafca2322] to [660b2e2817].
︙ | |||
58 59 60 61 62 63 64 | 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | - + | * @brief Returns a buffer containing the hash. * * The size of the buffer depends on the hash used. The buffer is part of the * receiver's memory pool. * * @return A buffer containing the hash */ |
︙ |
Modified src/OFMD5Hash.h from [fea508e8e7] to [795e2e7102].
︙ | |||
12 13 14 15 16 17 18 | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | - - | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #import "OFHash.h" |
︙ |
Modified src/OFMD5Hash.m from [ae6cec6554] to [ffb1eddc7f].
︙ | |||
211 212 213 214 215 216 217 | 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); } |
︙ | |||
256 257 258 259 260 261 262 | 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; |
Modified src/OFSHA1Hash.h from [88105141d2] to [4ec040338d].
︙ | |||
12 13 14 15 16 17 18 | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | - - - + | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #import "OFHash.h" |
Modified src/OFSHA1Hash.m from [0b7be48688] to [4f0ad14fda].
︙ | |||
166 167 168 169 170 171 172 | 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 | - + - + | if (_calculated) @throw [OFHashAlreadyCalculatedException exceptionWithHash: self]; sha1_update(_state, &_count, _buffer, buffer, length); } |
Modified src/OFString+Hashing.m from [19f8d7a88b] to [903e063a45].
︙ | |||
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | + - + - - - + + + + - + - - + + - + - + - + - - - - - - + - - - - + - - - - - + - - - - + - - + - - - | * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" #import "OFString.h" #import "OFHash.h" #import "OFMD5Hash.h" #import "OFSHA1Hash.h" #import "autorelease.h" int _OFString_Hashing_reference; @implementation OFString (Hashing) |
Modified tests/OFMD5HashTests.m from [33fe966ada] to [4481969842].
︙ | |||
25 26 27 28 29 30 31 | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | - + | #import "OFHashAlreadyCalculatedException.h" #import "TestsAppDelegate.h" static OFString *module = @"OFMD5Hash"; |
︙ | |||
47 48 49 50 51 52 53 | 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | - + - | size_t len = [f readIntoBuffer: buf length: 64]; [md5 updateWithBuffer: buf length: len]; } [f close]; |
Modified tests/OFSHA1HashTests.m from [2d11f0346d] to [90393e26d2].
︙ | |||
25 26 27 28 29 30 31 | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | - + | #import "OFHashAlreadyCalculatedException.h" #import "TestsAppDelegate.h" static OFString *module = @"OFHash"; |
︙ | |||
48 49 50 51 52 53 54 | 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | - + - | size_t len = [f readIntoBuffer: buf length: 64]; [sha1 updateWithBuffer: buf length: len]; } [f close]; |