Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.DSI.PkixCert

Feature notes: PKIX / CMS implementation notes

Classes, interfaces and records

classeDSIPkixPublicKey

inherits from eDSIPkix

A public key cannot be encoded into, or read out of, a subjectPublicKeyInfo: it implements no key interface this unit knows, its Params name no encodable group, or its Scheme / SignEncoding disagrees with the selected algorithm identifier. Part of the PKIX branch of the DSI exception hierarchy (eDSIPkix, StreamSec.DSI.PkixSigned).

(no public members)

interfaceiEncapsulatedPublicKey

(no public members)

interfaceiTime

(no public members)

interfaceiPKAlgorithmID

(no public members)

interfaceiDssParams

inherits from iASN1CustomStruct

Read-only decode view of the DSA/Nyberg-Rueppel domain parameters (RFC 3279 Dss-Parms) carried in the parameters field of a certificate's subjectPublicKeyInfo AlgorithmIdentifier. An application reads this when inspecting a DSA (epDsa) or NR (epNr) certificate's group parameters; internally tSubjectPublicKeyInfo.get_ExtractDLPublicKey pulls p/q/g from here to rebuild the finite-field public key. For Diffie-Hellman keys the parameters are iDomainParameters instead (that variant adds the cofactor j and validation seed). These are the same values on both sides of any protocol - they describe the key in the certificate, not a session.

function get_g: iASN1Integer;
backing getter for the g property; apps read the property
function get_p: iASN1Integer;
backing getter for the p property; apps read the property
function get_q: iASN1Integer;
backing getter for the q property; apps read the property
property p: iASN1Integer read get_p;
prime modulus of the DSA/NR finite field
property q: iASN1Integer read get_q;
order of the prime-order subgroup
property g: iASN1Integer read get_g;
subgroup generator

classtDssParams

inherits from tASN1CustomStruct

implements iDssParams

property p: iASN1Integer read get_p; property q: iASN1Integer read get_q; property g: iASN1Integer read get_g;

interfaceiRSAKey

inherits from iASN1CustomStruct

Decode view of the RSAPublicKey structure (RFC 3447 / PKCS#1: a SEQUENCE of modulus and publicExponent) that is carried, DER-wrapped in a BIT STRING, as the subjectPublicKey of a certificate whose algorithm is any RSA variant (rsaEncryption, RSASSA-PSS, RSAES-OAEP, id-rw or the legacy id-ea-rsa). An application reaches one of these via iEncapsulatedPublicKey.AsRsaEncryption (and the sibling AsRsassaPss / AsRsaesOaep / AsRw / AsEaRsa accessors) when it wants to inspect the actual RSA public-key material of a certificate -- e.g. to report the key size or the exponent. The values describe the certified key and are therefore identical on the client and server side of any protocol.

function get_modulus: iASN1Integer;
Backing getters for the properties below; apps use the properties.
function get_publicExponent: iASN1Integer;
returns the RSA public exponent e; app reads the publicExponent property
property modulus: iASN1Integer read get_modulus;
the RSA modulus n as a big integer; its bit length is the nominal key size
property publicExponent: iASN1Integer read get_publicExponent;
the RSA public exponent e (commonly 65537)

classtRSAKey

inherits from tASN1CustomStruct

implements iUnknown, iRSAKey, iIFPublicKey

property modulus: iASN1Integer read get_modulus; property publicExponent: iASN1Integer read get_publicExponent;

interfaceiValidationParms

inherits from iASN1CustomStruct

Read-only decode view of the ValidationParms (RFC 3279 / ANSI X9.42) optionally carried inside a Diffie-Hellman DomainParameters block (reached via iDomainParameters.validationParms). It records the seed and counter used to generate the p/q parameters verifiably (per the FIPS 186 procedure), so a relying party can re-run the generation and confirm the group was not chosen with a hidden trapdoor. An application only reads this when auditing a DH key's group; it is absent (the owning validationParms is nil) for most keys. These values describe the certified key, so they are identical on both sides of any protocol.

function get_pgenCounter: iASN1Integer;
backing getter for pgenCounter
function get_seed: iASN1Base;
backing getter for seed
property seed: iASN1Base read get_seed;
the BIT STRING seed fed to the parameter-generation function
property pgenCounter: iASN1Integer read get_pgenCounter;
iteration count the generator returned for that seed

classtValidationParms

inherits from tASN1CustomStruct

implements iValidationParms

property seed: iASN1Base read get_seed; property pgenCounter: iASN1Integer read get_pgenCounter;

interfaceiDomainParameters

inherits from iASN1CustomStruct

Read-only decode view of the Diffie-Hellman DomainParameters (RFC 3279 / ANSI X9.42) carried in the parameters field of a certificate's subjectPublicKeyInfo AlgorithmIdentifier for a dhpublicnumber (epDhPublicNumber) key. An application reads this when inspecting the DH group of such a certificate; internally tSubjectPublicKeyInfo.get_ExtractDLPublicKey pulls p/q/g/j from here to rebuild the finite-field public key. Compared with iDssParams (used for DSA/NR keys) this variant also exposes the cofactor j and the optional validationParms seed. These values describe the certified key, so they are identical on both sides of any protocol.

function get_g: iASN1Integer;
backing getter for the g property; apps read the property
function get_j: iASN1Integer;
backing getter for the j property; apps read the property
function get_p: iASN1Integer;
backing getter for the p property; apps read the property
function get_q: iASN1Integer;
backing getter for the q property; apps read the property
function get_validationParms: iValidationParms;
backing getter for the validationParms property; apps read the property
property p: iASN1Integer read get_p;
prime modulus of the DH finite field
property g: iASN1Integer read get_g;
generator of the DH subgroup
property q: iASN1Integer read get_q;
order of the prime-order subgroup
property j: iASN1Integer read get_j;
cofactor: (p-1)/q, absent for plain DSA parameters
property validationParms: iValidationParms read get_validationParms;
optional seed/counter proving the parameters were generated verifiably; nil when omitted

classtDomainParameters

inherits from tASN1CustomStruct

implements iDomainParameters

property p: iASN1Integer read get_p; property g: iASN1Integer read get_g; property q: iASN1Integer read get_q; property j: iASN1Integer read get_j; property validationParms: iValidationParms read get_validationParms;

interfaceiPKAlgorithmIdentifier

inherits from iASN1CustomStruct

Decode/edit view of the AlgorithmIdentifier that names the public-key algorithm in a certificate's subjectPublicKeyInfo (RFC 5280 sec. 4.1). It pairs an algorithm OID with the algorithm-specific parameters. An application reaches one of these via iSubjectPublicKeyInfo.algorithm when it needs to know which key type a certificate carries (RSA, DSA, EC, DH, an EdDSA/ML-DSA/ML-KEM variant, etc.) and to read the matching parameters through the parameters property below. It describes the certified key, so it is the same on both sides of any protocol; the writable algorithm setter is used only when building/encoding a new certificate, not when merely inspecting one.

function get_algorithm: ObjectIdentifier;
Backing getters and setter for the properties below; apps use the properties (set_algorithm only when building/encoding a certificate).
function get_parameters: iPKAlgorithmID;
the raw AlgorithmIdentifier parameters field as a CHOICE; app code reads the typed As* properties instead
procedure set_algorithm(const aValue: ObjectIdentifier);
internal setter for the algorithm OID; assign the algorithm property instead
property algorithm: ObjectIdentifier read get_algorithm write set_algorithm;
the public-key algorithm OID (e.g. rsaEncryption, id-ecPublicKey); the setter is for cert construction only
property parameters: iPKAlgorithmID read get_parameters;
the algorithm-specific parameters as a CHOICE keyed by the algorithm OID (DSS params, EC named curve, DH domain, etc.); nil/absent for algorithms that take none

classtPKAlgorithmIdentifier

inherits from tASN1CustomStruct

implements iPKAlgorithmIdentifier

property algorithm: ObjectIdentifier read get_algorithm write set_algorithm; property parameters: iPKAlgorithmID read get_parameters;

interfaceiSubjectPublicKeyInfo

inherits from iASN1CustomStruct

Decode/edit view of the SubjectPublicKeyInfo (RFC 5280 4.1.2.7): the algorithm identifier paired with the encapsulated public-key bits that a certificate binds to its subject. An application reaches one via iCertificate.subjectPublicKeyInfo (or iTBSCertificate) to inspect a parsed certificate's key -- read algorithm to learn the key type and subjectPublicKey to read the key material -- or constructs one when building a certificate by calling the matching ImposeXxxPublicKey method, which fills in both the algorithm OID/parameters and the subjectPublicKey bits from a key object. The ImposeXxx methods are used by certificate generation (see StreamSec.DSI.PkixCertGenerator); the read side is used by parsing and path validation. The contents describe the certified key, so they are the same on both sides of any protocol.

function get_algorithm: iPKAlgorithmIdentifier;
Backing getters for the algorithm/subjectPublicKey properties below; apps use the properties.
function get_subjectPublicKey: iEncapsulatedPublicKey;
raw subjectPublicKey BIT STRING accessor; app reads the subjectPublicKey property or the typed key
procedure ImposeDSSPublicKey(const aPubl: iDLKey);
Fill this SPKI from a DSA/ECDSA-family public key: sets the algorithm to id-dsa (or, for an EdDSA key, id-Ed25519/id-Ed448) and encodes the public value.
procedure ImposeECPublicKey(const aPubl: iDLKey);
Fill this SPKI from an elliptic-curve signing key: aliases ImposeDSSPublicKey, producing an id-ecPublicKey SPKI carrying the named curve and EC point.
procedure ImposeDHPublicKey(const aPubl: iDLKey);
Fill this SPKI from a Diffie-Hellman key-agreement key: sets dhpublicnumber (or, for X25519/X448 curves, id-X25519/id-X448) with the domain parameters and public value.
procedure ImposeECDHPublicKey(const aPubl: iDLKey);
Fill this SPKI from an EC/X25519/X448 key-agreement key: aliases ImposeDHPublicKey.
procedure ImposeRSAPublicKey(const aPubl : iIFKey; aUseAlgorithm: tUseAlgorithm = uaDefault);
Fill this SPKI from an RSA public key; aUseAlgorithm selects whether the OID is taken as plain rsaEncryption (uaDefault), from the already-set algorithm (uaTargetSpecified), or from the source key's scheme (uaSourceSpecified).
procedure ImposeMLKEMPublicKey(const aPubl: iMLKEMKey);
Fill this SPKI from an ML-KEM (FIPS 203) encapsulation key; sets the id-ml-kem-512/768/1024 OID per the key size and the raw key BIT STRING.
procedure ImposeMLDSAPublicKey(const aPubl: iMLDSAKey);
Fill this SPKI from an ML-DSA (FIPS 204) signing key; sets the id-ml-dsa-44/65/87 OID per the key size and the raw key BIT STRING.
procedure ImposeSLHDSAPublicKey(const aPubl: iSLHDSAKey);
Fill this SPKI from an SLH-DSA (FIPS 205) signing key.
procedure ImposeCompositeMLDSAPublicKey(const aPubl: iUnknown);
Fill this SPKI from a composite ML-DSA (hybrid ML-DSA plus classical) signing key.
procedure ImposeCompositeMLKEMPublicKey(const aPubl: iUnknown);
Fill this SPKI from a composite ML-KEM (hybrid ML-KEM plus classical) encapsulation key.
property algorithm: iPKAlgorithmIdentifier read get_algorithm;
the AlgorithmIdentifier naming the key type and its parameters; read to dispatch on key algorithm
property subjectPublicKey: iEncapsulatedPublicKey read get_subjectPublicKey;
the encapsulated public-key bits; read the matching AsXxx accessor after checking algorithm/Choice

classtSubjectPublicKeyInfo

procedure ImposeDSSPublicKey(const aPubl: iDLKey); procedure ImposeECPublicKey(const aPubl: iDLKey); procedure ImposeDHPublicKey(const aPubl: iDLKey); procedure ImposeECDHPublicKey(const aPubl: iDLKey); procedure ImposeRSAPublicKey(const aPubl : iIFKey; aUseAlgorithm: tUseAlgorithm = uaDefault); procedure ImposeMLKEMPublicKey(const aPubl: iMLKEMKey); procedure ImposeMLDSAPublicKey(const aPubl: iMLDSAKey); procedure ImposeSLHDSAPublicKey(const aPubl: iSLHDSAKey); procedure ImposeCompositeMLDSAPublicKey(const aPubl: iUnknown); procedure ImposeCompositeMLKEMPublicKey(const aPubl: iUnknown); destructor Destroy; override; procedure AfterConstruction; override; property algorithm: iPKAlgorithmIdentifier read get_algorithm; property subjectPublicKey: iEncapsulatedPublicKey read get_subjectPublicKey;

interfaceiValidity

inherits from iASN1CustomStruct

Decode view of the certificate Validity window (RFC 5280 4.1.2.5): the notBefore/notAfter bounds the CA signed. An application reaches one via iTBSCertificate.validity to read or (when building a cert) fill the two times, and calls the CheckValidity methods to test whether a moment falls inside the window. This field describes the certificate itself, so it is the same on both sides of any protocol.

function get_notAfter: iTime;
backing getter for notAfter
function get_notBefore: iTime;
backing getter for notBefore
function CheckValidity(const aHoursOffsetFromGMT: Double): Boolean; overload;
True when Now (shifted back by aHoursOffsetFromGMT to reach UTC) lies strictly between notBefore and notAfter. Use when the caller knows its own offset from GMT; asserts if abs(offset) >= 24.
function CheckValidity: Boolean; overload;
True when the current UTC time lies strictly between notBefore and notAfter; derives UTC from the local time zone automatically.
function CheckValidityEx(const aTimeToCheck : TDateTime; const aHoursOffsetFromGMT: Double = 0) : Boolean;
True when aTimeToCheck (shifted back by aHoursOffsetFromGMT to UTC) lies within the window, using inclusive bounds. Use to test the validity of the cert at an arbitrary instant, e.g. the signing time of a document.
property notBefore: iTime read get_notBefore;
start of the validity window
property notAfter: iTime read get_notAfter;
end of the validity window

classtValidity

inherits from tASN1CustomStruct

implements iValidity

function CheckValidity(const aHoursOffsetFromGMT: Double): Boolean; overload; function CheckValidity: Boolean; overload; function CheckValidityEx(const aTimeToCheck : TDateTime; const aHoursOffsetFromGMT: Double = 0) : Boolean; property notBefore: iTime read get_notBefore; property notAfter: iTime read get_notAfter;

interfaceiTBSCertificate

inherits from iASN1CustomStruct

Decode/edit view of the to-be-signed body (TBSCertificate, RFC 5280 4.1.2) of an X.509 certificate: every field the CA signs -- version, serial number, signature-algorithm identifier, issuer/subject Distinguished Names, validity window, subjectPublicKeyInfo, the optional issuer/subject unique IDs, and the extensions. An application reaches one via iCertificate.tbsCertificate to read the fields of a parsed certificate; the writable members (version) and the Impose*/edit methods on the sub-objects are exercised only when building a new certificate. These fields describe the certificate itself, so they are the same on both sides of any protocol.

function get_extensions: iExtensions;
Backing getters for the properties below; apps use the properties.
function get_issuer: iName;
the issuer field (signing CA's Distinguished Name); app reads the issuer property
function get_issuerUniqueId: iASN1Base;
the optional issuerUniqueID field (v2 and later); app reads the issuerUniqueId property
function get_serialNumber: iASN1Integer;
the serialNumber field (INTEGER, unique per issuer); app reads the serialNumber property
function get_signature: iSignatureAlgorithmIdentifier;
the inner signature algorithm-identifier field; app reads the signature property
function get_subject: iName;
the subject field (subject's Distinguished Name); app reads the subject property
function get_subjectPublicKeyInfo: iSubjectPublicKeyInfo;
the subjectPublicKeyInfo field (algorithm plus encapsulated key bits); app reads the subjectPublicKeyInfo property
function get_subjectUniqueId: iASN1Base;
the optional subjectUniqueID field (v2 and later); app reads the subjectUniqueId property
function get_validity: iValidity;
the validity field (notBefore/notAfter window); app reads the validity property
function get_version: tVersion;
the version field as the V1/V2/V3 enum; app reads the version property
function get_versionAsInteger: Integer;
the version field as its raw integer (0/1/2); app reads the versionAsInteger property
procedure set_version(const aValue: tVersion);
Backing setters for version/versionAsInteger; used only when constructing a certificate.
procedure set_versionAsInteger(const aValue: Integer);
internal setter for the version field via its integer form; assign the versionAsInteger property instead
property version: tVersion read get_version write set_version;
The X.509 format version as the enum V1/V2/V3 (ordinals 0/1/2). Read to tell a v3 certificate (which may carry extensions) from an older one; set only when building a certificate.
property versionAsInteger: Integer read get_versionAsInteger write set_versionAsInteger;
The same version field as its raw integer (0 for v1, 1 for v2, 2 for v3); use in place of the enum when a numeric form is more convenient.
property serialNumber: iASN1Integer read get_serialNumber;
The certificate serial number as an ASN.1 INTEGER (may be large; treat as an opaque identifier unique per issuer). Read to identify a certificate or to match it in a CRL/OCSP query.
property signature: iSignatureAlgorithmIdentifier read get_signature;
The signature-algorithm identifier the CA declared inside the signed body; per RFC 5280 it must equal the outer signatureAlgorithm of the enclosing certificate.
property issuer: iName read get_issuer;
The issuer Distinguished Name (the signing CA's subject name). Compare it against a candidate CA's subject when building or checking a chain.
property validity: iValidity read get_validity;
The notBefore/notAfter validity window; read its times or call its CheckValidity to test whether the certificate is currently in date.
property subject: iName read get_subject;
The subject Distinguished Name (whom the certificate is issued to).
property subjectPublicKeyInfo: iSubjectPublicKeyInfo read get_subjectPublicKeyInfo;
The subject's public-key info (algorithm identifier plus encapsulated key bits). This is where an app reads the certified public key.
property issuerUniqueId: iASN1Base read get_issuerUniqueId;
The optional issuerUniqueID field (v2+); usually absent. Present as the raw ASN.1 base value for the rare certificate that carries one.
property subjectUniqueId: iASN1Base read get_subjectUniqueId;
The optional subjectUniqueID field (v2+); usually absent, exposed as the raw ASN.1 base value.
property extensions: iExtensions read get_extensions;
The v3 extensions collection (basicConstraints, keyUsage, subjectAltName, authority/subjectKeyIdentifier, etc.). Enumerate it to inspect a certificate's extensions; empty for a v1 certificate.

classtTBSCertificate

inherits from tASN1CustomStruct

implements iTBSCertificate

property version: tVersion read get_version write set_version; property versionAsInteger: Integer read get_versionAsInteger write set_versionAsInteger; property serialNumber: iASN1Integer read get_serialNumber; property signature: iSignatureAlgorithmIdentifier read get_signature; property issuer: iName read get_issuer; property validity: iValidity read get_validity; property subject: iName read get_subject; property subjectPublicKeyInfo: iSubjectPublicKeyInfo read get_subjectPublicKeyInfo; property issuerUniqueId: iASN1Base read get_issuerUniqueId; property subjectUniqueId: iASN1Base read get_subjectUniqueId; property extensions: iExtensions read get_extensions;

interfaceiCertificate

inherits from iSigned

function get_tbsCertificate: iTBSCertificate;
Backing getter for the tbsCertificate property; apps use the property.
function get_PublicKeyIdentifier: OctetString;
Backing getter for the PublicKeyIdentifier property; apps use the property.
function get_subjectPublicKeyInfo: iSubjectPublicKeyInfo;
Backing getter for the subjectPublicKeyInfo property; apps use the property.
function CheckCriticalExtensions: Boolean;
Returns True only if every extension the certificate marks critical is one this library actually understands; a False result means the certificate must be rejected per RFC 5280 (an app rarely calls this directly - path validation does - but it is useful when hand-rolling acceptance policy).
function CheckDNSName(const aDNSName: string): Boolean;
True if aDNSName matches a dNSName in the subjectAltName extension (or, as a fallback, a CommonName), honouring a leading wildcard label. Use this when verifying that a peer's server certificate is valid for the host you actually connected to - typically the CLIENT side of a TLS handshake checking the server's identity.
function CheckIP(const aIP: string): Boolean;
True if aIP (dotted IPv4 or colon IPv6 text) matches an iPAddress entry in the subjectAltName extension. Use when the peer was reached by IP literal rather than hostname; like CheckDNSName this is a client-side identity check.
function CheckURI(const aURI: string): Boolean;
True if aURI matches a uniformResourceIdentifier subjectAltName (or a CommonName fallback). Used to verify a certificate was issued for a given service URI, e.g. in non-TLS PKI scenarios.
function CheckValidity(const aHoursOffsetFromGMT: Double): Boolean; overload;
Validity-period check against the current time shifted by aHoursOffsetFromGMT; use the offset overload when validating against a clock in a specific timezone rather than the local machine's GMT offset.
function CheckValidity: Boolean; overload;
True if 'now' falls within the certificate's notBefore/notAfter window; call before trusting any certificate to reject expired or not-yet-valid ones.
function ExtractIssuerKeyIdentifier: OctetString;
Returns the keyIdentifier from this certificate's authorityKeyIdentifier extension (empty if absent). Apps use it to locate the issuing CA certificate when building a chain.
function ExtractSubjectPublicKeySize: Integer;
Returns the subject public key strength in bits, mapping EC curve sizes to an equivalent RSA modulus length. Use to enforce a minimum-strength policy on certificates you accept.
function GetKeyUsage: tKeyUsage;
Returns the keyUsage bit set (falling back to primaryKeyUsageRestriction, and, if neither extension is present, to the full set - all uses permitted). Consult this before using a certificate for a given operation, e.g. that a TLS server cert permits digitalSignature/keyEncipherment.
function GetNetscapeKeyUsage: tNetscapeKeyUsage;
Returns the (legacy Netscape) certificate-type usage set; if the extension is absent it returns the full set (all uses permitted). Rarely needed except for interop with very old CAs.
function CheckExtKeyUsage(const aAlg: ObjectIdentifier): Boolean;
True if aAlg (an extended-key-usage OID such as id-kp-serverAuth) is listed in the extKeyUsage extension, OR the extension is absent (unconstrained). Use to confirm a certificate is authorised for a specific purpose, e.g. that a peer's cert really is a TLS server or client certificate.
function IsAllegedIssuer(const aCACert: iCertificate): Boolean;
True if aCACert looks like this certificate's issuer - matches authorityKeyIdentifier/issuer-name (and serial) against aCACert's subject key and name. This is a cheap name/key screen used while building a chain; it does NOT verify the signature (use the Verify machinery for that).
function IsCA: Boolean;
True if this certificate is a CA: it must have the keyCertSign key usage, and if a basicConstraints extension is present its cA flag must be True (a cert with keyCertSign and no basicConstraints still qualifies). Use when deciding whether a certificate may sit above others in a chain rather than only as an end-entity leaf.
function SameCert(const aCert: iCertificate): Boolean;
True when aCert is the SAME certificate as this one, compared by CONTENT (the DER of the whole structure), NOT by iCertificate instance identity - the same certificate may be held as different interface instances (e.g. one from a store's FindCert and one from ExportChainToTLS), so interface '=' is unsafe.
property tbsCertificate: iTBSCertificate read get_tbsCertificate;
The decoded to-be-signed body of the certificate (version, serial, issuer, validity, subject, subjectAltName and other extensions). This is the entry point apps use to read every field a certificate carries.
property PublicKeyIdentifier: OctetString read get_PublicKeyIdentifier;
The subject-key identifier: the subjectKeyIdentifier extension value if present, otherwise a hash computed from the public key. Apps use it as a stable key for matching a certificate to its issuer or to a stored private key.
property subjectPublicKeyInfo: iSubjectPublicKeyInfo read get_subjectPublicKeyInfo;
The subject's public-key info (algorithm plus encapsulated key). Use to inspect or extract the public key you will verify signatures with or encrypt to.

classtCertificate

class procedure SetVerifyValidityPeriodMismatch(aValue: tVerifyValidityPeriodMode);
Selects the issuer-enclosure strictness of the chain validity check for ALL certificates: vvpmFull (default, strict enclosure), vvpmNotBefore (notBefore only) or vvpmRelaxed (no enclosure - RFC 5280 verification-time validity only). See tVerifyValidityPeriodMode.
destructor Destroy; override; procedure AfterConstruction; override; function CheckCriticalExtensions: Boolean; function CheckDNSName(const aDNSName: string): Boolean; function CheckIP(const aIP: string): Boolean; function CheckURI(const aURI: string): Boolean; function CheckValidity(const aHoursOffsetFromGMT: Double): Boolean; overload;
Returns the CheckValidity value, obtained via tbsCertificate.validity.
function CheckValidity: Boolean; overload;
Returns the CheckValidity value, obtained via tbsCertificate.validity.
function ExtractIssuerKeyIdentifier: OctetString; function ExtractSubjectPublicKeySize: Integer; function GetKeyUsage: tKeyUsage; function GetNetscapeKeyUsage: tNetscapeKeyUsage; function CheckExtKeyUsage(const aAlg: ObjectIdentifier): Boolean; function IsAllegedIssuer(const aCACert: iCertificate): Boolean; function IsCA: Boolean; function SameCert(const aCert: iCertificate): Boolean; property tbsCertificate: iTBSCertificate read get_tbsCertificate; property PublicKeyIdentifier: OctetString read get_PublicKeyIdentifier; property subjectPublicKeyInfo: iSubjectPublicKeyInfo read get_subjectPublicKeyInfo;

interfaceiEncapsulatedPublicKey

inherits from iASN1CustomInstance

function get_AsDhpublicnumber: iASN1Integer;
iEncapsulatedPublicKey is the ASN.1 CHOICE that holds the actual public-key bits inside a certificate's subjectPublicKeyInfo (see iSubjectPublicKeyInfo. Full description »
function get_AsDsa: iASN1Integer;
DSA (id-dsa) alternative; returns the public value y as an INTEGER.
function get_AsEaRsa: iRSAKey;
legacy X.500 id-ea-rsa alternative; returns the RSA modulus/exponent pair.
function get_AsEcnr: iASN1Base;
EC Nyberg-Rueppel alternative; returns the raw EC point BIT STRING.
function get_AsEcPublicKey: iASN1Base;
the common id-ecPublicKey alternative (used by all NIST/Brainpool ECDSA/ECDH certs); returns the raw EC point.
function get_AsNr: iASN1Integer;
discrete-log Nyberg-Rueppel alternative; returns the public value as an INTEGER.
function get_AsRsaEncryption: iRSAKey;
the common rsaEncryption alternative; returns the RSA key so an app can read modulus/publicExponent.
function get_AsRsaesOaep: iRSAKey;
RSAES-OAEP-restricted RSA key alternative; same RSA key shape as rsaEncryption.
function get_AsRsassaPss: iRSAKey;
RSASSA-PSS-restricted RSA key alternative; same RSA key shape as rsaEncryption.
function get_AsRw: iRSAKey;
Rabin-Williams (id-rw) alternative; returns an RSA-shaped key.
function get_AsMLKEM512: iASN1Base;
post-quantum ML-KEM-512 KEM key; returns the raw encapsulation-key BIT STRING.
function get_AsMLKEM768: iASN1Base;
post-quantum ML-KEM-768 KEM key; raw encapsulation-key BIT STRING.
function get_AsMLKEM1024: iASN1Base;
post-quantum ML-KEM-1024 KEM key; raw encapsulation-key BIT STRING.
function get_AsMLDSA44: iASN1Base;
post-quantum ML-DSA-44 signature key; raw public-key BIT STRING.
function get_AsMLDSA65: iASN1Base;
post-quantum ML-DSA-65 signature key; raw public-key BIT STRING.
function get_AsMLDSA87: iASN1Base;
post-quantum ML-DSA-87 signature key; raw public-key BIT STRING.
function get_AsEcdh: iASN1Base;
id-ecDH key-agreement alternative; note it shares the raw EC point accessor with AsEcPublicKey.
function get_AsEcmqv: iASN1Base;
id-ecMQV key-agreement alternative; likewise shares the raw EC point accessor.
function get_AsX25519: iASN1Base;
X25519 ECDH key-agreement key; raw 32-byte public value.
function get_AsX448: iASN1Base;
X448 ECDH key-agreement key; raw 56-byte public value.
function get_AsEd25519: iASN1Base;
Ed25519 (EdDSA) signature key; raw public-key BIT STRING.
function get_AsEd448: iASN1Base;
Ed448 (EdDSA) signature key; raw public-key BIT STRING.
function AsCompositeMLDSA(aAlg: tCompositeMLDSAAlg): iASN1Base;
generic accessor for the 16 composite ML-DSA choices (raw key BIT STRING). Use this instead of a per-variant property when handling a hybrid ML-DSA+classical signature key whose exact variant is known only at runtime; passing cmaUndefined raises.
function AsSLHDSA(aAlg: tSLHDSAAlg): iASN1Base;
generic accessor for the SLH-DSA (FIPS 205) alternatives; selects the CHOICE for the given hash/parameter set and returns the raw key. Passing slhAuto raises.
function AsCompositeMLKEM(aAlg: tCompositeMLKEMAlg): iASN1Base;
generic accessor for the composite ML-KEM alternatives (hybrid ML-KEM+classical KEM keys); selects the CHOICE for aAlg. Passing cmkUndefined raises.
function get_Choice: tEncapsulatedPublicKeyEnum;
reports which CHOICE alternative is currently active (epUndefined until one is selected); an app switches on this after parsing to decide which AsXxx to read.
procedure set_Choice(const aValue: tEncapsulatedPublicKeyEnum);
selects a CHOICE alternative by enum without reading its key; the setter behind the Choice property, useful when hand-building a subjectPublicKeyInfo.
property Choice: tEncapsulatedPublicKeyEnum read get_Choice write set_Choice;
active CHOICE alternative; read it after parsing to dispatch on key type, or assign it while assembling a certificate to pre-select the alternative.
property AsRsaEncryption: iRSAKey read get_AsRsaEncryption;
read to obtain the RSA key (modulus/publicExponent) of an rsaEncryption cert; reading also selects this alternative.
property AsDhpublicnumber: iASN1Integer read get_AsDhpublicnumber;
Diffie-Hellman public value y for a dhpublicnumber cert.
property AsDsa: iASN1Integer read get_AsDsa;
DSA public value y for an id-dsa cert.
property AsEcPublicKey: iASN1Base read get_AsEcPublicKey;
raw EC point for the common id-ecPublicKey cert (ECDSA/ECDH over a named curve).
property AsRsassaPss: iRSAKey read get_AsRsassaPss;
RSA key of an RSASSA-PSS-restricted cert (same key shape as AsRsaEncryption).
property AsRsaesOaep: iRSAKey read get_AsRsaesOaep;
RSA key of an RSAES-OAEP-restricted cert.
property AsRw: iRSAKey read get_AsRw;
RSA-shaped key of a Rabin-Williams (id-rw) cert.
property AsNr: iASN1Integer read get_AsNr;
discrete-log Nyberg-Rueppel public value.
property AsEcnr: iASN1Base read get_AsEcnr;
raw EC point of an EC Nyberg-Rueppel (id-ecnr) cert.
property AsEaRsa: iRSAKey read get_AsEaRsa;
RSA key of a legacy X.500 id-ea-rsa cert.
property AsMLKEM512: iASN1Base read get_AsMLKEM512;
post-quantum ML-KEM-512 encapsulation key (raw BIT STRING).
property AsMLKEM768: iASN1Base read get_AsMLKEM768;
post-quantum ML-KEM-768 encapsulation key.
property AsMLKEM1024: iASN1Base read get_AsMLKEM1024;
post-quantum ML-KEM-1024 encapsulation key.
property AsMLDSA44: iASN1Base read get_AsMLDSA44;
post-quantum ML-DSA-44 signature public key.
property AsMLDSA65: iASN1Base read get_AsMLDSA65;
post-quantum ML-DSA-65 signature public key.
property AsMLDSA87: iASN1Base read get_AsMLDSA87;
post-quantum ML-DSA-87 signature public key.
property AsEcdh: iASN1Base read get_AsEcPublicKey;
id-ecDH key-agreement key; aliases the same raw EC point accessor as AsEcPublicKey.
property AsEcmqv: iASN1Base read get_AsEcPublicKey;
id-ecMQV key-agreement key; also aliases the raw EC point accessor.
property AsX25519: iASN1Base read get_AsX25519;
X25519 ECDH public value.
property AsX448: iASN1Base read get_AsX448;
X448 ECDH public value.
property AsEd25519: iASN1Base read get_AsEd25519;
Ed25519 EdDSA signature public key.
property AsEd448: iASN1Base read get_AsEd448;
Ed448 EdDSA signature public key.

classtEncapsulatedPublicKey

property Choice: tEncapsulatedPublicKeyEnum read get_Choice write set_Choice; property AsRsaEncryption: iRSAKey read get_AsRsaEncryption implements iRSAKey; property AsDhpublicnumber: iASN1Integer read get_AsDhpublicnumber implements iASN1Integer; property AsDsa: iASN1Integer read get_AsDsa; property AsEcPublicKey: iASN1Base read get_AsEcPublicKey; property AsRsassaPss: iRSAKey read get_AsRsassaPss; property AsRsaesOaep: iRSAKey read get_AsRsaesOaep; property AsRw: iRSAKey read get_AsRw; property AsNr: iASN1Integer read get_AsNr; property AsEcnr: iASN1Base read get_AsEcnr; property AsEaRsa: iRSAKey read get_AsEaRsa; property AsMLKEM512: iASN1Base read get_AsMLKEM512; property AsMLKEM768: iASN1Base read get_AsMLKEM768; property AsMLKEM1024: iASN1Base read get_AsMLKEM1024; property AsMLDSA44: iASN1Base read get_AsMLDSA44; property AsMLDSA65: iASN1Base read get_AsMLDSA65; property AsMLDSA87: iASN1Base read get_AsMLDSA87; property AsX25519: iASN1Base read get_AsX25519; property AsX448: iASN1Base read get_AsX448; property AsEd25519: iASN1Base read get_AsEd25519; property AsEd448: iASN1Base read get_AsEd448;

classtPublicKeyInformationObject

inherits from tASN1InformationObject

procedure SetField(const aName: string; aField: iASN1Base); override; function GetField(const aName: string): iASN1Base; override; function GetFieldClass(const aField: iASN1Base): tASN1StructClass; override; procedure Update(const aField: iASN1Base); override;

interfaceiTime

inherits from iASN1CustomChoice

Decode/edit view of the ASN.1 Time CHOICE (RFC 5280 4.1.2.5) that carries a single instant as either a UTCTime (2-digit year) or a GeneralizedTime (4-digit year). It is reached via iValidity.notBefore/notAfter. An application normally just reads AsDateTime to get the instant regardless of encoding, or assigns AsDateTime when building a cert and lets the setter pick the RFC-mandated encoding by year. The AsUtcTime/AsGeneralTime members force one specific encoding.

function get_AsGeneralTime: tDateTime;
backing getter; also selects the GeneralizedTime arm
function get_AsUtcTime: tDateTime;
backing getter; also selects the UTCTime arm
function get_AsDateTime: tDateTime;
backing getter for AsDateTime
function get_Choice: tTimeEnum;
backing getter for Choice
procedure set_AsDateTime(const Value: tDateTime);
backing setter for AsDateTime
procedure set_AsGeneralTime(const aValue: tDateTime);
backing setter for AsGeneralTime
procedure set_AsUtcTime(const aValue: tDateTime);
backing setter for AsUtcTime
procedure set_Choice(const aValue: tTimeEnum);
backing setter for Choice; tUndefined is ignored
property Choice: tTimeEnum read get_Choice write set_Choice;
Which arm is active: tUtcTime or tGeneralTime (tUndefined before either is selected). Reading any As* member below selects the corresponding arm.
property AsUtcTime: tDateTime read get_AsUtcTime write set_AsUtcTime;
The instant as a UTCTime (2-digit year, RFC 5280 range 1950-2049). Reading or writing selects the UTCTime arm.
property AsGeneralTime: tDateTime read get_AsGeneralTime write set_AsGeneralTime;
The instant as a GeneralizedTime (4-digit year, used for 2050 and later). Reading or writing selects the GeneralizedTime arm.
property AsDateTime: tDateTime read get_AsDateTime write set_AsDateTime;
Read the instant from whichever arm is currently active. Writing picks the encoding per RFC 5280: UTCTime for years before 2050, GeneralizedTime for 2050 and later.

classtTime

inherits from tASN1CustomChoice

implements iTime

property Choice: tTimeEnum read get_Choice write set_Choice; property AsUtcTime: tDateTime read get_AsUtcTime write set_AsUtcTime; property AsGeneralTime: tDateTime read get_AsGeneralTime write set_AsGeneralTime; property AsDateTime: tDateTime read get_AsDateTime write set_AsDateTime;

interfaceiPKAlgorithmID

inherits from iASN1CustomInstance

function get_AsDhpublicnumber: iDomainParameters;
Getters backing the properties below; each SelectChoice-es the matching CHOICE arm of the AlgorithmIdentifier.parameters field. Apps normally use the properties, not these getters directly.
function get_AsDsa: iDssParams;
id-dsa DSA domain parameters (p, q, g); reading selects this alternative.
function get_AsEaRsa: Integer;
Entrust id-ea-rsa key size in bits (INTEGER parameters); reading selects this alternative.
function get_AsEcnr: ObjectIdentifier;
id-ecnr EC Nyberg-Rueppel named-curve OID; reading selects this alternative.
function get_AsEcPublicKey: ObjectIdentifier;
id-ecPublicKey (ECDSA/ECDH) named-curve OID; reading selects this alternative.
function get_AsNr: iDssParams;
id-nr Nyberg-Rueppel DL domain parameters; reading selects this alternative.
function get_AsRsaEncryption: iASN1Base;
rsaEncryption empty/NULL parameters (plain RSA); reading selects this alternative.
function get_AsRsaesOaep: iRSAESOAEPParams;
id-RSAES-OAEP parameters (hash/MGF/label); reading selects this alternative.
function get_AsRsassaPss: iRSASSAPSSParams;
id-RSASSA-PSS parameters (hash/MGF/salt length); reading selects this alternative.
function get_AsRw: iRSASSAPSSParams;
Rabin-Williams id-rw parameters (PSS-parameters form); reading selects this alternative.
function get_AsMLKEM512: iASN1Base;
ML-KEM-512 (FIPS 203) KEM choice, empty parameters; reading selects this alternative.
function get_AsMLKEM768: iASN1Base;
ML-KEM-768 (FIPS 203) KEM choice, empty parameters; reading selects this alternative.
function get_AsMLKEM1024: iASN1Base;
ML-KEM-1024 (FIPS 203) KEM choice, empty parameters; reading selects this alternative.
function get_AsMLDSA44: iASN1Base;
ML-DSA-44 (FIPS 204) signature choice, empty parameters; reading selects this alternative.
function get_AsMLDSA65: iASN1Base;
ML-DSA-65 (FIPS 204) signature choice, empty parameters; reading selects this alternative.
function get_AsMLDSA87: iASN1Base;
ML-DSA-87 (FIPS 204) signature choice, empty parameters; reading selects this alternative.
function get_AsEcdh: ObjectIdentifier;
id-ecdh key-agreement named-curve OID; reading selects this alternative.
function get_AsEcmqv: ObjectIdentifier;
id-ecmqv key-agreement named-curve OID; reading selects this alternative.
function get_AsX25519: iASN1Base;
RFC 8410 X25519 key-agreement choice, no parameters; reading selects this alternative.
function get_AsX448: iASN1Base;
RFC 8410 X448 key-agreement choice, no parameters; reading selects this alternative.
function get_AsEd25519: iASN1Base;
RFC 8410 Ed25519 signature choice, no parameters; reading selects this alternative.
function get_AsEd448: iASN1Base;
RFC 8410 Ed448 signature choice, no parameters; reading selects this alternative.
function AsCompositeMLDSA(aAlg: tCompositeMLDSAAlg): iASN1Base;
generic accessor for the 16 composite ML-DSA choices (parameters absent). Pass the concrete tCompositeMLDSAAlg to select the CHOICE arm when hand- building or inspecting a composite public-key AlgorithmIdentifier; the parameters field itself is empty for these (identified solely by OID).
function AsSLHDSA(aAlg: tSLHDSAAlg): iASN1Base;
Same pattern as AsCompositeMLDSA, for the SLH-DSA (FIPS 205) choices; aAlg must not be slhAuto. Rarely called directly by applications.
function AsCompositeMLKEM(aAlg: tCompositeMLKEMAlg): iASN1Base;
Same pattern, for the composite ML-KEM choices; aAlg must not be cmkUndefined. Rarely called directly by applications.
function get_Choice: tPKAlgorithmIDEnum;
backs the Choice property
procedure set_AsEcnr(const aValue: ObjectIdentifier);
backs AsEcnr write
procedure set_AsEcPublicKey(const aValue: ObjectIdentifier);
backs AsEcPublicKey write (names the named-curve OID)
procedure set_AsEaRsa(const aValue: Integer);
backs AsEaRsa write
procedure set_Choice(const aValue: tPKAlgorithmIDEnum);
backs Choice write
procedure set_AsEcdh(const aValue: ObjectIdentifier);
backs AsEcdh write
procedure set_AsEcmqv(const aValue: ObjectIdentifier);
backs AsEcmqv write
property Choice: tPKAlgorithmIDEnum read get_Choice write set_Choice;
Which CHOICE arm of the algorithm-parameters is currently selected. Read it after decoding an SPKI to learn the public-key algorithm; set it (or read one of the As* properties, which selects for you) when building one.
property AsDhpublicnumber: iDomainParameters read get_AsDhpublicnumber;
DH domain parameters (p, g, q, ...) carried in the parameters field of a dhpublicnumber SubjectPublicKeyInfo; read when inspecting a DH key's group.
property AsRsaEncryption: iASN1Base read get_AsRsaEncryption;
The (empty/NULL) parameters of an rsaEncryption key; selecting it marks this AlgorithmIdentifier as plain RSA. Rarely accessed directly.
property AsDsa: iDssParams read get_AsDsa;
DSA (id-dsa) domain parameters (p, q, g) from the parameters field; read when examining a DSS public key's group.
property AsEcPublicKey: ObjectIdentifier read get_AsEcPublicKey write set_AsEcPublicKey;
Named-curve OID of an id-ecPublicKey (ECDSA/ECDH) key. Read to discover the curve of a decoded EC certificate; write to name the curve when building one.
property AsNr: iDssParams read get_AsNr;
Nyberg-Rueppel (id-nr) domain parameters; legacy DL-scheme, rarely used.
property AsRsaesOaep: iRSAESOAEPParams read get_AsRsaesOaep;
RSAES-OAEP parameters (hash/MGF/label) for an id-RSAES-OAEP key; read when an RSA key restricts itself to OAEP.
property AsRsassaPss: iRSASSAPSSParams read get_AsRsassaPss;
RSASSA-PSS parameters (hash/MGF/salt length) for an id-RSASSA-PSS key; read when an RSA key restricts itself to PSS signatures.
property AsRw: iRSASSAPSSParams read get_AsRw;
Rabin-Williams (id-rw) parameters, carried in the same PSS-parameters form. Legacy scheme, rarely used.
property AsEcnr: ObjectIdentifier read get_AsEcnr write set_AsEcnr;
Named-curve OID of an EC Nyberg-Rueppel (id-ecnr) key; read/write the curve. Legacy scheme, rarely used.
property AsEaRsa: Integer read get_AsEaRsa write set_AsEaRsa;
Key size (in bits) of an Entrust id-ea-rsa key, carried as an INTEGER in the parameters field. Legacy Entrust format, rarely used.
property AsMLKEM512: iASN1Base read get_AsMLKEM512;
ML-KEM (FIPS 203) key-encapsulation choices; the parameters field is empty (algorithm named by OID). Read to detect a post-quantum KEM public key.
property AsMLKEM768: iASN1Base read get_AsMLKEM768;
ML-KEM-768 (FIPS 203) key-encapsulation choice; parameters absent (named by OID). Reading selects this alternative.
property AsMLKEM1024: iASN1Base read get_AsMLKEM1024;
ML-KEM-1024 (FIPS 203) key-encapsulation choice; parameters absent (named by OID). Reading selects this alternative.
property AsMLDSA44: iASN1Base read get_AsMLDSA44;
ML-DSA (FIPS 204) signature choices; the parameters field is empty (algorithm named by OID). Read to detect a post-quantum signing public key.
property AsMLDSA65: iASN1Base read get_AsMLDSA65;
ML-DSA-65 (FIPS 204) signature choice; parameters absent (named by OID). Reading selects this alternative.
property AsMLDSA87: iASN1Base read get_AsMLDSA87;
ML-DSA-87 (FIPS 204) signature choice; parameters absent (named by OID). Reading selects this alternative.
property AsEcdh: ObjectIdentifier read get_AsEcdh write set_AsEcdh;
Named-curve OID for the id-ecdh key-agreement algorithm; read/write the curve.
property AsEcmqv: ObjectIdentifier read get_AsEcmqv write set_AsEcmqv;
Named-curve OID for the id-ecmqv key-agreement algorithm; read/write the curve.
property AsX25519: iASN1Base read get_AsX25519;
RFC 8410 X25519 / X448 key-agreement and Ed25519 / Ed448 signature choices; no parameters (named by OID). Read to detect these modern curve algorithms.
property AsX448: iASN1Base read get_AsX448;
RFC 8410 X448 key-agreement choice; no parameters (named by OID). Reading selects this alternative.
property AsEd25519: iASN1Base read get_AsEd25519;
RFC 8410 Ed25519 signature choice; no parameters (named by OID). Reading selects this alternative.
property AsEd448: iASN1Base read get_AsEd448;
RFC 8410 Ed448 signature choice; no parameters (named by OID). Reading selects this alternative.

classtPKAlgorithmID

property Choice: tPKAlgorithmIDEnum read get_Choice write set_Choice; property AsDhpublicnumber: iDomainParameters read get_AsDhpublicnumber implements iDomainParameters; property AsRsaEncryption: iASN1Base read get_AsRsaEncryption; property AsDsa: iDssParams read get_AsDsa implements iDssParams; property AsEcPublicKey: ObjectIdentifier read get_AsEcPublicKey write set_AsEcPublicKey; property AsNr: iDssParams read get_AsNr; property AsRsaesOaep: iRSAESOAEPParams read get_AsRsaesOaep implements iRSAESOAEPParams; property AsRsassaPss: iRSASSAPSSParams read get_AsRsassaPss implements iRSASSAPSSParams; property AsRw: iRSASSAPSSParams read get_AsRw; property AsEcnr: ObjectIdentifier read get_AsEcnr write set_AsEcnr; property AsEaRsa: Integer read get_AsEaRsa write set_AsEaRsa; property AsMLKEM512: iASN1Base read get_AsMLKEM512; property AsMLKEM768: iASN1Base read get_AsMLKEM768; property AsMLKEM1024: iASN1Base read get_AsMLKEM1024; property AsMLDSA44: iASN1Base read get_AsMLDSA44; property AsMLDSA65: iASN1Base read get_AsMLDSA65; property AsMLDSA87: iASN1Base read get_AsMLDSA87; property AsEcdh: ObjectIdentifier read get_AsEcdh write set_AsEcdh; property AsEcmqv: ObjectIdentifier read get_AsEcmqv write set_AsEcmqv; property AsX25519: iASN1Base read get_AsX25519; property AsX448: iASN1Base read get_AsX448; property AsEd25519: iASN1Base read get_AsEd25519; property AsEd448: iASN1Base read get_AsEd448;

classtMPPublicKey

constructor Create(const aData: iSubjectPublicKeyInfo); destructor Destroy; override;

classtVersionEnum

inherits from tASN1NamedInteger

(no public members)

Types (enumerations, sets, aliases)

enumtVersion

  tVersion = (V1,
              V2,
              V3);

typetEncapsulatedPublicKeyEnum

  tEncapsulatedPublicKeyEnum = (epUndefined,
                                epRsaEncryption,
                                epDhpublicnumber,
                                epDsa,
                                epEcPublicKey,
                                epRsassaPss,
                                epRsaesOaep,
                                epRw,
                                epNr,
                                epEcnr,
                                epEaRsa,
                                epMLKEM512,
                                epMLKEM768,
                                epMLKEM1024,
                                epMLDSA44,
                                epMLDSA65,
                                epMLDSA87,
                                epEcdh,
                                epEcmqv,
                                epX25519,
                                epX448,
                                epEd25519,
                                epEd448,
                                { Composite ML-DSA (draft-ietf-lamps-pq-composite-sigs-19);
                                  same order as tCompositeMLDSAAlg in PKTypes }
                                epMLDSA44RSA2048PSS,
                                epMLDSA44RSA2048PKCS15,
                                epMLDSA44Ed25519,
                                epMLDSA44ECDSAP256,
                                epMLDSA65RSA3072PSS,
                                epMLDSA65RSA3072PKCS15,
                                epMLDSA65RSA4096PSS,
                                epMLDSA65RSA4096PKCS15,
                                epMLDSA65ECDSAP256,
                                epMLDSA65ECDSAP384,
                                epMLDSA65Ed25519,
                                epMLDSA87ECDSAP384,
                                epMLDSA87Ed448,
                                epMLDSA87RSA3072PSS,
                                epMLDSA87RSA4096PSS,
                                epMLDSA87ECDSAP521,
                                { Composite ML-KEM (draft-ietf-lamps-pq-composite-kem-14);
                                  same order as tCompositeMLKEMAlg in PKTypes }
                                epMLKEM768RSA2048,
                                epMLKEM768RSA3072,
                                epMLKEM768RSA4096,
                                epMLKEM768X25519,
                                epMLKEM768ECDHP256,
                                epMLKEM768ECDHP384,
                                epMLKEM768ECDHBP256,
                                epMLKEM1024RSA3072,
                                epMLKEM1024ECDHP384,
                                epMLKEM1024ECDHBP384,
                                epMLKEM1024X448,
                                epMLKEM1024ECDHP521,
                                { SLH-DSA (FIPS 205); same order as tSLHDSAAlg }
                                epSlhDsaSha2128s,
                                epSlhDsaSha2128f,
                                epSlhDsaSha2192s,
                                epSlhDsaSha2192f,
                                epSlhDsaSha2256s,

enumtTimeEnum

  tTimeEnum = (tUndefined,
               tUtcTime,
               tGeneralTime);

typetPKAlgorithmIDEnum

  tPKAlgorithmIDEnum = (piUndefined,
                        piRsaEncryption,
                        piDhpublicnumber,
                        piDsa,
                        piEcPublicKey,
                        piRsassaPss,
                        piRsaesOaep,
                        piRw,
                        piNr,
                        piEcnr,
                        piEaRsa,
                        piMLKEM512,
                        piMLKEM768,
                        piMLKEM1024,
                        piMLDSA44,
                        piMLDSA65,
                        piMLDSA87,
                        piEcdh,
                        piEcmqv,
                        piX25519,
                        piX448,
                        piEd25519,
                        piEd448,
                        { Composite ML-DSA; same order as tCompositeMLDSAAlg }
                        piMLDSA44RSA2048PSS,
                        piMLDSA44RSA2048PKCS15,
                        piMLDSA44Ed25519,
                        piMLDSA44ECDSAP256,
                        piMLDSA65RSA3072PSS,
                        piMLDSA65RSA3072PKCS15,
                        piMLDSA65RSA4096PSS,
                        piMLDSA65RSA4096PKCS15,
                        piMLDSA65ECDSAP256,
                        piMLDSA65ECDSAP384,
                        piMLDSA65Ed25519,
                        piMLDSA87ECDSAP384,
                        piMLDSA87Ed448,
                        piMLDSA87RSA3072PSS,
                        piMLDSA87RSA4096PSS,
                        piMLDSA87ECDSAP521,
                        { Composite ML-KEM; same order as tCompositeMLKEMAlg }
                        piMLKEM768RSA2048,
                        piMLKEM768RSA3072,
                        piMLKEM768RSA4096,
                        piMLKEM768X25519,
                        piMLKEM768ECDHP256,
                        piMLKEM768ECDHP384,
                        piMLKEM768ECDHBP256,
                        piMLKEM1024RSA3072,
                        piMLKEM1024ECDHP384,
                        piMLKEM1024ECDHBP384,
                        piMLKEM1024X448,
                        piMLKEM1024ECDHP521,
                        { SLH-DSA (FIPS 205); same order as tSLHDSAAlg }
                        piSlhDsaSha2128s,
                        piSlhDsaSha2128f,
                        piSlhDsaSha2192s,
                        piSlhDsaSha2192f,
                        piSlhDsaSha2256s,
                        piSlhDsaSha2256f,
                        piSlhDsaShake128s,

enumtExtKeyUsagePolicy

tExtKeyUsagePolicy - how strictly a component applies an extended key usage requirement to a certificate. iCertificate.CheckExtKeyUsage answers the middle case on its own; the other two need the extension's PRESENCE to be taken into account, which is why this is three states and not a Boolean.
ekupIgnore do not look at extendedKeyUsage at all.
ekupAllowUnconstrained a certificate with NO extendedKeyUsage is unconstrained and passes (RFC 5280); one that HAS the extension must name the required purpose. This is CheckExtKeyUsage's own rule.
ekupRequire the extension must be present AND name the required purpose. Use where a profile makes the purpose mandatory - RFC 3161 does so for a time-stamping authority. Naming a key purpose is a RESTRICTION: a relying party that checks against a fixed list refuses a certificate whose purpose is not on it. That is why
ekupRequire is never a default except where a specification demands it.

  tExtKeyUsagePolicy = (ekupIgnore,
                        ekupAllowUnconstrained,
                        ekupRequire);

settExtnValues

  tExtnValues = set of tExtnValueEnum;

enumtVerifyValidityPeriodMode

Selects how BeforeVerify checks a certificate's validity against its issuer: - vvpmFull : the certificate validity must be ENCLOSED by the issuer's (both notBefore and notAfter inside the issuer window). The historical default (strictest). - vvpmNotBefore : only the certificate notBefore must fall inside the issuer validity; the notAfter-enclosure requirement is dropped. - vvpmRelaxed : no issuer-enclosure check at all - plain RFC 5280 semantics, where each certificate is only required to be valid at verification time (checked per-certificate elsewhere). Accepts e.g. a newer cross-signed intermediate re-anchoring an older, longer-lived sub-CA.

  tVerifyValidityPeriodMode = (vvpmFull, vvpmNotBefore, vvpmRelaxed);

Routines