pub enum HsmProvider {
Entrust,
Utimaco,
Kryoptic,
ThalesCsp,
ThalesTct,
}Expand description
Supported HSM providers.
Variants§
Entrust
Entrust nShield HSM.
Utimaco
Utimaco CryptoServer HSM.
Kryoptic
Kryoptic software token (FIPS 140-3 module).
ThalesCsp
Thales Luna Cloud HSM (CSP).
ThalesTct
Thales Luna Tactical (TCT).
Implementations§
Source§impl HsmProvider
impl HsmProvider
Sourcepub fn config(&self) -> HsmProviderConfig
pub fn config(&self) -> HsmProviderConfig
Get the default configuration for this provider.
Sourcepub fn detect_from_library_info(
manufacturer: &str,
library_description: &str,
) -> Option<Self>
pub fn detect_from_library_info( manufacturer: &str, library_description: &str, ) -> Option<Self>
Detect provider from PKCS#11 library info.
This is a best-effort heuristic based on library manufacturer strings.
Trait Implementations§
Source§impl Clone for HsmProvider
impl Clone for HsmProvider
Source§fn clone(&self) -> HsmProvider
fn clone(&self) -> HsmProvider
Returns a duplicate of the value. Read more
1.0.0 · 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 HsmProvider
impl Debug for HsmProvider
Source§impl<'de> Deserialize<'de> for HsmProvider
impl<'de> Deserialize<'de> for HsmProvider
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HsmProvider
impl PartialEq for HsmProvider
impl Copy for HsmProvider
impl Eq for HsmProvider
impl StructuralPartialEq for HsmProvider
Auto Trait Implementations§
impl Freeze for HsmProvider
impl RefUnwindSafe for HsmProvider
impl Send for HsmProvider
impl Sync for HsmProvider
impl Unpin for HsmProvider
impl UnsafeUnpin for HsmProvider
impl UnwindSafe for HsmProvider
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