mirror of
https://github.com/vgough/encfs.git
synced 2025-06-19 19:27:48 +02:00
Fix whitespace issues
Replace tabs with spaces
This commit is contained in:
parent
3d30e064ba
commit
80a2492b9f
@ -130,7 +130,7 @@ int BlockNameIO::maxEncodedNameLen(int plaintextNameLen) const {
|
|||||||
|
|
||||||
int BlockNameIO::maxDecodedNameLen(int encodedNameLen) const {
|
int BlockNameIO::maxDecodedNameLen(int encodedNameLen) const {
|
||||||
int decLen256 = _caseInsensitive ? B32ToB256Bytes(encodedNameLen)
|
int decLen256 = _caseInsensitive ? B32ToB256Bytes(encodedNameLen)
|
||||||
: B64ToB256Bytes(encodedNameLen);
|
: B64ToB256Bytes(encodedNameLen);
|
||||||
return decLen256 - 2; // 2 checksum bytes removed..
|
return decLen256 - 2; // 2 checksum bytes removed..
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -184,7 +184,7 @@ int BlockNameIO::encodeName(const char *plaintextName, int length, uint64_t *iv,
|
|||||||
int BlockNameIO::decodeName(const char *encodedName, int length, uint64_t *iv,
|
int BlockNameIO::decodeName(const char *encodedName, int length, uint64_t *iv,
|
||||||
char *plaintextName) const {
|
char *plaintextName) const {
|
||||||
int decLen256 =
|
int decLen256 =
|
||||||
_caseInsensitive ? B32ToB256Bytes(length) : B64ToB256Bytes(length);
|
_caseInsensitive ? B32ToB256Bytes(length) : B64ToB256Bytes(length);
|
||||||
int decodedStreamLen = decLen256 - 2;
|
int decodedStreamLen = decLen256 - 2;
|
||||||
|
|
||||||
// don't bother trying to decode files which are too small
|
// don't bother trying to decode files which are too small
|
||||||
|
@ -1017,11 +1017,11 @@ RootPtr createV6Config(EncFS_Context *ctx, const shared_ptr<EncFS_Opts> &opts) {
|
|||||||
blockSize = DefaultBlockSize;
|
blockSize = DefaultBlockSize;
|
||||||
alg = findCipherAlgorithm("AES", keySize);
|
alg = findCipherAlgorithm("AES", keySize);
|
||||||
|
|
||||||
// If case-insensitive system, opt for Block32 filename encoding
|
// If case-insensitive system, opt for Block32 filename encoding
|
||||||
#if defined(__APPLE__) || defined(WIN32)
|
#if defined(__APPLE__) || defined(WIN32)
|
||||||
nameIOIface = BlockNameIO::CurrentInterface(true);
|
nameIOIface = BlockNameIO::CurrentInterface(true);
|
||||||
#else
|
#else
|
||||||
nameIOIface = BlockNameIO::CurrentInterface();
|
nameIOIface = BlockNameIO::CurrentInterface();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
blockMACBytes = 8;
|
blockMACBytes = 8;
|
||||||
@ -1037,11 +1037,11 @@ RootPtr createV6Config(EncFS_Context *ctx, const shared_ptr<EncFS_Opts> &opts) {
|
|||||||
blockSize = DefaultBlockSize;
|
blockSize = DefaultBlockSize;
|
||||||
alg = findCipherAlgorithm("AES", keySize);
|
alg = findCipherAlgorithm("AES", keySize);
|
||||||
|
|
||||||
// If case-insensitive system, opt for Block32 filename encoding
|
// If case-insensitive system, opt for Block32 filename encoding
|
||||||
#if defined(__APPLE__) || defined(WIN32)
|
#if defined(__APPLE__) || defined(WIN32)
|
||||||
nameIOIface = BlockNameIO::CurrentInterface(true);
|
nameIOIface = BlockNameIO::CurrentInterface(true);
|
||||||
#else
|
#else
|
||||||
nameIOIface = BlockNameIO::CurrentInterface();
|
nameIOIface = BlockNameIO::CurrentInterface();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (opts->requireMac) {
|
if (opts->requireMac) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user