From nobody Tue Jul 26 18:57:45 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LsmPk1SQbz4Wqy8 for ; Tue, 26 Jul 2022 18:57:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LsmPj4TXlz3v2K for ; Tue, 26 Jul 2022 18:57:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LsmPj3GqNznS3 for ; Tue, 26 Jul 2022 18:57:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 26QIvj5b042166 for ; Tue, 26 Jul 2022 18:57:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26QIvjpK042164 for bugs@FreeBSD.org; Tue, 26 Jul 2022 18:57:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Tue, 26 Jul 2022 18:57:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dmitrij@gusev.co X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658861865; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xdeLJMRMVjq9srV9ZQ9bVIJltP/XaidsiOM+tVIsUxo=; b=O+aopsi4KGnoHD8flNoFZh1A/i2g85VAOsMnyf+sGq5yDc4zg+AUBXmRo7fIO1quB6jCj9 rbdDua7Gi8M1lmG4dMhcb1rw03HI6MOMhNTW7IpZ6wlT/KE9bPl0mNMxl7s0nbWt8SG5ed EL1og65BbcvZqxOF78U8BlKj2uqmXXzuodqZeM6t1h8m4VQogkskmsADdlR8geRs+sMaY8 FdcArqVvNrTTpADvxGiIQ5DFFRb+/PLxU3THU+M91AGmGlhJnM565v3GmWq0ByDn0MTi3D IJWgVk196kOkIHFv1gDCDdFr+WlF3tyDs5/ZFtnjNmCQZKkXcwMlFiOHqhkZPw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658861865; a=rsa-sha256; cv=none; b=VPCAKP14H3B/ZDaH4aTnlu6pVRcwU9jRfA79e2fP4kI3E5jg6rUJgUsnxG9mNLz8CYI6Jj zCf+H6yYXqtb5+F8UjVMReJYPshS0vgxwmn1EGnz/6l2YQFUmX1DMhaTedHV44S6D8fsqN XYb10Y0u1Kl5oEbRpjaTnGVXFUBdOkzoNWPd4ooK8q3FIukrWR0o+r1RF6MbmZ+SYYn03V hUbze/704T+suxq38wkkNIRH8ocBpRB/WqcixyTS6VhHxb0rZ7Qgg6l12CUBMxQVimzwl5 /zbTWnOkvrv15rBLip/SfW565IVjSNIKOpWnIbNYoF/kgE9Nyby5m7rymYbG7g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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 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.=