Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Internal.Cryptography.Pal.CertificatePal Class Referencesealed

Public Member Functions

string GetNameInfo (X509NameType nameType, bool forIssuer)
 
void AppendPrivateKeyInfo (StringBuilder sb)
 
void Dispose ()
 
byte[] Export (X509ContentType contentType, SafePasswordHandle password)
 
RSA GetRSAPrivateKey ()
 
DSA GetDSAPrivateKey ()
 
ECDsa GetECDsaPrivateKey ()
 
ECDiffieHellman GetECDiffieHellmanPrivateKey ()
 
ICertificatePal CopyWithPrivateKey (DSA dsa)
 
ICertificatePal CopyWithPrivateKey (ECDsa ecdsa)
 
ICertificatePal CopyWithPrivateKey (ECDiffieHellman ecdh)
 
ICertificatePal CopyWithPrivateKey (RSA rsa)
 

Static Public Member Functions

static ICertificatePal FromHandle (IntPtr handle)
 
static ICertificatePal FromOtherCert (X509Certificate copyFrom)
 
static ICertificatePal FromBlob (ReadOnlySpan< byte > rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
 
static ICertificatePal FromFile (string fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
 

Properties

IntPtr Handle [get]
 
string Issuer [get]
 
string Subject [get]
 
string LegacyIssuer [get]
 
string LegacySubject [get]
 
byte[] Thumbprint [get]
 
unsafe string KeyAlgorithm [get]
 
unsafe byte[] KeyAlgorithmParameters [get]
 
unsafe byte[] PublicKeyValue [get]
 
unsafe byte[] SerialNumber [get]
 
unsafe string SignatureAlgorithm [get]
 
unsafe DateTime NotAfter [get]
 
unsafe DateTime NotBefore [get]
 
unsafe byte[] RawData [get]
 
unsafe int Version [get]
 
unsafe bool Archived [get, set]
 
unsafe string FriendlyName [get, set]
 
unsafe X500DistinguishedName SubjectName [get]
 
unsafe X500DistinguishedName IssuerName [get]
 
unsafe IEnumerable< X509ExtensionExtensions [get]
 
SafeCertContextHandle CertContext [get]
 
bool HasPrivateKey [get]
 

Private Member Functions

unsafe byte[] PropagateKeyAlgorithmParametersFromChain ()
 
string GetIssuerOrSubject (bool issuer, bool reverse)
 
 CertificatePal (CertificatePal copyFrom)
 
 CertificatePal (SafeCertContextHandle certContext, bool deleteKeyContainer)
 
GetPrivateKey< T > (Func< CspParameters, T > createCsp, Func< CngKey, T > createCng)
 
unsafe CspParameters GetPrivateKeyCsp ()
 
unsafe ICertificatePal CopyWithPersistedCngKey (CngKey cngKey)
 
unsafe ICertificatePal CopyWithPersistedCapiKey (CspKeyContainerInfo keyContainerInfo)
 
ICertificatePal CopyWithEphemeralKey (CngKey cngKey)
 

Static Private Member Functions

static CertNameType MapNameType (X509NameType nameType)
 
static unsafe ICertificatePal FromBlobOrFile (ReadOnlySpan< byte > rawData, string fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
 
static unsafe SafeCertContextHandle GetSignerInPKCS7Store (SafeCertStoreHandle hCertStore, SafeCryptMsgHandle hCryptMsg)
 
static unsafe SafeCertContextHandle FilterPFXStore (ReadOnlySpan< byte > rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
 
static PfxCertStoreFlags MapKeyStorageFlags (X509KeyStorageFlags keyStorageFlags)
 
static SafeNCryptKeyHandle TryAcquireCngPrivateKey (SafeCertContextHandle certificateContext, out CngKeyHandleOpenOptions handleOptions)
 
static int GuessKeySpec (CngProvider provider, string keyName, bool machineKey, CngAlgorithmGroup algorithmGroup)
 
static bool TryGuessKeySpec (CspParameters cspParameters, CngAlgorithmGroup algorithmGroup, out int keySpec)
 
static bool TryGuessRsaKeySpec (CspParameters cspParameters, out int keySpec)
 
static bool TryGuessDsaKeySpec (CspParameters cspParameters, out int keySpec)
 

Private Attributes

SafeCertContextHandle _certContext
 

Detailed Description

Definition at line 13 of file CertificatePal.cs.


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