17 X509KeyUsageFlags.DigitalSignature
21 X509KeyUsageFlags.NonRepudiation
25 X509KeyUsageFlags.KeyEncipherment
29 X509KeyUsageFlags.DataEncipherment
33 X509KeyUsageFlags.KeyAgreement
37 X509KeyUsageFlags.KeyCertSign
41 X509KeyUsageFlags.CrlSign
45 X509KeyUsageFlags.EncipherOnly
49 X509KeyUsageFlags.DecipherOnly
179 if (
text.Length == 0)
219 if (c !=
'0' && c !=
'1' && c !=
'2')
227 for (
int i = 1; i <
length; i++)
242 byte[]
array =
new byte[bytes.Length + 1];
253 if (c >=
'0' && c <=
'9')
361 return num ==
state.compareResult;
512 if (!global::Interop.crypt32.CertGetCertificateContextProperty(pCertContext,
CertContextPropId.CERT_KEY_IDENTIFIER_PROP_ID,
null,
ref pcbData))
552 ChainPal chainPal =
ChainPal.
BuildChain(
useMachineContext:
false,
CertificatePal.
FromHandle(pCertContext.DangerousGetHandle()),
null,
null,
null,
X509RevocationMode.NoCheck,
X509RevocationFlag.ExcludeRoot,
null,
X509ChainTrustMode.System,
DateTime.
Now,
new TimeSpan(0, 0, 0),
disableAia:
false);
static ICertificatePal FromHandle(IntPtr handle)
static unsafe ChainPal BuildChain(bool useMachineContext, ICertificatePal cert, X509Certificate2Collection extraStore, OidCollection applicationPolicy, OidCollection certificatePolicy, X509RevocationMode revocationMode, X509RevocationFlag revocationFlag, X509Certificate2Collection customTrustStore, X509ChainTrustMode trustMode, DateTime verificationTime, TimeSpan timeout, bool disableAia)
void FindByTimeExpired(DateTime dateTime)
string NormalizeOid(string maybeOid, OidGroup expectedGroup)
unsafe void FindByExtension(string oidValue)
static string ConfirmedOidValue(IFindPal findPal, object findValue, OidGroup oidGroup)
unsafe void FindByCertificatePolicy(string oidValue)
unsafe void FindByThumbprint(byte[] thumbPrint)
void FindByTimeNotYetValid(DateTime dateTime)
static string GetCertNameInfo(SafeCertContextHandle pCertContext, CertNameType dwNameType, CertNameFlags dwNameFlags)
static IFindPal OpenPal(X509Certificate2Collection findFrom, X509Certificate2Collection copyTo, bool validOnly)
FindPal(X509Certificate2Collection findFrom, X509Certificate2Collection copyTo, bool validOnly)
unsafe void FindCore< TState >(TState state, Func< TState, SafeCertContextHandle, bool > filter)
unsafe void FindByApplicationPolicy(string oidValue)
static X509Certificate2Collection FindFromCollection(X509Certificate2Collection coll, X509FindType findType, object findValue, bool validOnly)
unsafe void FindByTime(DateTime dateTime, int compareResult)
static X509KeyUsageFlags ConfirmedX509KeyUsage(object findValue)
void FindBySubjectKeyIdentifier(byte[] keyIdentifier)
static T ConfirmedCast< T >(object findValue)
static bool VerifyCertificateIgnoringErrors(SafeCertContextHandle pCertContext)
unsafe void FindByTemplateName(string templateName)
readonly X509Certificate2Collection _copyTo
static void ValidateOidValue(string keyValue)
static BigInteger PositiveBigIntegerFromByteArray(byte[] bytes)
unsafe void FindBySubjectName(string subjectName)
unsafe void FindBySerialNumber(BigInteger hexValue, BigInteger decimalValue)
void FindByTimeValid(DateTime dateTime)
static BigInteger LaxParseDecimalBigInteger(string decimalString)
unsafe void FindByIssuerName(string issuerName)
void FindBySubjectDistinguishedName(string subjectDistinguishedName)
static readonly Dictionary< string, X509KeyUsageFlags > s_keyUsages
readonly StorePal _storePal
void FindByIssuerDistinguishedName(string issuerDistinguishedName)
unsafe void FindByKeyUsage(X509KeyUsageFlags keyUsage)
unsafe CERT_CONTEXT * CertContext
SafeCertStoreHandle SafeCertStoreHandle
static IExportPal LinkFromCertificateCollection(X509Certificate2Collection certificates)
static void Reverse(Array array)
static void BlockCopy(Array src, int srcOffset, Array dst, int dstOffset, int count)
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
static void KeepAlive(object? obj)
static int GetHRForLastWin32Error()
static unsafe? string PtrToStringUni(IntPtr ptr)
static unsafe? string PtrToStringAnsi(IntPtr ptr)
static int GetLastWin32Error()
static string Cryptography_X509_InvalidFindValue
static string Argument_InvalidOidValue
static string Cryptography_X509_InvalidFindType
static StringComparer OrdinalIgnoreCase
CryptDecodeObjectStructType
unsafe CERT_INFO * pCertInfo
unsafe CERT_EXTENSION * rgExtension
CRYPTOAPI_BLOB SerialNumber
unsafe byte[] ToByteArray()
static FILETIME FromDateTime(DateTime dt)
static readonly IntPtr Zero
static BigInteger Multiply(BigInteger left, BigInteger right)
static BigInteger Add(BigInteger left, BigInteger right)