Below is the file 'include/buf_filt.h' from this revision. You can also download the file.

/*************************************************
* Buffering Filter Header File                   *
* (C) 1999-2007 Jack Lloyd                       *
*************************************************/

#ifndef BOTAN_BUFFERING_FILTER_H__
#define BOTAN_BUFFERING_FILTER_H__

#include <botan/filter.h>

namespace Botan {

/*************************************************
* Buffering Filter                               *
*************************************************/
class BOTAN_DLL Buffering_Filter : public Filter
   {
   public:
      void write(const byte[], length_type);
      virtual void end_msg();
      Buffering_Filter(u32bit, u32bit = 0);
      virtual ~Buffering_Filter() {}
   protected:
      virtual void initial_block(const byte[]) {}
      virtual void main_block(const byte[]) = 0;
      virtual void final_block(const byte[], length_type) = 0;
   private:
      const length_type INITIAL_BLOCK_SIZE, BLOCK_SIZE;
      SecureVector<byte> initial, block;
      length_type initial_block_pos, block_pos;
   };

}

#endif