Fix whitespace issues

Replace tabs with spaces
This commit is contained in:
Charles Munson 2016-03-24 15:53:53 +01:00
parent 3d30e064ba
commit 80a2492b9f
2 changed files with 7 additions and 7 deletions

View File

@ -130,7 +130,7 @@ int BlockNameIO::maxEncodedNameLen(int plaintextNameLen) const {
int BlockNameIO::maxDecodedNameLen(int encodedNameLen) const {
int decLen256 = _caseInsensitive ? B32ToB256Bytes(encodedNameLen)
: B64ToB256Bytes(encodedNameLen);
: B64ToB256Bytes(encodedNameLen);
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,
char *plaintextName) const {
int decLen256 =
_caseInsensitive ? B32ToB256Bytes(length) : B64ToB256Bytes(length);
_caseInsensitive ? B32ToB256Bytes(length) : B64ToB256Bytes(length);
int decodedStreamLen = decLen256 - 2;
// don't bother trying to decode files which are too small

View File

@ -1017,11 +1017,11 @@ RootPtr createV6Config(EncFS_Context *ctx, const shared_ptr<EncFS_Opts> &opts) {
blockSize = DefaultBlockSize;
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)
nameIOIface = BlockNameIO::CurrentInterface(true);
nameIOIface = BlockNameIO::CurrentInterface(true);
#else
nameIOIface = BlockNameIO::CurrentInterface();
nameIOIface = BlockNameIO::CurrentInterface();
#endif
blockMACBytes = 8;
@ -1037,11 +1037,11 @@ RootPtr createV6Config(EncFS_Context *ctx, const shared_ptr<EncFS_Opts> &opts) {
blockSize = DefaultBlockSize;
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)
nameIOIface = BlockNameIO::CurrentInterface(true);
#else
nameIOIface = BlockNameIO::CurrentInterface();
nameIOIface = BlockNameIO::CurrentInterface();
#endif
if (opts->requireMac) {