pub enum ProviderConfig {
MbedCrypto {
name: Option<String>,
key_info_manager: String,
},
Pkcs11 {
name: Option<String>,
key_info_manager: String,
library_path: String,
slot_number: Option<u64>,
serial_number: Option<String>,
user_pin: Option<String>,
software_public_operations: Option<bool>,
allow_export: Option<bool>,
},
Tpm {
name: Option<String>,
key_info_manager: String,
tcti: String,
owner_hierarchy_auth: String,
endorsement_hierarchy_auth: Option<String>,
skip_if_no_tpm: Option<bool>,
},
CryptoAuthLib {
name: Option<String>,
key_info_manager: String,
device_type: String,
iface_type: String,
wake_delay: Option<u16>,
rx_retries: Option<i32>,
slave_address: Option<u8>,
bus: Option<u8>,
baud: Option<u32>,
access_key_file_name: Option<String>,
},
TrustedService {
name: Option<String>,
key_info_manager: String,
},
}Expand description
Provider configuration structure For providers configs in Parsec config.toml we use a format similar to the one described in the Internally Tagged Enum representation where “provider_type” is the tag field. For details see: https://serde.rs/enum-representations.html
Variants§
MbedCrypto
Mbed Crypto provider configuration
Fields
Pkcs11
PKCS 11 provider configuration
Fields
Tpm
TPM provider configuration
Fields
CryptoAuthLib
Microchip CryptoAuthentication Library provider configuration
Fields
TrustedService
Trusted Service provider configuration
Implementations§
Source§impl ProviderConfig
impl ProviderConfig
Sourcepub fn key_info_manager(&self) -> &String
pub fn key_info_manager(&self) -> &String
Get the name of the Key Info Manager in the provider configuration
Sourcepub fn provider_id(&self) -> ProviderId
pub fn provider_id(&self) -> ProviderId
Get the Provider ID of the provider
Sourcepub fn provider_name(&self) -> Result<String, Error>
pub fn provider_name(&self) -> Result<String, Error>
Get the name of the Provider If there is not one set, use the default.
Trait Implementations§
Source§impl Debug for ProviderConfig
impl Debug for ProviderConfig
Source§impl<'de> Deserialize<'de> for ProviderConfig
impl<'de> Deserialize<'de> for ProviderConfig
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
Auto Trait Implementations§
impl Freeze for ProviderConfig
impl RefUnwindSafe for ProviderConfig
impl Send for ProviderConfig
impl Sync for ProviderConfig
impl Unpin for ProviderConfig
impl UnwindSafe for ProviderConfig
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