pub fn write_header<W: Write>(
writer: &mut W,
version: u8,
) -> Result<(), AescryptError>Expand description
Writes the 5-byte AES Crypt v3 file header b"AES" || version || 0x00.
§Format
'A' 'E' 'S' version 0x00
0 1 2 3 4§Errors
AescryptError::UnsupportedVersion—version < 3. This crate only writes v3.AescryptError::Io—writerreturned an error.