diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2004-06-19 08:28:09 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2004-06-19 08:28:09 +0000 |
commit | 5283f5059b14d63ed0ed54c8384890320fbb9ec6 (patch) | |
tree | 187e9abc73ba1918391e24a30eb0b9638f12941e /strciphr.cpp | |
parent | accbb9d893ba34323919f5e17db17e6833d96f50 (diff) | |
download | cryptopp-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 'strciphr.cpp')
-rw-r--r-- | strciphr.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/strciphr.cpp b/strciphr.cpp index 4cb71c6..ca44ece 100644 --- a/strciphr.cpp +++ b/strciphr.cpp @@ -11,7 +11,7 @@ NAMESPACE_BEGIN(CryptoPP) template <class S> byte AdditiveCipherTemplate<S>::GenerateByte() { - PolicyInterface &policy = AccessPolicy(); + PolicyInterface &policy = this->AccessPolicy(); if (m_leftOver == 0) { @@ -40,7 +40,7 @@ inline void AdditiveCipherTemplate<S>::ProcessData(byte *outString, const byte * assert(m_leftOver == 0); - PolicyInterface &policy = AccessPolicy(); + PolicyInterface &policy = this->AccessPolicy(); unsigned int bytesPerIteration = policy.GetBytesPerIteration(); unsigned int alignment = policy.GetAlignment(); @@ -84,7 +84,7 @@ inline void AdditiveCipherTemplate<S>::ProcessData(byte *outString, const byte * template <class S> void AdditiveCipherTemplate<S>::Resynchronize(const byte *iv) { - PolicyInterface &policy = AccessPolicy(); + PolicyInterface &policy = this->AccessPolicy(); m_leftOver = 0; m_buffer.New(GetBufferByteSize(policy)); policy.CipherResynchronize(m_buffer, iv); @@ -93,7 +93,7 @@ void AdditiveCipherTemplate<S>::Resynchronize(const byte *iv) template <class BASE> void AdditiveCipherTemplate<BASE>::Seek(lword position) { - PolicyInterface &policy = AccessPolicy(); + PolicyInterface &policy = this->AccessPolicy(); unsigned int bytesPerIteration = policy.GetBytesPerIteration(); policy.SeekToIteration(position / bytesPerIteration); @@ -111,7 +111,7 @@ void AdditiveCipherTemplate<BASE>::Seek(lword position) template <class BASE> void CFB_CipherTemplate<BASE>::Resynchronize(const byte *iv) { - PolicyInterface &policy = AccessPolicy(); + PolicyInterface &policy = this->AccessPolicy(); policy.CipherResynchronize(iv); m_leftOver = policy.GetBytesPerIteration(); } @@ -119,9 +119,9 @@ void CFB_CipherTemplate<BASE>::Resynchronize(const byte *iv) template <class BASE> void CFB_CipherTemplate<BASE>::ProcessData(byte *outString, const byte *inString, unsigned int length) { - assert(length % MandatoryBlockSize() == 0); + assert(length % this->MandatoryBlockSize() == 0); - PolicyInterface &policy = AccessPolicy(); + PolicyInterface &policy = this->AccessPolicy(); unsigned int bytesPerIteration = policy.GetBytesPerIteration(); unsigned int alignment = policy.GetAlignment(); byte *reg = policy.GetRegisterBegin(); |