3#ifndef CRYPTOPP_IMPORTS
7NAMESPACE_BEGIN(CryptoPP)
11 AccessCipher().
SetKey(key, length, params);
12 m_reg.CleanNew(AccessCipher().BlockSize());
18 unsigned int blockSize = AccessCipher().
BlockSize();
20 while (m_counter && length)
22 m_reg[m_counter++] ^= *input++;
23 if (m_counter == blockSize)
28 if (length >= blockSize)
31 input += (length - leftOver);
37 m_reg[m_counter++] ^= *input++;
38 if (m_counter == blockSize)
50 memcpy(mac, m_reg, size);
51 memset(m_reg, 0, AccessCipher().
BlockSize());
54void CBC_MAC_Base::ProcessBuf()
void TruncatedFinal(byte *mac, size_t size)
Computes the hash of the current message.
void Update(const byte *input, size_t length)
Updates a hash with additional input.
Interface for retrieving values given their names.
virtual void SetKey(const byte *key, size_t length, const NameValuePairs ¶ms=g_nullNameValuePairs)
Sets or reset the key of this object.