[Bug 265461] skein* command returns 0 exit code with '-q' and with incorrect skein string
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 265461] skein* command returns 0 exit code with '-q' and with incorrect skein string"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 265461] "skein* -q -c <string> <file>" command returns 0 exit code with '-q' and with incorrect skein string"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 265461] "skein* -q -c <string> <file>" command returns 0 exit code with '-q' and with incorrect skein string"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 265461] "skein* -q -c <string> <file>" command returns 0 exit code with '-q' and with incorrect skein string"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 265461] "skein* -q -c <string> <file>" command returns 0 exit code with '-q' and with incorrect skein string"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 265461] "skein* -q -c <string> <file>" command returns 0 exit code with '-q' and with incorrect skein string"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 26 Jul 2022 18:57:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265461
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 73581ce92a851207f700d87efdaad6428554d0699bf43b187c67782119446e24
test.txt; echo $?
Skein256 (test.txt) =
73581ce92a851207f700d87efdaad6428554d0699bf43b187c67782119446e24
0
# change skein string (zeros at the end)
$ skein256 -c 73581ce92a851207f700d87efdaad6428554d0699bf43b187c67782119440000
test.txt ; echo $?
Skein256 (test.txt) =
73581ce92a851207f700d87efdaad6428554d0699bf43b187c67782119446e24 [ Failed ]
2
### Exit code 0 with '-q' and changed skein string!
$ skein256 -q -c
73581ce92a851207f700d87efdaad6428554d0699bf43b187c67782119440000 test.txt ;
echo $?
73581ce92a851207f700d87efdaad6428554d0699bf43b187c67782119446e24
0
--
You are receiving this mail because:
You are the assignee for the bug.