pub struct CryptoHeaderFixed {Show 20 fields
pub length: u32,
pub compression_algo: CompressionAlgo,
pub aead_algo: AeadAlgo,
pub fec_algo: FecAlgo,
pub kdf_algo: KdfAlgo,
pub chunk_size: u32,
pub envelope_target_size: u32,
pub block_size: u32,
pub fec_data_shards: u16,
pub fec_parity_shards: u16,
pub index_fec_data_shards: u16,
pub index_fec_parity_shards: u16,
pub index_root_fec_data_shards: u16,
pub index_root_fec_parity_shards: u16,
pub stripe_width: u32,
pub volume_loss_tolerance: u8,
pub bit_rot_buffer_pct: u8,
pub has_dictionary: u8,
pub max_path_length: u32,
pub expected_volume_size: u64,
}Fields§
§length: u32§compression_algo: CompressionAlgo§aead_algo: AeadAlgo§fec_algo: FecAlgo§kdf_algo: KdfAlgo§chunk_size: u32§envelope_target_size: u32§block_size: u32§fec_data_shards: u16§fec_parity_shards: u16§index_fec_data_shards: u16§index_fec_parity_shards: u16§index_root_fec_data_shards: u16§index_root_fec_parity_shards: u16§stripe_width: u32§volume_loss_tolerance: u8§bit_rot_buffer_pct: u8§has_dictionary: u8§max_path_length: u32§expected_volume_size: u64Implementations§
Source§impl CryptoHeaderFixed
impl CryptoHeaderFixed
pub fn parse( bytes: &[u8], volume_crypto_header_length: u32, ) -> Result<Self, FormatError>
pub fn validate_v36(&self) -> Result<(), FormatError>
pub fn to_bytes(&self) -> [u8; 76]
Trait Implementations§
Source§impl Clone for CryptoHeaderFixed
impl Clone for CryptoHeaderFixed
Source§fn clone(&self) -> CryptoHeaderFixed
fn clone(&self) -> CryptoHeaderFixed
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CryptoHeaderFixed
impl Debug for CryptoHeaderFixed
Source§impl PartialEq for CryptoHeaderFixed
impl PartialEq for CryptoHeaderFixed
Source§fn eq(&self, other: &CryptoHeaderFixed) -> bool
fn eq(&self, other: &CryptoHeaderFixed) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CryptoHeaderFixed
impl StructuralPartialEq for CryptoHeaderFixed
Auto Trait Implementations§
impl Freeze for CryptoHeaderFixed
impl RefUnwindSafe for CryptoHeaderFixed
impl Send for CryptoHeaderFixed
impl Sync for CryptoHeaderFixed
impl Unpin for CryptoHeaderFixed
impl UnsafeUnpin for CryptoHeaderFixed
impl UnwindSafe for CryptoHeaderFixed
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more