| 601 | } |
| 602 | |
| 603 | bool 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 | |
| 622 | bool CryptConfig::decrypt_key(LPCTSTR password) |
| 623 | { |
no test coverage detected