pub struct SignedCertificateTimestamp {
pub log_id: [u8; 32],
pub timestamp: u64,
pub extensions_data: Vec<u8>,
pub entry: SctEntry,
pub signature_algorithm: SignatureAlgorithm,
pub raw_signature: Vec<u8>,
}Expand description
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§
Source§impl SignedCertificateTimestamp
impl SignedCertificateTimestamp
Sourcepub fn from_cert_sct_extension(
cert: &X509Ref,
issuer: &X509Ref,
) -> Result<Vec<SignedCertificateTimestamp>, Error>
pub fn from_cert_sct_extension( 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.
Will not verify the signature. Call self.verify with the log’s public key to verify.
Sourcepub fn derive_leaf_hash(&self) -> [u8; 32]
pub fn derive_leaf_hash(&self) -> [u8; 32]
Derive the corresponding Merkle leaf hash from this SCTs.
Can be used to check inclusion, for example.
Trait Implementations§
Source§impl Clone for SignedCertificateTimestamp
impl Clone for SignedCertificateTimestamp
Source§fn clone(&self) -> SignedCertificateTimestamp
fn clone(&self) -> SignedCertificateTimestamp
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SignedCertificateTimestamp
impl RefUnwindSafe for SignedCertificateTimestamp
impl Send for SignedCertificateTimestamp
impl Sync for SignedCertificateTimestamp
impl Unpin for SignedCertificateTimestamp
impl UnwindSafe for SignedCertificateTimestamp
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