Install the at-rest encryption key for SEGA segment envelopes. Propagates the key to every currently-open `ArrayStore` and stores it so newly-opened arrays also receive it via `open_array`.
(&mut self, kek: nodedb_wal::crypto::WalEncryptionKey)
| 124 | /// Propagates the key to every currently-open `ArrayStore` and stores it |
| 125 | /// so newly-opened arrays also receive it via `open_array`. |
| 126 | pub fn set_kek(&mut self, kek: nodedb_wal::crypto::WalEncryptionKey) { |
| 127 | self.cfg.kek = Some(kek.clone()); |
| 128 | for store in self.arrays.values_mut() { |
| 129 | store.set_kek(kek.clone()); |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | /// Drop the per-core store for `id` and best-effort remove the |
| 134 | /// on-disk segment directory. Called by the `DropArray` dispatch |
no test coverage detected