diff options
author | Mattias Andrée <maandree@kth.se> | 2024-08-24 00:28:01 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-08-24 00:28:01 +0200 |
commit | 5dc20ecaf0bd3b8e96d15b9d25ee306ba50bb654 (patch) | |
tree | 5182f9cc51087e3b0ebbf07d6227d4967321535c | |
parent | Document when things were introduced (diff) | |
download | libhashsum-5dc20ecaf0bd3b8e96d15b9d25ee306ba50bb654.tar.gz libhashsum-5dc20ecaf0bd3b8e96d15b9d25ee306ba50bb654.tar.bz2 libhashsum-5dc20ecaf0bd3b8e96d15b9d25ee306ba50bb654.tar.xz |
Disable the massive tests
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | sha1.c | 6 | ||||
-rw-r--r-- | sha_224.c | 2 | ||||
-rw-r--r-- | sha_256.c | 2 | ||||
-rw-r--r-- | sha_384.c | 2 | ||||
-rw-r--r-- | sha_512.c | 44 |
5 files changed, 40 insertions, 16 deletions
@@ -14,10 +14,12 @@ static struct testcase testcases[] = { {1, 0, "abc", "a9993e364706816aba3e25717850c26c9cd0d89d"}, {1, 0, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", "84983e441c3bd26ebaae4aa1f95129e5e54670f1"}, - {1000000UL, 8, "\0", "bef3595266a65a2ff36b700a75e8ed95c68210b6"}, +#ifdef MASSIVE_TESTS {0x20000000UL, 0, "A", "df3f26fce8fa7bec2c61d0506749a320ac7dc942"}, {0x41000000UL, 8, "\0", "320c617b0b6ee1b6f9c3271eae135f40cae22c10"}, - {0x6000003FUL, 0, "\x84", "b20aa99b62e6a480fd93b4d24b2c19ffac649bb8"} + {0x6000003FUL, 0, "\x84", "b20aa99b62e6a480fd93b4d24b2c19ffac649bb8"}, +#endif + {1000000UL, 8, "\0", "bef3595266a65a2ff36b700a75e8ed95c68210b6"} }; @@ -12,9 +12,11 @@ static struct testcase testcases[] = { {1000UL, 0, "A", "a8d0c66b5c6fdfd836eb3c6d04d32dfe66c3b1f168b488bf4c9c66ce"}, {1005UL, 0, "\x99", "cb00ecd03788bf6c0908401e0eb053ac61f35e7e20a2cfd7bd96d640"}, {1000000UL, 8, "\0", "3a5d74b68f14f3a4b2be9289b8d370672d0b3d2f53bc303c59032df3"}, +#ifdef MASSIVE_TESTS {0x20000000UL, 0, "A", "c4250083cf8230bf21065b3014baaaf9f76fecefc21f91cf237dedc9"}, {0x41000000UL, 8, "\0", "014674abc5cb980199935695af22fab683748f4261d4c6492b77c543"}, {0x6000003FUL, 0, "\x84", "a654b50b767a8323c5b519f467d8669837142881dc7ad368a7d5ef8f"}, +#endif {1, 0, "abc", "23097d223405d8228642a477bda255b32aadbce4bda0b3f7e36c9da7"}, {1, 0, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", "75388b16512776cc5dba5da1fd890150b0c6455cb4f58b1952522525"} @@ -15,9 +15,11 @@ static struct testcase testcases[] = { {1000UL, 0, "A", "c2e686823489ced2017f6059b8b239318b6364f6dcd835d0a519105a1eadd6e4"}, {1005UL, 0, "U", "f4d62ddec0f3dd90ea1380fa16a5ff8dc4c54b21740650f24afc4120903552b0"}, {1000000UL, 8, "\0", "d29751f2649b32ff572b5e0a9f541ea660a50f94ff0beedfb0b692b924cc8025"}, +#ifdef MASSIVE_TESTS {0x20000000UL, 0, "Z", "15a1868c12cc53951e182344277447cd0979536badcc512ad24c67e9b2d4f3dd"}, {0x41000000UL, 8, "\0", "461c19a93bd4344f9215f5ec64357090342bc66b15a148317d276e31cbc20b53"}, {0x6000003EUL, 0, "B", "c23ce8a7895f4b21ec0daf37920ac0a262a220045a03eb2dfed48ef9b05aabea"}, +#endif {1, 0, "abc", "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"}, {1, 0, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", "248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1"} @@ -22,12 +22,14 @@ static struct testcase testcases[] = { "1bb8e256da4a0d1e87453528254f223b4cb7e49c4420dbfa766bba4adba44eeca392ff6a9f565bc347158cc970ce44ec"}, {1000000UL, 8, "\0", "8a1979f9049b3fff15ea3a43a4cf84c634fd14acad1c333fecb72c588b68868b66a994386dc0cd1687b9ee2e34983b81"}, +#ifdef MASSIVE_TESTS {0x20000000UL, 0, "Z", "18aded227cc6b562cc7fb259e8f404549e52914531aa1c5d85167897c779cc4b25d0425fd1590e40bd763ec3f4311c1a"}, {0x41000000UL, 8, "\0", "83ab05ca483abe3faa597ad524d31291ae827c5be2b3efcb6391bfed31ccd937b6135e0378c6c7f598857a7c516f207a"}, {0x6000003EUL, 0, "B", "cf852304f8d80209351b37ce69ca7dcf34972b4edb7817028ec55ab67ad3bc96eecb8241734258a85d2afce65d4571e2"}, +#endif {1, 0, "abc", "cb00753f45a35e8bb5a03d699ac65007272c32ab0eded1631a8b605a43ff5bed8086072ba1e7cc2358baeca134c825a7"}, {1, 0, "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu", @@ -8,31 +8,47 @@ static struct testcase testcases[] = { "cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce" "47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e"}, {111UL, 8, "\0", - "77ddd3a542e530fd047b8977c657ba6ce72f1492e360b2b2212cd264e75ec03882e4ff0525517ab4207d14c70c2259ba88d4d335ee0e7e20543d22102ab1788c"}, + "77ddd3a542e530fd047b8977c657ba6ce72f1492e360b2b2212cd264e75ec038" + "82e4ff0525517ab4207d14c70c2259ba88d4d335ee0e7e20543d22102ab1788c"}, {112UL, 8, "\0", - "2be2e788c8a8adeaa9c89a7f78904cacea6e39297d75e0573a73c756234534d6627ab4156b48a6657b29ab8beb73334040ad39ead81446bb09c70704ec707952"}, + "2be2e788c8a8adeaa9c89a7f78904cacea6e39297d75e0573a73c756234534d6" + "627ab4156b48a6657b29ab8beb73334040ad39ead81446bb09c70704ec707952"}, {113UL, 8, "\0", - "0e67910bcf0f9ccde5464c63b9c850a12a759227d16b040d98986d54253f9f34322318e56b8feb86c5fb2270ed87f31252f7f68493ee759743909bd75e4bb544"}, + "0e67910bcf0f9ccde5464c63b9c850a12a759227d16b040d98986d54253f9f34" + "322318e56b8feb86c5fb2270ed87f31252f7f68493ee759743909bd75e4bb544"}, {122UL, 8, "\0", - "4f3f095d015be4a7a7cc0b8c04da4aa09e74351e3a97651f744c23716ebd9b3e822e5077a01baa5cc0ed45b9249e88ab343d4333539df21ed229da6f4a514e0f"}, + "4f3f095d015be4a7a7cc0b8c04da4aa09e74351e3a97651f744c23716ebd9b3e" + "822e5077a01baa5cc0ed45b9249e88ab343d4333539df21ed229da6f4a514e0f"}, {1000UL, 8, "\0", - "ca3dff61bb23477aa6087b27508264a6f9126ee3a004f53cb8db942ed345f2f2d229b4b59c859220a1cf1913f34248e3803bab650e849a3d9a709edc09ae4a76"}, + "ca3dff61bb23477aa6087b27508264a6f9126ee3a004f53cb8db942ed345f2f2" + "d229b4b59c859220a1cf1913f34248e3803bab650e849a3d9a709edc09ae4a76"}, {1000UL, 0, "A", - "329c52ac62d1fe731151f2b895a00475445ef74f50b979c6f7bb7cae349328c1d4cb4f7261a0ab43f936a24b000651d4a824fcdd577f211aef8f806b16afe8af"}, + "329c52ac62d1fe731151f2b895a00475445ef74f50b979c6f7bb7cae349328c1" + "d4cb4f7261a0ab43f936a24b000651d4a824fcdd577f211aef8f806b16afe8af"}, {1005UL, 0, "U", - "59f5e54fe299c6a8764c6b199e44924a37f59e2b56c3ebad939b7289210dc8e4c21b9720165b0f4d4374c90f1bf4fb4a5ace17a1161798015052893a48c3d161"}, + "59f5e54fe299c6a8764c6b199e44924a37f59e2b56c3ebad939b7289210dc8e4" + "c21b9720165b0f4d4374c90f1bf4fb4a5ace17a1161798015052893a48c3d161"}, {1000000UL, 8, "\0", - "ce044bc9fd43269d5bbc946cbebc3bb711341115cc4abdf2edbc3ff2c57ad4b15deb699bda257fea5aef9c6e55fcf4cf9dc25a8c3ce25f2efe90908379bff7ed"}, + "ce044bc9fd43269d5bbc946cbebc3bb711341115cc4abdf2edbc3ff2c57ad4b1" + "5deb699bda257fea5aef9c6e55fcf4cf9dc25a8c3ce25f2efe90908379bff7ed"}, +#ifdef MASSIVE_TESTS {0x20000000UL, 0, "Z", - "da172279f3ebbda95f6b6e1e5f0ebec682c25d3d93561a1624c2fa9009d64c7e9923f3b46bcaf11d39a531f43297992ba4155c7e827bd0f1e194ae7ed6de4cac"}, + "da172279f3ebbda95f6b6e1e5f0ebec682c25d3d93561a1624c2fa9009d64c7e" + "9923f3b46bcaf11d39a531f43297992ba4155c7e827bd0f1e194ae7ed6de4cac"}, {0x41000000UL, 8, "\0", - "14b1be901cb43549b4d831e61e5f9df1c791c85b50e85f9d6bc64135804ad43ce8402750edbe4e5c0fc170b99cf78b9f4ecb9c7e02a157911d1bd1832d76784f"}, + "14b1be901cb43549b4d831e61e5f9df1c791c85b50e85f9d6bc64135804ad43c" + "e8402750edbe4e5c0fc170b99cf78b9f4ecb9c7e02a157911d1bd1832d76784f"}, {0x6000003EUL, 0, "B", - "fd05e13eb771f05190bd97d62647157ea8f1f6949a52bb6daaedbad5f578ec59b1b8d6c4a7ecb2feca6892b4dc138771670a0f3bd577eea326aed40ab7dd58b1"}, + "fd05e13eb771f05190bd97d62647157ea8f1f6949a52bb6daaedbad5f578ec59" + "b1b8d6c4a7ecb2feca6892b4dc138771670a0f3bd577eea326aed40ab7dd58b1"}, +#endif {1, 0, "abc", - "ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f"}, - {1, 0, "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu", - "8e959b75dae313da8cf4f72814fc143f8f7779c6eb9f7fa17299aeadb6889018501d289e4900f7e4331b99dec4b5433ac7d329eeb6dd26545e96e55b874be909"} + "ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a" + "2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f"}, + {1, 0, "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhi" + "jklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu", + "8e959b75dae313da8cf4f72814fc143f8f7779c6eb9f7fa17299aeadb6889018" + "501d289e4900f7e4331b99dec4b5433ac7d329eeb6dd26545e96e55b874be909"} }; |