| 132 | } |
| 133 | |
| 134 | void EncryptedDiskCache::generateCryptoKey(const StringBox& path) { |
| 135 | auto key = DataEncryptor::generateKey(); |
| 136 | _cryptoKey = {key}; |
| 137 | _keychain->store(path, |
| 138 | makeShared<ByteBuffer>(reinterpret_cast<const Byte*>(key.data()), |
| 139 | reinterpret_cast<const Byte*>(key.data()) + key.size()) |
| 140 | ->toBytesView()); |
| 141 | } |
| 142 | |
| 143 | } // namespace Valdi |
nothing calls this directly
no test coverage detected