[][src]Enum parsec_service::providers::ProviderConfig

pub enum ProviderConfig {
    MbedCrypto {
        key_info_manager: String,
    },
    Pkcs11 {
        key_info_manager: String,
        library_path: String,
        slot_number: usize,
        user_pin: Option<String>,
        software_public_operations: Option<bool>,
    },
    Tpm {
        key_info_manager: String,
        tcti: String,
        owner_hierarchy_auth: String,
    },
}

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 of MbedCrypto

key_info_manager: String

Name of the Key Info Manager to use

Pkcs11

PKCS 11 provider configuration

Fields of Pkcs11

key_info_manager: String

Name of the Key Info Manager to use

library_path: String

Path of the PKCS 11 library

slot_number: usize

Slot number to use

user_pin: Option<String>

User Pin

software_public_operations: Option<bool>

Control whether public key operations are performed in software

Tpm

TPM provider configuration

Fields of Tpm

key_info_manager: String

Name of the Key Info Manager to use

tcti: String

TCTI to use with the provider

owner_hierarchy_auth: String

Owner Hierarchy Authentication

Implementations

impl ProviderConfig[src]

pub fn key_info_manager(&self) -> &String[src]

Get the name of the Key Info Manager in the provider configuration

pub fn provider_id(&self) -> ProviderID[src]

Get the Provider ID of the provider

Trait Implementations

impl Debug for ProviderConfig[src]

impl<'de> Deserialize<'de> for ProviderConfig[src]

impl Zeroize for ProviderConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Free for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<Z> Zeroize for Z where
    Z: DefaultIsZeroes
[src]