Overview
Comment: | Fix a bug in OFHashing (SHA1 didn't cache correctly in -[digit]). |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
6a0ac6a3f122f245bad8714d64899030 |
User & Date: | js on 2009-08-28 17:57:07 |
Other Links: | manifest | tags |
Context
2009-08-30
| ||
20:06 | Add some PowerPC assembly optimizations. check-in: 37e9b7c11c user: js tags: trunk | |
2009-08-28
| ||
17:57 | Fix a bug in OFHashing (SHA1 didn't cache correctly in -[digit]). check-in: 6a0ac6a3f1 user: js tags: trunk | |
02:12 | Add assembly implementation for OF_BSWAP{16,32,64} for x86 and AMD64. check-in: 42aaecc3cd user: js tags: trunk | |
Changes
Modified src/OFHashes.h from [d2aa9374f1] to [5648aee5dd].
︙ | |||
8 9 10 11 12 13 14 | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | - - + + | * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ #import "OFObject.h" #import "OFString.h" |
︙ | |||
42 43 44 45 46 47 48 | 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 70 | - + - + | * \param buf The buffer which should be included into calculation. * \param size The size of the buffer */ - updateWithBuffer: (const char*)buf ofSize: (size_t)size; /** |
︙ | |||
78 79 80 81 82 83 84 | 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | - + | * \param buf The buffer which should be included into calculation. * \param size The size of the buffer */ - updateWithBuffer: (const char*)buf ofSize: (size_t)size; /** |
︙ |
Modified src/OFHashes.m from [a7bb9e72ee] to [11feb3bb82].
︙ | |||
16 17 18 19 20 21 22 | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | - - - + + + | #import "OFHashes.h" #import "OFAutoreleasePool.h" #import "OFExceptions.h" #import "OFMacros.h" int _OFHashing_reference; |
︙ | |||
244 245 246 247 248 249 250 | 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 | - - - + + + | #undef F1 #undef F2 #undef F3 #undef F4 #undef MD5STEP |
︙ | |||
406 407 408 409 410 411 412 | 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 | - + + + | sha1_update(state, &count, buffer, "\200", 1); while ((count & 504) != 448) sha1_update(state, &count, buffer, "\0", 1); /* Should cause a sha1_transform() */ sha1_update(state, &count, buffer, finalcount, 8); |
︙ |
Modified tests/OFHashes/OFHashes.m from [326e3de950] to [b3e57d0d68].
︙ | |||
13 14 15 16 17 18 19 | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | - + - + | #include <stdio.h> #include <string.h> #import "OFHashes.h" #import "OFFile.h" |
︙ | |||
40 41 42 43 44 45 46 | 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | - + - + | [md5 updateWithBuffer: buf ofSize: len]; [sha1 updateWithBuffer: buf ofSize: len]; } [f close]; |