StormByte-Crypto 3.1.0
C++26 cryptography module of the StormByte suite
Loading...
Searching...
No Matches
StormByte::Crypto::X509::RevocationVerifier Class Referencefinal

Verifies supplied CRL/OCSP evidence offline using Crypto primitives. More...

#include <StormByte/crypto/x509/revocation.hxx>

Static Public Member Functions

static ExpectedRevocation Verify (const Certificate &certificate, const Certificate &issuer, RevocationFormat format, std::span< const std::byte > der, TimePoint at)
 Verifies one complete CRL or OCSP response for a certificate.

Detailed Description

Verifies supplied CRL/OCSP evidence offline using Crypto primitives.

This verifier performs no network, filesystem, native trust-store, cache or clock access. It only accepts bounded signed evidence with an explicit validation time. Unsupported CRL distribution scopes and extensions fail closed; delegated OCSP responders must be embedded and directly authorized by the certificate issuer.

Member Function Documentation

◆ Verify()

ExpectedRevocation StormByte::Crypto::X509::RevocationVerifier::Verify ( const Certificate & certificate,
const Certificate & issuer,
RevocationFormat format,
std::span< const std::byte > der,
TimePoint at )
static

Verifies one complete CRL or OCSP response for a certificate.

Parameters
certificateCertificate whose status is requested.
issuerCertificate that issued certificate and signs the evidence.
formatEvidence encoding.
derUntrusted DER evidence; maximum size is 4 MiB.
atExplicit validation instant.
Returns
Authenticated Good, Revoked or Unknown status, or a validation error.
Exceptions
StormByte::Safe::AllocationErrorSafe-owned certificate data cannot be allocated.
Note
OCSP supports SHA-1/SHA-256/SHA-384/SHA-512 CertID hashes and issuer-signed or embedded, directly delegated OCSP-signing certificates. CRL and OCSP signatures support the certificate verifier's SHA-2 RSA PKCS#1 v1.5 and ECDSA algorithms; SHA-1 and RSA-PSS signatures fail. CRLs must be complete, issuer-wide, time-bounded and directly signed by the issuer; delta and indirect CRLs are not supported. OCSP response/per-certificate extensions, including nonce, are rejected.

The documentation for this class was generated from the following file: