diff options
author | lloyd <[email protected]> | 2009-04-07 18:54:42 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-04-07 18:54:42 +0000 |
commit | 3926091249430e31baa182e24747b0689cc9e836 (patch) | |
tree | f5bd1e767aa92f0a7054a4335657d41b28030593 | |
parent | 3a847f4e5ce8ce9d88e14c1d00b25961ec3bef01 (diff) |
Remove some commented out code in MDx_HashFunction which was used during
the changeover from single block hashing to having each hash support multiple
sequential blocks of input.
-rw-r--r-- | src/hash/mdx_hash/mdx_hash.cpp | 23 | ||||
-rw-r--r-- | src/hash/mdx_hash/mdx_hash.h | 3 |
2 files changed, 0 insertions, 26 deletions
diff --git a/src/hash/mdx_hash/mdx_hash.cpp b/src/hash/mdx_hash/mdx_hash.cpp index 9d011b2d3..2d5a2fe82 100644 --- a/src/hash/mdx_hash/mdx_hash.cpp +++ b/src/hash/mdx_hash/mdx_hash.cpp @@ -37,28 +37,6 @@ void MDx_HashFunction::clear() throw() /** * Update the hash */ -/* -void MDx_HashFunction::compress_n(const byte block[], u32bit block_n) - { - for(u32bit j = 0; j != block_n; ++j) - { - hash(block); - block += HASH_BLOCK_SIZE; - } - } -*/ -/** -* Update the hash -*/ -/* -void MDx_HashFunction::hash(const byte block[]) - { - compress_n(block, 1); - } -*/ -/** -* Update the hash -*/ void MDx_HashFunction::add_data(const byte input[], u32bit length) { count += length; @@ -90,7 +68,6 @@ void MDx_HashFunction::add_data(const byte input[], u32bit length) */ void MDx_HashFunction::final_result(byte output[]) { - buffer[position] = (BIG_BIT_ENDIAN ? 0x80 : 0x01); for(u32bit j = position+1; j != HASH_BLOCK_SIZE; ++j) buffer[j] = 0; diff --git a/src/hash/mdx_hash/mdx_hash.h b/src/hash/mdx_hash/mdx_hash.h index fc6b60f3f..eed9995a1 100644 --- a/src/hash/mdx_hash/mdx_hash.h +++ b/src/hash/mdx_hash/mdx_hash.h @@ -29,10 +29,7 @@ class BOTAN_DLL MDx_HashFunction : public HashFunction void add_data(const byte[], u32bit); void final_result(byte output[]); - // these are mutually recurisve unless one is overridden - // (backwards compatability hack) virtual void compress_n(const byte block[], u32bit block_n) = 0; - //virtual void hash(const byte[]); virtual void copy_out(byte[]) = 0; virtual void write_count(byte[]); |