diff options
Diffstat (limited to 'src/hash/hash.h')
-rw-r--r-- | src/hash/hash.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/hash/hash.h b/src/hash/hash.h index cdf90f184..b331debc2 100644 --- a/src/hash/hash.h +++ b/src/hash/hash.h @@ -18,12 +18,17 @@ namespace Botan { */ class BOTAN_DLL HashFunction : public BufferedComputation { - public: /** * The hash block size as defined for this algorithm. */ const u32bit HASH_BLOCK_SIZE; + public: + /** + * The hash block size as defined for this algorithm + */ + virtual size_t hash_block_size() const { return HASH_BLOCK_SIZE; } + /** * Get a new object representing the same algorithm as *this */ |