Struct libcryptsetup_rs::CryptParamsPlain
source · pub struct CryptParamsPlain {
pub hash: String,
pub offset: u64,
pub sector_size: u32,
pub size: u64,
pub skip: u64,
}Expand description
Struct representing plain cryptsetup format parameters
Fields§
§hash: StringPassword hash function
offset: u64Offset in sectors
sector_size: u32Sector size in bytes
size: u64Size of mapped device
skip: u64IV offset
Trait Implementations§
source§impl<'a> TryFrom<&'a crypt_params_plain> for CryptParamsPlain
impl<'a> TryFrom<&'a crypt_params_plain> for CryptParamsPlain
§type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
source§impl<'a> TryInto<CryptParamsPlainRef<'a>> for &'a CryptParamsPlain
impl<'a> TryInto<CryptParamsPlainRef<'a>> for &'a CryptParamsPlain
§type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.