Skip to content

sha3-224sum, sha3-256sum, sha3-384sum, sha3-512sum should not ask --bits #9106

@mykhal

Description

@mykhal
$ cargo build
…
$ cd target/debug
$ ./coreutils | grep sha3
    sha256sum, sha3-224sum, sha3-256sum, sha3-384sum, sha3-512sum, sha384sum, sha3sum,
$ ln coreutils sha3sum
$ ln coreutils sha3-512sum

$ ./sha3sum /dev/null
sha3sum: --bits required for SHA3
$ ./sha3-512sum /dev/null
sha3-512sum: --bits required for SHA3

I'm not sure if sha3sum should even exist (like there is no sha2sum; but I know it already exists in some implementations/packages, being sha3-224sum).

But sha3-224sum, sha3-256sum, sha3-384sum, sha3-512sum (and probably some other utils based on Keccak family hashes) should not require any more (mandatory) args.

(I'm rather new to Rust, so not providing a fix at the moment.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions