diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2012-11-28 17:39:09 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-28 17:39:09 +0000 |
| commit | 03e8c5ad314252cde58c53688c70b9f836a1d5b4 (patch) | |
| tree | 6d26558aaae5e3758ca8b23c4086116e6d6b2636 /src/experimental/ciphermodeecb.h | |
| parent | 223e2986ad7752d38ce24d1cbeff47db98df1ae3 (diff) | |
| download | libbu++-03e8c5ad314252cde58c53688c70b9f836a1d5b4.tar.gz libbu++-03e8c5ad314252cde58c53688c70b9f836a1d5b4.tar.bz2 libbu++-03e8c5ad314252cde58c53688c70b9f836a1d5b4.tar.xz libbu++-03e8c5ad314252cde58c53688c70b9f836a1d5b4.zip | |
More comments; moved the encryption system to unstable.
Diffstat (limited to 'src/experimental/ciphermodeecb.h')
| -rw-r--r-- | src/experimental/ciphermodeecb.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/experimental/ciphermodeecb.h b/src/experimental/ciphermodeecb.h deleted file mode 100644 index cac2beb..0000000 --- a/src/experimental/ciphermodeecb.h +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | #ifndef BU_MODE_ECB_H | ||
| 2 | #define BU_MODE_ECB_H | ||
| 3 | |||
| 4 | namespace Bu | ||
| 5 | { | ||
| 6 | template<int iBlockSize, typename CipherType> | ||
| 7 | class CipherModeEcb : public CipherType | ||
| 8 | { | ||
| 9 | public: | ||
| 10 | CipherModeEcb( class Stream &rNext ) : | ||
| 11 | CipherType( rNext ) | ||
| 12 | { | ||
| 13 | } | ||
| 14 | |||
| 15 | virtual ~CipherModeEcb() | ||
| 16 | { | ||
| 17 | } | ||
| 18 | |||
| 19 | protected: | ||
| 20 | virtual void decipher( void *pBuf ) | ||
| 21 | { | ||
| 22 | CipherType::decipher( pBuf ); | ||
| 23 | } | ||
| 24 | |||
| 25 | virtual void encipher( void *pBuf ) | ||
| 26 | { | ||
| 27 | CipherType::encipher( pBuf ); | ||
| 28 | } | ||
| 29 | }; | ||
| 30 | }; | ||
| 31 | |||
| 32 | #endif | ||
