diff options
author | weidai <weidai11@users.noreply.github.com> | 2003-07-04 00:17:37 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2003-07-04 00:17:37 +0000 |
commit | f278895908e663a6a5a2c1f63e5523c5004f5d20 (patch) | |
tree | 0536d87e504a82920156c239bc5ae6aa43e70ebc /ttmac.h | |
parent | e43f74604744291d3a99b8bfe81d94af4ba6abbd (diff) | |
download | cryptopp-git-f278895908e663a6a5a2c1f63e5523c5004f5d20.tar.gz |
create DLL version, fix GetNextIV() bug in CTR and OFB modes
Diffstat (limited to 'ttmac.h')
-rw-r--r-- | ttmac.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -16,7 +16,7 @@ public: static std::string StaticAlgorithmName() {return std::string("Two-Track-MAC");} enum {DIGESTSIZE=20}; - TTMAC_Base() : IteratedHash<word32, LittleEndian, 64, MessageAuthenticationCode>(DIGESTSIZE*2) {} + TTMAC_Base() {SetStateSize(DIGESTSIZE*2);} unsigned int DigestSize() const {return DIGESTSIZE;}; void UncheckedSetKey(const byte *userKey, unsigned int keylength); @@ -24,14 +24,14 @@ public: protected: static void Transform (word32 *digest, const word32 *X, bool last); - void vTransform(const word32 *data) {Transform(m_digest, data, false);} + void HashEndianCorrectedBlock(const word32 *data) {Transform(m_digest, data, false);} void Init(); FixedSizeSecBlock<word32, DIGESTSIZE> m_key; }; //! <a href="http://www.weidai.com/scan-mirror/mac.html#TTMAC">Two-Track-MAC</a> -typedef MessageAuthenticationCodeTemplate<TTMAC_Base> TTMAC; +typedef MessageAuthenticationCodeFinal<TTMAC_Base> TTMAC; NAMESPACE_END |