summaryrefslogtreecommitdiff
path: root/strciphr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'strciphr.cpp')
-rw-r--r--strciphr.cpp14
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();