summaryrefslogtreecommitdiff
path: root/mdc.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2004-06-19 08:28:09 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2004-06-19 08:28:09 +0000
commit5283f5059b14d63ed0ed54c8384890320fbb9ec6 (patch)
tree187e9abc73ba1918391e24a30eb0b9638f12941e /mdc.h
parentaccbb9d893ba34323919f5e17db17e6833d96f50 (diff)
downloadcryptopp-5283f5059b14d63ed0ed54c8384890320fbb9ec6.tar.gz
port to GCC 3.4
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@168 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'mdc.h')
-rw-r--r--mdc.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/mdc.h b/mdc.h
index b587f15..ce12ca5 100644
--- a/mdc.h
+++ b/mdc.h
@@ -30,22 +30,22 @@ class MDC : public MDC_Info<T>
void UncheckedSetKey(CipherDir direction, const byte *userKey, unsigned int length)
{
assert(direction == ENCRYPTION);
- AssertValidKeyLength(length);
- memcpy(Key(), userKey, KEYLENGTH);
- T::CorrectEndianess(Key(), Key(), KEYLENGTH);
+ this->AssertValidKeyLength(length);
+ memcpy(Key(), userKey, this->KEYLENGTH);
+ T::CorrectEndianess(Key(), Key(), this->KEYLENGTH);
}
void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const
{
- T::CorrectEndianess(Buffer(), (HashWordType *)inBlock, BLOCKSIZE);
+ T::CorrectEndianess(Buffer(), (HashWordType *)inBlock, this->BLOCKSIZE);
T::Transform(Buffer(), Key());
if (xorBlock)
{
- T::CorrectEndianess(Buffer(), Buffer(), BLOCKSIZE);
- xorbuf(outBlock, xorBlock, m_buffer, BLOCKSIZE);
+ T::CorrectEndianess(Buffer(), Buffer(), this->BLOCKSIZE);
+ xorbuf(outBlock, xorBlock, m_buffer, this->BLOCKSIZE);
}
else
- T::CorrectEndianess((HashWordType *)outBlock, Buffer(), BLOCKSIZE);
+ T::CorrectEndianess((HashWordType *)outBlock, Buffer(), this->BLOCKSIZE);
}
bool IsPermutation() const {return false;}