pub struct AteccProvider<'a, M: RawMutex, PHY, const CERT_SIZE: usize = 0> { /* private fields */ }Implementations§
Source§impl<'a, M: RawMutex, PHY> AteccProvider<'a, M, PHY, 0>
impl<'a, M: RawMutex, PHY> AteccProvider<'a, M, PHY, 0>
pub fn new( atca: &'a AtCaClient<M, PHY>, sign_key: Slot, ca_pubkey_source: impl Into<RootCaSource>, ) -> Self
Sourcepub fn new_unverified(atca: &'a AtCaClient<M, PHY>, sign_key: Slot) -> Self
pub fn new_unverified(atca: &'a AtCaClient<M, PHY>, sign_key: Slot) -> Self
Create a provider that skips server certificate verification.
Useful for development, testing, or connecting to servers with self-signed certificates. Not recommended for production use.
Sourcepub fn with_client_cert<const N: usize>(
self,
cert: impl Into<CertSource<'a>>,
) -> AteccProvider<'a, M, PHY, N>
pub fn with_client_cert<const N: usize>( self, cert: impl Into<CertSource<'a>>, ) -> AteccProvider<'a, M, PHY, N>
Enable client certificate authentication for mutual TLS.
CERT_SIZE controls the temporary stack buffer used when
reconstructing a compressed certificate, or copying a DER certificate.
Trait Implementations§
Source§impl<'a, M, PHY, const CERT_SIZE: usize> CryptoProvider for AteccProvider<'a, M, PHY, CERT_SIZE>
impl<'a, M, PHY, const CERT_SIZE: usize> CryptoProvider for AteccProvider<'a, M, PHY, CERT_SIZE>
type CipherSuite = Aes128GcmSha256
type Signature = Signature<NistP256>
fn rng(&mut self) -> impl CryptoRngCore
fn verifier( &mut self, ) -> Result<&mut impl TlsVerifier<Self::CipherSuite>, TlsError>
Source§fn signer(
&mut self,
) -> Result<(impl SignerMut<Self::Signature>, SignatureScheme), TlsError>
fn signer( &mut self, ) -> Result<(impl SignerMut<Self::Signature>, SignatureScheme), TlsError>
Provide a signing key for client certificate authentication. Read more
Source§fn client_cert(&mut self) -> Option<Certificate<impl AsRef<[u8]>>>
fn client_cert(&mut self) -> Option<Certificate<impl AsRef<[u8]>>>
Resolve the client certificate for mutual TLS authentication. Read more
Auto Trait Implementations§
impl<'a, M, PHY, const CERT_SIZE: usize = 0> !RefUnwindSafe for AteccProvider<'a, M, PHY, CERT_SIZE>
impl<'a, M, PHY, const CERT_SIZE: usize = 0> !UnwindSafe for AteccProvider<'a, M, PHY, CERT_SIZE>
impl<'a, M, PHY, const CERT_SIZE: usize> Forget for AteccProvider<'a, M, PHY, CERT_SIZE>
impl<'a, M, PHY, const CERT_SIZE: usize> Freeze for AteccProvider<'a, M, PHY, CERT_SIZE>
impl<'a, M, PHY, const CERT_SIZE: usize> Move for AteccProvider<'a, M, PHY, CERT_SIZE>
impl<'a, M, PHY, const CERT_SIZE: usize> Send for AteccProvider<'a, M, PHY, CERT_SIZE>
impl<'a, M, PHY, const CERT_SIZE: usize> Sync for AteccProvider<'a, M, PHY, CERT_SIZE>
impl<'a, M, PHY, const CERT_SIZE: usize> Unpin for AteccProvider<'a, M, PHY, CERT_SIZE>
impl<'a, M, PHY, const CERT_SIZE: usize> UnsafeUnpin for AteccProvider<'a, M, PHY, CERT_SIZE>
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