3#ifndef CRYPTOPP_IMPORTS
11 AccessCipher().
SetKey(key, length, params);
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)
45 ThrowIfInvalidTruncatedSize(size);
50 std::memcpy(mac, m_reg, size);
51 std::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 UncheckedSetKey(const byte *key, unsigned int length, const NameValuePairs ¶ms)
Sets the key for this object without performing parameter validation.
void Update(const byte *input, size_t length)
Updates a hash with additional input.
Interface for retrieving values given their names.
void CleanNew(size_type newSize)
Change size without preserving contents.
virtual void SetKey(const byte *key, size_t length, const NameValuePairs ¶ms=g_nullNameValuePairs)
Sets or reset the key of this object.
Crypto++ library namespace.