| 537 | } |
| 538 | |
| 539 | const std::string |
| 540 | getAccountDataKey(const std::string secureStoreAccountDataKey) { |
| 541 | folly::Optional<std::string> storedSecretKey = |
| 542 | CommSecureStore::get(secureStoreAccountDataKey); |
| 543 | if (!storedSecretKey.hasValue()) { |
| 544 | storedSecretKey = crypto::Tools::generateRandomString(64); |
| 545 | CommSecureStore::set(secureStoreAccountDataKey, storedSecretKey.value()); |
| 546 | } |
| 547 | return storedSecretKey.value(); |
| 548 | } |
| 549 | |
| 550 | void CommCoreModule::persistCryptoModules( |
| 551 | bool persistContentModule, |
no test coverage detected