First run autoreconf --install; then see the INSTALL file for
installation information.
+You may also wish to run the tests in the testing directory. This
+verifies that the programs are able to compute the correct hashes
+against the test suite.
+
Once the software is installed, invoke skein256sum, skein512sum, or
skein1024sum with the --help option to see usage information.
#!/bin/sh
#
-# Copyright (C) 2015 Jason Self <j@jxself.org>
+# Copyright (C) 2015 2019 Jason Self <j@jxself.org>
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
t="$n.$(date +%Y-%m-%d-%H%M%S)"
test -s "$r" || { echo "WARNING: missing $r"; continue; }
sh "$f" > $t 2>&1
- diff -U0 "$r" "$t" && { rm "$t"; continue; }
+ diff -U0 "$r" "$t" && { rm "$t"; echo "$n completed successfully." ; continue; }
echo "ERROR: $n failed"
exit 1
done
--- /dev/null
+../skein1024sum -0 a aa aaa b bb bbb
--- /dev/null
+6AB4C4BA9814A3D976EC8BFFA7FCC638CEBA0544A97B3C98411323FFD2DC936315D13DC93C13C4E88CDA6F5BAC6F2558B2D8694D3B6143E40D644AE43CA940685CB37F809D3D0550C56CBA8036DEE729A4F8FB960732E59E64D57F7F7710F8670963CDCDC95B41DAAB4855FCF8B6762A64B173EE61343A2C7689AF1D293EBA97 -a
+8A0BF2835A4A631F140F615E00CC35E05BDA4A97803E927CCAFB5BA88688A168D7894CAB7089CA04DE2257DD901CC89631EA2C2B91934A7A4ABA13BF8BCD786DCC3024346E8C370CC391EC091F3DBAAB0087B248641B6F90359B864978B83E4CC096F55E1931B0690248FF4A8A4C61A80F72BBA31D28ED4DD4A9095FD42D3751 -aa
+79772473A7EF1DB6FE3B293C41A208A82EF4EAA62F8312B307D0D810007D5D5ADAF42C3F2D8B79A44D7289F414E225BEE9E73D06A414B42F578A6D86644D06BFFEEF61A0279508544C570FD789ED973B906726F1072385C1262DC017F60DA804FF5B6AC83AC4BCF328171769BB9A86585E5C514A9AE6CA63D534279C23A880C9 -aaa
+4945D8CA309F79910773CFF5363BC6655303CC597D87F1729CA180BAE77622AC4C2B3E3759646DDB1D02E5AA834076A672563D7DADE88EE4B13B2E892D8C2847573244EA8B6760E33A71C89D16DDCA25E792A37D54FBA4158688E5F58F0211410431A3C1F8E96A19D346AF6C0458B2F921424CB524C06A34A0A94E1A0140657F -b
+8DD6820F4441BB022D6B8F52A27F487DFA435D9743E5B4110E854C45AE26B992A865D3A82352BA6991DD5A493596851E75A40401FEDDD87B34D12D3B8D21E3C9CB2263666CD730FAC1BE153BF9F861C8A5B8862D622D70181815F56AEE2F3AD7EC74C98C18060C891EFAB89DE9E5E20DA70E33B77AE06D86A042FCBC3789899C -bb
+3C27B0A853D383528277BA43953D9C2048265C3488C8E8A6ED9655B47B5EABF247FBE5B30C2DEFFF732C34260C0A4A0532E19E96CB2731A8BE10B09D97B30B8CD0054487D5D36AF7A99645378974E11AA6A0B52F9F1B3F1FDBC9F52D04390F36EE33C99508964820B31AA3D5FFEF3A0148FF5CA39F738FF464CE26A3CFB83BCD -bbb
--- /dev/null
+echo -n | ../skein1024sum
--- /dev/null
+0FFF9563BB3279289227AC77D319B6FFF8D7E9F09DA1247B72A0A265CD6D2A62645AD547ED8193DB48CFF847C06494A03F55666D3B47EB4C20456C9373C86297D630D5578EBD34CB40991578F9F52B18003EFA35D3DA6553FF35DB91B81AB890BEC1B189B7F52CB2A783EBB7D823D725B0B4A71F6824E88F68F982EEFC6D19C6 -
--- /dev/null
+echo | ../skein1024sum
--- /dev/null
+89C873779F4612C28176E310BE9E916FB077ACD6B63EA15569D3656BBFC3D855B8F7C133F23A645B86781600C9A765C3AD5A5BFF3A828E4DDECC925876B6F32E44E16A76E24DCFD4E88A4DFB70240BC015E1A5D58535B54D3B6F0117D20364989CDDA63E533476AE0C381A8CC4080D08C6C1CF6082BF3EB16E1484BF8ED5A944 -
--- /dev/null
+../skein1024sum < short_file.txt
--- /dev/null
+F050CCA19D33CB9E0868E39E229A148E3C6755D6C402E39EC9061DFBE70959316DC2807FEDCE5F57060A5B6EA642D61B41C3C47BD7D950D5128498CFF5E37558A18E928161CB8A1074822464CCF0462E1303573FA7DC7632528EE6332BE616C8EFC9D926DEDC853FB8284D1791AA96F411361FE8A7DABEA1DE85FF6940142B73 -
--- /dev/null
+../skein1024sum short_file.txt
--- /dev/null
+F050CCA19D33CB9E0868E39E229A148E3C6755D6C402E39EC9061DFBE70959316DC2807FEDCE5F57060A5B6EA642D61B41C3C47BD7D950D5128498CFF5E37558A18E928161CB8A1074822464CCF0462E1303573FA7DC7632528EE6332BE616C8EFC9D926DEDC853FB8284D1791AA96F411361FE8A7DABEA1DE85FF6940142B73 short_file.txt
--- /dev/null
+../skein1024sum -b short_file.txt
--- /dev/null
+F050CCA19D33CB9E0868E39E229A148E3C6755D6C402E39EC9061DFBE70959316DC2807FEDCE5F57060A5B6EA642D61B41C3C47BD7D950D5128498CFF5E37558A18E928161CB8A1074822464CCF0462E1303573FA7DC7632528EE6332BE616C8EFC9D926DEDC853FB8284D1791AA96F411361FE8A7DABEA1DE85FF6940142B73 *short_file.txt
--- /dev/null
+../skein1024sum Something_unexisting
--- /dev/null
+skein1024sum: Something_unexisting: no such file or directory
--- /dev/null
+../skein512sum -0 a aa aaa b bb bbb
--- /dev/null
+B1CD8D33F61B3737ADFD59BB13AD82F4A9548E92F22956A8976CCA3FDB7FEE4FE91698146C4197CEC85D38B83C5D93BDBA92C01FD9A53870D0C7F967BC62BDCE -a
+6E1DE40E4546CA019E22E5CB54F07A68AC9F06B056EB31EF5DF88E1A6D7BF5FBB1BDCF7C98FD7A0F4B0CB1DE1A2AB5412863AF67249054354A4E66C6F78BB12C -aa
+FF46F3FB7ED1A1550ED3687D64AE49EEC17CAC9793A5BFCC660278790005D5999E3A9FD4EBC03A60E137B0A9418E5D35E2DE47756754178AF82E172C92C74F56 -aaa
+CFD8FEAB71E42BCB28DAAA0ABF6EB264BB5BA1F8208267961A702687E69BB0C302D51209E1A5C970784F419D5005A60BE46C132D5BE690C2D5666E8A5AF4CA45 -b
+613C646F08E61024624BF0445D76C529AA019B5E73CC3CD3DCEE51558C451C8D45650C1C39C2BAFA99A440E537F0476032161C8B63DD5E60A72A37EC4588BD1F -bb
+BBA3B6F3143A2833E3081835812DCD2D12644ECFEDE0A6DCFD40187FB5818287F73CA1A3C0B19E2CB1B7FF6FC46D54227EAEAF40D978CB4ECF27704E48DDF6A2 -bbb
--- /dev/null
+echo -n | ../skein512sum
--- /dev/null
+BC5B4C50925519C290CC634277AE3D6257212395CBA733BBAD37A4AF0FA06AF41FCA7903D06564FEA7A2D3730DBDB80C1F85562DFCC070334EA4D1D9E72CBA7A -
--- /dev/null
+echo | ../skein512sum
--- /dev/null
+8F684DA72A6FA991D3C660C4B9B2DB6730C4C7E22103FAD1EC376BF1A1C37FD814CB1538B70E401B9F04D55B20E06A789581EE87E02101B761141EECC5FDDE21 -
--- /dev/null
+../skein512sum < short_file.txt
--- /dev/null
+7AFBF89B1E6A8F6BCE8DF4ECE036128217FEE8E67B2F42A95B8525F1B34A58EB1E173FDE6F4EDE3A5C6337EAB5876089F9942747AAAB469013C3435004363B0D -
--- /dev/null
+../skein512sum short_file.txt
--- /dev/null
+7AFBF89B1E6A8F6BCE8DF4ECE036128217FEE8E67B2F42A95B8525F1B34A58EB1E173FDE6F4EDE3A5C6337EAB5876089F9942747AAAB469013C3435004363B0D short_file.txt
--- /dev/null
+../skein512sum -b short_file.txt
--- /dev/null
+7AFBF89B1E6A8F6BCE8DF4ECE036128217FEE8E67B2F42A95B8525F1B34A58EB1E173FDE6F4EDE3A5C6337EAB5876089F9942747AAAB469013C3435004363B0D *short_file.txt
--- /dev/null
+../skein512sum Something_unexisting
--- /dev/null
+skein512sum: Something_unexisting: no such file or directory