diff options
Diffstat (limited to 'src/hash/mdx_hash')
-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[]); |