pub struct Info<B: Backend> {
pub backend: B::Info,
pub revision: u32,
pub cipher: Cipher,
pub kdf: Kdf,
pub bsize_gross: u32,
pub bsize_net: u32,
}
Expand description
Information from the container.
Fields§
§backend: B::Info
Information from the lower backend.
revision: u32
The revision of the header.
cipher: Cipher
The cipher used for encryption.
kdf: Kdf
The key derivation function.
bsize_gross: u32
The gross block size is the block size specified by the backend.
This is the actual size of a block in the backend. Note that the number
of userdata bytes per block can be smaller! This is the net block size
(Info::bsize_net
).
bsize_net: u32
The (net) block size of the container.
The net block size is the number of bytes you can store in a block. It
can be less than the gross block size (Info::bsize_gross
).
Depending on the selected cipher, you need to store additional data in a block. I.e. an AE-cipher results into a tag, which needs to be stored additionally. Such data must be substracted from the gross block size and results into the net block size.