8 #ifndef BOTAN_SYMMETRIC_ALGORITHM_H__
9 #define BOTAN_SYMMETRIC_ALGORITHM_H__
11 #include <botan/algo_base.h>
12 #include <botan/key_spec.h>
13 #include <botan/exceptn.h>
14 #include <botan/symkey.h>
15 #include <botan/types.h>
35 return key_spec().maximum_keylength();
43 return key_spec().minimum_keylength();
53 return key_spec().valid_keylength(length);
70 if(!valid_keylength(length))
72 key_schedule(key, length);
80 virtual void key_schedule(
const byte key[],
size_t length) = 0;
size_t minimum_keylength() const
bool valid_keylength(size_t length) const
void set_key(const SymmetricKey &key)
const byte * begin() const
size_t maximum_keylength() const
void set_key(const byte key[], size_t length)