diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-09-30 06:19:28 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-09-30 06:19:28 -0400 |
commit | bbc6ea53558c12ed7ea8880b8515432f6c7414d2 (patch) | |
tree | 3024f03459a316742655392d29939acc6edbc24d /authenc.h | |
parent | abc92b2e747d845f0fcde50658e08647a4066883 (diff) | |
download | cryptopp-git-bbc6ea53558c12ed7ea8880b8515432f6c7414d2.tar.gz |
Comments, constants and whitespace
Diffstat (limited to 'authenc.h')
-rw-r--r-- | authenc.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -78,11 +78,14 @@ protected: virtual void AuthenticateLastConfidentialBlock() {}
virtual void AuthenticateLastFooterBlock(byte *mac, size_t macSize) =0;
+ // State_AuthUntransformed: authentication is applied to plain text (Authenticate-then-Encrypt)
+ // State_AuthTransformed: authentication is applied to cipher text (Encrypt-then-Authenticate)
enum State {State_Start, State_KeySet, State_IVSet, State_AuthUntransformed, State_AuthTransformed, State_AuthFooter};
- State m_state;
- unsigned int m_bufferedDataLength;
- lword m_totalHeaderLength, m_totalMessageLength, m_totalFooterLength;
+
AlignedSecByteBlock m_buffer;
+ lword m_totalHeaderLength, m_totalMessageLength, m_totalFooterLength;
+ unsigned int m_bufferedDataLength;
+ State m_state;
};
NAMESPACE_END
|