Encrypt a geohash msgpack payload (called from `geohash_index.rs`).
(
key: &nodedb_wal::crypto::WalEncryptionKey,
plaintext: &[u8],
)
| 65 | |
| 66 | /// Encrypt a geohash msgpack payload (called from `geohash_index.rs`). |
| 67 | pub(crate) fn encrypt_geohash_payload( |
| 68 | key: &nodedb_wal::crypto::WalEncryptionKey, |
| 69 | plaintext: &[u8], |
| 70 | ) -> Result<Vec<u8>, RTreeCheckpointError> { |
| 71 | encrypt_payload(key, plaintext) |
| 72 | } |
| 73 | |
| 74 | /// Decrypt a geohash msgpack payload (called from `geohash_index.rs`). |
| 75 | pub(crate) fn decrypt_geohash_payload( |
no test coverage detected