Codebase list rust-libslirp / 83b6f1a
sha1collisiondetection: prepare 0.2.3 (Closes: #977421) Rewrite man page with the help of help2man: help2man --include src/sha1collisiondetection/debian/sha1cdsum.1.include \ --no-info --name 'SHA-1 digests with collision detection' sha1cdsum \ > src/sha1collisiondetection/debian/sha1cdsum.1 Daniel Kahn Gillmor 3 years ago
4 changed file(s) with 102 addition(s) and 35 deletion(s). Raw diff Collapse all Expand all
0 rust-sha1collisiondetection (0.2.3-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * Package sha1collisiondetection 0.2.3 from crates.io using debcargo 2.4.3
3 * Closes: #977421
4
5 -- Daniel Kahn Gillmor <dkg@fifthhorseman.net> Tue, 15 Dec 2020 10:57:05 -0500
6
07 rust-sha1collisiondetection (0.2.2-2) unstable; urgency=medium
18
29 * Package sha1collisiondetection 0.2.2 from crates.io using debcargo 2.4.3
55 Once those updates are done, then we can add the digest-trait feature
66 back.
77
8 Also, the structopt "feature" is really just a build-dependency for
9 the sha1cdsum binary, so we don't want it as an additional feature.
10
11 debcargo doesn't seem to have a way to represent this cleanly
12 (#977491) so we'll just treat it as non-optional for now.
13
814 --- a/Cargo.toml
915 +++ b/Cargo.toml
10 @@ -30,9 +30,6 @@
16 @@ -29,10 +29,7 @@
17 [[bin]]
1118 name = "sha1cdsum"
1219 path = "src/main.rs"
13 required-features = ["std"]
20 -required-features = ["std", "structopt"]
1421 -[dependencies.digest]
1522 -version = "0.9"
1623 -optional = true
24 +required-features = ["std"]
1725
1826 [dependencies.generic-array]
1927 version = ">= 0.12, < 0.15"
20 @@ -40,9 +37,6 @@
28 @@ -40,14 +37,9 @@
2129 [dependencies.libc]
2230 version = "0.2"
2331
2432 -[dependencies.sha-1]
2533 -version = "0.9"
2634 -optional = true
35 -
36 [dependencies.structopt]
37 version = "0.3"
38 -optional = true
39 -default-features = false
40 +
2741 [dev-dependencies.getrandom]
2842 version = "0.1"
2943
30 @@ -50,9 +44,8 @@
44 @@ -55,9 +47,9 @@
3145 version = "0.3"
3246
3347 [features]
34 -default = ["std", "digest-trait"]
48 -default = ["std", "digest-trait", "structopt"]
3549 -digest-trait = ["digest", "sha-1"]
50 -std = ["digest/std"]
3651 +default = ["std"]
37 -std = ["digest/std"]
3852 +std = []
53 +
3954 [badges.gitlab]
4055 repository = "sequoia-pgp/sha1collisiondetection"
41
56
0 .TH SHA1CDSUM "1" "December 2020" "sha1collisiondetection" "User Commands"
0 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
1 .TH SHA1CDSUM "1" "December 2020" "sha1cdsum 0.2.3" "User Commands"
12 .SH NAME
2 sha1cdsum \- SHA\-1 Collision Detection
3 sha1cdsum \- SHA-1 digests with collision detection
34 .SH DESCRIPTION
4 sha1cdsum does a SHA\-1 cryptographic digest, but diverges from SHA\-1
5 when it encounters the most common forms of attack against the
6 algorithm's collision resistance.
5 sha1cdsum 0.2.3
6 Print or check SHA1 (160\-bit) checksums with collision detection.
7 .SS "USAGE:"
8 .IP
9 sha1cdsum [FLAGS] [files]...
10 .SS "FLAGS:"
11 .TP
12 \fB\-b\fR, \fB\-\-binary\fR
13 read in binary mode
14 .TP
15 \fB\-c\fR, \fB\-\-check\fR
16 read SHA1 sums from the FILEs and check them
17 .TP
18 \fB\-h\fR, \fB\-\-help\fR
19 Prints help information
20 .TP
21 \fB\-\-tag\fR
22 create a BSD\-style checksum
23 .TP
24 \fB\-t\fR, \fB\-\-text\fR
25 read in text mode
26 .TP
27 \fB\-V\fR, \fB\-\-version\fR
28 Prints version information
29 .TP
30 \fB\-z\fR, \fB\-\-zero\fR
31 end each output line with NUL, not newline, and disable file name escaping
32 .TP
33 \fB\-\-ignore\-missing\fR
34 don't fail or report status for missing files
35 .TP
36 \fB\-\-quiet\fR
37 don't print OK for each successfully verified file
38 .TP
39 \fB\-\-status\fR
40 don't output anything, status code shows success
41 .TP
42 \fB\-\-strict\fR
43 exit non\-zero for improperly formatted checksum lines
44 .TP
45 \fB\-w\fR, \fB\-\-warn\fR
46 warn about improperly formatted checksum lines
47 .SS "ARGS:"
48 .TP
49 <files>...
50 Input file(s). With no FILE, or when FILE is \-, read standard input
751 .PP
8 When such an attack is detected, it produces a different digest and
9 indicates that a collision block was observed.
10 .SS USAGE
11 .B sha1cdsum
12 reads and calculates over data it receives on standard input, and
13 ignores all command line options. But see the WARNING below about
14 interface stability.
15 .SS EXAMPLE
16 .nf
17 \f[C]
18 $ sha1cdsum < /dev/null
19 this is a stub implementation!
20 da39a3ee5e6b4b0d3255bfef95601890afd80709
21 $ zcat /usr/share/doc/sha1cdsum/examples/shattered-1.pdf.gz | sha1cdsum
22 this is a stub implementation!
23 *coll* e1761773e6a35916d99f891b77663e6405313587
24 $
25 \f[R]
26 .fi
27 .SS WARNING
28 The API for this command is unstable and likely to change! See
29 https://gitlab.com/sequoia-pgp/sha1collisiondetection/-/issues/2 for details.
30 .SS SEE ALSO
52 The last five options are useful only when verifying checksums.
53 .PP
54 The sums are computed using Marc Stevens' modified SHA1 that detects
55 collision attacks. When checking, the input should be a former output
56 of this program. The default mode is to print a line with checksum, a
57 space, a character indicating input mode ('*' for binary, ' ' for text
58 or where binary is insignificant), and name for each FILE.
59 .PP
60 If a collision is detected, '*coll*' is printed in front of the file
61 name.
62 .PP
63 Note: There is no difference between binary mode and text mode on GNU
64 systems.
65 .PP
66 This program implements the same interface as coreutils' sha1sum,
67 modulo error messages printed to stderr, handling of non\-UTF8
68 filenames, and bugs.
69 .SH "SEE ALSO"
3170 .BR https://shattered.io/
3271 .PP
3372 .BR https://sha\-mbles.github.io/
0 [SEE ALSO]
1 .BR https://shattered.io/
2 .PP
3 .BR https://sha\-mbles.github.io/
4 .PP
5 .BR https://gitlab.com/sequoia-pgp/sha1collisiondetection