Core/Crypto: Added SHA 512 definitions

This commit is contained in:
Shauren
2023-12-19 21:13:33 +01:00
parent 53ac8d3ef5
commit e172052a0a
2 changed files with 2 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ namespace Crypto
static constexpr size_t MD5_DIGEST_LENGTH_BYTES = 16;
static constexpr size_t SHA1_DIGEST_LENGTH_BYTES = 20;
static constexpr size_t SHA256_DIGEST_LENGTH_BYTES = 32;
static constexpr size_t SHA512_DIGEST_LENGTH_BYTES = 64;
};
}
}

View File

@@ -140,6 +140,7 @@ namespace Trinity::Crypto
using MD5 = Trinity::Impl::GenericHash<EVP_md5, Constants::MD5_DIGEST_LENGTH_BYTES>;
using SHA1 = Trinity::Impl::GenericHash<EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES>;
using SHA256 = Trinity::Impl::GenericHash<EVP_sha256, Constants::SHA256_DIGEST_LENGTH_BYTES>;
using SHA512 = Trinity::Impl::GenericHash<EVP_sha512, Constants::SHA512_DIGEST_LENGTH_BYTES>;
}
#endif