diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-07-04 00:17:37 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-07-04 00:17:37 +0000 |
commit | 572fe07633123ce38abf28c6426356e37aef3a99 (patch) | |
tree | 0536d87e504a82920156c239bc5ae6aa43e70ebc /ttmac.h | |
parent | 3e8c979ddc194e043567c036321e67c89f847362 (diff) | |
download | cryptopp-572fe07633123ce38abf28c6426356e37aef3a99.tar.gz |
create DLL version, fix GetNextIV() bug in CTR and OFB modes
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@87 57ff6487-cd31-0410-9ec3-f628ee90f5f0
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 |