1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-05-19 21:36:04 +02:00
BLAKE3/b3sum
Jack O'Connor 2fac7447e0 make derive_key take a key of any length
The previous version of this API called for a key of exactly 256 bits.
That's good for optimal performance, but it would mean losing the
use-with-other-algorithms property for applications whose input keys are
a different size. There's no way for an abstraction over the previous
version to provide reliable domain separation for the "extract" step.
2019-12-28 17:56:29 -06:00
..
src make derive_key take a key of any length 2019-12-28 17:56:29 -06:00
tests make derive_key take a key of any length 2019-12-28 17:56:29 -06:00
Cargo.toml make b3sum --keyed and --derive-key read the key from stdin 2019-12-13 16:10:55 -05:00
README.md show the default value for b3sum --length 2019-12-13 16:23:03 -05:00

b3sum

b3sum 0.1.0

USAGE:
    b3sum [FLAGS] [OPTIONS] [file]...

FLAGS:
        --derive-key    Uses the KDF mode, with the 32-byte key read from stdin
    -h, --help          Prints help information
        --keyed         Uses the keyed mode, with the 32-byte key read from stdin
        --no-names      Omits filenames in the output
    -V, --version       Prints version information

OPTIONS:
    -l, --length <LEN>    The number of output bytes, prior to hex encoding [default: 32]

ARGS:
    <file>...

Building

You can build and install with cargo install --path ., which installs binaries in ~/.cargo/bin on Linux. Or you can just build with cargo build --release, which puts the binary at ./target/release/b3sum.

AVX-512 support (via C FFI, with dynamic CPU feature detection) and multi-threading (via Rayon) are enabled by default. Note that the underlying blake3 crate does not enable those by default.