1 implementation of ICertificatePal
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (1)
14internal sealed class OpenSslX509CertificateReader : ICertificatePal
105 references to ICertificatePal
System.Security.Cryptography (105)
System\Security\Cryptography\X509Certificates\CertCollectionLoader.cs (4)
13private List<ICertificatePal>? _certs; 15internal CertCollectionLoader(List<ICertificatePal> certs) 30List<ICertificatePal>? localCerts = Interlocked.Exchange(ref _certs, null); 33foreach (ICertificatePal certPal in localCerts)
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.OpenSsl.cs (4)
13internal static partial ICertificatePal FromHandle(IntPtr handle) 18internal static partial ICertificatePal FromOtherCert(X509Certificate copyFrom) 23internal static partial ICertificatePal FromBlob(ReadOnlySpan<byte> rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags) 28internal static partial ICertificatePal FromFile(string fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
System\Security\Cryptography\X509Certificates\ChainPal.cs (1)
14ICertificatePal cert,
System\Security\Cryptography\X509Certificates\ChainPal.OpenSsl.cs (2)
32ICertificatePal cert, 76ICertificatePal 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 (4)
36ICertificatePal CopyWithPrivateKey(DSA privateKey); 37ICertificatePal CopyWithPrivateKey(ECDsa privateKey); 38ICertificatePal CopyWithPrivateKey(RSA privateKey); 39ICertificatePal CopyWithPrivateKey(ECDiffieHellman 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\OpenSslCachedSystemStoreProvider.cs (3)
73public void Add(ICertificatePal cert) 79public void Remove(ICertificatePal cert) 238ICertificatePal? pal;
System\Security\Cryptography\X509Certificates\OpenSslDirectoryBasedStoreProvider.cs (3)
107public void Add(ICertificatePal certPal) 130private void AddCertToStore(ICertificatePal certPal) 221public void Remove(ICertificatePal certPal)
System\Security\Cryptography\X509Certificates\OpenSslPkcsFormatReader.cs (21)
78internal static bool TryReadPkcs7Der(ReadOnlySpan<byte> rawData, out ICertificatePal? certPal) 83internal static bool TryReadPkcs7Der(SafeBioHandle bio, out ICertificatePal? certPal) 88internal static bool TryReadPkcs7Der(ReadOnlySpan<byte> rawData, [NotNullWhen(true)] out List<ICertificatePal>? certPals) 93internal static bool TryReadPkcs7Der(SafeBioHandle bio, [NotNullWhen(true)] out List<ICertificatePal>? certPals) 101out ICertificatePal? certPal, 102[NotNullWhen(true)] out List<ICertificatePal>? certPals) 121out ICertificatePal? certPal, 122[NotNullWhen(true)] out List<ICertificatePal>? certPals) 138internal static bool TryReadPkcs7Pem(ReadOnlySpan<byte> rawData, out ICertificatePal? certPal) 143internal static bool TryReadPkcs7Pem(SafeBioHandle bio, out ICertificatePal? certPal) 148internal static bool TryReadPkcs7Pem(ReadOnlySpan<byte> rawData, [NotNullWhen(true)] out List<ICertificatePal>? certPals) 153internal static bool TryReadPkcs7Pem(SafeBioHandle bio, [NotNullWhen(true)] out List<ICertificatePal>? certPals) 161out ICertificatePal? certPal, 162[NotNullWhen(true)] out List<ICertificatePal>? certPals) 180out ICertificatePal? certPal, 181[NotNullWhen(true)] out List<ICertificatePal>? certPals) 200out ICertificatePal? certPal, 201[NotNullWhen(true)] out List<ICertificatePal> certPals) 203List<ICertificatePal>? readPals = single ? null : new List<ICertificatePal>(); 228ICertificatePal pal = CertificatePal.FromHandle(certHandle);
System\Security\Cryptography\X509Certificates\OpenSslSingleCertLoader.cs (3)
11private ICertificatePal? _cert; 13public OpenSslSingleCertLoader(ICertificatePal cert) 28ICertificatePal? localCert = Interlocked.Exchange(ref _cert, null);
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (17)
25public static ICertificatePal FromHandle(IntPtr handle) 33public static ICertificatePal FromOtherCert(X509Certificate cert) 42public static ICertificatePal FromBlob(ReadOnlySpan<byte> rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags) 46ICertificatePal? cert; 73public static ICertificatePal FromFile(string fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags) 75ICertificatePal? pal; 106private static ICertificatePal? FromBio(SafeBioHandle bio) 112ICertificatePal? certPal; 155internal static bool TryReadX509Der(ReadOnlySpan<byte> rawData, [NotNullWhen(true)] out ICertificatePal? certPal) 173internal static bool TryReadX509Pem(SafeBioHandle bio, [NotNullWhen(true)] out ICertificatePal? certPal) 189internal static bool TryReadX509PemNoAux(SafeBioHandle bio, [NotNullWhen(true)] out ICertificatePal? certPal) 205internal static bool TryReadX509Pem(ReadOnlySpan<byte> rawData, [NotNullWhen(true)] out ICertificatePal? certPal) 220internal static bool TryReadX509Der(SafeBioHandle bio, [NotNullWhen(true)] out ICertificatePal? fromBio) 622public ICertificatePal CopyWithPrivateKey(DSA privateKey) 640public ICertificatePal CopyWithPrivateKey(ECDsa privateKey) 660public ICertificatePal CopyWithPrivateKey(ECDiffieHellman privateKey) 680public ICertificatePal CopyWithPrivateKey(RSA privateKey)
System\Security\Cryptography\X509Certificates\OpenSslX509Encoder.cs (5)
14public ECDsa DecodeECDsaPublicKey(ICertificatePal? certificatePal) 22public ECDiffieHellman DecodeECDiffieHellmanPublicKey(ICertificatePal? certificatePal) 31public AsymmetricAlgorithm DecodePublicKey(Oid oid, byte[] encodedKeyValue, byte[] encodedParameters, ICertificatePal? certificatePal) 67ICertificatePal? certPal; 105ICertificatePal? certPal;
System\Security\Cryptography\X509Certificates\RSACertificateExtensions.cs (1)
53ICertificatePal pal = certificate.Pal.CopyWithPrivateKey(privateKey);
System\Security\Cryptography\X509Certificates\StorePal.OpenSsl.cs (6)
23ICertificatePal? singleCert; 35List<ICertificatePal>? certPals; 81ICertificatePal? singleCert; 99List<ICertificatePal>? certPals; 181private static OpenSslSingleCertLoader SingleCertToLoaderPal(ICertificatePal singleCert) => new OpenSslSingleCertLoader(singleCert); 183private static CertCollectionLoader ListToLoaderPal(List<ICertificatePal> certPals) => new CertCollectionLoader(certPals);
System\Security\Cryptography\X509Certificates\UnsupportedDisallowedStore.cs (2)
38public void Add(ICertificatePal cert) 50public void Remove(ICertificatePal cert)
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (4)
128internal X509Certificate2(ICertificatePal pal) 191internal new ICertificatePal Pal => (ICertificatePal)base.Pal!; // called base ctors guaranteed to initialize 769ICertificatePal 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.OpenSsl.cs (5)
11private static partial ICertificatePal LoadCertificatePal(ReadOnlySpan<byte> data) 13ICertificatePal? pal; 24private static partial ICertificatePal LoadCertificatePalFromFile(string path) 26ICertificatePal? pal; 90if (OpenSslX509CertificateReader.TryReadX509Der(data.Span, out ICertificatePal? ret))