MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / check_config

Method check_config

libcppcryptfs/config/cryptconfig.cpp:603–620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601}
602
603bool CryptConfig::check_config(wstring& mes)
604{
605 mes = L"";
606
607 if (m_Version != 2)
608 mes += LocUtils::GetStringFromResources(IDS_ONLY_VERSION_2_SUPPORT);
609
610 if (!m_EMENames && !m_PlaintextNames)
611 mes += LocUtils::GetStringFromResources(IDS_EMENAMES_REQUIRED);
612
613 if (!m_GCMIV128)
614 mes += LocUtils::GetStringFromResources(IDS_GCMIV128_NOT_SPECIFIED);
615
616 if (m_reverse && !m_AESSIV)
617 mes += LocUtils::GetStringFromResources(IDS_REVERSE_MODE_WITHOUT_AESSIV);
618
619 return mes.size() == 0;
620}
621
622bool CryptConfig::decrypt_key(LPCTSTR password)
623{

Callers 2

mount_crypt_fsFunction · 0.80

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected