2 implementations of ICertificatePal
System.Security.Cryptography (2)
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.cs (1)
15internal sealed partial class CertificatePal : IDisposable, ICertificatePal
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.PrivateKey.cs (1)
11internal sealed partial class CertificatePal : IDisposable, ICertificatePal
59 references to ICertificatePal
System.Security.Cryptography (59)
System\Security\Cryptography\X509Certificates\CertificatePal.cs (4)
10internal static partial ICertificatePal FromHandle(IntPtr handle); 12internal static partial ICertificatePal FromOtherCert(X509Certificate copyFrom); 14internal static partial ICertificatePal FromBlob( 19internal static partial ICertificatePal FromFile(
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.cs (2)
19internal static partial ICertificatePal FromHandle(IntPtr handle) 42internal static partial ICertificatePal FromOtherCert(X509Certificate copyFrom)
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.Import.cs (2)
13internal static partial ICertificatePal FromBlob(ReadOnlySpan<byte> rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags) 18internal static partial ICertificatePal FromFile(string fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.PrivateKey.cs (11)
107public ICertificatePal CopyWithPrivateKey(DSA dsa) 110ICertificatePal? clone; 145public ICertificatePal CopyWithPrivateKey(ECDsa ecdsa) 151ICertificatePal? clone = CopyWithPersistedCngKey(ecdsaCng.Key); 170public ICertificatePal CopyWithPrivateKey(ECDiffieHellman ecdh) 176ICertificatePal? clone = CopyWithPersistedCngKey(ecdhCng.Key); 195public ICertificatePal CopyWithPrivateKey(MLDsa privateKey) => CertificateHelpers.CopyWithPrivateKey(this, privateKey); 197public ICertificatePal CopyWithPrivateKey(MLKem privateKey) 202public ICertificatePal CopyWithPrivateKey(SlhDsa privateKey) 207public ICertificatePal CopyWithPrivateKey(RSA rsa) 210ICertificatePal? clone;
System\Security\Cryptography\X509Certificates\ChainPal.cs (1)
14ICertificatePal cert,
System\Security\Cryptography\X509Certificates\ChainPal.Windows.BuildChain.cs (1)
19ICertificatePal cert,
System\Security\Cryptography\X509Certificates\DSACertificateExtensions.cs (1)
58ICertificatePal pal = certificate.Pal.CopyWithPrivateKey(privateKey);
System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs (1)
49ICertificatePal pal = certificate.Pal.CopyWithPrivateKey(privateKey);
System\Security\Cryptography\X509Certificates\ICertificatePal.cs (7)
39ICertificatePal CopyWithPrivateKey(DSA privateKey); 40ICertificatePal CopyWithPrivateKey(ECDsa privateKey); 41ICertificatePal CopyWithPrivateKey(RSA privateKey); 42ICertificatePal CopyWithPrivateKey(ECDiffieHellman privateKey); 43ICertificatePal CopyWithPrivateKey(MLDsa privateKey); 44ICertificatePal CopyWithPrivateKey(MLKem privateKey); 45ICertificatePal CopyWithPrivateKey(SlhDsa privateKey);
System\Security\Cryptography\X509Certificates\IStorePal.cs (2)
11void Add(ICertificatePal cert); 12void Remove(ICertificatePal cert);
System\Security\Cryptography\X509Certificates\IX509Pal.cs (3)
8AsymmetricAlgorithm DecodePublicKey(Oid oid, byte[] encodedKeyValue, byte[]? encodedParameters, ICertificatePal? certificatePal); 9ECDsa DecodeECDsaPublicKey(ICertificatePal? certificatePal); 10ECDiffieHellman DecodeECDiffieHellmanPublicKey(ICertificatePal? certificatePal);
System\Security\Cryptography\X509Certificates\RSACertificateExtensions.cs (1)
53ICertificatePal pal = certificate.Pal.CopyWithPrivateKey(privateKey);
System\Security\Cryptography\X509Certificates\StorePal.Windows.cs (2)
50public void Add(ICertificatePal certificate) 59public unsafe void Remove(ICertificatePal certificate)
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (7)
129internal X509Certificate2(ICertificatePal pal) 192internal new ICertificatePal Pal => (ICertificatePal)base.Pal!; // called base ctors guaranteed to initialize 778ICertificatePal pal = Pal.CopyWithPrivateKey(privateKey); 878ICertificatePal pal = Pal.CopyWithPrivateKey(privateKey); 980ICertificatePal pal = Pal.CopyWithPrivateKey(privateKey); 1079ICertificatePal pal = Pal.CopyWithPrivateKey(privateKey);
System\Security\Cryptography\X509Certificates\X509CertificateLoader.netcore.cs (9)
25ICertificatePal pal = LoadCertificatePal(data); 34ICertificatePal pal = LoadCertificatePalFromFile(path); 39private static partial ICertificatePal LoadCertificatePal(ReadOnlySpan<byte> data); 40private static partial ICertificatePal LoadCertificatePalFromFile(string path); 42internal static ICertificatePal LoadPkcs12Pal( 66internal static ICertificatePal LoadPkcs12PalFromFile( 123private readonly ICertificatePal? _pal; 125internal Pkcs12Return(ICertificatePal pal) 130internal ICertificatePal GetPal()
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Windows.cs (2)
13private static partial ICertificatePal LoadCertificatePal(ReadOnlySpan<byte> data) 30private static partial ICertificatePal LoadCertificatePalFromFile(string path)
System\Security\Cryptography\X509Certificates\X509Pal.Windows.PublicKey.cs (3)
24public ECDsa DecodeECDsaPublicKey(ICertificatePal? certificatePal) 36public ECDiffieHellman DecodeECDiffieHellmanPublicKey(ICertificatePal? certificatePal) 49public AsymmetricAlgorithm DecodePublicKey(Oid oid, byte[] encodedKeyValue, byte[]? encodedParameters, ICertificatePal? certificatePal)