|
| using | TimePoint = std::chrono::sys_seconds |
| | Point in time with second precision, as stored in certificates.
|
| using | ExpectedPurpose = StormByte::Expected<void, PurposeError> |
| | Success when certificate usage permits a purpose, or a typed error.
|
| using | ExpectedSubjectAltNames = StormByte::Expected<Safe::Vector<SubjectAltName>, IdentityError> |
| | Supported subjectAltName entries, or a typed extraction error.
|
| using | ExpectedIdentity = StormByte::Expected<void, IdentityError> |
| | Success when the expected identity is present, or a typed error.
|
| using | ExpectedRevocation = StormByte::Expected<RevocationStatus, RevocationError> |
| | Authenticated certificate status or a typed evidence-validation failure.
|
| using | ExpectedTLSPeer = StormByte::Expected<void, TLSPeerFailure> |
| | Offline peer-certificate success or a detailed, indexed failure.
|
| using | ExpectedBundledTLSRoots = StormByte::Expected<Safe::Vector<Certificate>, TrustPathError> |
| | Library-owned certificates or an integrity/parse failure.
|
| using | ExpectedTrustPath = StormByte::Expected<void, TrustPathError> |
| | Path-only success or an explicit failure, with no revocation assertion.
|
| using | ExpectedPaymentPeer = StormByte::Expected<void, PaymentPeerError> |
| | Payment peer trust and revocation result.
|
|
| enum class | KeyUsage : std::uint16_t {
DigitalSignature = 1u << 0
, NonRepudiation = 1u << 1
, KeyEncipherment = 1u << 2
, DataEncipherment = 1u << 3
,
KeyAgreement = 1u << 4
, KeyCertSign = 1u << 5
, CRLSign = 1u << 6
, EncipherOnly = 1u << 7
,
DecipherOnly = 1u << 8
} |
| | Bits of the keyUsage extension (RFC 5280 §4.2.1.3). More...
|
| enum class | SubjectAltNameType { DNS
, IP
} |
| | Supported subjectAltName general name kinds (RFC 5280 §4.2.1.6). More...
|
| enum class | IdentityError {
InvalidExpectedName
, InvalidExpectedAddress
, MissingSubjectAltName
, MalformedSubjectAltName
,
NoMatch
} |
| | Errors of subjectAltName extraction and expected-identity verification. More...
|
| enum class | TLSRole { Server
, Client
} |
| | Certificate signing role in TLS 1.3 (RFC 8446 §4.4.2.2). More...
|
| enum class | DetachedSignatureAlgorithm { ECDSA_SHA384
} |
| | Supported algorithms and encodings for detached signatures. More...
|
| enum class | PurposeError {
UnsupportedRole
, InvalidCertificate
, MalformedExtendedKeyUsage
, ExtendedKeyUsageNotAllowed
,
MalformedKeyUsage
, KeyUsageNotAllowed
} |
| | Errors of narrowly scoped certificate-purpose checks. More...
|
| enum class | RevocationFormat { CRL
, OCSP
} |
| | Encoding of offline revocation evidence supplied by the caller. More...
|
| enum class | RevocationStatus { Good
, Revoked
, Unknown
} |
| | Authenticated status reported by a verified evidence object. More...
|
| enum class | RevocationError {
InvalidRequest
, MalformedEvidence
, UnsupportedFeature
, IssuerMismatch
,
CertificateMismatch
, InvalidSignature
, ResponderUnauthorized
, NotYetValid
,
Stale
, MissingNextUpdate
} |
| | Failures that prevent trusting revocation evidence. More...
|
| enum class | TLSPeerError {
UnsupportedRole
, MissingServerIdentity
, UnsupportedIdentity
, InvalidCertificate
,
InvalidTime
, LeafIsCA
, NotCA
, IssuerKeyUsageNotAllowed
,
PathLengthExceeded
, SignatureOrIssuerMismatch
, UnsupportedAlgorithm
, UnsupportedCriticalExtension
,
UnsupportedConstraint
, MalformedExtension
, Purpose
, Identity
} |
| | Failures of the constrained, offline TLS signing-certificate verifier. More...
|
| enum class | TrustPathError {
BundleInvalid
, InvalidRequest
, RootNotAdmitted
, PeerPathRejected
,
NativePolicyRejected
} |
| | Failures of path validation, never a full authentication verdict. More...
|
| enum class | PaymentPeerError {
TrustPathRejected
, RevocationUnavailable
, RevocationEvidenceRejected
, CertificateRevoked
,
RevocationUnknown
} |
| | Fail-closed payment peer failures. More...
|
|
| Safe::Optional< Certificate > | Load (std::span< const std::byte > data) noexcept |
| | Loads one certificate from DER or PEM.
|
| Safe::Vector< Certificate > | LoadAll (std::span< const std::byte > data) noexcept |
| | Loads every CERTIFICATE block of a PEM bundle, in order.
|
| const char * | BundledTLSRootsRevision () noexcept |
| | Returns the immutable snapshot revision.
|
| const char * | BundledTLSRootsSHA256 () noexcept |
| | Returns the embedded PEM integrity fingerprint.
|
| ExpectedBundledTLSRoots | LoadBundledTLSRoots () |
| | Loads a verified copy of the versioned, curated Mozilla server roots.
|
| ExpectedTrustPath | ValidateBundledTLSPath (const Certificate &leaf, std::span< const Certificate > intermediates, TimePoint at, const SubjectAltName &identity) |
| | Validates only a server trust path and SAN identity against bundled admission.
|
| ExpectedTrustPath | ValidateCustomCATLSPath (const Certificate &leaf, std::span< const Certificate > intermediates, const Certificate &anchor, TimePoint at, const SubjectAltName &identity) |
| | Validates a separate, explicitly opted-in custom-CA server path.
|
| ExpectedPaymentPeer | VerifyPaymentPeer (const Certificate &leaf, std::span< const Certificate > intermediates, const Certificate &anchor, TimePoint at, const SubjectAltName &identity, std::span< const RevocationEvidence > evidence) |
| | Validates the bundled path and all non-anchor certificates' revocation status.
|
X.509 certificate parsing and chain verification.
X.509 certificate parsing and verification.