1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:37:34 +00:00

LibCrypto: Expose checksum type of ChecksumFunction

This commit is contained in:
kleines Filmröllchen 2023-05-18 15:52:20 +02:00 committed by Jelle Raaijmakers
parent c9f6605fb2
commit 4f9c91e34d

View file

@ -10,9 +10,11 @@
namespace Crypto::Checksum { namespace Crypto::Checksum {
template<typename ChecksumType> template<typename ChecksumT>
class ChecksumFunction { class ChecksumFunction {
public: public:
using ChecksumType = ChecksumT;
virtual void update(ReadonlyBytes data) = 0; virtual void update(ReadonlyBytes data) = 0;
virtual ChecksumType digest() = 0; virtual ChecksumType digest() = 0;