mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +00:00

SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
23 lines
381 B
C++
23 lines
381 B
C++
/*
|
|
* Copyright (c) 2020, the SerenityOS developers
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Span.h>
|
|
|
|
namespace Crypto::Checksum {
|
|
|
|
template<typename ChecksumType>
|
|
class ChecksumFunction {
|
|
public:
|
|
virtual void update(ReadonlyBytes data) = 0;
|
|
virtual ChecksumType digest() = 0;
|
|
|
|
protected:
|
|
virtual ~ChecksumFunction() = default;
|
|
};
|
|
|
|
}
|