Skip to content

Commit

Permalink
Use case-insensitive BlockName for Win32 GUI setups
Browse files Browse the repository at this point in the history
Fixes issue #135
  • Loading branch information
jetwhiz committed Jan 27, 2020
1 parent 4dd9ba1 commit bd27fcc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions encfs/win/maingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,11 @@ static void createConfig(const std::string& rootDir, bool paranoid, const char*
keySize = 256;
blockSize = DefaultBlockSize;
alg = findCipherAlgorithm("AES", keySize);
#if defined(__APPLE__) || defined(WIN32)
nameIOIface = BlockNameIO::CurrentInterface(true);
#else
nameIOIface = BlockNameIO::CurrentInterface();
#endif
blockMACBytes = 8;
blockMACRandBytes = 0; // using uniqueIV, so this isn't necessary
uniqueIV = true;
Expand All @@ -293,7 +297,11 @@ static void createConfig(const std::string& rootDir, bool paranoid, const char*
alg = findCipherAlgorithm("AES", keySize);
blockMACBytes = 0;
externalIV = false;
#if defined(__APPLE__) || defined(WIN32)
nameIOIface = BlockNameIO::CurrentInterface(true);
#else
nameIOIface = BlockNameIO::CurrentInterface();
#endif

if (!reverseEncryption)
{
Expand Down

0 comments on commit bd27fcc

Please sign in to comment.