mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 10:06:03 +00:00
LibCrypto: Move hash constructors out of line
This commit is contained in:
parent
0fc02d4d00
commit
977af95b5b
Notes:
github-actions[bot]
2025-01-13 16:02:09 +00:00
Author: https://github.com/devgianlu
Commit: 977af95b5b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3234
9 changed files with 92 additions and 24 deletions
|
|
@ -15,10 +15,7 @@ class SHA256 final : public OpenSSLHashFunction<SHA256, 512, 256> {
|
|||
AK_MAKE_NONCOPYABLE(SHA256);
|
||||
|
||||
public:
|
||||
explicit SHA256(EVP_MD_CTX* context)
|
||||
: OpenSSLHashFunction(EVP_sha256(), context)
|
||||
{
|
||||
}
|
||||
explicit SHA256(EVP_MD_CTX* context);
|
||||
|
||||
virtual ByteString class_name() const override
|
||||
{
|
||||
|
|
@ -30,10 +27,7 @@ class SHA384 final : public OpenSSLHashFunction<SHA384, 1024, 384> {
|
|||
AK_MAKE_NONCOPYABLE(SHA384);
|
||||
|
||||
public:
|
||||
explicit SHA384(EVP_MD_CTX* context)
|
||||
: OpenSSLHashFunction(EVP_sha384(), context)
|
||||
{
|
||||
}
|
||||
explicit SHA384(EVP_MD_CTX* context);
|
||||
|
||||
virtual ByteString class_name() const override
|
||||
{
|
||||
|
|
@ -45,10 +39,7 @@ class SHA512 final : public OpenSSLHashFunction<SHA512, 1024, 512> {
|
|||
AK_MAKE_NONCOPYABLE(SHA512);
|
||||
|
||||
public:
|
||||
explicit SHA512(EVP_MD_CTX* context)
|
||||
: OpenSSLHashFunction(EVP_sha512(), context)
|
||||
{
|
||||
}
|
||||
explicit SHA512(EVP_MD_CTX* context);
|
||||
|
||||
virtual ByteString class_name() const override
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue