| 259 | } |
| 260 | |
| 261 | bool CCryptoKeyStore::GetKeyCombi(const CKeyID& keyid, CKeyCombi& keyCombiOut) const { |
| 262 | |
| 263 | CBasicKeyStore::GetKeyCombi(keyid, keyCombiOut); |
| 264 | |
| 265 | if (!IsEncrypted()) |
| 266 | return true; |
| 267 | |
| 268 | CKey keyOut; |
| 269 | if (!IsLocked()) { |
| 270 | if (!GetKey(keyid, keyOut)) |
| 271 | return false; |
| 272 | |
| 273 | keyCombiOut.SetMainKey(keyOut); |
| 274 | } |
| 275 | |
| 276 | return true; |
| 277 | } |
| 278 | |
| 279 | bool CCryptoKeyStore::EncryptKeys(CKeyingMaterial& vMasterKeyIn) { |
| 280 | LOCK(cs_KeyStore); |
no test coverage detected