Overview
| Comment: | OFScryptTests: Disable 3rd vector on AmigaOS/m68k |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
051b264d4ad5499ee6b219e3c918cb2e |
| User & Date: | js on 2021-10-24 11:15:05 |
| Other Links: | manifest | tags |
Context
|
2021-10-24
| ||
| 22:29 | Merge support for UNIX sockets (check-in: d2f5000bb1 user: js tags: trunk) | |
| 13:40 | Merge trunk into branch "unix-sockets" (check-in: 55aa600e97 user: js tags: unix-sockets) | |
| 11:15 | OFScryptTests: Disable 3rd vector on AmigaOS/m68k (check-in: 051b264d4a user: js tags: trunk) | |
| 11:14 | OFSystemInfo: Detect OS version & CPU on AmigaOS 3 (check-in: 74d7354d62 user: js tags: trunk) | |
Changes
Modified tests/OFScryptTests.m from [2e44374c3f] to [728fb073b3].
| ︙ | ︙ | |||
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
0xFD, 0xBA, 0xBE, 0x1C, 0x9D, 0x34, 0x72, 0x00, 0x78, 0x56, 0xE7, 0x19,
0x0D, 0x01, 0xE9, 0xFE, 0x7C, 0x6A, 0xD7, 0xCB, 0xC8, 0x23, 0x78, 0x30,
0xE7, 0x73, 0x76, 0x63, 0x4B, 0x37, 0x31, 0x62, 0x2E, 0xAF, 0x30, 0xD9,
0x2E, 0x22, 0xA3, 0x88, 0x6F, 0xF1, 0x09, 0x27, 0x9D, 0x98, 0x30, 0xDA,
0xC7, 0x27, 0xAF, 0xB9, 0x4A, 0x83, 0xEE, 0x6D, 0x83, 0x60, 0xCB, 0xDF,
0xA2, 0xCC, 0x06, 0x40
};
static const unsigned char testVector3[64] = {
0x70, 0x23, 0xBD, 0xCB, 0x3A, 0xFD, 0x73, 0x48, 0x46, 0x1C, 0x06, 0xCD,
0x81, 0xFD, 0x38, 0xEB, 0xFD, 0xA8, 0xFB, 0xBA, 0x90, 0x4F, 0x8E, 0x3E,
0xA9, 0xB5, 0x43, 0xF6, 0x54, 0x5D, 0xA1, 0xF2, 0xD5, 0x43, 0x29, 0x55,
0x61, 0x3F, 0x0F, 0xCF, 0x62, 0xD4, 0x97, 0x05, 0x24, 0x2A, 0x9A, 0xF9,
0xE6, 0x1E, 0x85, 0xDC, 0x0D, 0x65, 0x1E, 0x40, 0xDF, 0xCF, 0x01, 0x7B,
0x45, 0x57, 0x58, 0x87
};
/* The forth test vector is too expensive to include it in the tests. */
#if 0
static const unsigned char testVector4[64] = {
0x21, 0x01, 0xCB, 0x9B, 0x6A, 0x51, 0x1A, 0xAE, 0xAD, 0xDB, 0xBE, 0x09,
0xCF, 0x70, 0xF8, 0x81, 0xEC, 0x56, 0x8D, 0x57, 0x4A, 0x2F, 0xFD, 0x4D,
0xAB, 0xE5, 0xEE, 0x98, 0x20, 0xAD, 0xAA, 0x47, 0x8E, 0x56, 0xFD, 0x8F,
0x4B, 0xA5, 0xD0, 0x9F, 0xFA, 0x1C, 0x6D, 0x92, 0x7C, 0x40, 0xF4, 0xC3,
| > > > | 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
0xFD, 0xBA, 0xBE, 0x1C, 0x9D, 0x34, 0x72, 0x00, 0x78, 0x56, 0xE7, 0x19,
0x0D, 0x01, 0xE9, 0xFE, 0x7C, 0x6A, 0xD7, 0xCB, 0xC8, 0x23, 0x78, 0x30,
0xE7, 0x73, 0x76, 0x63, 0x4B, 0x37, 0x31, 0x62, 0x2E, 0xAF, 0x30, 0xD9,
0x2E, 0x22, 0xA3, 0x88, 0x6F, 0xF1, 0x09, 0x27, 0x9D, 0x98, 0x30, 0xDA,
0xC7, 0x27, 0xAF, 0xB9, 0x4A, 0x83, 0xEE, 0x6D, 0x83, 0x60, 0xCB, 0xDF,
0xA2, 0xCC, 0x06, 0x40
};
/* The third test vector is too expensive for m68k Amigas. */
#ifndef OF_AMIGAOS_M68K
static const unsigned char testVector3[64] = {
0x70, 0x23, 0xBD, 0xCB, 0x3A, 0xFD, 0x73, 0x48, 0x46, 0x1C, 0x06, 0xCD,
0x81, 0xFD, 0x38, 0xEB, 0xFD, 0xA8, 0xFB, 0xBA, 0x90, 0x4F, 0x8E, 0x3E,
0xA9, 0xB5, 0x43, 0xF6, 0x54, 0x5D, 0xA1, 0xF2, 0xD5, 0x43, 0x29, 0x55,
0x61, 0x3F, 0x0F, 0xCF, 0x62, 0xD4, 0x97, 0x05, 0x24, 0x2A, 0x9A, 0xF9,
0xE6, 0x1E, 0x85, 0xDC, 0x0D, 0x65, 0x1E, 0x40, 0xDF, 0xCF, 0x01, 0x7B,
0x45, 0x57, 0x58, 0x87
};
#endif
/* The forth test vector is too expensive to include it in the tests. */
#if 0
static const unsigned char testVector4[64] = {
0x21, 0x01, 0xCB, 0x9B, 0x6A, 0x51, 0x1A, 0xAE, 0xAD, 0xDB, 0xBE, 0x09,
0xCF, 0x70, 0xF8, 0x81, 0xEC, 0x56, 0x8D, 0x57, 0x4A, 0x2F, 0xFD, 0x4D,
0xAB, 0xE5, 0xEE, 0x98, 0x20, 0xAD, 0xAA, 0x47, 0x8E, 0x56, 0xFD, 0x8F,
0x4B, 0xA5, 0xD0, 0x9F, 0xFA, 0x1C, 0x6D, 0x92, 0x7C, 0x40, 0xF4, 0xC3,
|
| ︙ | ︙ | |||
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 |
.password = "password",
.passwordLength = 8,
.key = output,
.keyLength = 64,
.allowsSwappableMemory = true
})) && memcmp(output, testVector2, 64) == 0)
TEST(@"scrypt test vector #3",
R(OFScrypt((OFScryptParameters){
.blockSize = 8,
.costFactor = 16384,
.parallelization = 1,
.salt = (unsigned char *)"SodiumChloride",
.saltLength = 14,
.password = "pleaseletmein",
.passwordLength = 13,
.key = output,
.keyLength = 64,
.allowsSwappableMemory = true
})) && memcmp(output, testVector3, 64) == 0)
/* The forth test vector is too expensive to include it in the tests. */
#if 0
TEST(@"scrypt test vector #4",
R(OFScrypt((OFScryptParameters){
.blockSize = 8,
.costFactor = 1048576,
| > > > | 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 205 206 207 208 209 |
.password = "password",
.passwordLength = 8,
.key = output,
.keyLength = 64,
.allowsSwappableMemory = true
})) && memcmp(output, testVector2, 64) == 0)
/* The third test vector is too expensive for m68k Amigas. */
#ifndef OF_AMIGAOS_M68K
TEST(@"scrypt test vector #3",
R(OFScrypt((OFScryptParameters){
.blockSize = 8,
.costFactor = 16384,
.parallelization = 1,
.salt = (unsigned char *)"SodiumChloride",
.saltLength = 14,
.password = "pleaseletmein",
.passwordLength = 13,
.key = output,
.keyLength = 64,
.allowsSwappableMemory = true
})) && memcmp(output, testVector3, 64) == 0)
#endif
/* The forth test vector is too expensive to include it in the tests. */
#if 0
TEST(@"scrypt test vector #4",
R(OFScrypt((OFScryptParameters){
.blockSize = 8,
.costFactor = 1048576,
|
| ︙ | ︙ |