Codebase list rust-libslirp / 537ff28
added b3sum bin crate and blake3 library crate karthek 3 years ago
17 changed file(s) with 268 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
(New empty file)
0 .TH B3SUM "1" "November 2020" "b3sum 0.3.7" "User Commands"
1 .SH NAME
2 b3sum \- compute and check BLAKE3 hash
3 .SH "USAGE"
4 .B b3sum
5 [FLAGS] [OPTIONS] [FILE]...
6 .SH DESCRIPTION
7 .PP
8 Print or check BLAKE3 checksums.
9 .PP
10 With no FILE, or when FILE is \-, read standard input.
11 .SS "FLAGS:"
12 .TP
13 \fB\-c\fR, \fB\-\-check\fR
14 Reads BLAKE3 sums from the [file]s and checks them
15 .TP
16 \fB\-h\fR, \fB\-\-help\fR
17 Prints help information
18 .TP
19 \fB\-\-keyed\fR
20 Uses the keyed mode. The secret key is read from standard
21 input, and it must be exactly 32 raw bytes.
22 .TP
23 \fB\-\-no\-mmap\fR
24 Disables memory mapping. Currently this also disables
25 multithreading.
26 .TP
27 \fB\-\-no\-names\fR
28 Omits filenames in the output
29 .TP
30 \fB\-\-quiet\fR
31 Skips printing OK for each successfully verified file.
32 Must be used with \fB\-\-check\fR.
33 .TP
34 \fB\-\-raw\fR
35 Writes raw output bytes to stdout, rather than hex.
36 \fB\-\-no\-names\fR is implied. In this case, only a single
37 input is allowed.
38 .TP
39 \fB\-V\fR, \fB\-\-version\fR
40 Prints version information
41 .SS "OPTIONS:"
42 .TP
43 \fB\-\-derive\-key\fR <CONTEXT>
44 Uses the key derivation mode, with the given
45 context string. Cannot be used with \fB\-\-keyed\fR.
46 .TP
47 \fB\-l\fR, \fB\-\-length\fR <LEN>
48 The number of output bytes, prior to hex
49 encoding (default 32)
50 .TP
51 \fB\-\-num\-threads\fR <NUM>
52 The maximum number of threads to use. By
53 default, this is the number of logical cores.
54 If this flag is omitted, or if its value is 0,
55 RAYON_NUM_THREADS is also respected.
56 .SS "ARGS:"
57 .TP
58 <FILE>...
59 Files to hash, or checkfiles to check. When no file is given,
60 or when \- is given, read standard input.
61 .SH "SEE ALSO"
0 rust-b3sum (0.3.7-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * Package b3sum 0.3.7 from crates.io using debcargo 2.4.3
3
4 -- karthek <mail@karthek.com> Wed, 27 Jan 2021 10:57:23 +0530
0 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
1 Upstream-Name: blake3
2 Upstream-Contact: Jack O'Connor <oconnor663@gmail.com>
3 Samuel Neves <sneves@dei.uc.pt>
4 Jean-Philippe Aumasson> <jeanphilippe.aumasson@gmail.com>
5 Zooko <zooko@z.cash>
6 Source: https://github.com/BLAKE3-team/BLAKE3
7
8 Files: *
9 Copyright: 2020 Jack O'Connor <oconnor663@gmail.com>
10 2020 Samuel Neves
11 License: CC0-1.0 or Apache-2.0
12
13 Files: debian/*
14 Copyright: 2020 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
15 License: CC0-1.0 or Apache-2.0
16
17 License: Apache-2.0
18 Debian systems provide the Apache 2.0 license in
19 /usr/share/common-licenses/Apache-2.0
20
21 License: CC0-1.0
22 Debian systems provide the CC0 1.0 Universal License in
23 /usr/share/common-licenses/CC0-1.0
0 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
1 Upstream-Name: b3sum
2 Upstream-Contact: Jack O'Connor <oconnor663@gmail.com>
3 Source: https://github.com/BLAKE3-team/BLAKE3
4
5 Files: *
6 Copyright: FIXME (overlay) UNKNOWN-YEARS Jack O'Connor <oconnor663@gmail.com>
7 License: CC0-1.0 or Apache-2.0
8 Comment:
9 FIXME (overlay): Since upstream copyright years are not available in
10 Cargo.toml, they were extracted from the upstream Git repository. This may not
11 be correct information so you should review and fix this before uploading to
12 the archive.
13
14 Files: debian/*
15 Copyright:
16 2021 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
17 2021 karthek <mail@karthek.com>
18 License: CC0-1.0 or Apache-2.0
19
20 License: Apache-2.0
21 Debian systems provide the Apache 2.0 license in
22 /usr/share/common-licenses/Apache-2.0
23
24 License: CC0-1.0
25 Debian systems provide the CC0 1.0 Universal License in
26 /usr/share/common-licenses/CC0-1.0
0 overlay = "."
1 bin_name = "b3sum"
2 uploaders = ["karthek <mail@karthek.com>"]
3
4 [source]
5 homepage= "https://github.com/BLAKE3-team/BLAKE3"
6 section= "utils"
7
8 [packages.bin]
9 summary= "Command line tool for the BLAKE3 hash"
10 description= """
11 BLAKE3 is a cryptographic hash function that is much faster than MD5, SHA-1,
12 SHA-2, SHA-3, and BLAKE2 and
13 Secure, unlike MD5 and SHA-1. And secure against length extension.
14 Note, This package includes binary "b3sum" which is built from official
15 multithreaded implementation of BLAKE3 in rust.
16 """
0 Description: fix dependencies
1
2 Last-Update: 2020-12-18
3
4 --- rust-b3sum-0.3.7.orig/Cargo.toml
5 +++ rust-b3sum-0.3.7/Cargo.toml
6 @@ -36,10 +36,10 @@ version = "0.4.0"
7 version = "0.7.0"
8
9 [dependencies.rayon]
10 -version = "1.2.1"
11 +version = "1.1.0"
12
13 [dependencies.wild]
14 -version = "2.0.3"
15 +version = "2.0.2"
16 [dev-dependencies.duct]
17 version = "0.13.3"
18
(New empty file)
0 rust-blake3 (0.3.7-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * Package blake3 0.3.7 from crates.io using debcargo 2.4.3
3
4 -- karthek <mail@karthek.com> Wed, 27 Jan 2021 10:54:10 +0530
0 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
1 Upstream-Name: blake3
2 Upstream-Contact: Jack O'Connor <oconnor663@gmail.com>
3 Samuel Neves <sneves@dei.uc.pt>
4 Jean-Philippe Aumasson> <jeanphilippe.aumasson@gmail.com>
5 Zooko <zooko@z.cash>
6 Source: https://github.com/BLAKE3-team/BLAKE3
7
8 Files: *
9 Copyright: 2020 Jack O'Connor <oconnor663@gmail.com>
10 2020 Samuel Neves
11 License: CC0-1.0 or Apache-2.0
12
13 Files: debian/*
14 Copyright: 2020 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
15 License: CC0-1.0 or Apache-2.0
16
17 License: Apache-2.0
18 Debian systems provide the Apache 2.0 license in
19 /usr/share/common-licenses/Apache-2.0
20
21 License: CC0-1.0
22 Debian systems provide the CC0 1.0 Universal License in
23 /usr/share/common-licenses/CC0-1.0
0 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
1 Upstream-Name: blake3
2 Upstream-Contact: Jack O'Connor <oconnor663@gmail.com>
3 Source: https://github.com/BLAKE3-team/BLAKE3
4
5 Files: *
6 Copyright: FIXME (overlay) UNKNOWN-YEARS Jack O'Connor <oconnor663@gmail.com>
7 License: CC0-1.0 or Apache-2.0
8 Comment:
9 FIXME (overlay): Since upstream copyright years are not available in
10 Cargo.toml, they were extracted from the upstream Git repository. This may not
11 be correct information so you should review and fix this before uploading to
12 the archive.
13
14 Files: ./LICENSE
15 Copyright: 2019 Jack O'Connor and Samuel Neves
16 License: UNKNOWN-LICENSE; FIXME (overlay)
17 Comment:
18 FIXME (overlay): These notices are extracted from files. Please review them
19 before uploading to the archive.
20
21 Files: debian/*
22 Copyright:
23 2021 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
24 2021 karthek <mail@karthek.com>
25 License: CC0-1.0 or Apache-2.0
26
27 License: Apache-2.0
28 Debian systems provide the Apache 2.0 license in
29 /usr/share/common-licenses/Apache-2.0
30
31 License: CC0-1.0
32 Debian systems provide the CC0 1.0 Universal License in
33 /usr/share/common-licenses/CC0-1.0
0 overlay = "."
1 whitelist = ["c/**"]
2 uploaders = ["karthek <mail@karthek.com>"]
0 Description: debianize
1
2 Last-Update: 2020-12-18
3
4 --- rust-blake3-0.3.7.orig/build.rs
5 +++ rust-blake3-0.3.7/build.rs
6 @@ -134,6 +134,7 @@ fn build_sse2_sse41_avx2_assembly() {
7 println!("cargo:rustc-cfg=blake3_sse2_ffi");
8 println!("cargo:rustc-cfg=blake3_sse41_ffi");
9 println!("cargo:rustc-cfg=blake3_avx2_ffi");
10 + println!("dh-cargo:deb-built-using=blake3_sse2_sse41_avx2_assembly=0={}", env::var("CARGO_MANIFEST_DIR").unwrap());
11 let mut build = new_build();
12 if is_windows_msvc() {
13 build.file("c/blake3_sse2_x86-64_windows_msvc.asm");
14 @@ -178,6 +179,7 @@ fn build_avx512_assembly() {
15 // only supports x86_64.
16 assert!(is_x86_64());
17 println!("cargo:rustc-cfg=blake3_avx512_ffi");
18 + println!("dh-cargo:deb-built-using=blake3_avx512_assembly=0={}", env::var("CARGO_MANIFEST_DIR").unwrap());
19 let mut build = new_build();
20 if is_windows_msvc() {
21 build.file("c/blake3_avx512_x86-64_windows_msvc.asm");
0 Description: Fix deps
1
2 Last-Update: 2020-12-18
3
4 --- rust-blake3-0.3.7.orig/Cargo.toml
5 +++ rust-blake3-0.3.7/Cargo.toml
6 @@ -37,13 +37,13 @@ version = "0.1.10"
7 version = "0.1.5"
8
9 [dependencies.crypto-mac]
10 -version = "0.8.0"
11 +version = "0.10.0"
12
13 [dependencies.digest]
14 version = "0.9.0"
15
16 [dependencies.rayon]
17 -version = "1.2.1"
18 +version = "1.1.0"
19 optional = true
20 [dev-dependencies.hex]
21 version = "0.4.2"
0 fix-deps
1 fix-build.rs