pub trait CryptoProvider {
type CipherSuite: TlsCipherSuite;
type Signature: AsRef<[u8]>;
// Required method
fn rng(&mut self) -> impl CryptoRngCore;
// Provided methods
fn verifier(
&mut self,
) -> Result<&mut impl TlsVerifier<Self::CipherSuite>, TlsError> { ... }
fn signer(
&mut self,
_key_der: &[u8],
) -> Result<(impl SignerMut<Self::Signature>, SignatureScheme), TlsError> { ... }
}Required Associated Types§
type CipherSuite: TlsCipherSuite
type Signature: AsRef<[u8]>
Required Methods§
fn rng(&mut self) -> impl CryptoRngCore
Provided Methods§
fn verifier( &mut self, ) -> Result<&mut impl TlsVerifier<Self::CipherSuite>, TlsError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.