| 162 | } |
| 163 | |
| 164 | bool CCryptoKeyStore::Lock() |
| 165 | { |
| 166 | if (!SetCrypted()) |
| 167 | return false; |
| 168 | |
| 169 | { |
| 170 | LOCK(cs_KeyStore); |
| 171 | vMasterKey.clear(); |
| 172 | } |
| 173 | |
| 174 | NotifyStatusChanged(this); |
| 175 | return true; |
| 176 | } |
| 177 | |
| 178 | bool CCryptoKeyStore::Unlock(const CKeyingMaterial& vMasterKeyIn) |
| 179 | { |
no test coverage detected