summaryrefslogtreecommitdiff
path: root/ttmac.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2003-07-04 00:17:37 +0000
committerweidai <weidai11@users.noreply.github.com>2003-07-04 00:17:37 +0000
commitf278895908e663a6a5a2c1f63e5523c5004f5d20 (patch)
tree0536d87e504a82920156c239bc5ae6aa43e70ebc /ttmac.h
parente43f74604744291d3a99b8bfe81d94af4ba6abbd (diff)
downloadcryptopp-git-f278895908e663a6a5a2c1f63e5523c5004f5d20.tar.gz
create DLL version, fix GetNextIV() bug in CTR and OFB modes
Diffstat (limited to 'ttmac.h')
-rw-r--r--ttmac.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ttmac.h b/ttmac.h
index 7b9a85af..9065b65d 100644
--- a/ttmac.h
+++ b/ttmac.h
@@ -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