Differences From Artifact [30690c0cdc]:
- File
tests/ScryptTests.m
— part of check-in
[dc0c6c34ab]
at
2019-02-17 22:44:23
on branch trunk
— tests: Only import ObjFW.h
This prevents forgetting to add an import to ObjFW.h, as the tests would
then not compile. (user: js, size: 8393) [annotate] [blame] [check-ins using]
To Artifact [f9dfdefc9d]:
- File
tests/ScryptTests.m
— part of check-in
[09be825f88]
at
2019-09-29 15:58:33
on branch trunk
— Remove OFAutoreleasePool
OFAutoreleasePools have long been discouraged in favor of the runtime's
autorelease pools. (user: js, size: 8391) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
131 132 133 134 135 136 137 | 0xA7, 0x7A, 0x41, 0xA4 }; #endif @implementation TestsAppDelegate (ScryptTests) - (void)scryptTests { | | | 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | 0xA7, 0x7A, 0x41, 0xA4 }; #endif @implementation TestsAppDelegate (ScryptTests) - (void)scryptTests { void *pool = objc_autoreleasePoolPush(); uint32_t salsa20Buffer[16]; uint32_t blockMixBuffer[32]; uint32_t ROMixBuffer[32], ROMixTmp[17 * 32]; unsigned char output[64]; TEST(@"Salsa20/8 Core", R(memcpy(salsa20Buffer, salsa20Input, 64)) && |
︙ | ︙ | |||
172 173 174 175 176 177 178 | #if 0 TEST(@"scrypt test vector #4", R(of_scrypt(8, 1048576, 1, (unsigned char *)"SodiumChloride", 14, "pleaseletmein", 13, output, 64)) && memcmp(output, testVector4, 64) == 0) #endif | | | 172 173 174 175 176 177 178 179 180 181 | #if 0 TEST(@"scrypt test vector #4", R(of_scrypt(8, 1048576, 1, (unsigned char *)"SodiumChloride", 14, "pleaseletmein", 13, output, 64)) && memcmp(output, testVector4, 64) == 0) #endif objc_autoreleasePoolPop(pool); } @end |