(
key: &nodedb_wal::crypto::WalEncryptionKey,
blob: &[u8],
)
| 56 | } |
| 57 | |
| 58 | fn decrypt_payload( |
| 59 | key: &nodedb_wal::crypto::WalEncryptionKey, |
| 60 | blob: &[u8], |
| 61 | ) -> Result<Vec<u8>, RTreeCheckpointError> { |
| 62 | nodedb_wal::crypto::decrypt_segment_envelope(key, &SEGV_MAGIC, blob) |
| 63 | .map_err(|e| RTreeCheckpointError::DecryptionFailed(e.to_string())) |
| 64 | } |
| 65 | |
| 66 | /// Encrypt a geohash msgpack payload (called from `geohash_index.rs`). |
| 67 | pub(crate) fn encrypt_geohash_payload( |
no test coverage detected