summaryrefslogtreecommitdiff
path: root/authenc.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-09-30 06:19:28 -0400
committerJeffrey Walton <noloader@gmail.com>2017-09-30 06:19:28 -0400
commitbbc6ea53558c12ed7ea8880b8515432f6c7414d2 (patch)
tree3024f03459a316742655392d29939acc6edbc24d /authenc.h
parentabc92b2e747d845f0fcde50658e08647a4066883 (diff)
downloadcryptopp-git-bbc6ea53558c12ed7ea8880b8515432f6c7414d2.tar.gz
Comments, constants and whitespace
Diffstat (limited to 'authenc.h')
-rw-r--r--authenc.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/authenc.h b/authenc.h
index 8e460c77..a0dd5a1c 100644
--- a/authenc.h
+++ b/authenc.h
@@ -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