(
key: &nodedb_wal::crypto::WalEncryptionKey,
plaintext: &[u8],
)
| 48 | // ── SEGV framing helpers ─────────────────────────────────────────────────── |
| 49 | |
| 50 | fn encrypt_payload( |
| 51 | key: &nodedb_wal::crypto::WalEncryptionKey, |
| 52 | plaintext: &[u8], |
| 53 | ) -> Result<Vec<u8>, RTreeCheckpointError> { |
| 54 | nodedb_wal::crypto::encrypt_segment_envelope(key, &SEGV_MAGIC, plaintext) |
| 55 | .map_err(|e| RTreeCheckpointError::EncryptionFailed(e.to_string())) |
| 56 | } |
| 57 | |
| 58 | fn decrypt_payload( |
| 59 | key: &nodedb_wal::crypto::WalEncryptionKey, |
no test coverage detected