11 AssertValidKeyLength(keylength);
13 memcpy(m_key, userKey, KEYLENGTH);
14 CorrectEndianess(m_key, m_key, KEYLENGTH);
40 if (size != DIGESTSIZE)
48 m_digest[2] += m_digest[0] +
t3;
51 m_digest[0] += m_digest[1] +
t3;
52 m_digest[1] += m_digest[4] +
t2;
81 #define F(x, y, z) (x ^ y ^ z) 82 #define G(x, y, z) (z ^ (x & (y^z))) 83 #define H(x, y, z) (z ^ (x | ~y)) 84 #define I(x, y, z) (y ^ (z & (x^y))) 85 #define J(x, y, z) (x ^ (y | ~z)) 88 #define k1 0x5a827999UL 89 #define k2 0x6ed9eba1UL 90 #define k3 0x8f1bbcdcUL 91 #define k4 0xa953fd4eUL 92 #define k5 0x50a28be6UL 93 #define k6 0x5c4dd124UL 94 #define k7 0x6d703ef3UL 95 #define k8 0x7a6d76e9UL 100 #define Subround(f, a, b, c, d, e, x, s, k) \ 101 a += f(b, c, d) + x + k;\ 102 a = rotlFixed((word32)a, s) + e;\ 103 c = rotlFixed((word32)c, 10U) 105 word32 a1, b1, c1, d1, e1,
a2, b2, c2, d2, e2;
312 trackA[0] = (b1 + e1) - d2;
318 trackB[1] = (e1 + c1) - a2;
An invalid argument was detected.
Utility functions for the Crypto++ library.
TTMAC message authentication code information.
#define NAMESPACE_BEGIN(x)
size_type size() const
Provides the count of elements in the SecBlock.
#define Subround(f, a, b, c, d, e, x, s, k)
FixedSizeSecBlock< word32, 10 > m_digest
word32 GetBitCountLo() const
word32 GetBitCountHi() const
void CorrectEndianess(HashWordType *out, const HashWordType *in, size_t byteCount)
Adjusts the byte ordering of the hash.
void TruncatedFinal(byte *mac, size_t size)
Computes the hash of the current message.
FixedSizeSecBlock< word32, T_BlockSize/sizeof(word32)> m_data
void Restart()
Restart the hash.
void PadLastBlock(unsigned int lastBlockSize, byte padFirst=0x80)
uint8_t const size_t const size
void * memcpy(void *a, const void *b, size_t c)
unsigned int BlockSize() const
Provides the block size of the hash.
std::string IntToString(T value, unsigned int base=10)
Converts a value to a string.
FixedSizeSecBlock< word32, 5 > m_key
static void Transform(word32 *digest, const word32 *X, bool last)
Classes for the TTMAC message authentication code.
Interface for retrieving values given their names.