mirror of
https://github.com/vgough/encfs.git
synced 2025-08-10 06:17:40 +02:00
encapsulate old cipher support layer
git-svn-id: http://encfs.googlecode.com/svn/trunk@95 db9cf616-1c43-0410-9cb8-a902689de0d6
This commit is contained in:
@ -10,16 +10,21 @@
|
||||
|
||||
namespace encfs {
|
||||
|
||||
static const char NAME_AES_CBC[] = "AES/CBC";
|
||||
static const char NAME_BLOWFISH_CBC[] = "Blowfish/CBC";
|
||||
|
||||
// BlockCipher is a StreamCipher with a block size.
|
||||
// Encryption and decryption must be in multiples of the block size.
|
||||
class BlockCipher : public StreamCipher
|
||||
{
|
||||
public:
|
||||
static Registry<BlockCipher>& GetRegistry();
|
||||
DECLARE_REGISTERABLE_TYPE(BlockCipher);
|
||||
|
||||
BlockCipher();
|
||||
virtual ~BlockCipher();
|
||||
|
||||
// Not valid until a key has been set, as they key size may determine the
|
||||
// block size.
|
||||
virtual int blockSize() const =0;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user