pub fn decrypt_segment_envelope(
key: &WalEncryptionKey,
magic: &[u8; 4],
blob: &[u8],
) -> Result<Vec<u8>>Expand description
Decrypt a segment envelope produced by encrypt_segment_envelope.
The caller supplies the expected magic; mismatches surface as
WalError::EncryptionError.