use crateV4DocumentHeader;
// IronCore V4 EDOC format, quick spec:
//
// -- PRE HEADER (7 bytes) --
// 4 (1 byte)
// IRON (4 bytes)
// Length of header (2 bytes, BE)
// -- HEADER (proto) --
// -- [optional] DATA --
// The `IvAndCiphertext` struct is the DATA mentioned in this format
pub const PRE_HEADER_LEN: usize = 7;
pub const MAGIC: & = b"IRON";
pub const V4: u8 = 4u8;
// Checks that the proto header has a signature, had a valid signature_type, has a signed_payload, and has at least one EDEK