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"
|
1 | 2 |
.SH NAME
|
2 | |
sha1cdsum \- SHA\-1 Collision Detection
|
|
3 |
sha1cdsum \- SHA-1 digests with collision detection
|
3 | 4 |
.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
|
7 | 51 |
.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"
|
31 | 70 |
.BR https://shattered.io/
|
32 | 71 |
.PP
|
33 | 72 |
.BR https://sha\-mbles.github.io/
|