summaryrefslogtreecommitdiff
path: root/mdc.h
diff options
context:
space:
mode:
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;}