summaryrefslogtreecommitdiff
path: root/src/experimental/ciphermodeecb.h
blob: cac2beb32ddc4a6678622f54703be43a242afc07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef BU_MODE_ECB_H
#define BU_MODE_ECB_H

namespace Bu
{
    template<int iBlockSize, typename CipherType>
    class CipherModeEcb : public CipherType
    {
    public:
        CipherModeEcb( class Stream &rNext ) :
            CipherType( rNext )
        {
        }

        virtual ~CipherModeEcb()
        {
        }
    
    protected:
        virtual void decipher( void *pBuf )
        {
            CipherType::decipher( pBuf );
        }

        virtual void encipher( void *pBuf )
        {
            CipherType::encipher( pBuf );
        }
    };
};

#endif