diff options
Diffstat (limited to 'Libraries/LibCrypto/Hash/SHA2.h')
-rw-r--r-- | Libraries/LibCrypto/Hash/SHA2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Libraries/LibCrypto/Hash/SHA2.h b/Libraries/LibCrypto/Hash/SHA2.h index 2437cc17cc..ebb38d9888 100644 --- a/Libraries/LibCrypto/Hash/SHA2.h +++ b/Libraries/LibCrypto/Hash/SHA2.h @@ -88,6 +88,9 @@ constexpr static u64 InitializationHashes[8] = { template<size_t Bytes> struct SHA2Digest { u8 data[Bytes]; + constexpr static size_t Size = Bytes; + const u8* immutable_data() const { return data; } + size_t data_length() { return Bytes; } }; // FIXME: I want template<size_t BlockSize> but the compiler gets confused |