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 /src/hash/mdx_hash/mdx_hash.cpp | |
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.
Diffstat (limited to 'src/hash/mdx_hash/mdx_hash.cpp')
-rw-r--r-- | src/hash/mdx_hash/mdx_hash.cpp | 23 |
1 files changed, 0 insertions, 23 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; |