ladybird/Libraries/LibCrypto/Hash/BLAKE2b.h

27 lines
471 B
C
Raw Normal View History

2023-09-16 17:01:54 +04:00
/*
* Copyright (c) 2023, the SerenityOS developers
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/ByteString.h>
#include <LibCrypto/Hash/OpenSSLHashFunction.h>
2023-09-16 17:01:54 +04:00
namespace Crypto::Hash {
class BLAKE2b final : public OpenSSLHashFunction<BLAKE2b, 1024, 512> {
AK_MAKE_NONCOPYABLE(BLAKE2b);
2023-09-16 17:01:54 +04:00
public:
explicit BLAKE2b(EVP_MD_CTX* context);
2023-09-16 17:01:54 +04:00
virtual ByteString class_name() const override
2023-09-16 17:01:54 +04:00
{
return "BLAKE2b";
}
};
};