libcryfs/src/cryfs/impl/config/CryConfigConsole.cpp

34 lines
792 B
C++
Raw Normal View History

#include "CryConfigConsole.h"
#include "CryCipher.h"
using cpputils::Console;
using boost::none;
using std::string;
using std::vector;
using std::shared_ptr;
namespace cryfs {
constexpr const char *CryConfigConsole::DEFAULT_CIPHER;
constexpr uint32_t CryConfigConsole::DEFAULT_BLOCKSIZE_BYTES;
2022-06-09 15:26:04 +02:00
CryConfigConsole::CryConfigConsole()
: _useDefaultSettings(none) {
}
string CryConfigConsole::askCipher() {
2022-06-09 15:26:04 +02:00
return DEFAULT_CIPHER;
}
uint32_t CryConfigConsole::askBlocksizeBytes() {
2022-06-09 15:26:04 +02:00
return DEFAULT_BLOCKSIZE_BYTES;
}
bool CryConfigConsole::askMissingBlockIsIntegrityViolation() {
2022-06-09 15:26:04 +02:00
return DEFAULT_MISSINGBLOCKISINTEGRITYVIOLATION;
}
bool CryConfigConsole::_checkUseDefaultSettings() {
2022-06-09 15:26:04 +02:00
return true;
}
}