diff options
author | Mattias Andrée <maandree@kth.se> | 2016-03-23 18:58:48 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-03-23 18:58:48 +0100 |
commit | acbb72170d41f56e3b400cb3611608b52ca4f50c (patch) | |
tree | 74805025b2d6df7414b2971f568344e55d06bb7f | |
parent | improve gitignore (diff) | |
download | base-util-tests-acbb72170d41f56e3b400cb3611608b52ca4f50c.tar.gz base-util-tests-acbb72170d41f56e3b400cb3611608b52ca4f50c.tar.bz2 base-util-tests-acbb72170d41f56e3b400cb3611608b52ca4f50c.tar.xz |
Some checksum tests
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
48 files changed, 490 insertions, 1 deletions
@@ -6,5 +6,5 @@ _/ *.rej *.orig *.saved -tmp +tmp* result* diff --git a/__sum/10 b/__sum/10 new file mode 100644 index 0000000..8fe2a4b --- /dev/null +++ b/__sum/10 @@ -0,0 +1 @@ +The quick brown fox jumps over the lazy dog.
\ No newline at end of file diff --git a/__sum/11 b/__sum/11 new file mode 100644 index 0000000..9405325 --- /dev/null +++ b/__sum/11 @@ -0,0 +1,5 @@ +a +b +c +d +e diff --git a/__sum/12 b/__sum/12 new file mode 100644 index 0000000..9f75c37 --- /dev/null +++ b/__sum/12 @@ -0,0 +1 @@ +ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
\ No newline at end of file diff --git a/__sum/13 b/__sum/13 new file mode 100644 index 0000000..15e0acf --- /dev/null +++ b/__sum/13 @@ -0,0 +1 @@ +12345678901234567890123456789012345678901234567890123456789012345678901234567890
\ No newline at end of file diff --git a/__sum/14 b/__sum/14 new file mode 100644 index 0000000..e85d5b4 --- /dev/null +++ b/__sum/14 @@ -0,0 +1 @@ +abcdefghijklmnopqrstuvwxyz
\ No newline at end of file @@ -0,0 +1 @@ +a @@ -0,0 +1 @@ +a
\ No newline at end of file @@ -0,0 +1 @@ + @@ -0,0 +1,2 @@ + + Binary files differ@@ -0,0 +1 @@ +a
\ No newline at end of file @@ -0,0 +1 @@ +abc
\ No newline at end of file @@ -0,0 +1 @@ +The quick brown fox jumps over the lazy dog
\ No newline at end of file diff --git a/__sum/__test b/__sum/__test new file mode 100755 index 0000000..c08cd9b --- /dev/null +++ b/__sum/__test @@ -0,0 +1,152 @@ +#!/bin/bash + +cd -- "$(dirname "$0")" +N=14 +if test -z "$tool"; then + tool=../${algo}sum +fi +s="$PREFIX $tool" + +report () +{ + if test $1 = 0; then + printf "\033[1;32mTest %s OK\033[m\n" "$2" + else + printf "\033[1;31mTest %s FAILED\033[m\n" "$2" + fi +} + +multiple_files_order () +{ + $s $(seq 1 $N) | tr '[A-F]' '[a-f]' | sed -e 's/[\t ]*/ /' | cut -d ' ' -f 2 > tmp1 + < $algo sed -e 's/ */ /' | cut -d ' ' -f 2 > tmp2 + diff tmp1 tmp2 > /dev/null + report $? "multiple_files_order" + rm tmp1 tmp2 +} + +multiple_files_delim () +{ + $s $(seq 1 $N) | tr '[A-F]' '[a-f]' | sed -e 's/^[0-9a-f]*//' | sort > tmp1 + seq 1 $N | sed -e 's/^/ /' | sort > tmp2 + diff tmp1 tmp2 > /dev/null + report $? "multiple_files_delim" + rm tmp1 tmp2 +} + +multiple_files_sum () +{ + $s $(seq 1 $N) | tr '[A-F]' '[a-f]' | sed -e 's/\t/ /' | cut -d ' ' -f 1 | sort > tmp1 + < $algo cut -d ' ' -f 1 | sort > tmp2 + diff tmp1 tmp2 > /dev/null + report $? "multiple_files_sum" + rm tmp1 tmp2 +} + +multiple_files () +{ + $s $(seq 1 $N) | tr '[A-F]' '[a-f]' > tmp1 + diff tmp1 $algo > /dev/null + report $? "multiple_files" + rm tmp1 +} + +one_file () +{ + $s 1 | tr '[A-F]' '[a-f]' > tmp1 + < $algo head -n 1 > tmp2 + diff tmp1 tmp2 > /dev/null + report $? "one_file" + rm tmp1 +} + +stdin () +{ + $s < 1 | tr '[A-F]' '[a-f]' | sed 's/[\t ]/ /' | cut -d ' ' -f 1 > tmp1 + < $algo head -n 1 | cut -d ' ' -f 1 > tmp2 + diff tmp1 tmp2 > /dev/null + report $? "stdin" + rm tmp1 +} + +dash () +{ + $s - < 1 | tr '[A-F]' '[a-f]' | sed 's/[\t ]/ /' | cut -d ' ' -f 1 > tmp1 + < $algo head -n 1 | cut -d ' ' -f 1 > tmp2 + diff tmp1 tmp2 > /dev/null + report $? "dash" + rm tmp1 +} + +check_file_match () +{ + $s $(seq 1 $N) > tmp1 + $s -c tmp1 > /dev/null + report $? "check_file_match" + rm tmp1 +} + +check_stdin_match () +{ + $s $(seq 1 $N) > tmp1 + $s -c < tmp1 > /dev/null + report $? "check_stdin_match" + rm tmp1 +} + +check_dash_match () +{ + $s $(seq 1 $N) > tmp1 + $s -c - < tmp1 > /dev/null + report $? "check_dash_match" + rm tmp1 +} + +check_file_mismatch () +{ + $s $(seq 1 $N) | tr '[a-f]' '[1-6]' | tr '[A-F]' '[1-6]' > tmp1 + ! $s -c tmp1 > /dev/null 2> /dev/null + report $? "check_file_mismatch" + rm tmp1 +} + +check_stdin_mismatch () +{ + $s $(seq 1 $N) | tr '[a-f]' '[1-6]' | tr '[A-F]' '[1-6]' > tmp1 + ! $s -c < tmp1 > /dev/null 2> /dev/null + report $? "check_stdin_mismatch" + rm tmp1 +} + +check_dash_mismatch () +{ + $s $(seq 1 $N) | tr '[a-f]' '[1-6]' | tr '[A-F]' '[1-6]' > tmp1 + ! $s -c - < tmp1 > /dev/null 2> /dev/null + report $? "check_dash_mismatch" + rm tmp1 +} + +check_case () +{ + $s $(seq 1 $N) | tr '[A-F]' '[a-f]' > tmp1 + tr '[a-f]' '[A-F]' < tmp1 > tmp2 + $s -c tmp1 > /dev/null && $s -c tmp2 > /dev/null + report $? "check_case" + rm tmp1 tmp2 +} + + +if test $# = 0; then + set multiple_files_order multiple_files_delim multiple_files_sum multiple_files one_file \ + stdin dash check_file_match check_stdin_match check_dash_match check_file_mismatch \ + check_stdin_mismatch check_dash_mismatch check_case +fi +( +for f in $@; do + $f +done +) | tee result +! grep FAILED < result >/dev/null +ret=$? +rm result +exit $ret diff --git a/__sum/md5 b/__sum/md5 new file mode 100644 index 0000000..328fb2d --- /dev/null +++ b/__sum/md5 @@ -0,0 +1,14 @@ +d41d8cd98f00b204e9800998ecf8427e 1 +60b725f10c9c85c70d97880dfe8191b3 2 +0cc175b9c0f1b6a831c399e269772661 3 +68b329da9893e34099c7d8ad5cb9c940 4 +e1c06d85ae7b8b032bef47e42e4c08f9 5 +220837fefd71ea604ab9f99017c9cb0e 6 +0cc175b9c0f1b6a831c399e269772661 7 +900150983cd24fb0d6963f7d28e17f72 8 +9e107d9d372bb6826bd81d3542a419d6 9 +e4d909c290d0fb1ca068ffaddf22cbd0 10 +1065e32f2cfab7352c6d3211f5447069 11 +d174ab98d277d9f5a5611c2c9f419d9f 12 +57edf4a22be3c955ac49da2e2107b67a 13 +c3fcd3d76192e4007dfb496cca67e13b 14 diff --git a/__sum/rawshake256 b/__sum/rawshake256 new file mode 100644 index 0000000..c436092 --- /dev/null +++ b/__sum/rawshake256 @@ -0,0 +1,14 @@ +3a1108d4a90a31b85a10bdce77f4bfbdcc5b1d70dd405686f8bbde834aa1a410 1 +3c664b2f2809f57243f75d6cb8db0f947b89cc615417b94d28a9e9c615508fb1 2 +7685b486fdece79ed5a64a347b68570bb05918eab8f71530b723a89906553fbd 3 +30a72ae738e645c764a25821536fa56d623d9624aff3795604d905ff997076bd 4 +64f5301ffd0028c1781a6304bb7574d4571d25bf8ff2aeb48b4128fc9367fae1 5 +1e9394e988dd79899b75d0082cdc01e548717a31f74d322eb5a492f71455b0cf 6 +7685b486fdece79ed5a64a347b68570bb05918eab8f71530b723a89906553fbd 7 +4728c808aaa9ed605826afa0f2c60fbba7eb9988d0a09a97f6dc91c7ec3797e7 8 +61c82a6b63a006eca6926e08b54452b129668e012cac7fb4f6cb411c1a294d79 9 +76600d40136816d8788884560e08e9cbe9902a6d5d329c620418d55ef1f6c1b7 10 +2577fb721359ef6bb98ab9b32b78566bf2264651a22bdcd24978f0336dcfe180 11 +ce8aebc38e9a43780e466bb7dce769e053da4d113cda315c85795e3e51dcd379 12 +bcc76a99ce324d02a5e7166657ba6a14267cd81ff4c0743753822095699beb18 13 +4f87f53908ccdcec4657f02ca0abff46f76cb82a5e588c19dd2afb835ad3f13d 14 diff --git a/__sum/rawshake512 b/__sum/rawshake512 new file mode 100644 index 0000000..44ce8a8 --- /dev/null +++ b/__sum/rawshake512 @@ -0,0 +1,14 @@ +0ae7dac687c3525d5c2a6c4119ea3968d43dfe69c2407a44d3de6b804d784530462440e4881fd42785e1cb69af4f036d96d8ff1ee35d9b3fa4a2859f592fb2dc 1 +7c831a226cd59d6aae9ebf5ee1dd8d1d62234a0f06c51160c86a5ff7016e9642bc2aa7a3fb9f9773fd5c9c11923a42d65a9eaa26c5b796935b4a2adf083d2cf4 2 +8270bbf03ade588c75883b2513b6a7f8ca04662cb05bb2b2ac14bea8ab86d82e860b9626464b9085aa1bbf988789e6b554ba9dd8c9f1eb522eed2bd3ad8762a9 3 +1cec4392fc583b4beb9e30a656290d07357b3fd6984cf31ebd982efc564de869a7c25675929ca54c0df7389724e0862a0937f7afafbaed6dbe0fb96a66638187 4 +624cd57c2f233780bc128914398d37f161d2354cb5350ef734be9be532d727713c4807d1ed936ac3bb67b92ea7683e4ef85c202ab385354034998abaab8ae5c8 5 +6f6a8a3bb2bc6670543a5aae4fedbb52ff56ca44b42e2e72e8dee4ec07fa3de67633d2f818e34ce8e2f3aa1adcba29ac2a46cefaf2102c7c5bfa4714ea00592f 6 +8270bbf03ade588c75883b2513b6a7f8ca04662cb05bb2b2ac14bea8ab86d82e860b9626464b9085aa1bbf988789e6b554ba9dd8c9f1eb522eed2bd3ad8762a9 7 +e43ecd42a588f93a854ab8f859caf14475ebb13b838e64434176fe1fe4b5a2a522e6e44dd84b56c2c07a48dc061cb12fe5e31512c1dd739a0b60f08b4fc99251 8 +8e47e8cc838433bc8e7ddef217b70c7aef652fc3bba611b8399f4210bc996e047d38ce197578c7c8c2e62ae9d55d56b59dd93fdb5b49aad0c5c8a467dd81675a 9 +374e56204b68d0b8dd26aebdb5dc4fb797e2cbde012f9f3bee876aee015e26776278e206588218935476db0be1887116876bd26a7faa1bfd75bf59ea307e5049 10 +da25d9665c2aa9e177a31bc9a90e38d7fadfe5b7c4639693005cff70f5914ab516c0079a3c1606c57a671677fd485e21d92e309cf314a22919169019665b07ae 11 +0ed8e4af769ec07e43805628cefb13322791db9ac2eba4df8c1ca39b4c368d1320b873974d890a23f08655929589f80e97659075bb8bc1f16e505c8f2643fd4a 12 +4b5936b6fc0afecc57165447177a0039185db7ba22e3675b5eb3b1899220238663650e693721f5bb2ff63fca1bcf62250357581d1fa522253233ad8cc452e2bf 13 +376ea23fefe3599166755ee8c84a604315b849603f562707eaabed4df28caedaf46d3ef29ab05478a30e87b173b3106a7786b1025cacaa83b6aacdb6e122da8d 14 diff --git a/__sum/sha1 b/__sum/sha1 new file mode 100644 index 0000000..c853a42 --- /dev/null +++ b/__sum/sha1 @@ -0,0 +1,14 @@ +da39a3ee5e6b4b0d3255bfef95601890afd80709 1 +3f786850e387550fdab836ed7e6dc881de23001b 2 +86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 3 +adc83b19e793491b1c6ea0fd8b46cd9f32e592fc 4 +71853c6197a6a7f222db0f1978c7cb232b87c5ee 5 +e64ba7edd4532eff9b608d6877c63eb35d3bb65e 6 +86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 7 +a9993e364706816aba3e25717850c26c9cd0d89d 8 +2fd4e1c67a2d28fced849ee1bb76e7391b93eb12 9 +408d94384216f890ff7a0c3528e8bed1e0b01621 10 +6249443f65b64a5ac07802a3582fd5c1f5f2ebd8 11 +761c457bf73b14d27e9e9265c46f4b4dda11f940 12 +50abf5706a150990a08b2c5ea40fa0e585554732 13 +32d10c7b8cf96570ca04ce37f2a19d84240d3a89 14 diff --git a/__sum/sha224 b/__sum/sha224 new file mode 100644 index 0000000..832d85b --- /dev/null +++ b/__sum/sha224 @@ -0,0 +1,14 @@ +d14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f 1 +7c297c1793fdad2ac52a68bdd6b8fde3eb59b99c3f8c44710fde5fd7 2 +abd37534c7d9a2efb9465de931cd7055ffdb8879563ae98078d6d6d5 3 +48837a787f07673545d9c610bcbcd8d46a2691a71966d856c197e69e 4 +3eb3d31ec2633f899596eeff26d34efcd1a7e25f31d5a478c90c7967 5 +76eb3b149cd140c31760ce972bf96a467be21f7dd1dab0d5f87b6a89 6 +abd37534c7d9a2efb9465de931cd7055ffdb8879563ae98078d6d6d5 7 +23097d223405d8228642a477bda255b32aadbce4bda0b3f7e36c9da7 8 +730e109bd7a8a32b1cb9d9a09aa2325d2430587ddbc0c38bad911525 9 +619cba8e8e05826e9b8c519c0a5c68f4fb653e8a3d8aa04bb2c8cd4c 10 +af2fabca72bd1ea91d68c594371100cb9e0f0081c94f3a5024096f45 11 +bff72b4fcb7d75e5632900ac5f90d219e05e97a7bde72e740db393d9 12 +b50aecbe4e9bb0b57bc5f3ae760a8e01db24f203fb3cdcd13148046e 13 +45a5f72c39c5cff2522eb3429799e49e5f44b356ef926bcf390dccc2 14 diff --git a/__sum/sha256 b/__sum/sha256 new file mode 100644 index 0000000..0efbcb6 --- /dev/null +++ b/__sum/sha256 @@ -0,0 +1,14 @@ +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 1 +87428fc522803d31065e7bce3cf03fe475096631e5e07bbd7a0fde60c4cf25c7 2 +ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb 3 +01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b 4 +75a11da44c802486bc6f65640aa48a730f0f684c5c07a42ba3cd1735eb3fb070 5 +89e7e71bcf902b988b5d385a0f68cc2c4cba2df873d0c502376c0051120610f6 6 +ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb 7 +ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad 8 +d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592 9 +ef537f25c895bfa782526529a9b63d97aa631564d5d789c2b765448c8635fb6c 10 +86dc03602dcf385217216784784a8ecf20e6400decc3208170b12fcb0afb6698 11 +db4bfcbd4da0cd85a60c3c37d3fbd8805c77f15fc6b1fdfe614ee0a7c8fdb4c0 12 +f371bc4a311f2b009eef952dd83ca80e2b60026c8e935592d0f9c308453c813e 13 +71c480df93d6ae2f1efad1447c66c9525e316218cf51fc8d9ed832f2daf18b73 14 diff --git a/__sum/sha3-224 b/__sum/sha3-224 new file mode 100644 index 0000000..89bd47e --- /dev/null +++ b/__sum/sha3-224 @@ -0,0 +1,14 @@ +6b4e03423667dbb73b6e15454f0eb1abd4597f9a1b078e3f5b5a6bc7 1 +eb5205e588d00e4e9638f2a64632c0656cea1b4b2fc78e66625ae20c 2 +9e86ff69557ca95f405f081269685b38e3a819b309ee942f482b6a8b 3 +789273e7012d1d3a08818f0c301f6def0d27db7afb36933813b2c60d 4 +613935c2cf1471050a4a4c155416bb71b79455be86d2ad3090df53fc 5 +a960ee9179d7d749c6746a1f83e8d762bf1d8ff2c2fe6d0a8296487c 6 +9e86ff69557ca95f405f081269685b38e3a819b309ee942f482b6a8b 7 +e642824c3f8cf24ad09234ee7d3c766fc9a3a5168d0c94ad73b46fdf 8 +d15dadceaa4d5d7bb3b48f446421d542e08ad8887305e28d58335795 9 +2d0708903833afabdd232a20201176e8b58c5be8a6fe74265ac54db0 10 +1295215f483ec84a31f9c782aaac9a515242b77294cccaa43ccdab3b 11 +a67c289b8250a6f437a20137985d605589a8c163d45261b15419556e 12 +0526898e185869f91b3e2a76dd72a15dc6940a67c8164a044cd25cc8 13 +5cdeca81e123f87cad96b9cba999f16f6d41549608d4e0f4681b8239 14 diff --git a/__sum/sha3-256 b/__sum/sha3-256 new file mode 100644 index 0000000..8c3e065 --- /dev/null +++ b/__sum/sha3-256 @@ -0,0 +1,14 @@ +a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a 1 +be5215abf72333a73b992dafdf4ab59884b948452e0015cfaddaa0b87a0e4515 2 +80084bf2fba02475726feb2cab2d8215eab14bc6bdd8bfb2c8151257032ecd8b 3 +a78f2c566b2439463a2e7ca515bbfa3f92948506583cbadaebdd507f277542bd 4 +7a6cd24f11ad2eb2d7a25635ce7254a2e9b466bcdb8e47443374f3938f07cd38 5 +9cd8eefdb6160cda1506c537ef7d750b67748133aafcd927b9febc7bdad879e0 6 +80084bf2fba02475726feb2cab2d8215eab14bc6bdd8bfb2c8151257032ecd8b 7 +3a985da74fe225b2045c172d6bd390bd855f086e3e9d525b46bfe24511431532 8 +69070dda01975c8c120c3aada1b282394e7f032fa9cf32f4cb2259a0897dfc04 9 +a80f839cd4f83f6c3dafc87feae470045e4eb0d366397d5c6ce34ba1739f734d 10 +87aceba49aed1134555b1d1f5b5590ad39beb2e6c4c8fe5a9df292c6dd49d2d5 11 +a79d6a9da47f04a3b9a9323ec9991f2105d4c78a7bc7beeb103855a7a11dfb9f 12 +293e5ce4ce54ee71990ab06e511b7ccd62722b1beb414f5ff65c8274e0f5be1d 13 +7cab2dc765e21b241dbc1c255ce620b29f527c6d5e7f5f843e56288f0d707521 14 diff --git a/__sum/sha3-384 b/__sum/sha3-384 new file mode 100644 index 0000000..03ab92b --- /dev/null +++ b/__sum/sha3-384 @@ -0,0 +1,14 @@ +0c63a75b845e4f7d01107d852e4c2485c51a50aaaa94fc61995e71bbee983a2ac3713831264adb47fb6bd1e058d5f004 1 +cdc1f310700b443fd5cb8e4fd4005f9f5693fa344aeee9d95900f40f84957b10d358812735375dce8a3b028c3244372f 2 +1815f774f320491b48569efec794d249eeb59aae46d22bf77dafe25c5edc28d7ea44f93ee1234aa88f61c91912a4ccd9 3 +50b02220a63bff173fe3943243ad4036f49572e97b4be4f71593bb05e342eb220e7b2a286488cf479bef039c1ab53326 4 +947410afb636fc0e4f7e210c38f9d1386c90c3d66cb8916b5c38183caf2449c72d796908d6d4177dd126630f2b2d6ee9 5 +58469efa2484f08c3db7ad6d616f4907145d993132c0f5060ddbaa41dc158ed616daa698e3ca67ca9437bdf6f65d8a5f 6 +1815f774f320491b48569efec794d249eeb59aae46d22bf77dafe25c5edc28d7ea44f93ee1234aa88f61c91912a4ccd9 7 +ec01498288516fc926459f58e2c6ad8df9b473cb0fc08c2596da7cf0e49be4b298d88cea927ac7f539f1edf228376d25 8 +7063465e08a93bce31cd89d2e3ca8f602498696e253592ed26f07bf7e703cf328581e1471a7ba7ab119b1a9ebdf8be41 9 +1a34d81695b622df178bc74df7124fe12fac0f64ba5250b78b99c1273d4b080168e10652894ecad5f1f4d5b965437fb9 10 +e78a2f145f380bc8c9513665632237a1c8c221cef1d6488b4a7cf3fbd44fae34fccc5896a1acf76ad79e3ed34e244aea 11 +d5b972302f5080d0830e0de7b6b2cf383665a008f4c4f386a61112652c742d20cb45aa51bd4f542fc733e2719e999291 12 +3c213a17f514638acb3bf17f109f3e24c16f9f14f085b52a2f2b81adc0db83df1a58db2ce013191b8ba72d8fae7e2a5e 13 +fed399d2217aaf4c717ad0c5102c15589e1c990cc2b9a5029056a7f7485888d6ab65db2370077a5cadb53fc9280d278f 14 diff --git a/__sum/sha3-512 b/__sum/sha3-512 new file mode 100644 index 0000000..7eed64f --- /dev/null +++ b/__sum/sha3-512 @@ -0,0 +1,14 @@ +a69f73cca23a9ac5c8b567dc185a756e97c982164fe25859e0d1dcc1475c80a615b2123af1f5f94c11e3e9402c3ac558f500199d95b6d3e301758586281dcd26 1 +ade4af21be4be1aa0da020059453c104ab75966669aa1af7eec500673331a905843f1d1e69392e8c700462ffdb5b69fa10fe848f7cd00cc9d31a76da9e775321 2 +697f2d856172cb8309d6b8b97dac4de344b549d4dee61edfb4962d8698b7fa803f4f93ff24393586e28b5b957ac3d1d369420ce53332712f997bd336d09ab02a 3 +7186d65cda74aa1f4263638c0da5444614b8186935508a1d6d2b3afc53e9523ecb0f269590a7eb4d15dd60331359934f78c41a007807f6b394d3f7d059fb6638 4 +e6628fa96f6f990e56507213b29822c24bf2359d669729333565818111f69ff0747ff7eab85acf81baad95ae8e9eaa31bc5a8385112b784a11fc3c6f865bc683 5 +b7b321a0aa5761d3cd554f73efe1c8c4c31fc4cfcebc43593dbff8b255157faebdbc493aa70db800ed2d10159e9efe5ae95ef2c516b2d57c1284bc768c630614 6 +697f2d856172cb8309d6b8b97dac4de344b549d4dee61edfb4962d8698b7fa803f4f93ff24393586e28b5b957ac3d1d369420ce53332712f997bd336d09ab02a 7 +b751850b1a57168a5693cd924b6b096e08f621827444f70d884f5d0240d2712e10e116e9192af3c91a7ec57647e3934057340b4cf408d5a56592f8274eec53f0 8 +01dedd5de4ef14642445ba5f5b97c15e47b9ad931326e4b0727cd94cefc44fff23f07bf543139939b49128caf436dc1bdee54fcb24023a08d9403f9b4bf0d450 9 +18f4f4bd419603f95538837003d9d254c26c23765565162247483f65c50303597bc9ce4d289f21d1c2f1f458828e33dc442100331b35e7eb031b5d38ba6460f8 10 +cb48f392583509bc8d952338a1b0288e4be4eef26652632fc4bafa214b6485d7c3d5f8e6738a7be8adc4ca1975318df7ca4aaef06baf566460e16583b7cbf635 11 +d1db17b4745b255e5eb159f66593cc9c143850979fc7a3951796aba80165aab536b46174ce19e3f707f0e5c6487f5f03084bc0ec9461691ef20113e42ad28163 12 +9524b9a5536b91069526b4f6196b7e9475b4da69e01f0c855797f224cd7335ddb286fd99b9b32ffe33b59ad424cc1744f6eb59137f5fb8601932e8a8af0ae930 13 +af328d17fa28753a3c9f5cb72e376b90440b96f0289e5703b729324a975ab384eda565fc92aaded143669900d761861687acdc0a5ffa358bd0571aaad80aca68 14 diff --git a/__sum/sha384 b/__sum/sha384 new file mode 100644 index 0000000..28b4f28 --- /dev/null +++ b/__sum/sha384 @@ -0,0 +1,14 @@ +38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b 1 +927b2f0395e4ce326f4ab759c75aa5fc399f7d6c3037b2deb4095279ca7ced3ca70f68f3574148680fc52d6c15bc8914 2 +54a59b9f22b0b80880d8427e548b7c23abd873486e1f035dce9cd697e85175033caa88e6d57bc35efae0b5afd3145f31 3 +ec664e889ed6c1b2763cacf7899d95b7f347373eb982e523419feea3aa362d891b3bf025f292267a5854049091789c3e 4 +924134a2f0b6ecb7753525b162ee702a6b01dfec3bd6abfe6be5bd6865fb8b3d72397359ba60c865a19fe898c3c61725 5 +57a07488fc09cc1cab13a718c6806251b304a089e6654dd2060bb0d67b2c5da1ee490ad9b9389bd4eabb7a4cb73cc02a 6 +54a59b9f22b0b80880d8427e548b7c23abd873486e1f035dce9cd697e85175033caa88e6d57bc35efae0b5afd3145f31 7 +cb00753f45a35e8bb5a03d699ac65007272c32ab0eded1631a8b605a43ff5bed8086072ba1e7cc2358baeca134c825a7 8 +ca737f1014a48f4c0b6dd43cb177b0afd9e5169367544c494011e3317dbf9a509cb1e5dc1e85a941bbee3d7f2afbc9b1 9 +ed892481d8272ca6df370bf706e4d7bc1b5739fa2177aae6c50e946678718fc67a7af2819a021c2fc34e91bdb63409d7 10 +5ca7e15be4834c34f95d98bd0b85e02c64e20e4e87851e90f7d1bfa4422b79188d67003c6ae7dbbb514f2014c6ad3f97 11 +1761336e3f7cbfe51deb137f026f89e01a448e3b1fafa64039c1464ee8732f11a5341a6f41e0c202294736ed64db1a84 12 +b12932b0627d1c060942f5447764155655bd4da0c9afa6dd9b9ef53129af1b8fb0195996d2de9ca0df9d821ffee67026 13 +feb67349df3db6f5924815d6c3dc133f091809213731fe5c7b5f4999e463479ff2877f5f2936fa63bb43784b12f3ebb4 14 diff --git a/__sum/sha512 b/__sum/sha512 new file mode 100644 index 0000000..2b3651c --- /dev/null +++ b/__sum/sha512 @@ -0,0 +1,14 @@ +cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e 1 +162b0b32f02482d5aca0a7c93dd03ceac3acd7e410a5f18f3fb990fc958ae0df6f32233b91831eaf99ca581a8c4ddf9c8ba315ac482db6d4ea01cc7884a635be 2 +1f40fc92da241694750979ee6cf582f2d5d7d28e18335de05abc54d0560e0f5302860c652bf08d560252aa5e74210546f369fbbbce8c12cfc7957b2652fe9a75 3 +be688838ca8686e5c90689bf2ab585cef1137c999b48c70b92f67a5c34dc15697b5d11c982ed6d71be1e1e7f7b4e0733884aa97c3f7a339a8ed03577cf74be09 4 +016ba8c4cfde65af99cb5fa8b8a37e2eb73f481b3ae34991666df2e04feb6c038666ebd1ec2b6f623967756033c702dde5f423f7d47ab6ed1827ff53783731f7 5 +178c13692e3c242b2208542b33e0ba1557bfefa099b806e0518f0f576499d6602700e8762be565dbd69ee02575ca2835271cd1ea41d85e87122fa2fa0cc6a62d 6 +1f40fc92da241694750979ee6cf582f2d5d7d28e18335de05abc54d0560e0f5302860c652bf08d560252aa5e74210546f369fbbbce8c12cfc7957b2652fe9a75 7 +ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f 8 +07e547d9586f6a73f73fbac0435ed76951218fb7d0c8d788a309d785436bbb642e93a252a954f23912547d1e8a3b5ed6e1bfd7097821233fa0538f3db854fee6 9 +91ea1245f20d46ae9a037a989f54f1f790f0a47607eeb8a14d12890cea77a1bbc6c7ed9cf205e67b7f2b8fd4c7dfd3a7a8617e45f3c463d481c7e586c39ac1ed 10 +35a71b3676294ef38baf42f5f29361fe8352963503e1508fb3c6c8d7254c1dc05e0d00e37f6ad22ff1f5baf5ad93ac72f5b5c8ae3d7f8d5de0746e00a6efa003 11 +1e07be23c26a86ea37ea810c8ec7809352515a970e9253c26f536cfc7a9996c45c8370583e0a78fa4a90041d71a4ceab7423f19c71b9d5a3e01249f0bebd5894 12 +72ec1ef1124a45b047e8b7c75a932195135bb61de24ec0d1914042246e0aec3a2354e093d76f3048b456764346900cb130d2a4fd5dd16abb5e30bcb850dee843 13 +4dbff86cc2ca1bae1e16468a05cb9881c97f1753bce3619034898faa1aabe429955a1bf8ec483d7421fe3c1646613a59ed5441fb0f321389f77f48a879c7b1f1 14 diff --git a/__sum/sha512-224 b/__sum/sha512-224 new file mode 100644 index 0000000..893c546 --- /dev/null +++ b/__sum/sha512-224 @@ -0,0 +1,14 @@ +6ed0dd02806fa89e25de060c19d3ac86cabb87d6a0ddd05c333b84f4 1 +32f85bb9cf0fdda993c89a5ab91096136e8c9be46891f5f7b8572df1 2 +d5cdb9ccc769a5121d4175f2bfdd13d6310e0d3d361ea75d82108327 3 +bba8292cc455595f768816333c6eb3099d9c712885159cc004a9f73f 4 +a4c7514e1387d4a5a345dbcb142e58a1e02279cd4f9499d1d839ab73 5 +aa0d6dc6aa186d5bdb3d400b961ae5d5b16c5ab0ce9a0aca9155c16b 6 +d5cdb9ccc769a5121d4175f2bfdd13d6310e0d3d361ea75d82108327 7 +4634270f707b6a54daae7530460842e20e37ed265ceee9a43e8924aa 8 +944cd2847fb54558d4775db0485a50003111c8e5daa63fe722c6aa37 9 +6d6a9279495ec4061769752e7ff9c68b6b0b3c5a281b7917ce0572de 10 +b1a8a48a1316821590f7ef111c1994b6a9020e40ac8e520dedd7f712 11 +a8b4b9174b99ffc67d6f49be9981587b96441051e16e6dd036b140d3 12 +ae988faaa47e401a45f704d1272d99702458fea2ddc6582827556dd2 13 +ff83148aa07ec30655c1b40aff86141c0215fe2a54f767d3f38743d8 14 diff --git a/__sum/sha512-256 b/__sum/sha512-256 new file mode 100644 index 0000000..ed66666 --- /dev/null +++ b/__sum/sha512-256 @@ -0,0 +1,14 @@ +c672b8d1ef56ed28ab87c3622c5114069bdd3ad7b8f9737498d0c01ecef0967a 1 +32953806ce2fba7d0ab293a27d94e18342f1a687418279dc3804780ed566cb51 2 +455e518824bc0601f9fb858ff5c37d417d67c2f8e0df2babe4808858aea830f8 3 +03fe1ceaa32b17bff9a713f0693ac8f75c568be3cf50d90199cc436ab1bfde74 4 +66fd166f8562b062c32baacc04132eac21af865f2a34c1537f70549b000b5c8e 5 +b1488ac6435d217606158079e8355a59fa2759a7b42a3148255fb214a564ab61 6 +455e518824bc0601f9fb858ff5c37d417d67c2f8e0df2babe4808858aea830f8 7 +53048e2681941ef99b2e29b76b4c7dabe4c2d0c634fc6d46e0e2f13107e7af23 8 +dd9d67b371519c339ed8dbd25af90e976a1eeefd4ad3d889005e532fc5bef04d 9 +1546741840f8a492b959d9b8b2344b9b0eb51b004bba35c0aebaac86d45264c3 10 +c1c2c4c40402ce33859eb119de2d37c65915a039860a744cf2c21296c360fa71 11 +cdf1cc0effe26ecc0c13758f7b4a48e000615df241284185c39eb05d355bb9c8 12 +2c9fdbc0c90bdd87612ee8455474f9044850241dc105b1e8b94b8ddf5fac9148 13 +fc3189443f9c268f626aea08a756abe7b726b05f701cb08222312ccfd6710a26 14 diff --git a/__sum/shake256 b/__sum/shake256 new file mode 100644 index 0000000..b79d025 --- /dev/null +++ b/__sum/shake256 @@ -0,0 +1,14 @@ +46b9dd2b0ba88d13233b3feb743eeb243fcd52ea62b81b82b50c27646ed5762f 1 +e8fa049d88a7010b2bf6eeb6b7237dd509e2645a52dad3b1652eab56f42610a3 2 +867e2cb04f5a04dcbd592501a5e8fe9ceaafca50255626ca736c138042530ba4 3 +4554460ad53f18581c653937be5d7c5f57a5b711d99cda07ff14042c4d8b837a 4 +9c3cd1dad6fe8020b659de0231db312c5cc37a2c3e24f9f5ec856f251b78c040 5 +1bb6a09612c8a31f58802aca80b8eeba51d64c006beb36e23c0ebb4233dfec07 6 +867e2cb04f5a04dcbd592501a5e8fe9ceaafca50255626ca736c138042530ba4 7 +483366601360a8771c6863080cc4114d8db44530f8f1e1ee4f94ea37e78b5739 8 +2f671343d9b2e1604dc9dcf0753e5fe15c7c64a0d283cbbf722d411a0e36f6ca 9 +bd225bfc8b255f3036f0c8866010ed0053b5163a3cae111e723c0c8e704eca4e 10 +9d5daa430b53b67d1616c50ff56fa4670663bf08864cab1337898be4a50eb05e 11 +31f19a097c723e91fa59b0998dd8523c2a9e7e13b4025d6b48fcbc328973a108 12 +24c508adefdf5e3f2596e8b5a888fe10eb7b5b22e1f35d858e6eff3025c4cc18 13 +b7b78b04a3dd30a265c8886c33fda94799853de5d3d10541fd4e9f4613701c61 14 diff --git a/__sum/shake512 b/__sum/shake512 new file mode 100644 index 0000000..4925045 --- /dev/null +++ b/__sum/shake512 @@ -0,0 +1,14 @@ +ae1b4eea1eaf5ea633e66045f03ff11b8b7d3193119075442117bd786dfd939f25a53a30fae503488d42683c1917b3964f6b1cf5d27c2b40cbaf53c5b749666a 1 +681d9bc101aac605f54f05519e6d4eeec594ad477d7587c6c44b70a1aeb69508dfab1225aada618f148576895d2df0374f4f05838937da05ddc621c78c3157dd 2 +42bee82c20307879c853e2460d36b79630f985417645a43884e8d72b92e356697d92bb3b1a5a19d0c3157036b9ffd30646789f28eae12d976665de42a8f87f68 3 +d336f4e1a96aa1c741a9ff80ca40943846f901c52188790dcaaa529b9024e9ae327d3bedb1402fa4e9e1199a9c669f1769dd00b16a43f327ca75449548e2b0cf 4 +942f436575607c4b47613765e31c01702e04954cff7d9b5a8a2f5feba0345031d2fce66d6be44d6f7b796b28775d2bc023be1cee12094f617623e2b547b11f69 5 +f8cb7622dcd4888028697e32212cdb26ccafe8e2c9d8c1609e6ab1d90f77c7ba9e1d674933e36cdc4f8ee54d8df00060cc85409872536a623ec9651cde6f955e 6 +42bee82c20307879c853e2460d36b79630f985417645a43884e8d72b92e356697d92bb3b1a5a19d0c3157036b9ffd30646789f28eae12d976665de42a8f87f68 7 +72c6b83fd487efa24eff9ec9e7a0e26043dbc48f73237d8a273dd1a07f9e7b8fc4b3c8a00172fddc254625d459a76ebd5ae1aacc8d0eb3e1624946d5d0b0a6e6 8 +b2a90444faf149bea5dd2476dedf508e0c3028fe2bede08a6e2ff53ce9f778758f254134110e9402ebd1503c6eca69825011b3a6e2630437dcf5879f9bb83114 9 +0c0170f93fdf68498a45d93147d349c653c5960d348f3f617feb89747b405bf02c65a44c6ce6bd630b1e14a1ab553880c415af68f9cb0d19a216e4ecd51dcffc 10 +f55225b078242c457283e5ed03226c76fa859eb8df5178d7729fc4848dd778e436e84f80094380ff97d5193f35f102200cac9285fdc97925af63516411883c61 11 +f04102ad0a055f7b385193b5ad11d631c407f69f592165a7d3c185585e8aaee2126c4ac9ca4b093bb908eb578378f8235f942e992d7b4727e893c69f492ed179 12 +e68dcc7b9e31685ccba77e91247c2474fd5bc45cd79e07ed5541dd0b40949e4c250369e45b27753b48efad19dc15b4165b906f91432cef0bd5871f4b68833b38 13 +83530e340dbe20694a82d0f5a703aa463054ca700d26670249e7a271a24bc9f207f543357cd259cc0e59d5463849ea8ffb545f460ad1c8310c9e7f9400c35301 14 diff --git a/md5sum-test/test b/md5sum-test/test new file mode 100755 index 0000000..871a9f7 --- /dev/null +++ b/md5sum-test/test @@ -0,0 +1,6 @@ +#!/bin/bash + +export tool="$MD5SUM" +export algo=md5 + +exec "$(dirname "$0")/../__sum/__test" "$@" diff --git a/rawshake256sum-test/test b/rawshake256sum-test/test new file mode 100755 index 0000000..32b85db --- /dev/null +++ b/rawshake256sum-test/test @@ -0,0 +1,6 @@ +#!/bin/bash + +export tool="$RAWSHAKE256SUM" +export algo=rawshake256 + +exec "$(dirname "$0")/../__sum/__test" "$@" diff --git a/rawshake512sum-test/test b/rawshake512sum-test/test new file mode 100755 index 0000000..3f8c4a6 --- /dev/null +++ b/rawshake512sum-test/test @@ -0,0 +1,6 @@ +#!/bin/bash + +export tool="$RAWSHAKE512SUM" +export algo=rawshake512 + +exec "$(dirname "$0")/../__sum/__test" "$@" diff --git a/sha1sum-test/test b/sha1sum-test/test new file mode 100755 index 0000000..b5e70b5 --- /dev/null +++ b/sha1sum-test/test @@ -0,0 +1,6 @@ +#!/bin/bash + +export tool="$SHA1SUM" +export algo=sha1 + +exec "$(dirname "$0")/../__sum/__test" "$@" diff --git a/sha224sum-test/test b/sha224sum-test/test new file mode 100755 index 0000000..69f1ae4 --- /dev/null +++ b/sha224sum-test/test @@ -0,0 +1,6 @@ +#!/bin/bash + +export tool="$SHA224SUM" +export algo=sha224 + +exec "$(dirname "$0")/../__sum/__test" "$@" diff --git a/sha256sum-test/test b/sha256sum-test/test new file mode 100755 index 0000000..0e4b63a --- /dev/null +++ b/sha256sum-test/test @@ -0,0 +1,6 @@ +#!/bin/bash + +export tool="$SHA256SUM" +export algo=sha256 + +exec "$(dirname "$0")/../__sum/__test" "$@" diff --git a/sha3-224sum-test/test b/sha3-224sum-test/test new file mode 100755 index 0000000..5273b7d --- /dev/null +++ b/sha3-224sum-test/test @@ -0,0 +1,6 @@ +#!/bin/bash + +export tool="$SHA3_224SUM" +export algo=sha3-224 + +exec "$(dirname "$0")/../__sum/__test" "$@" diff --git a/sha3-256sum-test/test b/sha3-256sum-test/test new file mode 100755 index 0000000..4312fb0 --- /dev/null +++ b/sha3-256sum-test/test @@ -0,0 +1,6 @@ +#!/bin/bash + +export tool="${SHA3_256SUM}" +export algo=sha3-256 + +exec "$(dirname "$0")/../__sum/__test" "$@" diff --git a/sha3-384sum-test/test b/sha3-384sum-test/test new file mode 100755 index 0000000..0fa360f --- /dev/null +++ b/sha3-384sum-test/test @@ -0,0 +1,6 @@ +#!/bin/bash + +export tool="${SHA3_384SUM}" +export algo=sha3-384 + +exec "$(dirname "$0")/../__sum/__test" "$@" diff --git a/sha3-512sum-test/test b/sha3-512sum-test/test new file mode 100755 index 0000000..4240c96 --- /dev/null +++ b/sha3-512sum-test/test @@ -0,0 +1,6 @@ +#!/bin/bash + +export tool="${SHA3_512SUM}" +export algo=sha3-512 + +exec "$(dirname "$0")/../__sum/__test" "$@" diff --git a/sha384sum-test/test b/sha384sum-test/test new file mode 100755 index 0000000..5288e83 --- /dev/null +++ b/sha384sum-test/test @@ -0,0 +1,6 @@ +#!/bin/bash + +export tool="$SHA384SUM" +export algo=sha384 + +exec "$(dirname "$0")/../__sum/__test" "$@" diff --git a/sha512-224sum-test/test b/sha512-224sum-test/test new file mode 100755 index 0000000..75c0025 --- /dev/null +++ b/sha512-224sum-test/test @@ -0,0 +1,6 @@ +#!/bin/bash + +export tool="${SHA512_224SUM}" +export algo=sha512-224 + +exec "$(dirname "$0")/../__sum/__test" "$@" diff --git a/sha512-256sum-test/test b/sha512-256sum-test/test new file mode 100755 index 0000000..31393a0 --- /dev/null +++ b/sha512-256sum-test/test @@ -0,0 +1,6 @@ +#!/bin/bash + +export tool="${SHA512_256SUM}" +export algo=sha512-256 + +exec "$(dirname "$0")/../__sum/__test" "$@" diff --git a/sha512sum-test/test b/sha512sum-test/test new file mode 100755 index 0000000..5e296c9 --- /dev/null +++ b/sha512sum-test/test @@ -0,0 +1,6 @@ +#!/bin/bash + +export tool="$SHA512SUM" +export algo=sha512 + +exec "$(dirname "$0")/../__sum/__test" "$@" diff --git a/shake256sum-test/test b/shake256sum-test/test new file mode 100755 index 0000000..de22e70 --- /dev/null +++ b/shake256sum-test/test @@ -0,0 +1,6 @@ +#!/bin/bash + +export tool="$SHAKE256SUM" +export algo=shake256 + +exec "$(dirname "$0")/../__sum/__test" "$@" diff --git a/shake512sum-test/test b/shake512sum-test/test new file mode 100755 index 0000000..49591b3 --- /dev/null +++ b/shake512sum-test/test @@ -0,0 +1,6 @@ +#!/bin/bash + +export tool="$SHAKE512SUM" +export algo=shake512 + +exec "$(dirname "$0")/../__sum/__test" "$@" |