mirror of
https://github.com/vgough/encfs.git
synced 2025-02-18 02:31:00 +01:00
format
This commit is contained in:
parent
217f646ea1
commit
d820f708ad
@ -168,7 +168,8 @@ static Interface CAMELLIAInterface("ssl/camellia",3, 0, 2);
|
|||||||
static Range CAMELLIAKeyRange(128, 256, 64);
|
static Range CAMELLIAKeyRange(128, 256, 64);
|
||||||
static Range CAMELLIABlockRange(64, 4096, 16);
|
static Range CAMELLIABlockRange(64, 4096, 16);
|
||||||
|
|
||||||
static std::shared_ptr<Cipher> NewCAMELLIACipher(const Interface &iface, int keyLen) {
|
static std::shared_ptr<Cipher> NewCAMELLIACipher(const Interface &iface,
|
||||||
|
int keyLen) {
|
||||||
if (keyLen <= 0) keyLen = 192;
|
if (keyLen <= 0) keyLen = 192;
|
||||||
|
|
||||||
keyLen = CAMELLIAKeyRange.closest(keyLen);
|
keyLen = CAMELLIAKeyRange.closest(keyLen);
|
||||||
@ -197,12 +198,11 @@ static std::shared_ptr<Cipher> NewCAMELLIACipher(const Interface &iface, int key
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool CAMELLIA_Cipher_registered =
|
static bool CAMELLIA_Cipher_registered =
|
||||||
Cipher::Register("CAMELLIA","16 byte block cipher", CAMELLIAInterface, CAMELLIAKeyRange,
|
Cipher::Register("CAMELLIA", "16 byte block cipher", CAMELLIAInterface,
|
||||||
CAMELLIABlockRange, NewCAMELLIACipher );
|
CAMELLIAKeyRange, CAMELLIABlockRange, NewCAMELLIACipher);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifndef OPENSSL_NO_BF
|
#ifndef OPENSSL_NO_BF
|
||||||
|
|
||||||
static Range BFKeyRange(128, 256, 32);
|
static Range BFKeyRange(128, 256, 32);
|
||||||
|
Loading…
Reference in New Issue
Block a user