aboutsummaryrefslogtreecommitdiffstats
path: root/src/hash/hash.h
diff options
context:
space:
mode:
authorlloyd <lloyd@randombit.net>2010-10-13 02:59:43 +0000
committerlloyd <lloyd@randombit.net>2010-10-13 02:59:43 +0000
commit61ed0d4d90164675396feb7c7cecdd3bc5012f91 (patch)
tree31f48086086c78c6f0ce5fd533d819c8463be822 /src/hash/hash.h
parent3697dcff8b5e9765b41114281ce10e7ed3d3abb4 (diff)
Remove most uses of HASH_BLOCK_SIZE
Diffstat (limited to 'src/hash/hash.h')
-rw-r--r--src/hash/hash.h7
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
*/