summaryrefslogtreecommitdiff
path: root/Userland/Utilities
diff options
context:
space:
mode:
authorMichel Hermier <michel.hermier@gmail.com>2022-01-04 02:34:00 +0100
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-01-05 01:07:21 +0330
commit22efc34ec5ea171b79b351eee7bc59d309dc837e (patch)
treebe5a822dfa9f8f0d80aa25a4fe86aefa42ae6552 /Userland/Utilities
parent3f0e425f1eaf4ea03d3e7fddf367f8532c2e43b4 (diff)
downloadserenity-22efc34ec5ea171b79b351eee7bc59d309dc837e.zip
LibCrypto: Make `Digest`s able to return `bytes`
Diffstat (limited to 'Userland/Utilities')
-rw-r--r--Userland/Utilities/checksum.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Utilities/checksum.cpp b/Userland/Utilities/checksum.cpp
index a91a77019f..6325898b8c 100644
--- a/Userland/Utilities/checksum.cpp
+++ b/Userland/Utilities/checksum.cpp
@@ -64,8 +64,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
while (!file->eof() && !file->has_error())
hash.update(file->read(PAGE_SIZE));
- auto digest = hash.digest();
- outln("{:hex-dump} {}", ReadonlyBytes(digest.immutable_data(), digest.data_length()), path);
+ outln("{:hex-dump} {}", hash.digest().bytes(), path);
}
return has_error ? 1 : 0;
}