Function sct::verify_sct
source · [−]pub fn verify_sct(
cert: &[u8],
sct: &[u8],
at_time: u64,
logs: &[&Log<'_>]
) -> Result<usize, Error>
Expand description
Verifies that the SCT sct
(a SignedCertificateTimestamp
encoding)
is a correctly signed timestamp for cert
(a DER-encoded X.509 end-entity
certificate) valid at_time
. logs
describe the CT logs trusted by
the caller to sign such an SCT.
On success, this function returns the log used as an index into logs
.
Otherwise, it returns an Error
.