summaryrefslogtreecommitdiff
path: root/filters.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-10-03 21:49:59 -0400
committerJeffrey Walton <noloader@gmail.com>2017-10-03 21:49:59 -0400
commit73928489f97d8dc45bf7a3fe9fe275cd1adb5d97 (patch)
tree3c0e07af14aaf71fc0645fe2366d976669d56d30 /filters.h
parent04d15304f104cad3f5c899724615c8266788cb11 (diff)
downloadcryptopp-git-73928489f97d8dc45bf7a3fe9fe275cd1adb5d97.tar.gz
Removed m_authenticated member variable
Add m_isSpecial, m_mandatoryBlockSize and m_optimalBufferSize members. The additional members stabilize running times and avoid some unnecessary calculations. Previously we were calculating some values in each call to Put and LastPut.
Diffstat (limited to 'filters.h')
-rw-r--r--filters.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/filters.h b/filters.h
index 5fda823d..9cebc3d9 100644
--- a/filters.h
+++ b/filters.h
@@ -547,9 +547,10 @@ protected:
StreamTransformation &m_cipher;
BlockPaddingScheme m_padding;
+ unsigned int m_mandatoryBlockSize;
unsigned int m_optimalBufferSize;
- // TODO: do we need this?
- bool m_authenticated;
+ unsigned int m_reservedBufferSize;
+ bool m_isSpecial;
};
//! \class HashFilter