pub struct Sha256Ref<'a>(/* private fields */);
Expand description
A reference to a SHA-256 fingerprint of the certificate.
Note for anyone who wants to verify the output, it should be similar to the output for the following command:
openssl x509 -noout -fingerprint -sha256 -in certificate.pem
Implementations§
Source§impl<'a> Sha256Ref<'a>
impl<'a> Sha256Ref<'a>
Sourcepub const fn from_fingerprint_bytes(bytes: &'a [u8; 32]) -> Self
pub const fn from_fingerprint_bytes(bytes: &'a [u8; 32]) -> Self
Create a Sha256Ref
fingerprint object from the precomputed
fingerprint bytes.
Might be useful to someone who want to use the display implementation.
Sourcepub const fn into_inner(self) -> &'a [u8; 32]
pub const fn into_inner(self) -> &'a [u8; 32]
Return a ref to the 32-byte array of the signature data.
Trait Implementations§
impl<'a> Copy for Sha256Ref<'a>
impl<'a> Eq for Sha256Ref<'a>
impl<'a> StructuralPartialEq for Sha256Ref<'a>
Auto Trait Implementations§
impl<'a> Freeze for Sha256Ref<'a>
impl<'a> RefUnwindSafe for Sha256Ref<'a>
impl<'a> Send for Sha256Ref<'a>
impl<'a> Sync for Sha256Ref<'a>
impl<'a> Unpin for Sha256Ref<'a>
impl<'a> UnwindSafe for Sha256Ref<'a>
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