2016-01-17 14:57:40 +01:00
|
|
|
#include "CryConfigConsole.h"
|
|
|
|
#include "CryCipher.h"
|
|
|
|
|
|
|
|
using cpputils::Console;
|
|
|
|
using boost::none;
|
|
|
|
using std::string;
|
|
|
|
using std::vector;
|
|
|
|
using std::shared_ptr;
|
|
|
|
|
|
|
|
namespace cryfs {
|
2016-01-25 14:33:40 +01:00
|
|
|
constexpr const char *CryConfigConsole::DEFAULT_CIPHER;
|
2016-03-01 17:45:48 +01:00
|
|
|
constexpr uint32_t CryConfigConsole::DEFAULT_BLOCKSIZE_BYTES;
|
2016-01-25 14:33:40 +01:00
|
|
|
|
2022-06-09 15:26:04 +02:00
|
|
|
CryConfigConsole::CryConfigConsole()
|
|
|
|
: _useDefaultSettings(none) {
|
2016-01-25 14:33:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
string CryConfigConsole::askCipher() {
|
2022-06-09 15:26:04 +02:00
|
|
|
return DEFAULT_CIPHER;
|
2016-01-17 14:57:40 +01:00
|
|
|
}
|
2016-01-25 14:33:40 +01:00
|
|
|
|
2016-03-01 17:45:48 +01:00
|
|
|
uint32_t CryConfigConsole::askBlocksizeBytes() {
|
2022-06-09 15:26:04 +02:00
|
|
|
return DEFAULT_BLOCKSIZE_BYTES;
|
2016-03-01 17:45:48 +01:00
|
|
|
}
|
|
|
|
|
2016-06-27 08:24:32 +02:00
|
|
|
bool CryConfigConsole::askMissingBlockIsIntegrityViolation() {
|
2022-06-09 15:26:04 +02:00
|
|
|
return DEFAULT_MISSINGBLOCKISINTEGRITYVIOLATION;
|
2016-06-27 08:24:32 +02:00
|
|
|
}
|
|
|
|
|
2016-01-25 14:33:40 +01:00
|
|
|
bool CryConfigConsole::_checkUseDefaultSettings() {
|
2022-06-09 15:26:04 +02:00
|
|
|
return true;
|
2016-01-25 14:33:40 +01:00
|
|
|
}
|
2016-01-17 14:57:40 +01:00
|
|
|
}
|