/************************************************* * CFB Mode Header File * * (C) 1999-2006 The Botan Project * *************************************************/ #ifndef BOTAN_CFB_H__ #define BOTAN_CFB_H__ #include namespace Botan { /************************************************* * CFB Encryption * *************************************************/ class CFB_Encryption : public BlockCipherMode { public: CFB_Encryption(const std::string&, u32bit = 0); CFB_Encryption(const std::string&, const SymmetricKey&, const InitializationVector&, u32bit = 0); private: void write(const byte[], u32bit); void feedback(); const u32bit FEEDBACK_SIZE; }; /************************************************* * CFB Decryption * *************************************************/ class CFB_Decryption : public BlockCipherMode { public: CFB_Decryption(const std::string&, u32bit = 0); CFB_Decryption(const std::string&, const SymmetricKey&, const InitializationVector&, u32bit = 0); private: void write(const byte[], u32bit); void feedback(); const u32bit FEEDBACK_SIZE; }; } #endif