#ifndef BU_CIPHER_H #define BU_CIPHER_H #include "bu/filter.h" namespace Bu { template class Cipher : Bu::Filter { public: Cipher( Bu::Stream &rNext ) : Bu::Filter( rNext ) { } virtual ~Cipher() { } virtual void start() { } virtual Bu::size stop() { return 0; } virtual Bu::size read( void *pBuf, Bu::size iBytes ) { uint32_t i; if (iBytes%iBlockSize) { return 0; } iBytes /= iBlockSize; for (i=0;i