Date: Tue, 26 Jul 2022 18:57:45 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 265461] skein* command returns 0 exit code with '-q' and with incorrect skein string Message-ID: <bug-265461-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265461 Bug ID: 265461 Summary: skein* command returns 0 exit code with '-q' and with incorrect skein string Product: Base System Version: 13.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: dmitrij@gusev.co Hello. skein* -q -c <skein hash string> <file> returns 0 even if the hash doesn't match file. without '-q' same command returns 2 on exit if the hash doesn't match file. Example: $ date > test.txt $ skein256sum test.txt > test.txt.skein256 $ cat test.txt.skein256 73581ce92a851207f700d87efdaad6428554d0699bf43b187c67782119446e24 test.txt $ skein256 -c 73581ce92a851207f700d87efdaad6428554d0699bf43b187c67782119446= e24 test.txt; echo $? Skein256 (test.txt) =3D 73581ce92a851207f700d87efdaad6428554d0699bf43b187c67782119446e24 0 # change skein string (zeros at the end) $ skein256 -c 73581ce92a851207f700d87efdaad6428554d0699bf43b187c67782119440= 000 test.txt ; echo $? Skein256 (test.txt) =3D 73581ce92a851207f700d87efdaad6428554d0699bf43b187c67782119446e24 [ Failed ] 2 ### Exit code 0 with '-q' and changed skein string! $ skein256 -q -c 73581ce92a851207f700d87efdaad6428554d0699bf43b187c67782119440000 test.txt ; echo $? 73581ce92a851207f700d87efdaad6428554d0699bf43b187c67782119446e24 0 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-265461-227>