ObjFW  Check-in [ae444256d2]

Overview
Comment:ofhash: Accept --rmd160 as alias for --ripemd160
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ae444256d27d0032dbdbfdda2721672d4d9ccad7126fd5f4a31e1c61d60f5afc
User & Date: js on 2024-09-14 22:08:07
Other Links: manifest | tags
Context
2024-09-21
23:01
Update misc/keys.asc check-in: fdf9a76bbf user: js tags: trunk
2024-09-14
22:08
ofhash: Accept --rmd160 as alias for --ripemd160 check-in: ae444256d2 user: js tags: trunk
2024-09-08
17:02
Add -[attributesOfItemAtIRI:] for embedded files check-in: 3f3746be03 user: js tags: trunk
Changes

Modified utils/ofhash/OFHash.m from [2f46ff7479] to [1cd535dba0].

78
79
80
81
82
83
84

85
86
87
88
89
90
91
{
	int exitStatus = 0;
	bool calculateMD5, calculateRIPEMD160, calculateSHA1, calculateSHA224;
	bool calculateSHA256, calculateSHA384, calculateSHA512, isIRI;
	const OFOptionsParserOption options[] = {
		{ '\0', @"md5", 0, &calculateMD5, NULL },
		{ '\0', @"ripemd160", 0, &calculateRIPEMD160, NULL },

		{ '\0', @"sha1", 0, &calculateSHA1, NULL },
		{ '\0', @"sha224", 0, &calculateSHA224, NULL },
		{ '\0', @"sha256", 0, &calculateSHA256, NULL },
		{ '\0', @"sha384", 0, &calculateSHA384, NULL },
		{ '\0', @"sha512", 0, &calculateSHA512, NULL },
		{ '\0', @"iri", 0, &isIRI, NULL },
		{ '\0', nil, 0, NULL, NULL }







>







78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
	int exitStatus = 0;
	bool calculateMD5, calculateRIPEMD160, calculateSHA1, calculateSHA224;
	bool calculateSHA256, calculateSHA384, calculateSHA512, isIRI;
	const OFOptionsParserOption options[] = {
		{ '\0', @"md5", 0, &calculateMD5, NULL },
		{ '\0', @"ripemd160", 0, &calculateRIPEMD160, NULL },
		{ '\0', @"rmd160", 0, &calculateRIPEMD160, NULL },
		{ '\0', @"sha1", 0, &calculateSHA1, NULL },
		{ '\0', @"sha224", 0, &calculateSHA224, NULL },
		{ '\0', @"sha256", 0, &calculateSHA256, NULL },
		{ '\0', @"sha384", 0, &calculateSHA384, NULL },
		{ '\0', @"sha512", 0, &calculateSHA512, NULL },
		{ '\0', @"iri", 0, &isIRI, NULL },
		{ '\0', nil, 0, NULL, NULL }

Modified utils/ofhash/ofhash.1 from [4f761eeb63] to [eabaed3644].

28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.B ofhash
is a program to calculate the cryptographic hashes of files.
.SH OPTIONS
.TP
.BR \fB\-\-md5\fR
Calculate MD5 hashes.
.TP
.BR \fB\-\-ripemd160\fR
Calculate RIPEMD-160 hashes.
.TP
.BR \fB\-\-sha1\fR
Calculate SHA-1 hashes.
.TP
.BR \fB\-\-sha224\fR
Calculate SHA-224 hashes.







|







28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.B ofhash
is a program to calculate the cryptographic hashes of files.
.SH OPTIONS
.TP
.BR \fB\-\-md5\fR
Calculate MD5 hashes.
.TP
.BR \fB\-\-ripemd160\fR ", " \fB\-\-rmd160\fR
Calculate RIPEMD-160 hashes.
.TP
.BR \fB\-\-sha1\fR
Calculate SHA-1 hashes.
.TP
.BR \fB\-\-sha224\fR
Calculate SHA-224 hashes.