make output equal to output of sha1sum etc.

This commit is contained in:
Steffen Jaeckel 2017-04-23 17:32:21 +02:00
parent 4ddee31de7
commit a6b8e52c43
2 changed files with 31 additions and 31 deletions

View File

@ -47,7 +47,7 @@ int main(int argc, char **argv)
for (x = 0; x < (int)hash_descriptor[idx].hashsize; x++) { for (x = 0; x < (int)hash_descriptor[idx].hashsize; x++) {
printf("%02x",hash_buffer[x]); printf("%02x",hash_buffer[x]);
} }
printf(" (stdin)\n"); printf(" *-\n");
} else { } else {
for (z = 2; z < argc; z++) { for (z = 2; z < argc; z++) {
w = sizeof(hash_buffer); w = sizeof(hash_buffer);
@ -57,7 +57,7 @@ int main(int argc, char **argv)
for (x = 0; x < (int)hash_descriptor[idx].hashsize; x++) { for (x = 0; x < (int)hash_descriptor[idx].hashsize; x++) {
printf("%02x",hash_buffer[x]); printf("%02x",hash_buffer[x]);
} }
printf(" %s\n", argv[z]); printf(" *%s\n", argv[z]);
} }
} }
} }

View File

@ -1,29 +1,29 @@
blake2b-160: 684b540eb245ebba2cd66b7814fe6d787868a5bb testprof/test.key blake2b-160: 684b540eb245ebba2cd66b7814fe6d787868a5bb *testprof/test.key
blake2b-256: 3aaa08120aa0174c105fd1f3412e3da30c3bbb9073569b0b8ae458b34de7780e testprof/test.key blake2b-256: 3aaa08120aa0174c105fd1f3412e3da30c3bbb9073569b0b8ae458b34de7780e *testprof/test.key
blake2b-384: c33f39ab19099d5dea6789479e23447857803a3f45361ea58dd69c7b8037c8697544b6a741e236215adcb8b38fa0cfc4 testprof/test.key blake2b-384: c33f39ab19099d5dea6789479e23447857803a3f45361ea58dd69c7b8037c8697544b6a741e236215adcb8b38fa0cfc4 *testprof/test.key
blake2b-512: a2daabae6996e3bbfb76c5d277fb881107037c756173f510d83a78f669cf0b70a5088b971e30ca2168381568ea3d30b80a7b500944a5e2e3294f25aed4c3a5f1 testprof/test.key blake2b-512: a2daabae6996e3bbfb76c5d277fb881107037c756173f510d83a78f669cf0b70a5088b971e30ca2168381568ea3d30b80a7b500944a5e2e3294f25aed4c3a5f1 *testprof/test.key
blake2s-128: 7e1f9b6de11a3c597308f9d8aacd7321 testprof/test.key blake2s-128: 7e1f9b6de11a3c597308f9d8aacd7321 *testprof/test.key
blake2s-160: 3d1c9ae1a0afe8a6ef8b61d5380de7b061cd353c testprof/test.key blake2s-160: 3d1c9ae1a0afe8a6ef8b61d5380de7b061cd353c *testprof/test.key
blake2s-224: 95dacd83d0421b2d69a52d92ee54143bb97c91a61450d917a88d4388 testprof/test.key blake2s-224: 95dacd83d0421b2d69a52d92ee54143bb97c91a61450d917a88d4388 *testprof/test.key
blake2s-256: 92ac6dc88b9ce4a75b2a54783435a37919303f713396db0e9ccd976d8c55f1cf testprof/test.key blake2s-256: 92ac6dc88b9ce4a75b2a54783435a37919303f713396db0e9ccd976d8c55f1cf *testprof/test.key
chc_hash: d50da1ea9b53c0b891c8bcb0a4c6e5e0 testprof/test.key chc_hash: d50da1ea9b53c0b891c8bcb0a4c6e5e0 *testprof/test.key
md2: 0b327a17a102580ccde8081c18f137c7 testprof/test.key md2: 0b327a17a102580ccde8081c18f137c7 *testprof/test.key
md4: 6df7b3c1f7fbcbf6b8246dc0046e9d6b testprof/test.key md4: 6df7b3c1f7fbcbf6b8246dc0046e9d6b *testprof/test.key
md5: 48fd9ed11c633069c3cf721611696a73 testprof/test.key md5: 48fd9ed11c633069c3cf721611696a73 *testprof/test.key
rmd128: a78170e11d56605eb0f5e05e6a218e61 testprof/test.key rmd128: a78170e11d56605eb0f5e05e6a218e61 *testprof/test.key
rmd160: 56236b14cd15958c58136a295fa2b07c5edee009 testprof/test.key rmd160: 56236b14cd15958c58136a295fa2b07c5edee009 *testprof/test.key
rmd256: a0a658b25b8841f20be8151eb5e2c1229f085dd5cf7aa8bef4c8e07ea5738913 testprof/test.key rmd256: a0a658b25b8841f20be8151eb5e2c1229f085dd5cf7aa8bef4c8e07ea5738913 *testprof/test.key
rmd320: 2ec15ca947f29dd8cef4782aeaeb4541ac00dc29e1649c4f5f4578ef0287091e513f9da423ce7319 testprof/test.key rmd320: 2ec15ca947f29dd8cef4782aeaeb4541ac00dc29e1649c4f5f4578ef0287091e513f9da423ce7319 *testprof/test.key
sha1: c17a11eef02d7a2ad7250bc2ee22bdf37ed21f0f testprof/test.key sha1: c17a11eef02d7a2ad7250bc2ee22bdf37ed21f0f *testprof/test.key
sha224: b226daa069512c849d55866470c23543d87e1fb768171efdcc6ab59a testprof/test.key sha224: b226daa069512c849d55866470c23543d87e1fb768171efdcc6ab59a *testprof/test.key
sha256: 76ec7faebdc42a4de35ca70024c2d273e9f7856ca61612e89f5f66350ba8cf5f testprof/test.key sha256: 76ec7faebdc42a4de35ca70024c2d273e9f7856ca61612e89f5f66350ba8cf5f *testprof/test.key
sha3-224: 09525d6410c462e00e72ccd4304290bc59ff2b1b8e5322dbc197e169 testprof/test.key sha3-224: 09525d6410c462e00e72ccd4304290bc59ff2b1b8e5322dbc197e169 *testprof/test.key
sha3-256: b9016fc9976545ad0183775d88f20df5295d40b31db00d85f6916333260b8ae2 testprof/test.key sha3-256: b9016fc9976545ad0183775d88f20df5295d40b31db00d85f6916333260b8ae2 *testprof/test.key
sha3-384: 5452977763b602df4185bbe7cce193346b09ee20d4a45a780fd44237e335ceaa71b9da06242621e159d796db9043c9be testprof/test.key sha3-384: 5452977763b602df4185bbe7cce193346b09ee20d4a45a780fd44237e335ceaa71b9da06242621e159d796db9043c9be *testprof/test.key
sha3-512: 1fadf63073c8613d38d5c944e2e3f7e086d94d93dceb2eec1e9693fd44158f3127c90cbaa8a13035cc9ff9b3572c9dce836bea15c92e8a78b036ec382caceb0f testprof/test.key sha3-512: 1fadf63073c8613d38d5c944e2e3f7e086d94d93dceb2eec1e9693fd44158f3127c90cbaa8a13035cc9ff9b3572c9dce836bea15c92e8a78b036ec382caceb0f *testprof/test.key
sha384: 7cc080c662524617e56d5a49f1c185909e9b1858a86684161ddd97fc5426f693b53f59d779de16da25dcb1259df879e5 testprof/test.key sha384: 7cc080c662524617e56d5a49f1c185909e9b1858a86684161ddd97fc5426f693b53f59d779de16da25dcb1259df879e5 *testprof/test.key
sha512: f90afe4d254716a9770fd2c4f29ca544f2975f961cbd7fa207117383e4e48f7a2e1ade4aac333a2cb8c227dd6af2fff4d87c31c2a3916ae24d507c7c94c21818 testprof/test.key sha512: f90afe4d254716a9770fd2c4f29ca544f2975f961cbd7fa207117383e4e48f7a2e1ade4aac333a2cb8c227dd6af2fff4d87c31c2a3916ae24d507c7c94c21818 *testprof/test.key
sha512-224: 64ec566b5c2de736eab1b4e8542dc110f736819ea7f8f48e3712fbad testprof/test.key sha512-224: 64ec566b5c2de736eab1b4e8542dc110f736819ea7f8f48e3712fbad *testprof/test.key
sha512-256: db880bce4beb7246510febb961c7595aab57a15de6f90cd079f145e476b5d773 testprof/test.key sha512-256: db880bce4beb7246510febb961c7595aab57a15de6f90cd079f145e476b5d773 *testprof/test.key
tiger: 97d713850e7affac30a642572c1ee7b18793d5b9e0ef5932 testprof/test.key tiger: 97d713850e7affac30a642572c1ee7b18793d5b9e0ef5932 *testprof/test.key
whirlpool: d7d41c755e0f28313f254cb198e0bfa42f56670595d97b80dceec754825d69938a9c11e5bf16e9a3809a62a09bddf021f3dbff4302ceec7ba46c88b41772b711 testprof/test.key whirlpool: d7d41c755e0f28313f254cb198e0bfa42f56670595d97b80dceec754825d69938a9c11e5bf16e9a3809a62a09bddf021f3dbff4302ceec7ba46c88b41772b711 *testprof/test.key