diff options
author | weidai <weidai11@users.noreply.github.com> | 2004-06-19 08:28:09 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2004-06-19 08:28:09 +0000 |
commit | f78fccb3cc8c2375bd0b474a33c43b1cd22a325c (patch) | |
tree | 187e9abc73ba1918391e24a30eb0b9638f12941e /strciphr.cpp | |
parent | 40a5b80a4522a9b3ad3820b5a953bb4f3611e009 (diff) | |
download | cryptopp-git-f78fccb3cc8c2375bd0b474a33c43b1cd22a325c.tar.gz |
port to GCC 3.4
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 4cb71c69..ca44ecef 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(); |