[−][src]Struct ctclient::SignedCertificateTimestamp
An unverified Signed Certificate Timestamp (SCT).
Fields
log_id: [u8; 32]
timestamp: u64
extensions_data: Vec<u8>
entry: SctEntry
signature_algorithm: SignatureAlgorithm
raw_signature: Vec<u8>
Raw signature encoded in ASN.1
Implementations
impl SignedCertificateTimestamp
[src]
pub fn from_cert_sct_extension(
cert: &X509Ref,
issuer: &X509Ref
) -> Result<Vec<SignedCertificateTimestamp>, Error>
[src]
cert: &X509Ref,
issuer: &X509Ref
) -> Result<Vec<SignedCertificateTimestamp>, Error>
Extract a list of SCTs from the SCT List extension of the given openssl-parsed certificate, if the extension is there.
If the certificate does not contain the extension, Ok(vec![])
is returned.
pub fn derive_leaf_hash(&self) -> [u8; 32]
[src]
Derive the corresponding Merkle leaf hash from this SCTs.
Can be used to check inclusion, for example.
pub fn verify(&self, log_public_key: &PKey<Public>) -> Result<(), Error>
[src]
Check the signature in this SCT.
To get the log public key, lookup the log with self.log_id
by e.g. using crate::google_log_list::LogList::find_by_id
.
Trait Implementations
impl Clone for SignedCertificateTimestamp
[src]
fn clone(&self) -> SignedCertificateTimestamp
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SignedCertificateTimestamp
[src]
Auto Trait Implementations
impl RefUnwindSafe for SignedCertificateTimestamp
impl Send for SignedCertificateTimestamp
impl Sync for SignedCertificateTimestamp
impl Unpin for SignedCertificateTimestamp
impl UnwindSafe for SignedCertificateTimestamp
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,