C# Class Internal.Cryptography.Pal.X509Pal

A singleton class that encapsulates the native implementation of various X509 services. (Implementing this as a singleton makes it easier to split the class into abstract and implementation classes if desired.)
Inheritance: IX509Pal
Show file Open project: dotnet/corefx

Public Methods

Method Description
DecodePublicKey ( Oid oid, byte encodedKeyValue, byte encodedParameters, ICertificatePal certificatePal ) : AsymmetricAlgorithm

Private Methods

Method Description
ConstructDSSPublicKeyCspBlob ( byte encodedKeyValue, byte encodedParameters ) : byte[]
DecodeDssKeyValue ( byte encodedKeyValue ) : byte[]
DecodeDssParameters ( byte encodedParameters, byte &p, byte &q, byte &g ) : void
DecodeECDsaPublicKey ( CertificatePal certificatePal ) : ECDsa
DecodeKeyBlob ( CryptDecodeObjectStructType lpszStructType, byte encodedKeyValue ) : byte[]
ExportKeyBlob ( Microsoft.Win32.SafeHandles.SafeBCryptKeyHandle bCryptKeyHandle, CngKeyBlobFormat blobFormat ) : byte[]
ExportNamedCurveParameters ( ECParameters &ecParams, byte ecBlob, bool includePrivateParameters ) : void
GetCurveName ( Microsoft.Win32.SafeHandles.SafeBCryptKeyHandle bcryptHandle ) : string
GetProperty ( Microsoft.Win32.SafeHandles.SafeBCryptKeyHandle cryptHandle, string propertyName ) : byte[]
GetPropertyAsString ( Microsoft.Win32.SafeHandles.SafeBCryptKeyHandle cryptHandle, string propertyName ) : string
HasExplicitParameters ( Microsoft.Win32.SafeHandles.SafeBCryptKeyHandle bcryptHandle ) : bool
ImportPublicKeyInfo ( SafeCertContextHandle certContext ) : Microsoft.Win32.SafeHandles.SafeBCryptKeyHandle

Method Details

DecodePublicKey() public method

public DecodePublicKey ( Oid oid, byte encodedKeyValue, byte encodedParameters, ICertificatePal certificatePal ) : AsymmetricAlgorithm
oid Oid
encodedKeyValue byte
encodedParameters byte
certificatePal ICertificatePal
return AsymmetricAlgorithm