[−][src]Struct cryptsetup_rs::api::CryptDeviceHandle
An opaque handle on an initialized crypt device
Trait Implementations
impl<P: Debug> CryptDevice for CryptDeviceHandle<P>
[src]
fn path(&self) -> &Path
[src]
fn cipher(&self) -> &str
[src]
fn cipher_mode(&self) -> &str
[src]
fn device_name(&self) -> &str
[src]
fn rng_type(&self) -> crypt_rng_type
[src]
fn set_rng_type(&mut self, rng_type: crypt_rng_type)
[src]
fn set_iteration_time(&mut self, iteration_time_ms: u64)
[src]
fn volume_key_size(&self) -> u8
[src]
impl CryptDeviceType for CryptDeviceHandle<Luks1Params>
[src]
fn device_type(&self) -> crypt_device_type
[src]
impl CryptDeviceType for CryptDeviceHandle<Luks2Params>
[src]
fn device_type(&self) -> crypt_device_type
[src]
impl<P: Debug> Debug for CryptDeviceHandle<P>
[src]
impl<P: Debug> Drop for CryptDeviceHandle<P>
[src]
impl Luks1CryptDevice for CryptDeviceHandle<Luks1Params>
[src]
fn hash_spec(&self) -> &str
[src]
fn mk_bits(&self) -> u32
[src]
fn mk_digest(&self) -> &[u8; 20]
[src]
fn mk_iterations(&self) -> u32
[src]
fn mk_salt(&self) -> &[u8; 32]
[src]
fn payload_offset(&self) -> u32
[src]
impl Luks2CryptDevice for CryptDeviceHandle<Luks2Params>
[src]
fn register_new_token_handler<Handler: Luks2TokenHandlerRaw>(
) -> Result<Luks2TokenHandlerBox<Handler>>
[src]
) -> Result<Luks2TokenHandlerBox<Handler>>
fn register_token_handler<Handler: Luks2TokenHandlerRaw>(
handler: &Luks2TokenHandlerBox<Handler>
) -> Result<()>
[src]
handler: &Luks2TokenHandlerBox<Handler>
) -> Result<()>
fn token_status(
&mut self,
token_id: Luks2TokenId
) -> (crypt_token_info, Option<String>)
[src]
&mut self,
token_id: Luks2TokenId
) -> (crypt_token_info, Option<String>)
fn get_token(&mut self, token_id: Luks2TokenId) -> Result<Luks2Token>
[src]
fn add_token_with_id(
&mut self,
token: &Luks2Token,
token_id: Luks2TokenId
) -> Result<()>
[src]
&mut self,
token: &Luks2Token,
token_id: Luks2TokenId
) -> Result<()>
fn add_token(&mut self, token: &Luks2Token) -> Result<Luks2TokenId>
[src]
fn remove_token(&mut self, token_id: Luks2TokenId) -> Result<()>
[src]
fn assign_token_to_keyslot(
&mut self,
token_id: Luks2TokenId,
keyslot_opt: Option<Keyslot>
) -> Result<()>
[src]
&mut self,
token_id: Luks2TokenId,
keyslot_opt: Option<Keyslot>
) -> Result<()>
fn unassign_token_keyslot(
&mut self,
token_id: Luks2TokenId,
keyslot_opt: Option<Keyslot>
) -> Result<()>
[src]
&mut self,
token_id: Luks2TokenId,
keyslot_opt: Option<Keyslot>
) -> Result<()>
fn token_keyslot_is_assigned(
&mut self,
token_id: Luks2TokenId,
keyslot: Keyslot
) -> Result<bool>
[src]
&mut self,
token_id: Luks2TokenId,
keyslot: Keyslot
) -> Result<bool>
fn activate_with_token(
&mut self,
name: &str,
token_id: Luks2TokenId
) -> Result<Keyslot>
[src]
&mut self,
name: &str,
token_id: Luks2TokenId
) -> Result<Keyslot>
fn check_activation_with_token(
&mut self,
token_id: Luks2TokenId
) -> Result<Keyslot>
[src]
&mut self,
token_id: Luks2TokenId
) -> Result<Keyslot>
impl LuksCryptDevice for CryptDeviceHandle<Luks1Params>
[src]
fn activate(&mut self, name: &str, key: &[u8]) -> Result<Keyslot>
[src]
fn deactivate(self, name: &str) -> Result<()>
[src]
fn destroy_keyslot(&mut self, slot: Keyslot) -> Result<()>
[src]
fn keyslot_status(&self, keyslot: Keyslot) -> crypt_keyslot_info
[src]
fn dump(&self)
[src]
fn uuid(&self) -> Uuid
[src]
fn add_keyslot(
&mut self,
key: &[u8],
maybe_prev_key: Option<&[u8]>,
maybe_keyslot: Option<Keyslot>
) -> Result<Keyslot>
[src]
&mut self,
key: &[u8],
maybe_prev_key: Option<&[u8]>,
maybe_keyslot: Option<Keyslot>
) -> Result<Keyslot>
fn update_keyslot(
&mut self,
key: &[u8],
prev_key: &[u8],
maybe_keyslot: Option<Keyslot>
) -> Result<Keyslot>
[src]
&mut self,
key: &[u8],
prev_key: &[u8],
maybe_keyslot: Option<Keyslot>
) -> Result<Keyslot>
impl LuksCryptDevice for CryptDeviceHandle<Luks2Params>
[src]
fn activate(&mut self, name: &str, key: &[u8]) -> Result<u8>
[src]
fn deactivate(self, name: &str) -> Result<()>
[src]
fn destroy_keyslot(&mut self, slot: Keyslot) -> Result<()>
[src]
fn keyslot_status(&self, keyslot: Keyslot) -> crypt_keyslot_info
[src]
fn dump(&self)
[src]
fn uuid(&self) -> Uuid
[src]
fn add_keyslot(
&mut self,
key: &[u8],
maybe_prev_key: Option<&[u8]>,
maybe_keyslot: Option<Keyslot>
) -> Result<Keyslot>
[src]
&mut self,
key: &[u8],
maybe_prev_key: Option<&[u8]>,
maybe_keyslot: Option<Keyslot>
) -> Result<Keyslot>
fn update_keyslot(
&mut self,
key: &[u8],
prev_key: &[u8],
maybe_keyslot: Option<Keyslot>
) -> Result<Keyslot>
[src]
&mut self,
key: &[u8],
prev_key: &[u8],
maybe_keyslot: Option<Keyslot>
) -> Result<Keyslot>
impl<P: PartialEq + Debug> PartialEq<CryptDeviceHandle<P>> for CryptDeviceHandle<P>
[src]
fn eq(&self, other: &CryptDeviceHandle<P>) -> bool
[src]
fn ne(&self, other: &CryptDeviceHandle<P>) -> bool
[src]
impl<P: Debug> StructuralPartialEq for CryptDeviceHandle<P>
[src]
Auto Trait Implementations
impl<P> RefUnwindSafe for CryptDeviceHandle<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> !Send for CryptDeviceHandle<P>
impl<P> !Sync for CryptDeviceHandle<P>
impl<P> Unpin for CryptDeviceHandle<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for CryptDeviceHandle<P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,