pub struct WindowsConfig {
pub prefer_windows_hello_ux: bool,
pub software_fallback: WindowsSoftwareFallback,
pub dpapi_app_key: Option<[u8; 32]>,
}Expand description
Windows-specific configuration overrides.
When using struct-update syntax (..WindowsConfig::default()), newly added
security-relevant fields will use their default values. Review the changelog
when updating the crate version to check for new fields.
Fields§
§prefer_windows_hello_ux: boolSurface a Windows Hello biometric/PIN prompt at encrypt/decrypt time.
When false, uses the legacy CryptUI password dialog.
software_fallback: WindowsSoftwareFallbackWhether a VM without a usable TPM may fall back to DPAPI-backed software keys.
dpapi_app_key: Option<[u8; 32]>Optional application-layer AES-256-GCM key applied around DPAPI when the software fallback is in use. Defeats automated DPAPI oracle tools that don’t carry knowledge of this binary.
Trait Implementations§
Source§impl Clone for WindowsConfig
impl Clone for WindowsConfig
Source§fn clone(&self) -> WindowsConfig
fn clone(&self) -> WindowsConfig
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 WindowsConfig
impl Debug for WindowsConfig
Auto Trait Implementations§
impl Freeze for WindowsConfig
impl RefUnwindSafe for WindowsConfig
impl Send for WindowsConfig
impl Sync for WindowsConfig
impl Unpin for WindowsConfig
impl UnsafeUnpin for WindowsConfig
impl UnwindSafe for WindowsConfig
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