//! Invariant: all 256 byte values survive encrypt/decrypt.
use crate::common;
#[test]
fn binary_data_roundtrip() {
let (_dir, vault) = common::temp_vault();
let binary: Vec<u8> = (0..=255).collect();
vault.store("binary-secret", &binary, false).unwrap();
let plaintext = vault.decrypt("binary-secret").unwrap();
assert_eq!(
&plaintext[..],
&binary[..],
"Fix: all 256 byte values must survive encrypt/decrypt"
);
}