pub struct HwCaps {
pub has_hw_aes: bool,
}Expand description
Hardware capabilities report
Fields§
§has_hw_aes: boolImplementations§
Source§impl HwCaps
impl HwCaps
Sourcepub fn recommended_cipher(&self) -> CipherSuite
pub fn recommended_cipher(&self) -> CipherSuite
Recommend best cipher for this hardware.
Under --features fips the only FIPS-approved AEAD on the wire
is Aes256Gcm, so we pin the recommendation regardless of
hardware capability — software AES is still allowed; only the
cipher choice is restricted.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HwCaps
impl RefUnwindSafe for HwCaps
impl Send for HwCaps
impl Sync for HwCaps
impl Unpin for HwCaps
impl UnsafeUnpin for HwCaps
impl UnwindSafe for HwCaps
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