CheckExtKeyUsagePolicy
function CheckExtKeyUsagePolicy(const aCert: iCertificate; const aAlg: ObjectIdentifier; aPolicy: tExtKeyUsagePolicy): Boolean;
Explicit conversions between the composite ML-DSA algorithm enumeration in PKTypes and the SubjectPublicKeyInfo CHOICE enumerations of this unit. Implemented as case statements on purpose: the enumerations cannot be trusted to stay in ordinal sync indefinitely. CheckExtKeyUsagePolicy applies aPolicy to aCert for the key purpose aAlg. One place for the three-way rule, so every component that offers a policy property agrees on what the states mean. A nil certificate passes only ekupIgnore.