Trait mls_rs::CryptoProvider

source ·
pub trait CryptoProvider: Send + Sync {
    type CipherSuiteProvider: CipherSuiteProvider + Clone;

    // Required methods
    fn supported_cipher_suites(&self) -> Vec<CipherSuite>;
    fn cipher_suite_provider(
        &self,
        cipher_suite: CipherSuite,
    ) -> Option<Self::CipherSuiteProvider>;
}
Expand description

Provides implementations for several ciphersuites via CipherSuiteProvider.

Required Associated Types§

Required Methods§

source

fn supported_cipher_suites(&self) -> Vec<CipherSuite>

Return the list of all supported ciphersuites.

source

fn cipher_suite_provider( &self, cipher_suite: CipherSuite, ) -> Option<Self::CipherSuiteProvider>

Generate a CipherSuiteProvider for the given cipher_suite.

Implementors§