8#include <botan/cbc_mac.h>
9#include <botan/internal/xor_buf.h>
17void CBC_MAC::add_data(
const byte input[],
size_t length)
20 xor_buf(&state[position], input, xored);
44void CBC_MAC::final_result(
byte mac[])
49 copy_mem(mac, &state[0], state.size());
57void CBC_MAC::key_schedule(
const byte key[],
size_t length)
59 e->set_key(key, length);
77 return "CBC-MAC(" + e->name() +
")";
92 e(e_in), state(e->block_size())
CBC_MAC(BlockCipher *cipher)
size_t output_length() const
MessageAuthenticationCode * clone() const
void zeroise(MemoryRegion< T > &vec)
void xor_buf(byte out[], const byte in[], size_t length)
void copy_mem(T *out, const T *in, size_t n)