Struct lpc55::pki::Certificates
source · [−]pub struct Certificates { /* private fields */ }
Implementations
sourceimpl Certificates
impl Certificates
pub fn try_from_pki(pki: &Pki) -> Result<Self>
pub fn try_from(sources: &[CertificateSource; 4]) -> Result<Self>
sourcepub fn try_from_ders(certificate_ders: [Vec<u8>; 4]) -> Result<Self>
pub fn try_from_ders(certificate_ders: [Vec<u8>; 4]) -> Result<Self>
Checks certificates are valid, and public keys are all RSA.
pub fn index_of(&self, public_key: PublicKey) -> Result<CertificateSlot>
sourcepub fn certificate(&self, i: CertificateSlot) -> &Certificate
pub fn certificate(&self, i: CertificateSlot) -> &Certificate
Get the end of chain certificate from the chain
sourcepub fn certificate_der(&self, i: CertificateSlot) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub fn certificate_der(&self, i: CertificateSlot) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
Get the DER reprensentation for the end of chain certificate from the chain
sourcepub fn chain_der(&self, i: CertificateSlot) -> impl Iterator<Item = &[u8]>
pub fn chain_der(&self, i: CertificateSlot) -> impl Iterator<Item = &[u8]>
Returns an iterator of the DER serialization of the certificate chain starting at the root
pub fn chain(&self, i: CertificateSlot) -> &CertificateChain
sourcepub fn fingerprints(&self) -> [Sha256Hash; 4]
pub fn fingerprints(&self) -> [Sha256Hash; 4]
Get the fingerprint of the 4 root certificates
pub fn fingerprint(&self) -> Sha256Hash
pub fn fingerprint_from_bytes(fingerprints: &[u8]) -> Sha256Hash
Trait Implementations
sourceimpl Clone for Certificates
impl Clone for Certificates
sourcefn clone(&self) -> Certificates
fn clone(&self) -> Certificates
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for Certificates
impl Send for Certificates
impl Sync for Certificates
impl Unpin for Certificates
impl UnwindSafe for Certificates
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more