pub struct CryptParamsTcrypt {
pub passphrase: Option<Vec<u8>>,
pub keyfiles: Option<Vec<PathBuf>>,
pub hash_name: String,
pub cipher: String,
pub mode: String,
pub key_size: usize,
pub flags: CryptTcrypt,
pub veracrypt_pim: u32,
}Expand description
Parameters for tcrypt operations
Fields§
§passphrase: Option<Vec<u8>>§keyfiles: Option<Vec<PathBuf>>§hash_name: String§cipher: String§mode: String§key_size: usize§flags: CryptTcrypt§veracrypt_pim: u32Trait Implementations§
Source§impl<'a> TryFrom<&'a crypt_params_tcrypt> for CryptParamsTcrypt
impl<'a> TryFrom<&'a crypt_params_tcrypt> for CryptParamsTcrypt
Source§type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<CryptParamsTcryptRef<'a>> for &'a CryptParamsTcrypt
impl<'a> TryInto<CryptParamsTcryptRef<'a>> for &'a CryptParamsTcrypt
Source§type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for CryptParamsTcrypt
impl RefUnwindSafe for CryptParamsTcrypt
impl Send for CryptParamsTcrypt
impl Sync for CryptParamsTcrypt
impl Unpin for CryptParamsTcrypt
impl UnwindSafe for CryptParamsTcrypt
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more