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