mirror of
https://github.com/vgough/encfs.git
synced 2025-08-16 00:37:58 +02:00
add CommonCrypto support, other misc fixes
git-svn-id: http://encfs.googlecode.com/svn/trunk@97 db9cf616-1c43-0410-9cb8-a902689de0d6
This commit is contained in:
@ -46,6 +46,13 @@ class StreamCipher
|
||||
std::string toString() const {
|
||||
return cipher + "/" + mode;
|
||||
}
|
||||
Properties() {}
|
||||
Properties(Range keys, const char *cipher_, const char *mode_,
|
||||
const char *library_)
|
||||
: keySize(keys),
|
||||
cipher(cipher_),
|
||||
mode(mode_),
|
||||
library(library_) { }
|
||||
};
|
||||
|
||||
StreamCipher();
|
||||
@ -53,9 +60,9 @@ class StreamCipher
|
||||
|
||||
virtual bool setKey(const CipherKey& key) =0;
|
||||
|
||||
virtual bool encrypt(const byte *iv, const byte *in,
|
||||
virtual bool encrypt(const byte *ivec, const byte *in,
|
||||
byte *out, int numBytes) =0;
|
||||
virtual bool decrypt(const byte *iv, const byte *in,
|
||||
virtual bool decrypt(const byte *ivec, const byte *in,
|
||||
byte *out, int numBytes) =0;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user