@ -33,6 +33,19 @@ bool CBasicKeyStore::AddKey(const CKey& key)
return true;
}
bool CCryptoKeyStore::SetCrypted()
{
CRITICAL_BLOCK(cs_KeyStore)
if (fUseCrypto)
if (!mapKeys.empty())
return false;
fUseCrypto = true;
std::vector<unsigned char> CCryptoKeyStore::GenerateNewKey()
RandAddSeedPerfmon();
@ -65,15 +65,7 @@ private:
bool fUseCrypto;
protected:
bool SetCrypted()
bool SetCrypted();
// will encrypt previously unencrypted keys
bool EncryptKeys(CKeyingMaterial& vMasterKeyIn);