pub struct UnsecureProvider<CipherSuite, RNG> { /* private fields */ }Implementations§
Source§impl<RNG: CryptoRngCore> UnsecureProvider<(), RNG>
impl<RNG: CryptoRngCore> UnsecureProvider<(), RNG>
pub fn new<CipherSuite: TlsCipherSuite>( rng: RNG, ) -> UnsecureProvider<CipherSuite, RNG>
Trait Implementations§
Source§impl<CipherSuite: TlsCipherSuite, RNG: CryptoRngCore> CryptoProvider for UnsecureProvider<CipherSuite, RNG>
impl<CipherSuite: TlsCipherSuite, RNG: CryptoRngCore> CryptoProvider for UnsecureProvider<CipherSuite, RNG>
type CipherSuite = CipherSuite
type Signature = Signature<NistP256>
fn rng(&mut self) -> impl CryptoRngCore
Source§fn signer(
&mut self,
key_der: &[u8],
) -> Result<(impl SignerMut<Self::Signature>, SignatureScheme), TlsError>
fn signer( &mut self, key_der: &[u8], ) -> Result<(impl SignerMut<Self::Signature>, SignatureScheme), TlsError>
Decode and validate a private signing key from
key_der.fn verifier( &mut self, ) -> Result<&mut impl TlsVerifier<Self::CipherSuite>, TlsError>
Auto Trait Implementations§
impl<CipherSuite, RNG> Freeze for UnsecureProvider<CipherSuite, RNG>where
RNG: Freeze,
impl<CipherSuite, RNG> RefUnwindSafe for UnsecureProvider<CipherSuite, RNG>where
RNG: RefUnwindSafe,
CipherSuite: RefUnwindSafe,
impl<CipherSuite, RNG> Send for UnsecureProvider<CipherSuite, RNG>
impl<CipherSuite, RNG> Sync for UnsecureProvider<CipherSuite, RNG>
impl<CipherSuite, RNG> Unpin for UnsecureProvider<CipherSuite, RNG>
impl<CipherSuite, RNG> UnwindSafe for UnsecureProvider<CipherSuite, RNG>where
RNG: UnwindSafe,
CipherSuite: UnwindSafe,
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